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]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}(hhhhhNhNubah}(h]h ]nah"]h$]h&]uh1hhhubah}(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 declaratorhhhhhj hK[ubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhj hK[hhhhubh desc_content)}(hhh]h}(h]h ]h"]h$]h&]uh1jhhhhhj hK[ubeh}(h]h ](cmacroeh"]h$]h&]domainj-objtypej.desctypej.noindex noindexentrynocontentsentryuh1hhhhhhNhNubh paragraph)}(h``get_user (x, ptr)``h]hliteral)}(hj<h]hget_user (x, ptr)}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubah}(h]h ]h"]h$]h&]uh1j8h]/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]j9)}(h&Get a simple variable from user space.h]h&Get a simple variable from user space.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK[hjVubah}(h]h ]h"]h$]h&]uh1jThjhhK[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](j9)}(h**Parameters**h]hstrong)}(hjwh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjuubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK_hjqubhdefinition_list)}(hhh](hdefinition_list_item)}(h ``x`` Variable to store result. h](hterm)}(h``x``h]j?)}(hjh]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(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]j9)}(hVariable to store result.h]hVariable to store result.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhK\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]j?)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(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]j9)}(hSource address, in user space.h]hSource address, in user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhK]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK]hjubeh}(h]h ]h"]h$]h&]uh1jhjqubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK_hjqubj9)}(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&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK_hjqubj9)}(h**Description**h]jz)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj9ubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKbhjqubj9)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKahjqubj9)}(h**ptr** must have pointer-to-simple-variable type, and the result of dereferencing **ptr** must be assignable to **x** without a cast.h](jz)}(h**ptr**h]hptr}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj`ubhL must have pointer-to-simple-variable type, and the result of dereferencing }(hj`hhhNhNubjz)}(h**ptr**h]hptr}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj`ubh must be assignable to }(hj`hhhNhNubjz)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj`ubh without a cast.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKehjqubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhhjqubj9)}(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 }(hjhhhNhNubjz)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is set to zero.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKihjqubeh}(h]h ] kernelindentah"]h$]h&]uh1johhhhhNhNubh)}(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]h)}(hjh]h __get_user}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKoubah}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKoubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKohjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKoubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3j*j4j*j5j6j7uh1hhhhhhNhNubj9)}(h``__get_user (x, ptr)``h]j?)}(hj0h]h__get_user (x, ptr)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj.ubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKqhhhhubjU)}(h;Get a simple variable from user space, with less checking. h]j9)}(h:Get a simple variable from user space, with less checking.h]h:Get a simple variable from user space, with less checking.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKohjFubah}(h]h ]h"]h$]h&]uh1jThjXhKohhhhubjp)}(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](j9)}(h**Parameters**h]jz)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKshj_ubj)}(hhh](j)}(h ``x`` Variable to store result. h](j)}(h``x``h]j?)}(hjh]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKphj~ubj)}(hhh]j9)}(hVariable to store result.h]hVariable to store result.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKphjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKphj{ubj)}(h'``ptr`` Source address, in user space. h](j)}(h``ptr``h]j?)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKqhjubj)}(hhh]j9)}(hSource address, in user space.h]hSource address, in user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKqhj{ubeh}(h]h ]h"]h$]h&]uh1jhj_ubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKshj_ubj9)}(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&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKshj_ubj9)}(h**Description**h]jz)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKvhj_ubj9)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKuhj_ubj9)}(h**ptr** must have pointer-to-simple-variable type, and the result of dereferencing **ptr** must be assignable to **x** without a cast.h](jz)}(h**ptr**h]hptr}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubhL must have pointer-to-simple-variable type, and the result of dereferencing }(hjDhhhNhNubjz)}(h**ptr**h]hptr}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubh must be assignable to }(hjDhhhNhNubjz)}(h**x**h]hx}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubh without a cast.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKyhj_ubj9)}(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&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhK|hj_ubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj_ubj9)}(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 }(hjhhhNhNubjz)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is set to zero.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1johhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌput_user (C macro) c.put_userhNtauh1hhhhhhNhNubh)}(hhh](h)}(hput_userh]h)}(hput_userh]h)}(hput_userh]h)}(hjh]hput_user}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKubah}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhhhNhNubj9)}(h``put_user (x, ptr)``h]j?)}(hj#h]hput_user (x, ptr)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj!ubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhhhhubjU)}(h&Write a simple value into user space. h]j9)}(h%Write a simple value into user space.h]h%Write a simple value into user space.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj9ubah}(h]h ]h"]h$]h&]uh1jThjKhKhhhhubjp)}(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](j9)}(h**Parameters**h]jz)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjRubj)}(hhh](j)}(h#``x`` Value to copy to user space. h](j)}(h``x``h]j?)}(hjwh]hx}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjuubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjqubj)}(hhh]j9)}(hValue to copy to user space.h]hValue to copy to user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(h,``ptr`` Destination address, in user space. h](j)}(h``ptr``h]j?)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjubj)}(hhh]j9)}(h#Destination address, in user space.h]h#Destination address, in user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjRubj9)}(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&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjRubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjRubj9)}(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&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjRubj9)}(hw**ptr** must have pointer-to-simple-variable type, and **x** must be assignable to the result of dereferencing **ptr**.h](jz)}(h**ptr**h]hptr}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubh0 must have pointer-to-simple-variable type, and }(hj7hhhNhNubjz)}(h**x**h]hx}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubh3 must be assignable to the result of dereferencing }(hj7hhhNhNubjz)}(h**ptr**h]hptr}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjRubj9)}(h **Return**h]jz)}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjRubj9)}(h%zero on success, or -EFAULT on error.h]h%zero on success, or -EFAULT on error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1johhhhhNhNubh)}(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]h)}(hjh]h __put_user}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKubah}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhhhNhNubj9)}(h``__put_user (x, ptr)``h]j?)}(hjh]h__put_user (x, ptr)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhhhhubjU)}(h:Write a simple value into user space, with less checking. h]j9)}(h9Write a simple value into user space, with less checking.h]h9Write a simple value into user space, with less checking.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj ubah}(h]h ]h"]h$]h&]uh1jThjhKhhhhubjp)}(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](j9)}(h**Parameters**h]jz)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj(ubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj$ubj)}(hhh](j)}(h#``x`` Value to copy to user space. h](j)}(h``x``h]j?)}(hjIh]hx}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhjCubj)}(hhh]j9)}(hValue to copy to user space.h]hValue to copy to user space.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^hKhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hKhj@ubj)}(h,``ptr`` Destination address, in user space. h](j)}(h``ptr``h]j?)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj|ubj)}(hhh]j9)}(h#Destination address, in user space.h]h#Destination address, in user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj@ubeh}(h]h ]h"]h$]h&]uh1jhj$ubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj$ubj9)}(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&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj$ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj$ubj9)}(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&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj$ubj9)}(hw**ptr** must have pointer-to-simple-variable type, and **x** must be assignable to the result of dereferencing **ptr**.h](jz)}(h**ptr**h]hptr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh0 must have pointer-to-simple-variable type, and }(hj hhhNhNubjz)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh3 must be assignable to the result of dereferencing }(hj hhhNhNubjz)}(h**ptr**h]hptr}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj$ubj9)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj$ubj9)}(h **Return**h]jz)}(hj[h]hReturn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj$ubj9)}(h%zero on success, or -EFAULT on error.h]h%zero on success, or -EFAULT on error.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h]/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:8: ./arch/x86/include/asm/uaccess.hhKhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1johhhhhNhNubh)}(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: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]h)}(h clear_userh]h clear_user}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhK4ubhdesc_parameterlist)}(h"(void __user *to, unsigned long n)h](hdesc_parameter)}(hvoid __user *toh](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hj# hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubhdesc_sig_punctuation)}(h*h]h*}(hj3 hhhNhNubah}(h]h ]pah"]h$]h&]uh1j1 hjubh)}(htoh]hto}(hjB hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long nh](j)}(hunsignedh]hunsigned}(hj[ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubj)}(h h]h }(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubj)}(hlongh]hlong}(hjw hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubh)}(hhh]hn}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjW ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhK4ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhK4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK4hjhhubj )}(hhh]j9)}(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&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK4hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK4ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhhhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hZ/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]j?)}(hj h]hvoid __user *to}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj 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]j9)}(h#Destination address, in user space.h]h#Destination address, in user space.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj 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]j?)}(hj6 h]hunsigned long n}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4 ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK6hj0 ubj)}(hhh]j9)}(hNumber of bytes to zero.h]hNumber of bytes to zero.}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjK hK6hjL ubah}(h]h ]h"]h$]h&]uh1jhj0 ubeh}(h]h ]h"]h$]h&]uh1jhjK hK6hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj9)}(h**Description**h]jz)}(hjq h]h Description}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjo ubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK8hj ubj9)}(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&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK7hj ubj9)}(h **Return**h]jz)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK9hj ubj9)}(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&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chK:hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johhhhhNhNubh)}(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 ah"]h$]h&]uh1j1 hj2 ubh)}(htoh]hto}(hjq hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2 ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj. ubj)}(hunsigned long nh](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 ubh)}(hhh]hn}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj. ubeh}(h]h ]h"]h$]h&]jj uh1jhj hhhj hKHubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj hKHubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hKHhj hhubj )}(hhh]j9)}(h9Zero a block of memory in user space, with less checking.h]h9Zero a block of memory in user space, with less checking.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKHhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKHubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhhhNhNubjp)}(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. Caller must check the specified block with access_ok() before calling this function. **Return** number of bytes that could not be cleared. On success, this will be zero.h](j9)}(h**Parameters**h]jz)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKLhj ubj)}(hhh](j)}(h8``void __user *to`` Destination address, in user space. h](j)}(h``void __user *to``h]j?)}(hj, h]hvoid __user *to}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj* 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]j9)}(h#Destination address, in user space.h]h#Destination address, in user space.}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjA hKIhjB ubah}(h]h ]h"]h$]h&]uh1jhj& ubeh}(h]h ]h"]h$]h&]uh1jhjA hKIhj# ubj)}(h-``unsigned long n`` Number of bytes to zero. h](j)}(h``unsigned long n``h]j?)}(hje h]hunsigned long n}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjc ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKJhj_ ubj)}(hhh]j9)}(hNumber of bytes to zero.h]hNumber of bytes to zero.}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjz hKJhj{ ubah}(h]h ]h"]h$]h&]uh1jhj_ ubeh}(h]h ]h"]h$]h&]uh1jhjz hKJhj# ubeh}(h]h ]h"]h$]h&]uh1jhj ubj9)}(h**Description**h]jz)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKLhj ubj9)}(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&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKKhj ubj9)}(h **Return**h]jz)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKNhj ubj9)}(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&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:11: ./arch/x86/lib/usercopy_32.chKOhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johhhhhNhNubh)}(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]h)}(hget_user_pages_fasth]hget_user_pages_fast}(hj- hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj) ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj 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}(hjI hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE ubj)}(h h]h }(hjW hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE ubj)}(hlongh]hlong}(hje hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE ubj)}(h h]h }(hjs hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE ubh)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjE ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjA 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 ubh)}(hnr_pagesh]hnr_pages}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjA 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 ubh)}(h gup_flagsh]h gup_flags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjA ubj)}(hstruct page **pagesh](hdesc_sig_keyword)}(hstructh]hstruct}(hj"hhhNhNubah}(h]h ]kah"]h$]h&]uh1j hjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&] refdomainj-reftype identifier reftargetjDmodnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j] ASTIdentifier)}jXj/ sbc.get_user_pages_fastasbuh1hhjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjxhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjA ubeh}(h]h ]h"]h$]h&]jj uh1jhj hhhj hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM hj hhubj )}(hhh]j9)}(hpin user pages in memoryh]hpin user pages in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhhhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hH/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]j?)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubj)}(hhh]j9)}(hstarting user addressh]hstarting user address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h3``int nr_pages`` number of pages from start to pin h](j)}(h``int nr_pages``h]j?)}(hj6h]h int nr_pages}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4ubah}(h]h ]h"]h$]h&]uh1jhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hj0ubj)}(hhh]j9)}(h!number of pages from start to pinh]h!number of pages from start to pin}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjKhM hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhM hjubj)}(h9``unsigned int gup_flags`` flags modifying pin behaviour h](j)}(h``unsigned int gup_flags``h]j?)}(hjoh]hunsigned int gup_flags}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjiubj)}(hhh]j9)}(hflags modifying pin behaviourh]hflags modifying pin behaviour}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(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]j?)}(hjh]hstruct page **pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubj)}(hhh]j9)}(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&]uh1j8hH/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&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubj9)}(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&]uh1j8hH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubj9)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hH/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:14: ./mm/gup.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johhhhhNhNubhtarget)}(h.. _mm-api-gfp-flags:h]h}(h]h ]h"]h$]h&]refidmm-api-gfp-flagsuh1jhKhhhhhhubeh}(h]user-space-memory-accessah ]h"]user space memory accessah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hMemory Allocation Controlsh]hMemory Allocation Controls}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hhhhhKubh)}(hhh](h)}(h!Page mobility and placement hintsh]h!Page mobility and placement hints}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhNhNubj9)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhK|hjFubj9)}(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](j?)}(h``__GFP_MOVABLE``h]h __GFP_MOVABLE}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubh| (also a zone modifier) indicates that the page can be moved by page migration during memory compaction or can be reclaimed.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjFubj9)}(h``__GFP_RECLAIMABLE`` is used for slab allocations that specify SLAB_RECLAIM_ACCOUNT and whose pages can be freed via shrinkers.h](j?)}(h``__GFP_RECLAIMABLE``h]h__GFP_RECLAIMABLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhk is used for slab allocations that specify SLAB_RECLAIM_ACCOUNT and whose pages can be freed via shrinkers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjFubj9)}(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](j?)}(h``__GFP_WRITE``h]h __GFP_WRITE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh 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&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjFubj9)}(h@``__GFP_HARDWALL`` enforces the cpuset memory allocation policy.h](j?)}(h``__GFP_HARDWALL``h]h__GFP_HARDWALL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh. enforces the cpuset memory allocation policy.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjFubj9)}(h``__GFP_THISNODE`` forces the allocation to be satisfied from the requested node with no fallbacks or placement policy enforcements.h](j?)}(h``__GFP_THISNODE``h]h__GFP_THISNODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhr forces the allocation to be satisfied from the requested node with no fallbacks or placement policy enforcements.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjFubj9)}(hB``__GFP_ACCOUNT`` causes the allocation to be accounted to kmemcg.h](j?)}(h``__GFP_ACCOUNT``h]h __GFP_ACCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh1 causes the allocation to be accounted to kmemcg.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjFubj9)}(hH``__GFP_NO_OBJ_EXT`` causes slab allocation to have no object extension.h](j?)}(h``__GFP_NO_OBJ_EXT``h]h__GFP_NO_OBJ_EXT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh4 causes slab allocation to have no object extension.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:22: ./include/linux/gfp_types.hhKhjFubeh}(h]!page-mobility-and-placement-hintsah ]h"]!page mobility and placement hintsah$]h&]uh1hhj5hhhNhNubh)}(hhh](h)}(hhjJubh indicates that the caller is high-priority and that granting the request is necessary before the system can make forward progress. For example creating an IO context to clean pages and requests from atomic context.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:25: ./include/linux/gfp_types.hhKhj9ubj9)}(hXL``__GFP_MEMALLOC`` allows access to all memory. This should only be used when the caller guarantees the allocation will allow more memory to be freed very shortly e.g. process exiting or swapping. Users either should be the MM or co-ordinating closely with the VM (e.g. swap over NFS). Users of this flag have to be extremely careful to not deplete the reserve completely and implement a throttling mechanism which controls the consumption of the reserve based on the amount of freed memory. Usage of a pre-allocated pool (e.g. mempool) should be always considered before using this flag.h](j?)}(h``__GFP_MEMALLOC``h]h__GFP_MEMALLOC}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubhX: allows access to all memory. This should only be used when the caller guarantees the allocation will allow more memory to be freed very shortly e.g. process exiting or swapping. Users either should be the MM or co-ordinating closely with the VM (e.g. swap over NFS). Users of this flag have to be extremely careful to not deplete the reserve completely and implement a throttling mechanism which controls the consumption of the reserve based on the amount of freed memory. Usage of a pre-allocated pool (e.g. mempool) should be always considered before using this flag.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:25: ./include/linux/gfp_types.hhKhj9ubj9)}(h``__GFP_NOMEMALLOC`` is used to explicitly forbid access to emergency reserves. This takes precedence over the ``__GFP_MEMALLOC`` flag if both are set.h](j?)}(h``__GFP_NOMEMALLOC``h]h__GFP_NOMEMALLOC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh[ is used to explicitly forbid access to emergency reserves. This takes precedence over the }(hjhhhNhNubj?)}(h``__GFP_MEMALLOC``h]h__GFP_MEMALLOC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh flag if both are set.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:25: ./include/linux/gfp_types.hhKhj9ubeh}(h]9watermark-modifiers-controls-access-to-emergency-reservesah ]h"]hjubh and }(hjhhhNhNubj?)}(h``GFP_ATOMIC``h]h GFP_ATOMIC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh will ignore them).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubj9)}(h#``__GFP_IO`` can start physical IO.h](j?)}(h ``__GFP_IO``h]h__GFP_IO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh can start physical IO.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubj9)}(h``__GFP_FS`` can call down to the low-level FS. Clearing the flag avoids the allocator recursing into the filesystem which might already be holding locks.h](j?)}(h ``__GFP_FS``h]h__GFP_FS}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh can call down to the low-level FS. Clearing the flag avoids the allocator recursing into the filesystem which might already be holding locks.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubj9)}(h``__GFP_DIRECT_RECLAIM`` indicates that the caller may enter direct reclaim. This flag can be cleared to avoid unnecessary delays when a fallback option is available.h](j?)}(h``__GFP_DIRECT_RECLAIM``h]h__GFP_DIRECT_RECLAIM}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubh indicates that the caller may enter direct reclaim. This flag can be cleared to avoid unnecessary delays when a fallback option is available.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubj9)}(hX``__GFP_KSWAPD_RECLAIM`` indicates that the caller wants to wake kswapd when the low watermark is reached and have it reclaim pages until the high watermark is reached. A caller may wish to clear this flag when fallback options are available and the reclaim is likely to disrupt the system. The canonical example is THP allocation where a fallback is cheap but reclaim/compaction may cause indirect stalls.h](j?)}(h``__GFP_KSWAPD_RECLAIM``h]h__GFP_KSWAPD_RECLAIM}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubhX~ indicates that the caller wants to wake kswapd when the low watermark is reached and have it reclaim pages until the high watermark is reached. A caller may wish to clear this flag when fallback options are available and the reclaim is likely to disrupt the system. The canonical example is THP allocation where a fallback is cheap but reclaim/compaction may cause indirect stalls.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubj9)}(hN``__GFP_RECLAIM`` is shorthand to allow/forbid both direct and kswapd reclaim.h](j?)}(h``__GFP_RECLAIM``h]h __GFP_RECLAIM}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubh= is shorthand to allow/forbid both direct and kswapd reclaim.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubj9)}(hXbThe default allocator behavior depends on the request size. We have a concept of so-called costly allocations (with order > ``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.h](h|The default allocator behavior depends on the request size. We have a concept of so-called costly allocations (with order > }(hjhhhNhNubj?)}(h``PAGE_ALLOC_COSTLY_ORDER``h]hPAGE_ALLOC_COSTLY_ORDER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhX). !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 }(hjhhhNhNubj?)}(h``__GFP_DIRECT_RECLAIM``h]h__GFP_DIRECT_RECLAIM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh flag.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubj9)}(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](j?)}(h``__GFP_NORETRY``h]h __GFP_NORETRY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhX: 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&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubj9)}(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](j?)}(h``__GFP_RETRY_MAYFAIL``h]h__GFP_RETRY_MAYFAIL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhX: 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 }(hjhhhNhNubj?)}(h``__GFP_NORETRY``h]h __GFP_NORETRY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhX. 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&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubj9)}(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](j?)}(h``__GFP_NOFAIL``h]h __GFP_NOFAIL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhX: 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:28: ./include/linux/gfp_types.hhKhjubeh}(h]reclaim-modifiersah ]h"]reclaim modifiersah$]h&]uh1hhj5hhhNhNubh)}(hhh](h)}(hUseful GFP flag combinationsh]hUseful GFP flag combinations}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hNhNubj9)}(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 }(hjEhhhNhNubj?)}(h ``__GFP_FOO``h]h __GFP_FOO}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEubh flags as necessary.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhM6hj4ubj9)}(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 and few other strict non-preemptive contexts (e.g. raw_spin_lock). The same applies to ``GFP_NOWAIT``.h](j?)}(h``GFP_ATOMIC``h]h GFP_ATOMIC}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubhX 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 and few other strict non-preemptive contexts (e.g. raw_spin_lock). The same applies to }(hjfhhhNhNubj?)}(h``GFP_NOWAIT``h]h GFP_NOWAIT}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubh.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhM:hj4ubj9)}(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](j?)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhA is typical for kernel-internal allocations. The caller requires }(hjhhhNhNubj?)}(h``ZONE_NORMAL``h]h ZONE_NORMAL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh: or a lower zone for direct access but can direct reclaim.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhM?hj4ubj9)}(h_``GFP_KERNEL_ACCOUNT`` is the same as GFP_KERNEL, except the allocation is accounted to kmemcg.h](j?)}(h``GFP_KERNEL_ACCOUNT``h]hGFP_KERNEL_ACCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhI is the same as GFP_KERNEL, except the allocation is accounted to kmemcg.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMBhj4ubj9)}(h``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.h](j?)}(h``GFP_NOWAIT``h]h GFP_NOWAIT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMEhj4ubj9)}(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](j?)}(h ``GFP_NOIO``h]hGFP_NOIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhXX 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&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMIhj4ubj9)}(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](j?)}(h ``GFP_NOFS``h]hGFP_NOFS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhXA 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMPhj4ubj9)}(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](j?)}(h ``GFP_USER``h]hGFP_USER}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8ubhX 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.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMVhj4ubj9)}(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](j?)}(h ``GFP_DMA``h]hGFP_DMA}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubh exists for historical reasons and should be avoided where possible. The flags indicates that the caller requires that the lowest zone be used (}(hjUhhhNhNubj?)}(h ``ZONE_DMA``h]hZONE_DMA}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubh 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 }(hjUhhhNhNubj?)}(h ``ZONE_DMA``h]hZONE_DMA}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubh: and treat the lowest zone as a type of emergency reserve.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhM[hj4ubj9)}(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](j?)}(h ``GFP_DMA32``h]h GFP_DMA32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh is similar to }(hjhhhNhNubj?)}(h ``GFP_DMA``h]hGFP_DMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh 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&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMbhj4ubj9)}(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](j?)}(h``GFP_HIGHUSER``h]h GFP_HIGHUSER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhX 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&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMghj4ubj9)}(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](j?)}(h``GFP_HIGHUSER_MOVABLE``h]hGFP_HIGHUSER_MOVABLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh 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 }(hjhhhNhNubj?)}(h``GFP_HIGHUSER_MOVABLE``h]hGFP_HIGHUSER_MOVABLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMlhj4ubj9)}(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](j?)}(h``GFP_TRANSHUGE``h]h GFP_TRANSHUGE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh and }(hjhhhNhNubj?)}(h``GFP_TRANSHUGE_LIGHT``h]hGFP_TRANSHUGE_LIGHT}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhX; 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:31: ./include/linux/gfp_types.hhMqhj4ubeh}(h]useful-gfp-flag-combinationsah ]h"]useful gfp flag combinationsah$]h&]uh1hhj5hhhNhNubeh}(h](memory-allocation-controlsj,eh ]h"](memory allocation controlsmm-api-gfp-flagseh$]h&]uh1hhhhhhhhKexpect_referenced_by_name}jNj!sexpect_referenced_by_id}j,j!subh)}(hhh](h)}(hThe Slab Cacheh]hThe Slab Cache}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhhhhhK#ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌSLAB_HWCACHE_ALIGN (C macro)c.SLAB_HWCACHE_ALIGNhNtauh1hhjUhhhNhNubh)}(hhh](h)}(hSLAB_HWCACHE_ALIGNh]h)}(hSLAB_HWCACHE_ALIGNh]h)}(hSLAB_HWCACHE_ALIGNh]h)}(hjyh]hSLAB_HWCACHE_ALIGN}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj{hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKRubah}(h]h ]h"]h$]h&]jj juh1hjjhjwhhhjhKRubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhKRhjthhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhKRubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjUhNhNubj9)}(h``SLAB_HWCACHE_ALIGN``h]j?)}(hjh]hSLAB_HWCACHE_ALIGN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKThjUhhubjU)}(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](jU)}(h(Align objects on cache line boundaries. h]j9)}(h'Align objects on cache line boundaries.h]h'Align objects on cache line boundaries.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKRhjubah}(h]h ]h"]h$]h&]uh1jThjhKRhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKThjubj9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKShjubj9)}(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 }(hjhhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]j?)}(hjh]hstruct kmem_cache_args}(hjhhhNhNubah}(h]h ](xrefj-c-typeeh"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]refdoccore-api/mm-api refdomainj-reftypetype refexplicitrefwarnj\j_)}jb]sb reftargetkmem_cache_argsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKXhjubh5 field, the greater of both is alignments is applied.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj<hKXhjubeh}(h]h ]h"]h$]h&]uh1jThjhKRhjUhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌSLAB_TYPESAFE_BY_RCU (C macro)c.SLAB_TYPESAFE_BY_RCUhNtauh1hhjUhhhNhNubh)}(hhh](h)}(hSLAB_TYPESAFE_BY_RCUh]h)}(hSLAB_TYPESAFE_BY_RCUh]h)}(hSLAB_TYPESAFE_BY_RCUh]h)}(hj`h]hSLAB_TYPESAFE_BY_RCU}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubah}(h]h ](jjeh"]h$]h&]jj uh1hhjbhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKfubah}(h]h ]h"]h$]h&]jj juh1hjjhj^hhhj}hKfubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhj}hKfhj[hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhj[hhhj}hKfubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjUhNhNubj9)}(h``SLAB_TYPESAFE_BY_RCU``h]j?)}(hjh]hSLAB_TYPESAFE_BY_RCU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhhjUhhubjU)}(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](jU)}(h**WARNING** READ THIS! h]j9)}(h**WARNING** READ THIS!h](jz)}(h **WARNING**h]hWARNING}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh READ THIS!}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKfhjubah}(h]h ]h"]h$]h&]uh1jThjhKfhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKghjubj9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKlhjubh 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();}hjsbah}(h]h ]h"]h$]h&]jj uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKrhjubj9)}(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).}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubj9)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubj9)}(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 }(hjBhhhNhNubhemphasis)}(h*after*h]hafter}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjBubh 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 }(hjBhhhNhNubjK)}(h*before*h]hbefore}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjBubh 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.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubj9)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubj9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubeh}(h]h ]h"]h$]h&]uh1jThjhKfhjUhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌSLAB_ACCOUNT (C macro)c.SLAB_ACCOUNThNtauh1hhjUhhhNhNubh)}(hhh](h)}(h SLAB_ACCOUNTh]h)}(h SLAB_ACCOUNTh]h)}(h SLAB_ACCOUNTh]h)}(hjh]h SLAB_ACCOUNT}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKubah}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjUhNhNubj9)}(h``SLAB_ACCOUNT``h]j?)}(hjh]h SLAB_ACCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjUhhubjU)}(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](jU)}(hAccount allocations to memcg. h]j9)}(hAccount allocations to memcg.h]hAccount allocations to memcg.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubah}(h]h ]h"]h$]h&]uh1jThjhKhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubj9)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubeh}(h]h ]h"]h$]h&]uh1jThjhKhjUhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌSLAB_RECLAIM_ACCOUNT (C macro)c.SLAB_RECLAIM_ACCOUNThNtauh1hhjUhhhNhNubh)}(hhh](h)}(hSLAB_RECLAIM_ACCOUNTh]h)}(hSLAB_RECLAIM_ACCOUNTh]h)}(hSLAB_RECLAIM_ACCOUNTh]h)}(hj]h]hSLAB_RECLAIM_ACCOUNT}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ](jjeh"]h$]h&]jj uh1hhj_hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKubah}(h]h ]h"]h$]h&]jj juh1hjjhj[hhhjzhKubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjzhKhjXhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjXhhhjzhKubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjUhNhNubj9)}(h``SLAB_RECLAIM_ACCOUNT``h]j?)}(hjh]hSLAB_RECLAIM_ACCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjUhhubjU)}(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](jU)}(hObjects are reclaimable. h]j9)}(hObjects are reclaimable.h]hObjects are reclaimable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubah}(h]h ]h"]h$]h&]uh1jThjhKhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubj9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjubeh}(h]h ]h"]h$]h&]uh1jThjhKhjUhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmem_cache_args (C struct)c.kmem_cache_argshNtauh1hhjUhhhNhNubh)}(hhh](h)}(hkmem_cache_argsh]h)}(hstruct kmem_cache_argsh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hkmem_cache_argsh]h)}(hj h]hkmem_cache_args}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(h-Less common arguments for kmem_cache_create()h]h-Less common arguments for kmem_cache_create()}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-structeh"]h$]h&]j2j-j3jlj4jlj5j6j7uh1hhhhjUhNhNubjp)}(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 *); }; **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 :c:type:`SLAB_TYPESAFE_BY_RCU` caches By default :c:type:`SLAB_TYPESAFE_BY_RCU` 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 struct where the free pointer will be placed. Note that placing the free pointer inside the object requires the caller to ensure that no fields are invalidated that are required to guard against object recycling (See :c:type:`SLAB_TYPESAFE_BY_RCU` for details). Using ``0`` as a value for **freeptr_offset** is valid. If **freeptr_offset** is specified, ``use_freeptr_offset`` must be set ``true``. Note that **ctor** currently isn't supported with custom free pointers as a **ctor** requires an external free pointer. ``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.h](j9)}(h**Definition**::h](jz)}(h**Definition**h]h Definition}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubh:}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjpubj)}(hstruct kmem_cache_args { unsigned int align; unsigned int useroffset; unsigned int usersize; unsigned int freeptr_offset; bool use_freeptr_offset; void (*ctor)(void *); };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 *); };}hjsbah}(h]h ]h"]h$]h&]jj uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjpubj9)}(h **Members**h]jz)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjpubj)}(hhh](j)}(hc``align`` The required alignment for the objects. ``0`` means no specific alignment is requested. h](j)}(h ``align``h]j?)}(hjh]halign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjubj)}(hhh](j9)}(h'The required alignment for the objects.h]h'The required alignment for the objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjubj9)}(h/``0`` means no specific alignment is requested.h](j?)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh* means no specific alignment is requested.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h```useroffset`` Usercopy region offset. ``0`` is a valid offset, when **usersize** is non-``0`` h](j)}(h``useroffset``h]j?)}(hjh]h useroffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM$hjubj)}(hhh](j9)}(hUsercopy region offset.h]hUsercopy region offset.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM"hj-ubj9)}(h7``0`` is a valid offset, when **usersize** is non-``0``h](j?)}(h``0``h]h0}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj?ubh is a valid offset, when }(hj?hhhNhNubjz)}(h **usersize**h]husersize}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubh is non-}(hj?hhhNhNubj?)}(h``0``h]h0}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj?ubeh}(h]h ]h"]h$]h&]uh1j8hj,hM$hj-ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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]j?)}(hjh]husersize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM*hjubj)}(hhh](j9)}(hUsercopy region size.h]hUsercopy region size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM(hjubj9)}(h,``0`` means no usercopy region is specified.h](j?)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh' means no usercopy region is specified.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhM*hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjubj)}(hXX``freeptr_offset`` Custom offset for the free pointer in :c:type:`SLAB_TYPESAFE_BY_RCU` caches By default :c:type:`SLAB_TYPESAFE_BY_RCU` 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 struct where the free pointer will be placed. Note that placing the free pointer inside the object requires the caller to ensure that no fields are invalidated that are required to guard against object recycling (See :c:type:`SLAB_TYPESAFE_BY_RCU` for details). Using ``0`` as a value for **freeptr_offset** is valid. If **freeptr_offset** is specified, ``use_freeptr_offset`` must be set ``true``. Note that **ctor** currently isn't supported with custom free pointers as a **ctor** requires an external free pointer. h](j)}(h``freeptr_offset``h]j?)}(hjh]hfreeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM@hjubj)}(hhh](j9)}(hKCustom offset for the free pointer in :c:type:`SLAB_TYPESAFE_BY_RCU` cachesh](h&Custom offset for the free pointer in }(hjhhhNhNubh)}(h:c:type:`SLAB_TYPESAFE_BY_RCU`h]j?)}(hjh]hSLAB_TYPESAFE_BY_RCU}(hjhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:SLAB_TYPESAFE_BY_RCUuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM.hjubh caches}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj#hM.hjubj9)}(hXBy default :c:type:`SLAB_TYPESAFE_BY_RCU` 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 struct where the free pointer will be placed.h](h By default }(hj.hhhNhNubh)}(h:c:type:`SLAB_TYPESAFE_BY_RCU`h]j?)}(hj8h]hSLAB_TYPESAFE_BY_RCU}(hj:hhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:SLAB_TYPESAFE_BY_RCUuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM1hj.ubh 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 struct where the free pointer will be placed.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjUhM1hjubj9)}(hNote that placing the free pointer inside the object requires the caller to ensure that no fields are invalidated that are required to guard against object recycling (See :c:type:`SLAB_TYPESAFE_BY_RCU` for details).h](hNote that placing the free pointer inside the object requires the caller to ensure that no fields are invalidated that are required to guard against object recycling (See }(hj`hhhNhNubh)}(h:c:type:`SLAB_TYPESAFE_BY_RCU`h]j?)}(hjjh]hSLAB_TYPESAFE_BY_RCU}(hjlhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjhubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:SLAB_TYPESAFE_BY_RCUuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM7hj`ubh for details).}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhM7hjubj9)}(hUsing ``0`` as a value for **freeptr_offset** is valid. If **freeptr_offset** is specified, ``use_freeptr_offset`` must be set ``true``.h](hUsing }(hjhhhNhNubj?)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh as a value for }(hjhhhNhNubjz)}(h**freeptr_offset**h]hfreeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is valid. If }(hjhhhNhNubjz)}(h**freeptr_offset**h]hfreeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is specified, }(hjhhhNhNubj?)}(h``use_freeptr_offset``h]huse_freeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh must be set }(hjhhhNhNubj?)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM<hjubj9)}(hwNote that **ctor** currently isn't supported with custom free pointers as a **ctor** requires an external free pointer.h](h Note that }(hjhhhNhNubjz)}(h**ctor**h]hctor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh< currently isn’t supported with custom free pointers as a }(hjhhhNhNubjz)}(h**ctor**h]hctor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh# requires an external free pointer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM?hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjubj)}(h=``use_freeptr_offset`` Whether a **freeptr_offset** is used. h](j)}(h``use_freeptr_offset``h]j?)}(hj@h]huse_freeptr_offset}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj>ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMDhj:ubj)}(hhh]j9)}(h%Whether a **freeptr_offset** is used.h](h Whether a }(hjYhhhNhNubjz)}(h**freeptr_offset**h]hfreeptr_offset}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYubh is used.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjUhMDhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMDhjubj)}(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]j?)}(hjh]hctor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMOhjubj)}(hhh](j9)}(hA constructor for the objects.h]hA constructor for the objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMHhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMJhjubj9)}(h``NULL`` means no constructor.h](j?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh means no constructor.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMPhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubeh}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMShjUhhubj9)}(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 }(hjhhhNhNubjz)}(h**freeptr_offset**h]hfreeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh where }(hjhhhNhNubj?)}(h``0``h]h0}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh is a valid value, so }(hjhhhNhNubjz)}(h**use_freeptr_offset**h]huse_freeptr_offset}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh must be also set to }(hjhhhNhNubj?)}(h``true``h]htrue}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh. in order to interpret the field as used. For }(hjhhhNhNubjz)}(h**useroffset**h]h useroffset}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh }(hjhhhNhNubj?)}(h``0``h]h0}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh" is also valid, but only with non-}(hjhhhNhNubj?)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh }(hjhhhNhNubjz)}(h **usersize**h]husersize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjUhhubj9)}(h[When ``NULL`` args is passed to kmem_cache_create(), it is equivalent to all fields unused.h](hWhen }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhN args is passed to kmem_cache_create(), it is equivalent to all fields unused.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjUhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'kmem_cache_create_usercopy (C function)c.kmem_cache_create_usercopyhNtauh1hhjUhhhNhNubh)}(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](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMeubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXkmem_cache_create_usercopysbc.kmem_cache_create_usercopyasbuh1hhjhhhjhMeubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMeubj2 )}(hj5 h]h*}(hj7hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMeubh)}(hkmem_cache_create_usercopyh]h)}(hj&h]hkmem_cache_create_usercopy}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMeubj)}(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](j!)}(hconsth]hconst}(hjchhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj_ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj_ubh)}(hnameh]hname}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj[ubj)}(hunsigned int sizeh](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&]uh1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj[ubj)}(hunsigned int alignh](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 }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(halignh]halign}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj[ubj)}(hslab_flags_t flagsh](h)}(hhh]h)}(h slab_flags_th]h slab_flags_t}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]j$c.kmem_cache_create_usercopyasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj[ubj)}(hunsigned int useroffseth](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&]uh1jhjubh)}(h useroffseth]h useroffset}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj[ubj)}(hunsigned int usersizeh](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 }(hj& hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(husersizeh]husersize}(hj4 hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj[ubj)}(hvoid (*ctor)(void*)h](j)}(hvoidh]hvoid}(hjM hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI ubj)}(h h]h }(hj[ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI ubj2 )}(h(h]h(}(hji hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjI ubj2 )}(hj5 h]h*}(hjw hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjI ubh)}(hctorh]hctor}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjI ubj2 )}(h)h]h)}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjI ubj2 )}(hjk h]h(}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjI ubj)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjI ubj2 )}(hj h]h)}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjI ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj[ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMeubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMeubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMehjhhubj )}(hhh]j9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMehj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMeubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j !j4j !j5j6j7uh1hhhhjUhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMihj !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]j?)}(hj2!h]hconst char *name}(hj4!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0!ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMghj,!ubj)}(hhh]j9)}(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.}(hjK!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjG!hMghjH!ubah}(h]h ]h"]h$]h&]uh1jhj,!ubeh}(h]h ]h"]h$]h&]uh1jhjG!hMghj)!ubj)}(hG``unsigned int size`` The size of objects to be created in this cache. h](j)}(h``unsigned int size``h]j?)}(hjk!h]hunsigned int size}(hjm!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hji!ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhhje!ubj)}(hhh]j9)}(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&]uh1j8hj!hMhhj!ubah}(h]h ]h"]h$]h&]uh1jhje!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMhhj)!ubj)}(h?``unsigned int align`` The required alignment for the objects. h](j)}(h``unsigned int align``h]j?)}(hj!h]hunsigned int align}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj!ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMihj!ubj)}(hhh]j9)}(h'The required alignment for the objects.h]h'The required alignment for the objects.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!hMihj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMihj)!ubj)}(h"``slab_flags_t flags`` SLAB flags h](j)}(h``slab_flags_t flags``h]j?)}(hj!h]hslab_flags_t flags}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj!ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMjhj!ubj)}(hhh]j9)}(h SLAB flagsh]h SLAB flags}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!hMjhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMjhj)!ubj)}(h3``unsigned int useroffset`` Usercopy region offset h](j)}(h``unsigned int useroffset``h]j?)}(hj"h]hunsigned int useroffset}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMkhj"ubj)}(hhh]j9)}(hUsercopy region offseth]hUsercopy region offset}(hj/"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+"hMkhj,"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj+"hMkhj)!ubj)}(h/``unsigned int usersize`` Usercopy region size h](j)}(h``unsigned int usersize``h]j?)}(hjO"h]hunsigned int usersize}(hjQ"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjM"ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMlhjI"ubj)}(hhh]j9)}(hUsercopy region sizeh]hUsercopy region size}(hjh"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjd"hMlhje"ubah}(h]h ]h"]h$]h&]uh1jhjI"ubeh}(h]h ]h"]h$]h&]uh1jhjd"hMlhj)!ubj)}(hE``void (*ctor)(void *)`` A constructor for the objects, or ``NULL``. h](j)}(h``void (*ctor)(void *)``h]j?)}(hj"h]hvoid (*ctor)(void *)}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMmhj"ubj)}(hhh]j9)}(h+A constructor for the objects, or ``NULL``.h](h"A constructor for the objects, or }(hj"hhhNhNubj?)}(h``NULL``h]hNULL}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubh.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj"hMmhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMmhj)!ubeh}(h]h ]h"]h$]h&]uh1jhj !ubj9)}(h**Description**h]jz)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMohj !ubj9)}(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 }(hj"hhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]j?)}(hj"h]hstruct kmem_cache_args}(hj"hhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hj"ubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:kmem_cache_argsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMnhj"ubh)}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj#hMnhj !ubj9)}(h **Return**h]jz)}(hj#h]hReturn}(hj!#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMshj !ubj9)}(h3a pointer to the cache on success, NULL on failure.h]h3a pointer to the cache on success, NULL on failure.}(hj5#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMthj !ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmem_cache_create (C macro)c.kmem_cache_createhNtauh1hhjUhhhNhNubh)}(hhh](h)}(hkmem_cache_createh]h)}(hkmem_cache_createh]h)}(hkmem_cache_createh]h)}(hj^#h]hkmem_cache_create}(hjh#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjd#ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj`#hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubah}(h]h ]h"]h$]h&]jj juh1hjjhj\#hhhj{#hMubah}(h]jW#ah ](jjeh"]h$]h&]jj)jhuh1hhj{#hMhjY#hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjY#hhhj{#hMubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3j#j4j#j5j6j7uh1hhhhjUhNhNubj9)}(h:``kmem_cache_create (__name, __object_size, __args, ...)``h]j?)}(hj#h]h6kmem_cache_create (__name, __object_size, __args, ...)}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj#ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjUhhubjU)}(hCreate a kmem cache. h]j9)}(hCreate a kmem cache.h]hCreate a kmem cache.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj#ubah}(h]h ]h"]h$]h&]uh1jThj#hMhjUhhubjp)}(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](j9)}(h**Parameters**h]jz)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubah}(h]h ]h"]h$]h&]uh1j8hT/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]j?)}(hj#h]h__name}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj#ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj#ubj)}(hhh]j9)}(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&]uh1j8hj$hMhj$ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhj#ubj)}(hC``__object_size`` The size of objects to be created in this cache. h](j)}(h``__object_size``h]j?)}(hj'$h]h __object_size}(hj)$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%$ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj!$ubj)}(hhh]j9)}(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&]uh1j8hj<$hMhj=$ubah}(h]h ]h"]h$]h&]uh1jhj!$ubeh}(h]h ]h"]h$]h&]uh1jhj<$hMhj#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]j?)}(hj`$h]h__args}(hjb$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj^$ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjZ$ubj)}(hhh]j9)}(hOptional arguments, see :c:type:`struct kmem_cache_args `. Passing ``NULL`` means defaults will be used for all the arguments.h](hOptional arguments, see }(hjy$hhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]j?)}(hj$h]hstruct kmem_cache_args}(hj$hhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hj$ubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:kmem_cache_argsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjy$ubh . Passing }(hjy$hhhNhNubj?)}(h``NULL``h]hNULL}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjy$ubh3 means defaults will be used for all the arguments.}(hjy$hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj$hMhjv$ubah}(h]h ]h"]h$]h&]uh1jhjZ$ubeh}(h]h ]h"]h$]h&]uh1jhju$hMhj#ubj)}(h``...`` variable arguments h](j)}(h``...``h]j?)}(hj$h]h...}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj$ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhj$ubj)}(hhh]j9)}(hvariable argumentsh]hvariable arguments}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj$hKhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubj9)}(h**Description**h]jz)}(hj %h]h Description}(hj %hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhj#ubj9)}(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 }(hj %hhhNhNubj?)}(h``_Generic()``h]h _Generic()}(hj(%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj %ubhA to call either the new variant of the function, or a legacy one.}(hj %hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj#ubj9)}(hWThe new variant has 4 parameters: ``kmem_cache_create(name, object_size, args, flags)``h](h"The new variant has 4 parameters: }(hjA%hhhNhNubj?)}(h5``kmem_cache_create(name, object_size, args, flags)``h]h1kmem_cache_create(name, object_size, args, flags)}(hjI%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjA%ubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj#ubj9)}(h5See __kmem_cache_create_args() which implements this.h]h5See __kmem_cache_create_args() which implements this.}(hj^%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj#ubj9)}(haThe legacy variant has 5 parameters: ``kmem_cache_create(name, object_size, align, flags, ctor)``h](h%The legacy variant has 5 parameters: }(hjm%hhhNhNubj?)}(h<``kmem_cache_create(name, object_size, align, flags, ctor)``h]h8kmem_cache_create(name, object_size, align, flags, ctor)}(hju%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjm%ubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj#ubj9)}(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]j?)}(hj%h]hstruct kmem_cache_args}(hj%hhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hj%ubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:kmem_cache_argsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj%ubeh}(h]h ]h"]h$]h&]uh1j8hj%hMhj#ubj9)}(h **Context**h]jz)}(hj%h]hContext}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj#ubj9)}(h ah"]h$]h&]uh1j1 hjt&ubh)}(hobjph]hobjp}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjt&ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjp&ubah}(h]h ]h"]h$]h&]jj uh1jhj"&hhhjJ&hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj&hhhjJ&hMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjJ&hMhj&hhubj )}(hhh]j9)}(h2Report actual allocation size of associated objecth]h2Report actual allocation size of associated object}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhjJ&hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j&j4j&j5j6j7uh1hhhhjUhNhNubjp)}(hX**Parameters** ``const void *objp`` Pointer returned from a prior kmalloc()-family allocation. **Description** This should not be used for writing beyond the originally requested allocation size. Either use krealloc() or round up the allocation size with kmalloc_size_roundup() prior to allocation. If this is used to access beyond the originally requested allocation size, UBSAN_BOUNDS and/or FORTIFY_SOURCE may trip, since they only know about the originally allocated size via the __alloc_size attribute.h](j9)}(h**Parameters**h]jz)}(hj'h]h Parameters}(hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj'ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj'ubj)}(hhh]j)}(hP``const void *objp`` Pointer returned from a prior kmalloc()-family allocation. h](j)}(h``const void *objp``h]j?)}(hj''h]hconst void *objp}(hj)'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%'ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj!'ubj)}(hhh]j9)}(h:Pointer returned from a prior kmalloc()-family allocation.h]h:Pointer returned from a prior kmalloc()-family allocation.}(hj@'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<'hMhj='ubah}(h]h ]h"]h$]h&]uh1jhj!'ubeh}(h]h ]h"]h$]h&]uh1jhj<'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubj9)}(h**Description**h]jz)}(hjb'h]h Description}(hjd'hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj`'ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj'ubj9)}(hXThis should not be used for writing beyond the originally requested allocation size. Either use krealloc() or round up the allocation size with kmalloc_size_roundup() prior to allocation. If this is used to access beyond the originally requested allocation size, UBSAN_BOUNDS and/or FORTIFY_SOURCE may trip, since they only know about the originally allocated size via the __alloc_size attribute.h]hXThis should not be used for writing beyond the originally requested allocation size. Either use krealloc() or round up the allocation size with kmalloc_size_roundup() prior to allocation. If this is used to access beyond the originally requested allocation size, UBSAN_BOUNDS and/or FORTIFY_SOURCE may trip, since they only know about the originally allocated size via the __alloc_size attribute.}(hjx'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmem_cache_alloc (C function)c.kmem_cache_allochNtauh1hhjUhhhNhNubh)}(hhh](h)}(h@void * kmem_cache_alloc (struct kmem_cache *cachep, gfp_t flags)h]h)}(h>void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags)h](j)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj'hMubj2 )}(hj5 h]h*}(hj'hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj'hhhj'hMubh)}(hkmem_cache_alloch]h)}(hkmem_cache_alloch]hkmem_cache_alloc}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj'hhhj'hMubj)}(h((struct kmem_cache *cachep, gfp_t flags)h](j)}(hstruct kmem_cache *cacheph](j!)}(hj$h]hstruct}(hj'hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj (ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj(modnameN classnameNj\j_)}jb]je)}jXj'sbc.kmem_cache_allocasbuh1hhj'ubj)}(h h]h }(hj/(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj2 )}(hj5 h]h*}(hj=(hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj'ubh)}(hcacheph]hcachep}(hjJ(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj'ubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjf(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjc(ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjh(modnameN classnameNj\j_)}jb]j+(c.kmem_cache_allocasbuh1hhj_(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_(ubh)}(hflagsh]hflags}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_(ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj'ubeh}(h]h ]h"]h$]h&]jj uh1jhj'hhhj'hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj'hhhj'hMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhj'hhubj )}(hhh]j9)}(hAllocate an objecth]hAllocate an object}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j(j4j(j5j6j7uh1hhhhjUhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj(ubah}(h]h ]h"]h$]h&]uh1j8hT/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]j?)}(hj(h]hstruct kmem_cache *cachep}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj(ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj(ubj)}(hhh]j9)}(hThe cache to allocate from.h]hThe cache to allocate from.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj)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]j?)}(hj6)h]h gfp_t flags}(hj8)hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4)ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj0)ubj)}(hhh]j9)}(hSee kmalloc().h]hSee kmalloc().}(hjO)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjK)hMhjL)ubah}(h]h ]h"]h$]h&]uh1jhj0)ubeh}(h]h ]h"]h$]h&]uh1jhjK)hMhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(ubj9)}(h**Description**h]jz)}(hjq)h]h Description}(hjs)hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjo)ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj(ubj9)}(hiAllocate an object from this cache. See kmem_cache_zalloc() for a shortcut of adding __GFP_ZERO to flags.h]hiAllocate an object from this cache. See kmem_cache_zalloc() for a shortcut of adding __GFP_ZERO to flags.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj(ubj9)}(h **Return**h]jz)}(hj)h]hReturn}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj)ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj(ubj9)}(h6pointer to the new object or ``NULL`` in case of errorh](hpointer to the new object or }(hj)hhhNhNubj?)}(h``NULL``h]hNULL}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj)ubh in case of error}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmem_cache_charge (C function)c.kmem_cache_chargehNtauh1hhjUhhhNhNubh)}(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]h)}(hkmem_cache_chargeh]hkmem_cache_charge}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj *ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj)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(*ubj2 )}(hj5 h]h*}(hjH*hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj(*ubh)}(hobjph]hobjp}(hjU*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj$*ubj)}(hgfp_t gfpflagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjq*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjn*ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjs*modnameN classnameNj\j_)}jb]je)}jXj*sbc.kmem_cache_chargeasbuh1hhjj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj*ubh)}(hgfpflagsh]hgfpflags}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjj*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj$*ubeh}(h]h ]h"]h$]h&]jj uh1jhj)hhhj)hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj)hhhj)hMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hMhj)hhubj )}(hhh]j9)}(h-memcg charge an already allocated slab memoryh]h-memcg charge an already allocated slab memory}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j*j4j*j5j6j7uh1hhhhjUhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj*ubj)}(hhh](j)}(h:``void *objp`` address of the slab object to memcg charge h](j)}(h``void *objp``h]j?)}(hj +h]h void *objp}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj+ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj+ubj)}(hhh]j9)}(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&]uh1j8hj+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]j?)}(hjC+h]hgfp_t gfpflags}(hjE+hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjA+ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj=+ubj)}(hhh]j9)}(hdescribe the allocation contexth]hdescribe the allocation context}(hj\+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjX+hMhjY+ubah}(h]h ]h"]h$]h&]uh1jhj=+ubeh}(h]h ]h"]h$]h&]uh1jhjX+hMhj+ubeh}(h]h ]h"]h$]h&]uh1jhj*ubj9)}(h**Description**h]jz)}(hj~+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|+ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj*ubj9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj*ubj9)}(hXThe objp should be pointer returned by the slab allocator functions like kmalloc (with __GFP_ACCOUNT in flags) or kmem_cache_alloc. The memcg charge behavior can be controlled through gfpflags parameter, which affects how the necessary internal metadata can be allocated. Including __GFP_NOFAIL denotes that overcharging is requested instead of failure, but is not applied for the internal metadata allocation.h]hXThe objp should be pointer returned by the slab allocator functions like kmalloc (with __GFP_ACCOUNT in flags) or kmem_cache_alloc. The memcg charge behavior can be controlled through gfpflags parameter, which affects how the necessary internal metadata can be allocated. Including __GFP_NOFAIL denotes that overcharging is requested instead of failure, but is not applied for the internal metadata allocation.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj*ubj9)}(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&]uh1j8hT/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]j9)}(hj+h]h3For !CONFIG_MEMCG or cgroup_disable=memory systems.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/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]j9)}(hj+h]hAlready charged slab objects.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/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]j9)}(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&]uh1j8hT/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]j9)}(h'Allocating internal metadata has failedh]h'Allocating internal metadata has failed}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/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*ubj9)}(h **Return**h]jz)}(hj7,h]hReturn}(hj9,hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5,ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj*ubj9)}(h.true if charge was successful otherwise false.h]h.true if charge was successful otherwise false.}(hjM,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmalloc (C function) c.kmallochNtauh1hhjUhhhNhNubh)}(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}(hj|,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx,hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMJubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx,hhhj,hMJubj2 )}(hj5 h]h*}(hj,hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjx,hhhj,hMJubh)}(hkmalloch]h)}(hkmalloch]hkmalloc}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjx,hhhj,hMJubj)}(h(size_t size, gfp_t flags)h](j)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj,modnameN classnameNj\j_)}jb]je)}jXj,sb c.kmallocasbuh1hhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubh)}(hsizeh]hsize}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,ubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj-modnameN classnameNj\j_)}jb]j, c.kmallocasbuh1hhj -ubj)}(h h]h }(hj1-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj -ubh)}(hflagsh]hflags}(hj?-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj -ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,ubeh}(h]h ]h"]h$]h&]jj uh1jhjx,hhhj,hMJubeh}(h]h ]h"]h$]h&]jj juh1hjjhjt,hhhj,hMJubah}(h]jo,ah ](jjeh"]h$]h&]jj)jhuh1hhj,hMJhjq,hhubj )}(hhh]j9)}(hallocate kernel memoryh]hallocate kernel memory}(hji-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMJhjf-hhubah}(h]h ]h"]h$]h&]uh1jhjq,hhhj,hMJubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j-j4j-j5j6j7uh1hhhhjUhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj-ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMNhj-ubj)}(hhh](j)}(h7``size_t size`` how many bytes of memory are required. h](j)}(h``size_t size``h]j?)}(hj-h]h size_t size}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj-ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMKhj-ubj)}(hhh]j9)}(h&how many bytes of memory are required.h]h&how many bytes of memory are required.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj-hMKhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMKhj-ubj)}(h0``gfp_t flags`` describe the allocation context h](j)}(h``gfp_t flags``h]j?)}(hj-h]h gfp_t flags}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj-ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMLhj-ubj)}(hhh]j9)}(hdescribe the allocation contexth]hdescribe the allocation context}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj-hMLhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMLhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-ubj9)}(h**Description**h]jz)}(hj.h]h Description}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMNhj-ubj9)}(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.}(hj4.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMMhj-ubj9)}(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 }(hjC.hhhNhNubjz)}(h**size**h]hsize}(hjK.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjC.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 }(hjC.hhhNhNubjz)}(h**size**h]hsize}(hj].hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjC.ubh.}(hjC.hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMPhj-ubj9)}(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 }(hjv.hhhNhNubjz)}(h **flags**h]hflags}(hj~.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjv.ubh\ argument may be one of the GFP flags defined at include/linux/gfp_types.h and described at }(hjv.hhhNhNubh)}(h;:ref:`Documentation/core-api/mm-api.rst `h]hinline)}(hj.h]h!Documentation/core-api/mm-api.rst}(hj.hhhNhNubah}(h]h ](j%stdstd-refeh"]h$]h&]uh1j.hj.ubah}(h]h ]h"]h$]h&]refdocj1 refdomainj.reftyperef refexplicitrefwarnj:mm-api-gfp-flagsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMUhjv.ubeh}(h]h ]h"]h$]h&]uh1j8hj.hMUhj-ubj9)}(h~The recommended usage of the **flags** is described at :ref:`Documentation/core-api/memory-allocation.rst `h](hThe recommended usage of the }(hj.hhhNhNubjz)}(h **flags**h]hflags}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.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 ](j%stdstd-refeh"]h$]h&]uh1j.hj.ubah}(h]h ]h"]h$]h&]refdocj1 refdomainj.reftyperef refexplicitrefwarnj:memory_allocationuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMYhj.ubeh}(h]h ]h"]h$]h&]uh1j8hj.hMYhj-ubj9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM\hj-ubj)}(hhh](j)}(h6``GFP_KERNEL`` Allocate normal kernel ram. May sleep. h](j)}(h``GFP_KERNEL``h]j?)}(hj/h]h GFP_KERNEL}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/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]j9)}(h&Allocate normal kernel ram. May sleep.h]h&Allocate normal kernel ram. May sleep.}(hj+/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj'/hM_hj(/ubah}(h]h ]h"]h$]h&]uh1jhj /ubeh}(h]h ]h"]h$]h&]uh1jhj'/hM_hj /ubj)}(h*``GFP_NOWAIT`` Allocation will not sleep. h](j)}(h``GFP_NOWAIT``h]j?)}(hjK/h]h GFP_NOWAIT}(hjM/hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjI/ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMbhjE/ubj)}(hhh]j9)}(hAllocation will not sleep.h]hAllocation will not sleep.}(hjd/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`/hMbhja/ubah}(h]h ]h"]h$]h&]uh1jhjE/ubeh}(h]h ]h"]h$]h&]uh1jhj`/hMbhj /ubj)}(hD``GFP_ATOMIC`` Allocation will not sleep. May use emergency pools. h](j)}(h``GFP_ATOMIC``h]j?)}(hj/h]h GFP_ATOMIC}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMehj~/ubj)}(hhh]j9)}(h4Allocation will not sleep. May use emergency pools.h]h4Allocation will not sleep. May use emergency pools.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj/hMehj/ubah}(h]h ]h"]h$]h&]uh1jhj~/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMehj /ubeh}(h]h ]h"]h$]h&]uh1jhj-ubj9)}(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/hhhNhNubjz)}(h **flags**h]hflags}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/ubh:}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMghj-ubj)}(hhh](j)}(hO``__GFP_ZERO`` Zero the allocated memory before returning. Also see kzalloc(). h](j)}(h``__GFP_ZERO``h]j?)}(hj/h]h __GFP_ZERO}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMkhj/ubj)}(hhh]j9)}(h?Zero the allocated memory before returning. Also see kzalloc().h]h?Zero the allocated memory before returning. Also see kzalloc().}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj/hMkhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMkhj/ubj)}(hN``__GFP_HIGH`` This allocation has high priority and may use emergency pools. h](j)}(h``__GFP_HIGH``h]j?)}(hj 0h]h __GFP_HIGH}(hj"0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMnhj0ubj)}(hhh]j9)}(h>This allocation has high priority and may use emergency pools.h]h>This allocation has high priority and may use emergency pools.}(hj90hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj50hMnhj60ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj50hMnhj/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]j?)}(hjY0h]h __GFP_NOFAIL}(hj[0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjW0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMrhjS0ubj)}(hhh]j9)}(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).}(hjr0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMqhjo0ubah}(h]h ]h"]h$]h&]uh1jhjS0ubeh}(h]h ]h"]h$]h&]uh1jhjn0hMrhj/ubj)}(hP``__GFP_NORETRY`` If memory is not immediately available, then give up at once. h](j)}(h``__GFP_NORETRY``h]j?)}(hj0h]h __GFP_NORETRY}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMvhj0ubj)}(hhh]j9)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMuhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMvhj/ubj)}(h@``__GFP_NOWARN`` If allocation fails, don't issue any warnings. h](j)}(h``__GFP_NOWARN``h]j?)}(hj0h]h __GFP_NOWARN}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMyhj0ubj)}(hhh]j9)}(h.If allocation fails, don't issue any warnings.h]h0If allocation fails, don’t issue any warnings.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMyhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMyhj/ubj)}(hV``__GFP_RETRY_MAYFAIL`` Try really hard to succeed the allocation but fail eventually.h](j)}(h``__GFP_RETRY_MAYFAIL``h]j?)}(hj1h]h__GFP_RETRY_MAYFAIL}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM|hj1ubj)}(hhh]j9)}(h>Try really hard to succeed the allocation but fail eventually.h]h>Try really hard to succeed the allocation but fail eventually.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hM|hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM|hj/ubeh}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmalloc_array (C function)c.kmalloc_arrayhNtauh1hhjUhhhNhNubh)}(hhh](h)}(h9void * kmalloc_array (size_t n, size_t size, gfp_t flags)h]h)}(h7void *kmalloc_array(size_t n, size_t size, gfp_t flags)h](j)}(hvoidh]hvoid}(hj_1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[1hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hjn1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[1hhhjm1hMubj2 )}(hj5 h]h*}(hj|1hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj[1hhhjm1hMubh)}(h kmalloc_arrayh]h)}(h kmalloc_arrayh]h kmalloc_array}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj[1hhhjm1hMubj)}(h$(size_t n, size_t size, gfp_t flags)h](j)}(hsize_t nh](h)}(hhh]h)}(hsize_th]hsize_t}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]je)}jXj1sbc.kmalloc_arrayasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]hn}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj1ubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]j1c.kmalloc_arrayasbuh1hhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hsizeh]hsize}(hj!2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj1ubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj=2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj?2modnameN classnameNj\j_)}jb]j1c.kmalloc_arrayasbuh1hhj62ubj)}(h h]h }(hj[2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj62ubh)}(hflagsh]hflags}(hji2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj62ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj1ubeh}(h]h ]h"]h$]h&]jj uh1jhj[1hhhjm1hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjW1hhhjm1hMubah}(h]jR1ah ](jjeh"]h$]h&]jj)jhuh1hhjm1hMhjT1hhubj )}(hhh]j9)}(hallocate memory for an array.h]hallocate memory for an array.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj2hhubah}(h]h ]h"]h$]h&]uh1jhjT1hhhjm1hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j2j4j2j5j6j7uh1hhhhjUhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj2ubj)}(hhh](j)}(h!``size_t n`` number of elements. h](j)}(h ``size_t n``h]j?)}(hj2h]hsize_t n}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj2ubj)}(hhh]j9)}(hnumber of elements.h]hnumber of elements.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubj)}(h``size_t size`` element size. h](j)}(h``size_t size``h]j?)}(hj 3h]h size_t size}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj 3ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj3ubj)}(hhh]j9)}(h element size.h]h element size.}(hj&3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"3hMhj#3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj"3hMhj2ubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc).h](j)}(h``gfp_t flags``h]j?)}(hjF3h]h gfp_t flags}(hjH3hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjD3ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj@3ubj)}(hhh]j9)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hj_3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj\3ubah}(h]h ]h"]h$]h&]uh1jhj@3ubeh}(h]h ]h"]h$]h&]uh1jhj[3hMhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkrealloc_array (C function)c.krealloc_arrayhNtauh1hhjUhhhNhNubh)}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhj3hMubj2 )}(hj5 h]h*}(hj3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj3hhhj3hMubh)}(hkrealloc_arrayh]h)}(hkrealloc_arrayh]hkrealloc_array}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj3hhhj3hMubj)}(h5(void *p, size_t new_n, size_t new_size, gfp_t flags)h](j)}(hvoid *ph](j)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2 )}(hj5 h]h*}(hj4hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj3ubh)}(hj> h]hp}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj3ubj)}(h size_t new_nh](h)}(hhh]h)}(hsize_th]hsize_t}(hj.4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+4ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj04modnameN classnameNj\j_)}jb]je)}jXj3sbc.krealloc_arrayasbuh1hhj'4ubj)}(h h]h }(hjN4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'4ubh)}(hnew_nh]hnew_n}(hj\4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj3ubj)}(hsize_t new_sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjx4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhju4ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjz4modnameN classnameNj\j_)}jb]jJ4c.krealloc_arrayasbuh1hhjq4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq4ubh)}(hnew_sizeh]hnew_size}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjq4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj3ubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4modnameN classnameNj\j_)}jb]jJ4c.krealloc_arrayasbuh1hhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hflagsh]hflags}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj3ubeh}(h]h ]h"]h$]h&]jj uh1jhj3hhhj3hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj3hhhj3hMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hMhj3hhubj )}(hhh]j9)}(hreallocate memory for an array.h]hreallocate memory for an array.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j.5j4j.5j5j6j7uh1hhhhjUhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj85h]h Parameters}(hj:5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj65ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj25ubj)}(hhh](j)}(h6``void *p`` pointer to the memory chunk to reallocate h](j)}(h ``void *p``h]j?)}(hjW5h]hvoid *p}(hjY5hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjU5ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjQ5ubj)}(hhh]j9)}(h)pointer to the memory chunk to reallocateh]h)pointer to the memory chunk to reallocate}(hjp5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjl5hMhjm5ubah}(h]h ]h"]h$]h&]uh1jhjQ5ubeh}(h]h ]h"]h$]h&]uh1jhjl5hMhjN5ubj)}(h1``size_t new_n`` new number of elements to alloc h](j)}(h``size_t new_n``h]j?)}(hj5h]h size_t new_n}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5ubj)}(hhh]j9)}(hnew number of elements to alloch]hnew number of elements to alloc}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjN5ubj)}(h=``size_t new_size`` new size of a single member of the array h](j)}(h``size_t new_size``h]j?)}(hj5h]hsize_t new_size}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5ubj)}(hhh]j9)}(h(new size of a single member of the arrayh]h(new size of a single member of the array}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjN5ubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc) h](j)}(h``gfp_t flags``h]j?)}(hj6h]h gfp_t flags}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5ubj)}(hhh]j9)}(h,the type of memory to allocate (see kmalloc)h]h,the type of memory to allocate (see kmalloc)}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjN5ubeh}(h]h ]h"]h$]h&]uh1jhj25ubj9)}(h**Description**h]jz)}(hj=6h]h Description}(hj?6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj;6ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj25ubj9)}(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.}(hjS6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj25ubj9)}(h*See krealloc_noprof() for further details.h]h*See krealloc_noprof() for further details.}(hjb6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj25ubj9)}(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.}(hjq6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj25ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkcalloc (C macro) c.kcallochNtauh1hhjUhhhNhNubh)}(hhh](h)}(hkcalloch]h)}(hkcalloch]h)}(hkcalloch]h)}(hj6h]hkcalloc}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj6hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubah}(h]h ]h"]h$]h&]jj juh1hjjhj6hhhj6hMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhj6hMhj6hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhj6hhhj6hMubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3j6j4j6j5j6j7uh1hhhhjUhNhNubj9)}(h``kcalloc (n, size, flags)``h]j?)}(hj6h]hkcalloc (n, size, flags)}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjUhhubjU)}(h9allocate memory for an array. The memory is set to zero. h]j9)}(h8allocate memory for an array. The memory is set to zero.h]h8allocate memory for an array. The memory is set to zero.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj6ubah}(h]h ]h"]h$]h&]uh1jThj6hMhjUhhubjp)}(h**Parameters** ``n`` number of elements. ``size`` element size. ``flags`` the type of memory to allocate (see kmalloc).h](j9)}(h**Parameters**h]jz)}(hj 7h]h Parameters}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj 7ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj7ubj)}(hhh](j)}(h``n`` number of elements. h](j)}(h``n``h]j?)}(hj*7h]hn}(hj,7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj(7ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj$7ubj)}(hhh]j9)}(hnumber of elements.h]hnumber of elements.}(hjC7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj?7hMhj@7ubah}(h]h ]h"]h$]h&]uh1jhj$7ubeh}(h]h ]h"]h$]h&]uh1jhj?7hMhj!7ubj)}(h``size`` element size. h](j)}(h``size``h]j?)}(hjc7h]hsize}(hje7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hja7ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj]7ubj)}(hhh]j9)}(h element size.h]h element size.}(hj|7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjx7hMhjy7ubah}(h]h ]h"]h$]h&]uh1jhj]7ubeh}(h]h ]h"]h$]h&]uh1jhjx7hMhj!7ubj)}(h7``flags`` the type of memory to allocate (see kmalloc).h](j)}(h ``flags``h]j?)}(hj7h]hflags}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj7ubj)}(hhh]j9)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj!7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkzalloc (C function) c.kzallochNtauh1hhjUhhhNhNubh)}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhj8hM ubj2 )}(hj5 h]h*}(hj8hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj7hhhj8hM ubh)}(hkzalloch]h)}(hkzalloch]hkzalloc}(hj$8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj 8ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj7hhhj8hM ubj)}(h(size_t size, gfp_t flags)h](j)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjC8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@8ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjE8modnameN classnameNj\j_)}jb]je)}jXj&8sb c.kzallocasbuh1hhj<8ubj)}(h h]h }(hjc8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<8ubh)}(hsizeh]hsize}(hjq8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj88ubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]j_8 c.kzallocasbuh1hhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hflagsh]hflags}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj88ubeh}(h]h ]h"]h$]h&]jj uh1jhj7hhhj8hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj7hhhj8hM ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj8hM hj7hhubj )}(hhh]j9)}(h+allocate memory. The memory is set to zero.h]h+allocate memory. The memory is set to zero.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM hj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj8hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j8j4j8j5j6j7uh1hhhhjUhNhNubjp)}(h**Parameters** ``size_t size`` how many bytes of memory are required. ``gfp_t flags`` the type of memory to allocate (see kmalloc).h](j9)}(h**Parameters**h]jz)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj9ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM hj8ubj)}(hhh](j)}(h7``size_t size`` how many bytes of memory are required. h](j)}(h``size_t size``h]j?)}(hj$9h]h size_t size}(hj&9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"9ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM hj9ubj)}(hhh]j9)}(h&how many bytes of memory are required.h]h&how many bytes of memory are required.}(hj=9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj99hM hj:9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj99hM hj9ubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc).h](j)}(h``gfp_t flags``h]j?)}(hj]9h]h gfp_t flags}(hj_9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj[9ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM hjW9ubj)}(hhh]j9)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hjv9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM hjs9ubah}(h]h ]h"]h$]h&]uh1jhjW9ubeh}(h]h ]h"]h$]h&]uh1jhjr9hM hj9ubeh}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!kmalloc_size_roundup (C function)c.kmalloc_size_rounduphNtauh1hhjUhhhNhNubh)}(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]h)}(hsize_th]hsize_t}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj9modnameN classnameNj\j_)}jb]je)}jXkmalloc_size_roundupsbc.kmalloc_size_roundupasbuh1hhj9hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMMubh)}(hkmalloc_size_rounduph]h)}(hj9h]hkmalloc_size_roundup}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj9hhhj9hMMubj)}(h (size_t size)h]j)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj :hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj :ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]j9c.kmalloc_size_roundupasbuh1hhj:ubj)}(h h]h }(hj*:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hsizeh]hsize}(hj8:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubah}(h]h ]h"]h$]h&]jj uh1jhj9hhhj9hMMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj9hhhj9hMMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hMMhj9hhubj )}(hhh]j9)}(h0Report allocation bucket size for the given sizeh]h0Report allocation bucket size for the given size}(hjb:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMMhj_:hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hMMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jz:j4jz:j5j6j7uh1hhhhjUhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMQhj~:ubj)}(hhh]j)}(h2``size_t size`` Number of bytes to round up from. h](j)}(h``size_t size``h]j?)}(hj:h]h size_t size}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMOhj:ubj)}(hhh]j9)}(h!Number of bytes to round up from.h]h!Number of bytes to round up from.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj:hMOhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMOhj:ubah}(h]h ]h"]h$]h&]uh1jhj~:ubj9)}(h**Description**h]jz)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMQhj~:ubj9)}(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 }(hj:hhhNhNubjz)}(h**size**h]hsize}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubh 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.)}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMPhj~:ubj9)}(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;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMVhj~:ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"kmem_cache_alloc_node (C function)c.kmem_cache_alloc_nodehNtauh1hhjUhhhNhNubh)}(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}(hjD;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@;hhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjS;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@;hhhjR;hMubj2 )}(hj5 h]h*}(hja;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj@;hhhjR;hMubh)}(hkmem_cache_alloc_nodeh]h)}(hkmem_cache_alloc_nodeh]hkmem_cache_alloc_node}(hjr;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjn;ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj@;hhhjR;hMubj)}(h0(struct kmem_cache *s, gfp_t gfpflags, int node)h](j)}(hstruct kmem_cache *sh](j!)}(hj$h]hstruct}(hj;hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;modnameN classnameNj\j_)}jb]je)}jXjt;sbc.kmem_cache_alloc_nodeasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2 )}(hj5 h]h*}(hj;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj;ubh)}(hsh]hs}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj;ubj)}(hgfp_t gfpflagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj<modnameN classnameNj\j_)}jb]j;c.kmem_cache_alloc_nodeasbuh1hhj;ubj)}(h h]h }(hj!<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hgfpflagsh]hgfpflags}(hj/<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj;ubj)}(hint nodeh](j)}(hinth]hint}(hjH<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD<ubj)}(h h]h }(hjV<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD<ubh)}(hnodeh]hnode}(hjd<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjD<ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj;ubeh}(h]h ]h"]h$]h&]jj uh1jhj@;hhhjR;hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj<;hhhjR;hMubah}(h]j7;ah ](jjeh"]h$]h&]jj)jhuh1hhjR;hMhj9;hhubj )}(hhh]j9)}(h(Allocate an object on the specified nodeh]h(Allocate an object on the specified node}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj<hhubah}(h]h ]h"]h$]h&]uh1jhj9;hhhjR;hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j<j4j<j5j6j7uh1hhhhjUhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj<ubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj<ubj)}(hhh](j)}(h5``struct kmem_cache *s`` The cache to allocate from. h](j)}(h``struct kmem_cache *s``h]j?)}(hj<h]hstruct kmem_cache *s}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj<ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj<ubj)}(hhh]j9)}(hThe cache to allocate from.h]hThe cache to allocate from.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj<ubj)}(h"``gfp_t gfpflags`` See kmalloc(). h](j)}(h``gfp_t gfpflags``h]j?)}(hj=h]hgfp_t gfpflags}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj=ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj=ubj)}(hhh]j9)}(hSee kmalloc().h]hSee kmalloc().}(hj!=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj<ubj)}(h-``int node`` node number of the target node. h](j)}(h ``int node``h]j?)}(hjA=h]hint node}(hjC=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj?=ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj;=ubj)}(hhh]j9)}(hnode number of the target node.h]hnode number of the target node.}(hjZ=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjV=hMhjW=ubah}(h]h ]h"]h$]h&]uh1jhj;=ubeh}(h]h ]h"]h$]h&]uh1jhjV=hMhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubj9)}(h**Description**h]jz)}(hj|=h]h Description}(hj~=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjz=ubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj<ubj9)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj<ubj9)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj<ubj9)}(h **Return**h]jz)}(hj=h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj=ubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj<ubj9)}(h6pointer to the new object or ``NULL`` in case of errorh](hpointer to the new object or }(hj=hhhNhNubj?)}(h``NULL``h]hNULL}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj=ubh in case of error}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmem_cache_free (C function)c.kmem_cache_freehNtauh1hhjUhhhNhNubh)}(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}(hj >hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hMubh)}(hkmem_cache_freeh]h)}(hkmem_cache_freeh]hkmem_cache_free}(hj*>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&>ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj>hhhj>hMubj)}(h(struct kmem_cache *s, void *x)h](j)}(hstruct kmem_cache *sh](j!)}(hj$h]hstruct}(hjF>hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjB>ubj)}(h h]h }(hjS>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB>ubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hjd>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhja>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjf>modnameN classnameNj\j_)}jb]je)}jXj,>sbc.kmem_cache_freeasbuh1hhjB>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB>ubj2 )}(hj5 h]h*}(hj>hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjB>ubh)}(hj;h]hs}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjB>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj>>ubj)}(hvoid *xh](j)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2 )}(hj5 h]h*}(hj>hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj>ubh)}(hxh]hx}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj>>ubeh}(h]h ]h"]h$]h&]jj uh1jhj>hhhj>hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj>hhhj>hMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMhj=hhubj )}(hhh]j9)}(hDeallocate an objecth]hDeallocate an object}(hj ?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj>hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j"?j4j"?j5j6j7uh1hhhhjUhNhNubjp)}(h**Parameters** ``struct kmem_cache *s`` The cache the allocation was from. ``void *x`` The previously allocated object. **Description** Free an object which was previously allocated from this cache.h](j9)}(h**Parameters**h]jz)}(hj,?h]h Parameters}(hj.?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*?ubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj&?ubj)}(hhh](j)}(h<``struct kmem_cache *s`` The cache the allocation was from. h](j)}(h``struct kmem_cache *s``h]j?)}(hjK?h]hstruct kmem_cache *s}(hjM?hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjI?ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjE?ubj)}(hhh]j9)}(h"The cache the allocation was from.h]h"The cache the allocation was from.}(hjd?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`?hMhja?ubah}(h]h ]h"]h$]h&]uh1jhjE?ubeh}(h]h ]h"]h$]h&]uh1jhj`?hMhjB?ubj)}(h-``void *x`` The previously allocated object. h](j)}(h ``void *x``h]j?)}(hj?h]hvoid *x}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj?ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj~?ubj)}(hhh]j9)}(h The previously allocated object.h]h The previously allocated object.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj~?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjB?ubeh}(h]h ]h"]h$]h&]uh1jhj&?ubj9)}(h**Description**h]jz)}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj&?ubj9)}(h>Free an object which was previously allocated from this cache.h]h>Free an object which was previously allocated from this cache.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj&?ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfree (C function)c.kfreehNtauh1hhjUhhhNhNubh)}(hhh](h)}(hvoid kfree (const void *object)h]h)}(hvoid kfree(const void *object)h](j)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhj@hMubh)}(hkfreeh]h)}(hkfreeh]hkfree}(hj%@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!@ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj@hhhj@hMubj)}(h(const void *object)h]j)}(hconst void *objecth](j!)}(hjeh]hconst}(hjA@hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj=@ubj)}(h h]h }(hjN@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=@ubj)}(hvoidh]hvoid}(hj\@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=@ubj)}(h h]h }(hjj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=@ubj2 )}(hj5 h]h*}(hjx@hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj=@ubh)}(hobjecth]hobject}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=@ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9@ubah}(h]h ]h"]h$]h&]jj uh1jhj@hhhj@hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj?hhhj@hMubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMhj?hhubj )}(hhh]j9)}(h free previously allocated memoryh]h free previously allocated memory}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj@hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j@j4j@j5j6j7uh1hhhhjUhNhNubjp)}(h**Parameters** ``const void *object`` pointer returned by kmalloc() or kmem_cache_alloc() **Description** If **object** is NULL, no operation is performed.h](j9)}(h**Parameters**h]jz)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@ubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj@ubj)}(hhh]j)}(hK``const void *object`` pointer returned by kmalloc() or kmem_cache_alloc() h](j)}(h``const void *object``h]j?)}(hj@h]hconst void *object}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj@ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj@ubj)}(hhh]j9)}(h3pointer returned by kmalloc() or kmem_cache_alloc()h]h3pointer returned by kmalloc() or kmem_cache_alloc()}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubj9)}(h**Description**h]jz)}(hj+Ah]h Description}(hj-AhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj)Aubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj@ubj9)}(h1If **object** is NULL, no operation is performed.h](hIf }(hjAAhhhNhNubjz)}(h **object**h]hobject}(hjIAhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAAubh$ is NULL, no operation is performed.}(hjAAhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkrealloc (C function) c.kreallochNtauh1hhjUhhhNhNubh)}(hhh](h)}(h=void * krealloc (const void *p, size_t new_size, gfp_t flags)h]h)}(h;void *krealloc(const void *p, size_t new_size, gfp_t flags)h](j)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~AhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMZubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~AhhhjAhMZubj2 )}(hj5 h]h*}(hjAhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj~AhhhjAhMZubh)}(hkrealloch]h)}(hkrealloch]hkrealloc}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ](jjeh"]h$]h&]jj uh1hhj~AhhhjAhMZubj)}(h-(const void *p, size_t new_size, gfp_t flags)h](j)}(h const void *ph](j!)}(hjeh]hconst}(hjAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjAubj)}(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&]uh1jhjAubj2 )}(hj5 h]h*}(hjBhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjAubh)}(hj> h]hp}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAubj)}(hsize_t new_sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj+BhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(Bubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj-BmodnameN classnameNj\j_)}jb]je)}jXjAsb c.kreallocasbuh1hhj$Bubj)}(h h]h }(hjKBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Bubh)}(hnew_sizeh]hnew_size}(hjYBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$Bubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjuBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrBubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjwBmodnameN classnameNj\j_)}jb]jGB c.kreallocasbuh1hhjnBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnBubh)}(hflagsh]hflags}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnBubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAubeh}(h]h ]h"]h$]h&]jj uh1jhj~AhhhjAhMZubeh}(h]h ]h"]h$]h&]jj juh1hjjhjzAhhhjAhMZubah}(h]juAah ](jjeh"]h$]h&]jj)jhuh1hhjAhMZhjwAhhubj )}(hhh]j9)}(h6reallocate memory. The contents will remain unchanged.h]h6reallocate memory. The contents will remain unchanged.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMZhjBhhubah}(h]h ]h"]h$]h&]uh1jhjwAhhhjAhMZubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jBj4jBj5j6j7uh1hhhhjUhNhNubjp)}(hXD**Parameters** ``const void *p`` object to reallocate memory for. ``size_t new_size`` how many bytes of memory are required. ``gfp_t flags`` the type of memory to allocate. **Description** If **p** is ``NULL``, krealloc() behaves exactly like kmalloc(). If **new_size** is 0 and **p** is not a ``NULL`` pointer, the object pointed to is freed. 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. When 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:: new bucket 0 size size |--------|----------------| | keep | zero | Otherwise, 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'. In any case, the contents of the object pointed to are preserved up to the lesser of the new and old sizes. **Return** pointer to the allocated memory or ``NULL`` in case of errorh](j9)}(h**Parameters**h]jz)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM^hjBubj)}(hhh](j)}(h3``const void *p`` object to reallocate memory for. h](j)}(h``const void *p``h]j?)}(hj Ch]h const void *p}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj Cubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM[hjCubj)}(hhh]j9)}(h object to reallocate memory for.h]h object to reallocate memory for.}(hj%ChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!ChM[hj"Cubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj!ChM[hjCubj)}(h;``size_t new_size`` how many bytes of memory are required. h](j)}(h``size_t new_size``h]j?)}(hjECh]hsize_t new_size}(hjGChhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCCubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM\hj?Cubj)}(hhh]j9)}(h&how many bytes of memory are required.h]h&how many bytes of memory are required.}(hj^ChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjZChM\hj[Cubah}(h]h ]h"]h$]h&]uh1jhj?Cubeh}(h]h ]h"]h$]h&]uh1jhjZChM\hjCubj)}(h0``gfp_t flags`` the type of memory to allocate. h](j)}(h``gfp_t flags``h]j?)}(hj~Ch]h gfp_t flags}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj|Cubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM]hjxCubj)}(hhh]j9)}(hthe type of memory to allocate.h]hthe type of memory to allocate.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjChM]hjCubah}(h]h ]h"]h$]h&]uh1jhjxCubeh}(h]h ]h"]h$]h&]uh1jhjChM]hjCubeh}(h]h ]h"]h$]h&]uh1jhjBubj9)}(h**Description**h]jz)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM_hjBubj9)}(hIf **p** is ``NULL``, krealloc() behaves exactly like kmalloc(). If **new_size** is 0 and **p** is not a ``NULL`` pointer, the object pointed to is freed.h](hIf }(hjChhhNhNubjz)}(h**p**h]hp}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubh is }(hjChhhNhNubj?)}(h``NULL``h]hNULL}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCubh1, krealloc() behaves exactly like kmalloc(). If }(hjChhhNhNubjz)}(h **new_size**h]hnew_size}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubh is 0 and }(hjChhhNhNubjz)}(h**p**h]hp}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubh is not a }(hjChhhNhNubj?)}(h``NULL``h]hNULL}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCubh) pointer, the object pointed to is freed.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM^hjBubj9)}(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.}(hj8DhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMahjBubj9)}(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:}(hjGDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMfhjBubj)}(ht new bucket 0 size size |--------|----------------| | keep | zero |h]ht new bucket 0 size size |--------|----------------| | keep | zero |}hjVDsbah}(h]h ]h"]h$]h&]jj uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMkhjBubj9)}(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’.}(hjeDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMphjBubj9)}(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.}(hjtDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMthjBubj9)}(h **Return**h]jz)}(hjDh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMwhjBubj9)}(hhjDubh in case of error}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMxhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__kvmalloc_node (C function)c.__kvmalloc_nodehNtauh1hhjUhhhNhNubh)}(hhh](h)}(h7void * __kvmalloc_node (size, b, gfp_t flags, int node)h]h)}(h5void *__kvmalloc_node(size, b, gfp_t flags, int node)h](j)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjDhMubj2 )}(hj5 h]h*}(hjDhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjDhhhjDhMubh)}(h__kvmalloc_nodeh]h)}(h__kvmalloc_nodeh]h__kvmalloc_node}(hj EhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ](jjeh"]h$]h&]jj uh1hhjDhhhjDhMubj)}(h (size, b, gfp_t flags, int node)h](j)}(hsizeh]h)}(hhh]h)}(hsizeh]hsize}(hj)EhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&Eubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj+EmodnameN classnameNj\j_)}jb]je)}jXj Esbc.__kvmalloc_nodeasbuh1hhj"Eubah}(h]h ]h"]h$]h&]noemphjj uh1jhjEubj)}(hbh]h)}(hhh]h)}(hbh]hb}(hjWEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTEubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjYEmodnameN classnameNj\j_)}jb]jEEc.__kvmalloc_nodeasbuh1hhjPEubah}(h]h ]h"]h$]h&]noemphjj uh1jhjEubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjEmodnameN classnameNj\j_)}jb]jEEc.__kvmalloc_nodeasbuh1hhj|Eubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Eubh)}(hflagsh]hflags}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|Eubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjEubj)}(hint nodeh](j)}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hnodeh]hnode}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjEubeh}(h]h ]h"]h$]h&]jj uh1jhjDhhhjDhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjDhhhjDhMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhjDhhubj )}(hhh]j9)}(huattempt to allocate physically contiguous memory, but upon failure, fall back to non-contiguous (vmalloc) allocation.h]huattempt to allocate physically contiguous memory, but upon failure, fall back to non-contiguous (vmalloc) allocation.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj Fhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j&Fj4j&Fj5j6j7uh1hhhhjUhNhNubjp)}(hX**Parameters** ``size`` size of the request. ``b`` which set of kmalloc buckets to allocate from. ``gfp_t flags`` gfp mask for the allocation - must be compatible (superset) with GFP_KERNEL. ``int node`` numa node to allocate from **Description** Uses kmalloc to get the memory but if the allocation fails then falls back to the vmalloc allocator. Use kvfree for freeing the memory. GFP_NOWAIT and GFP_ATOMIC are not supported, neither is the __GFP_NORETRY modifier. __GFP_RETRY_MAYFAIL is supported, and it should be used only if kmalloc is preferable to the vmalloc fallback, due to visible performance drawbacks. **Return** pointer to the allocated memory of ``NULL`` in case of failureh](j9)}(h**Parameters**h]jz)}(hj0Fh]h Parameters}(hj2FhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.Fubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj*Fubj)}(hhh](j)}(h``size`` size of the request. h](j)}(h``size``h]j?)}(hjOFh]hsize}(hjQFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMFubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjIFubj)}(hhh]j9)}(hsize of the request.h]hsize of the request.}(hjhFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjdFhMhjeFubah}(h]h ]h"]h$]h&]uh1jhjIFubeh}(h]h ]h"]h$]h&]uh1jhjdFhMhjFFubj)}(h5``b`` which set of kmalloc buckets to allocate from. h](j)}(h``b``h]j?)}(hjFh]hb}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjFubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjFubj)}(hhh]j9)}(h.which set of kmalloc buckets to allocate from.h]h.which set of kmalloc buckets to allocate from.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjFFubj)}(h]``gfp_t flags`` gfp mask for the allocation - must be compatible (superset) with GFP_KERNEL. h](j)}(h``gfp_t flags``h]j?)}(hjFh]h gfp_t flags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjFubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjFubj)}(hhh]j9)}(hLgfp mask for the allocation - must be compatible (superset) with GFP_KERNEL.h]hLgfp mask for the allocation - must be compatible (superset) with GFP_KERNEL.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjFFubj)}(h(``int node`` numa node to allocate from h](j)}(h ``int node``h]j?)}(hjFh]hint node}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjFubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjFubj)}(hhh]j9)}(hnuma node to allocate fromh]hnuma node to allocate from}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjFFubeh}(h]h ]h"]h$]h&]uh1jhj*Fubj9)}(h**Description**h]jz)}(hj5Gh]h Description}(hj7GhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3Gubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj*Fubj9)}(hUses kmalloc to get the memory but if the allocation fails then falls back to the vmalloc allocator. Use kvfree for freeing the memory.h]hUses kmalloc to get the memory but if the allocation fails then falls back to the vmalloc allocator. Use kvfree for freeing the memory.}(hjKGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj*Fubj9)}(hGFP_NOWAIT and GFP_ATOMIC are not supported, neither is the __GFP_NORETRY modifier. __GFP_RETRY_MAYFAIL is supported, and it should be used only if kmalloc is preferable to the vmalloc fallback, due to visible performance drawbacks.h]hGFP_NOWAIT and GFP_ATOMIC are not supported, neither is the __GFP_NORETRY modifier. __GFP_RETRY_MAYFAIL is supported, and it should be used only if kmalloc is preferable to the vmalloc fallback, due to visible performance drawbacks.}(hjZGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj*Fubj9)}(h **Return**h]jz)}(hjkGh]hReturn}(hjmGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiGubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj*Fubj9)}(h>pointer to the allocated memory of ``NULL`` in case of failureh](h#pointer to the allocated memory of }(hjGhhhNhNubj?)}(h``NULL``h]hNULL}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubh in case of failure}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj*Fubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkvfree (C function)c.kvfreehNtauh1hhjUhhhNhNubh)}(hhh](h)}(hvoid kvfree (const void *addr)h]h)}(hvoid kvfree(const void *addr)h](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjGhMubh)}(hkvfreeh]h)}(hkvfreeh]hkvfree}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubah}(h]h ](jjeh"]h$]h&]jj uh1hhjGhhhjGhMubj)}(h(const void *addr)h]j)}(hconst void *addrh](j!)}(hjeh]hconst}(hjGhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjGubj)}(h h]h }(hj HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hj(HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2 )}(hj5 h]h*}(hj6HhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjGubh)}(haddrh]haddr}(hjCHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjGubah}(h]h ]h"]h$]h&]jj uh1jhjGhhhjGhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjGhhhjGhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhjGhhubj )}(hhh]j9)}(h Free memory.h]h Free memory.}(hjmHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjjHhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jHj4jHj5j6j7uh1hhhhjUhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjHubj)}(hhh]j)}(h2``const void *addr`` Pointer to allocated memory. h](j)}(h``const void *addr``h]j?)}(hjHh]hconst void *addr}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjHubj)}(hhh]j9)}(hPointer to allocated memory.h]hPointer to allocated memory.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubj9)}(h**Description**h]jz)}(hjHh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjHubj9)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjHubj9)}(h **Context**h]jz)}(hjIh]hContext}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjIubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjHubj9)}(h5Either preemptible task context or not-NMI interrupt.h]h5Either preemptible task context or not-NMI interrupt.}(hj&IhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkvfree_sensitive (C function)c.kvfree_sensitivehNtauh1hhjUhhhNhNubh)}(hhh](h)}(h4void kvfree_sensitive (const void *addr, size_t len)h]h)}(h3void kvfree_sensitive(const void *addr, size_t len)h](j)}(hvoidh]hvoid}(hjUIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQIhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjdIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQIhhhjcIhMubh)}(hkvfree_sensitiveh]h)}(hkvfree_sensitiveh]hkvfree_sensitive}(hjvIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrIubah}(h]h ](jjeh"]h$]h&]jj uh1hhjQIhhhjcIhMubj)}(h(const void *addr, size_t len)h](j)}(hconst void *addrh](j!)}(hjeh]hconst}(hjIhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjIubh)}(haddrh]haddr}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjIubj)}(h size_t lenh](h)}(hhh]h)}(hsize_th]hsize_t}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjImodnameN classnameNj\j_)}jb]je)}jXjxIsbc.kvfree_sensitiveasbuh1hhjIubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hlenh]hlen}(hj JhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjIubeh}(h]h ]h"]h$]h&]jj uh1jhjQIhhhjcIhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjMIhhhjcIhMubah}(h]jHIah ](jjeh"]h$]h&]jj)jhuh1hhjcIhMhjJIhhubj )}(hhh]j9)}(h4Free a data object containing sensitive information.h]h4Free a data object containing sensitive information.}(hjJJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjGJhhubah}(h]h ]h"]h$]h&]uh1jhjJIhhhjcIhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jbJj4jbJj5j6j7uh1hhhhjUhNhNubjp)}(hXE**Parameters** ``const void *addr`` address of the data object to be freed. ``size_t len`` length of the data object. **Description** Use the special memzero_explicit() function to clear the content of a kvmalloc'ed object containing sensitive data to make sure that the compiler won't optimize out the data clearing.h](j9)}(h**Parameters**h]jz)}(hjlJh]h Parameters}(hjnJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjjJubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjfJubj)}(hhh](j)}(h=``const void *addr`` address of the data object to be freed. h](j)}(h``const void *addr``h]j?)}(hjJh]hconst void *addr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjJubj)}(hhh]j9)}(h'address of the data object to be freed.h]h'address of the data object to be freed.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubj)}(h*``size_t len`` length of the data object. h](j)}(h``size_t len``h]j?)}(hjJh]h size_t len}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjJubj)}(hhh]j9)}(hlength of the data object.h]hlength of the data object.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubeh}(h]h ]h"]h$]h&]uh1jhjfJubj9)}(h**Description**h]jz)}(hjJh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjfJubj9)}(hUse the special memzero_explicit() function to clear the content of a kvmalloc'ed object containing sensitive data to make sure that the compiler won't optimize out the data clearing.h]hUse the special memzero_explicit() function to clear the content of a kvmalloc’ed object containing sensitive data to make sure that the compiler won’t optimize out the data clearing.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjfJubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkvrealloc (C function) c.kvreallochNtauh1hhjUhhhNhNubh)}(hhh](h)}(h:void * kvrealloc (const void *p, size_t size, gfp_t flags)h]h)}(h8void *kvrealloc(const void *p, size_t size, gfp_t flags)h](j)}(hvoidh]hvoid}(hjDKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@KhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjSKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@KhhhjRKhMubj2 )}(hj5 h]h*}(hjaKhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj@KhhhjRKhMubh)}(h kvrealloch]h)}(h kvrealloch]h kvrealloc}(hjrKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnKubah}(h]h ](jjeh"]h$]h&]jj uh1hhj@KhhhjRKhMubj)}(h)(const void *p, size_t size, gfp_t flags)h](j)}(h const void *ph](j!)}(hjeh]hconst}(hjKhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjKubj)}(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&]uh1jhjKubj2 )}(hj5 h]h*}(hjKhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjKubh)}(hj> h]hp}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjKubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjKmodnameN classnameNj\j_)}jb]je)}jXjtKsb c.kvreallocasbuh1hhjKubj)}(h h]h }(hj LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hsizeh]hsize}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjKubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj7LhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4Lubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj9LmodnameN classnameNj\j_)}jb]j L c.kvreallocasbuh1hhj0Lubj)}(h h]h }(hjULhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Lubh)}(hflagsh]hflags}(hjcLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0Lubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjKubeh}(h]h ]h"]h$]h&]jj uh1jhj@KhhhjRKhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhjLubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjLubj)}(hhh]j9)}(hobject to reallocate memory forh]hobject to reallocate memory for}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubj)}(h'``size_t size`` the size to reallocate h](j)}(h``size_t size``h]j?)}(hjMh]h size_t size}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjMubj)}(hhh]j9)}(hthe size to reallocateh]hthe size to reallocate}(hj MhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubj)}(h7``gfp_t flags`` the flags for the page level allocator h](j)}(h``gfp_t flags``h]j?)}(hj@Mh]h gfp_t flags}(hjBMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj>Mubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj:Mubj)}(hhh]j9)}(h&the flags for the page level allocatorh]h&the flags for the page level allocator}(hjYMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjUMhMhjVMubah}(h]h ]h"]h$]h&]uh1jhj:Mubeh}(h]h ]h"]h$]h&]uh1jhjUMhMhjLubeh}(h]h ]h"]h$]h&]uh1jhjLubj9)}(h**Description**h]jz)}(hj{Mh]h Description}(hj}MhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyMubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjLubj9)}(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 }(hjMhhhNhNubjz)}(h**p**h]hp}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubh is }(hjMhhhNhNubj?)}(h``NULL``h]hNULL}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMubh2, kvrealloc() behaves exactly like kvmalloc(). If }(hjMhhhNhNubjz)}(h**size**h]hsize}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubh is 0 and }(hjMhhhNhNubjz)}(h**p**h]hp}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubh is not a }(hjMhhhNhNubj?)}(h``NULL``h]hNULL}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMubh) pointer, the object pointed to is freed.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjLubj9)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjLubj9)}(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 NhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM hjLubj9)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM hjLubj9)}(h **Return**h]jz)}(hj)Nh]hReturn}(hj+NhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj'Nubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjLubj9)}(hhj?Nubh in case of error}(hj?NhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%__kmem_cache_create_args (C function)c.__kmem_cache_create_argshNtauh1hhjUhhhNhNubh)}(hhh](h)}(hstruct kmem_cache * __kmem_cache_create_args (const char *name, unsigned int object_size, struct kmem_cache_args *args, slab_flags_t flags)h]h)}(hstruct kmem_cache *__kmem_cache_create_args(const char *name, unsigned int object_size, struct kmem_cache_args *args, slab_flags_t flags)h](j!)}(hj$h]hstruct}(hjNhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|NhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chKubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|NhhhjNhKubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjNmodnameN classnameNj\j_)}jb]je)}jX__kmem_cache_create_argssbc.__kmem_cache_create_argsasbuh1hhj|NhhhjNhKubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|NhhhjNhKubj2 )}(hj5 h]h*}(hjNhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|NhhhjNhKubh)}(h__kmem_cache_create_argsh]h)}(hjNh]h__kmem_cache_create_args}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ](jjeh"]h$]h&]jj uh1hhj|NhhhjNhKubj)}(h^(const char *name, unsigned int object_size, struct kmem_cache_args *args, slab_flags_t flags)h](j)}(hconst char *nameh](j!)}(hjeh]hconst}(hjNhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjNubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hcharh]hchar}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj#OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2 )}(hj5 h]h*}(hj1OhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjNubh)}(hnameh]hname}(hj>OhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjNubj)}(hunsigned int object_sizeh](j)}(hunsignedh]hunsigned}(hjWOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOubj)}(h h]h }(hjeOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOubj)}(hinth]hint}(hjsOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSOubh)}(h object_sizeh]h object_size}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjNubj)}(hstruct kmem_cache_args *argsh](j!)}(hj$h]hstruct}(hjOhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]h)}(hkmem_cache_argsh]hkmem_cache_args}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjOmodnameN classnameNj\j_)}jb]jNc.__kmem_cache_create_argsasbuh1hhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2 )}(hj5 h]h*}(hjOhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjOubh)}(hargsh]hargs}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjNubj)}(hslab_flags_t flagsh](h)}(hhh]h)}(h slab_flags_th]h slab_flags_t}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjPmodnameN classnameNj\j_)}jb]jNc.__kmem_cache_create_argsasbuh1hhjPubj)}(h h]h }(hj9PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hflagsh]hflags}(hjGPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjNubeh}(h]h ]h"]h$]h&]jj uh1jhj|NhhhjNhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjxNhhhjNhKubah}(h]jsNah ](jjeh"]h$]h&]jj)jhuh1hhjNhKhjuNhhubj )}(hhh]j9)}(hCreate a kmem cache.h]hCreate a kmem cache.}(hjqPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chKhjnPhhubah}(h]h ]h"]h$]h&]uh1jhjuNhhhjNhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jPj4jPj5j6j7uh1hhhhjUhNhNubjp)}(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 desriptions 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](j9)}(h**Parameters**h]jz)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjPubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjPubj)}(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]j?)}(hjPh]hconst char *name}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chKhjPubj)}(hhh]j9)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhKhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhKhjPubj)}(hN``unsigned int object_size`` The size of objects to be created in this cache. h](j)}(h``unsigned int object_size``h]j?)}(hjPh]hunsigned int object_size}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjPubj)}(hhh]j9)}(h0The size of objects to be created in this cache.h]h0The size of objects to be created in this cache.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjPubj)}(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]j?)}(hj$Qh]hstruct kmem_cache_args *args}(hj&QhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"Qubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjQubj)}(hhh]j9)}(heAdditional arguments for the cache creation (see :c:type:`struct kmem_cache_args `).h](h1Additional arguments for the cache creation (see }(hj=QhhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]j?)}(hjGQh]hstruct kmem_cache_args}(hjIQhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjEQubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:kmem_cache_argsuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj=Qubh).}(hj=QhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjdQhMhj:Qubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhj9QhMhjPubj)}(hu``slab_flags_t flags`` See the desriptions of individual flags. The common ones are listed in the description below. h](j)}(h``slab_flags_t flags``h]j?)}(hjQh]hslab_flags_t flags}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj{Qubj)}(hhh]j9)}(h]See the desriptions of individual flags. The common ones are listed in the description below.h]h]See the desriptions of individual flags. The common ones are listed in the description below.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjQubah}(h]h ]h"]h$]h&]uh1jhj{Qubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjPubeh}(h]h ]h"]h$]h&]uh1jhjPubj9)}(h**Description**h]jz)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjPubj9)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjPubj9)}(hCommonly used **flags**:h](hCommonly used }(hjQhhhNhNubjz)}(h **flags**h]hflags}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQubh:}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjPubj9)}(h6:c:type:`SLAB_ACCOUNT` - Account allocations to memcg.h](h)}(h:c:type:`SLAB_ACCOUNT`h]j?)}(hj Rh]h SLAB_ACCOUNT}(hj RhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j: SLAB_ACCOUNTuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM hjRubh - Account allocations to memcg.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj&RhM hjPubj9)}(hF:c:type:`SLAB_HWCACHE_ALIGN` - Align objects on cache line boundaries.h](h)}(h:c:type:`SLAB_HWCACHE_ALIGN`h]j?)}(hj7Rh]hSLAB_HWCACHE_ALIGN}(hj9RhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hj5Rubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:SLAB_HWCACHE_ALIGNuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM hj1Rubh* - Align objects on cache line boundaries.}(hj1RhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjTRhM hjPubj9)}(h9:c:type:`SLAB_RECLAIM_ACCOUNT` - Objects are reclaimable.h](h)}(h:c:type:`SLAB_RECLAIM_ACCOUNT`h]j?)}(hjeRh]hSLAB_RECLAIM_ACCOUNT}(hjgRhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjcRubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:SLAB_RECLAIM_ACCOUNTuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj_Rubh - Objects are reclaimable.}(hj_RhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjRhMhjPubj9)}(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]j?)}(hjRh]hSLAB_TYPESAFE_BY_RCU}(hjRhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:SLAB_TYPESAFE_BY_RCUuh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjRubhp - Slab page (not individual objects) freeing delayed by a grace period - see the full description before using.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjRhMhjPubj9)}(h **Context**h]jz)}(hjRh]hContext}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjPubj9)}(h ah"]h$]h&]uh1j1 hj%ShhhjMShMlubh)}(hkmem_buckets_createh]h)}(hjJSh]hkmem_buckets_create}(hjmShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiSubah}(h]h ](jjeh"]h$]h&]jj uh1hhj%ShhhjMShMlubj)}(hk(const char *name, slab_flags_t flags, unsigned int useroffset, unsigned int usersize, void (*ctor)(void*))h](j)}(hconst char *nameh](j!)}(hjeh]hconst}(hjShhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hcharh]hchar}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2 )}(hj5 h]h*}(hjShhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjSubh)}(hnameh]hname}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjSubj)}(hslab_flags_t flagsh](h)}(hhh]h)}(h slab_flags_th]h slab_flags_t}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjSmodnameN classnameNj\j_)}jb]jHSc.kmem_buckets_createasbuh1hhjSubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hflagsh]hflags}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjSubj)}(hunsigned int useroffseth](j)}(hunsignedh]hunsigned}(hj-ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Tubj)}(h h]h }(hj;ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Tubj)}(hinth]hint}(hjIThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Tubj)}(h h]h }(hjWThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Tubh)}(h useroffseth]h useroffset}(hjeThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)Tubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjSubj)}(hunsigned int usersizeh](j)}(hunsignedh]hunsigned}(hj~ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzTubj)}(hinth]hint}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzTubh)}(husersizeh]husersize}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzTubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjSubj)}(hvoid (*ctor)(void*)h](j)}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2 )}(hjk h]h(}(hjThhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubj2 )}(hj5 h]h*}(hjThhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubh)}(hctorh]hctor}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubj2 )}(hj h]h)}(hjUhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubj2 )}(hjk h]h(}(hj UhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubj)}(hvoidh]hvoid}(hj-UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2 )}(hj5 h]h*}(hj;UhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubj2 )}(hj h]h)}(hjHUhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjSubeh}(h]h ]h"]h$]h&]jj uh1jhj%ShhhjMShMlubeh}(h]h ]h"]h$]h&]jj juh1hjjhj!ShhhjMShMlubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjMShMlhjShhubj )}(hhh]j9)}(hUCreate a set of caches that handle dynamic sized allocations via kmem_buckets_alloc()h]hUCreate a set of caches that handle dynamic sized allocations via kmem_buckets_alloc()}(hjqUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMlhjnUhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjMShMlubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jUj4jUj5j6j7uh1hhhhjUhNhNubjp)}(hX**Parameters** ``const char *name`` A prefix string which is used in /proc/slabinfo to identify this cache. The individual caches with have their sizes as the suffix. ``slab_flags_t flags`` SLAB flags (see kmem_cache_create() for details). ``unsigned int useroffset`` Starting offset within an allocation that may be copied to/from userspace. ``unsigned int usersize`` How many bytes, starting at **useroffset**, may be copied to/from userspace. ``void (*ctor)(void *)`` A constructor for the objects, run when new allocations are made. **Description** Cannot be called within an interrupt, but can be interrupted. **Return** a pointer to the cache on success, NULL on failure. When CONFIG_SLAB_BUCKETS is not enabled, ZERO_SIZE_PTR is returned, and subsequent calls to kmem_buckets_alloc() will fall back to kmalloc(). (i.e. callers only need to check for NULL on failure.)h](j9)}(h**Parameters**h]jz)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMphjUubj)}(hhh](j)}(h``const char *name`` A prefix string which is used in /proc/slabinfo to identify this cache. The individual caches with have their sizes as the suffix. h](j)}(h``const char *name``h]j?)}(hjUh]hconst char *name}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMohjUubj)}(hhh]j9)}(hA prefix string which is used in /proc/slabinfo to identify this cache. The individual caches with have their sizes as the suffix.h]hA prefix string which is used in /proc/slabinfo to identify this cache. The individual caches with have their sizes as the suffix.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMnhjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMohjUubj)}(hI``slab_flags_t flags`` SLAB flags (see kmem_cache_create() for details). h](j)}(h``slab_flags_t flags``h]j?)}(hjUh]hslab_flags_t flags}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMphjUubj)}(hhh]j9)}(h1SLAB flags (see kmem_cache_create() for details).h]h1SLAB flags (see kmem_cache_create() for details).}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjVhMphjVubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjVhMphjUubj)}(hg``unsigned int useroffset`` Starting offset within an allocation that may be copied to/from userspace. h](j)}(h``unsigned int useroffset``h]j?)}(hj%Vh]hunsigned int useroffset}(hj'VhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj#Vubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMrhjVubj)}(hhh]j9)}(hJStarting offset within an allocation that may be copied to/from userspace.h]hJStarting offset within an allocation that may be copied to/from userspace.}(hj>VhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMqhj;Vubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhj:VhMrhjUubj)}(hg``unsigned int usersize`` How many bytes, starting at **useroffset**, may be copied to/from userspace. h](j)}(h``unsigned int usersize``h]j?)}(hj_Vh]hunsigned int usersize}(hjaVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj]Vubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMthjYVubj)}(hhh]j9)}(hLHow many bytes, starting at **useroffset**, may be copied to/from userspace.h](hHow many bytes, starting at }(hjxVhhhNhNubjz)}(h**useroffset**h]h useroffset}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxVubh", may be copied to/from userspace.}(hjxVhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMshjuVubah}(h]h ]h"]h$]h&]uh1jhjYVubeh}(h]h ]h"]h$]h&]uh1jhjtVhMthjUubj)}(h[``void (*ctor)(void *)`` A constructor for the objects, run when new allocations are made. h](j)}(h``void (*ctor)(void *)``h]j?)}(hjVh]hvoid (*ctor)(void *)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMuhjVubj)}(hhh]j9)}(hAA constructor for the objects, run when new allocations are made.h]hAA constructor for the objects, run when new allocations are made.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjVhMuhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMuhjUubeh}(h]h ]h"]h$]h&]uh1jhjUubj9)}(h**Description**h]jz)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMwhjUubj9)}(h=Cannot be called within an interrupt, but can be interrupted.h]h=Cannot be called within an interrupt, but can be interrupted.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMvhjUubj9)}(h **Return**h]jz)}(hj Wh]hReturn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj Wubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMxhjUubj9)}(ha pointer to the cache on success, NULL on failure. When CONFIG_SLAB_BUCKETS is not enabled, ZERO_SIZE_PTR is returned, and subsequent calls to kmem_buckets_alloc() will fall back to kmalloc(). (i.e. callers only need to check for NULL on failure.)h]ha pointer to the cache on success, NULL on failure. When CONFIG_SLAB_BUCKETS is not enabled, ZERO_SIZE_PTR is returned, and subsequent calls to kmem_buckets_alloc() will fall back to kmalloc(). (i.e. callers only need to check for NULL on failure.)}(hj#WhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMyhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmem_cache_shrink (C function)c.kmem_cache_shrinkhNtauh1hhjUhhhNhNubh)}(hhh](h)}(h1int kmem_cache_shrink (struct kmem_cache *cachep)h]h)}(h0int kmem_cache_shrink(struct kmem_cache *cachep)h](j)}(hinth]hint}(hjRWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNWhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM$ubj)}(h h]h }(hjaWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNWhhhj`WhM$ubh)}(hkmem_cache_shrinkh]h)}(hkmem_cache_shrinkh]hkmem_cache_shrink}(hjsWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoWubah}(h]h ](jjeh"]h$]h&]jj uh1hhjNWhhhj`WhM$ubj)}(h(struct kmem_cache *cachep)h]j)}(hstruct kmem_cache *cacheph](j!)}(hj$h]hstruct}(hjWhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjWmodnameN classnameNj\j_)}jb]je)}jXjuWsbc.kmem_cache_shrinkasbuh1hhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2 )}(hj5 h]h*}(hjWhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjWubh)}(hcacheph]hcachep}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjWubah}(h]h ]h"]h$]h&]jj uh1jhjNWhhhj`WhM$ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjJWhhhj`WhM$ubah}(h]jEWah ](jjeh"]h$]h&]jj)jhuh1hhj`WhM$hjGWhhubj )}(hhh]j9)}(hShrink a cache.h]hShrink a cache.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM$hjXhhubah}(h]h ]h"]h$]h&]uh1jhjGWhhhj`WhM$ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j*Xj4j*Xj5j6j7uh1hhhhjUhNhNubjp)}(hX**Parameters** ``struct kmem_cache *cachep`` The cache to shrink. **Description** Releases as many slabs as possible for a cache. To help debugging, a zero exit status indicates all slabs were released. **Return** ``0`` if all slabs were released, non-zero otherwiseh](j9)}(h**Parameters**h]jz)}(hj4Xh]h Parameters}(hj6XhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2Xubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM(hj.Xubj)}(hhh]j)}(h3``struct kmem_cache *cachep`` The cache to shrink. h](j)}(h``struct kmem_cache *cachep``h]j?)}(hjSXh]hstruct kmem_cache *cachep}(hjUXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQXubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM%hjMXubj)}(hhh]j9)}(hThe cache to shrink.h]hThe cache to shrink.}(hjlXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhXhM%hjiXubah}(h]h ]h"]h$]h&]uh1jhjMXubeh}(h]h ]h"]h$]h&]uh1jhjhXhM%hjJXubah}(h]h ]h"]h$]h&]uh1jhj.Xubj9)}(h**Description**h]jz)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM'hj.Xubj9)}(hxReleases as many slabs as possible for a cache. To help debugging, a zero exit status indicates all slabs were released.h]hxReleases as many slabs as possible for a cache. To help debugging, a zero exit status indicates all slabs were released.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM&hj.Xubj9)}(h **Return**h]jz)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM)hj.Xubj9)}(h4``0`` if all slabs were released, non-zero otherwiseh](j?)}(h``0``h]h0}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjXubh/ if all slabs were released, non-zero otherwise}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM*hj.Xubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmem_dump_obj (C function)c.kmem_dump_objhNtauh1hhjUhhhNhNubh)}(hhh](h)}(h!bool kmem_dump_obj (void *object)h]h)}(h bool kmem_dump_obj(void *object)h](j)}(hj)h]hbool}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMBubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjYhMBubh)}(h kmem_dump_objh]h)}(h kmem_dump_objh]h kmem_dump_obj}(hj(YhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$Yubah}(h]h ](jjeh"]h$]h&]jj uh1hhjYhhhjYhMBubj)}(h(void *object)h]j)}(h void *objecth](j)}(hvoidh]hvoid}(hjDYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Yubj)}(h h]h }(hjRYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Yubj2 )}(hj5 h]h*}(hj`YhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj@Yubh)}(hobjecth]hobject}(hjmYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@Yubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhjYubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMChjYubj)}(hhh]j9)}(h5slab object for which to find provenance information.h]h5slab object for which to find provenance information.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjYhMChjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMChjYubah}(h]h ]h"]h$]h&]uh1jhjYubj9)}(h**Description**h]jz)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMEhjYubj9)}(hXThis function uses pr_cont(), so that the caller is expected to have printed out whatever preamble is appropriate. The provenance information depends on the type of object and on how much debugging is enabled. For a slab-cache object, the fact that it is a slab object is printed, and, if available, the slab name, return address, and stack trace from the allocation and last free path of that object.h]hXThis function uses pr_cont(), so that the caller is expected to have printed out whatever preamble is appropriate. The provenance information depends on the type of object and on how much debugging is enabled. For a slab-cache object, the fact that it is a slab object is printed, and, if available, the slab name, return address, and stack trace from the allocation and last free path of that object.}(hj)ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMDhjYubj9)}(h **Return**h]jz)}(hj:Zh]hReturn}(hjhjPZubhZ if the pointer is to a not-yet-freed object from kmalloc() or kmem_cache_alloc(), either }(hjPZhhhNhNubj?)}(h``true``h]htrue}(hjfZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPZubh or }(hjPZhhhNhNubj?)}(h ``false``h]hfalse}(hjxZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPZubh3 if the pointer is to an already-freed object, and }(hjPZhhhNhNubj?)}(h ``false``h]hfalse}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPZubh otherwise.}(hjPZhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMLhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfree_sensitive (C function)c.kfree_sensitivehNtauh1hhjUhhhNhNubh)}(hhh](h)}(h$void kfree_sensitive (const void *p)h]h)}(h#void kfree_sensitive(const void *p)h](j)}(hvoidh]hvoid}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjZhMubh)}(hkfree_sensitiveh]h)}(hkfree_sensitiveh]hkfree_sensitive}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ](jjeh"]h$]h&]jj uh1hhjZhhhjZhMubj)}(h(const void *p)h]j)}(h const void *ph](j!)}(hjeh]hconst}(hj[hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjZubj)}(h h]h }(hj [hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hvoidh]hvoid}(hjhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hj)[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2 )}(hj5 h]h*}(hj7[hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZubh)}(hj> h]hp}(hjD[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjZubah}(h]h ]h"]h$]h&]jj uh1jhjZhhhjZhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjZhhhjZhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjZhMhjZhhubj )}(hhh]j9)}(h4Clear sensitive information in memory before freeingh]h4Clear sensitive information in memory before freeing}(hjm[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjj[hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjZhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j[j4j[j5j6j7uh1hhhhjUhNhNubjp)}(hX**Parameters** ``const void *p`` object to free memory of **Description** The memory of the object **p** points to is zeroed before freed. If **p** is ``NULL``, kfree_sensitive() does nothing. **Note** this function zeroes the whole allocated buffer which can be a good deal bigger than the requested buffer size passed to kmalloc(). So be careful when using this function in performance sensitive code.h](j9)}(h**Parameters**h]jz)}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj[ubj)}(hhh]j)}(h+``const void *p`` object to free memory of h](j)}(h``const void *p``h]j?)}(hj[h]h const void *p}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj[ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj[ubj)}(hhh]j9)}(hobject to free memory ofh]hobject to free memory of}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubj9)}(h**Description**h]jz)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj[ubj9)}(hvThe memory of the object **p** points to is zeroed before freed. If **p** is ``NULL``, kfree_sensitive() does nothing.h](hThe memory of the object }(hj[hhhNhNubjz)}(h**p**h]hp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubh& points to is zeroed before freed. If }(hj[hhhNhNubjz)}(h**p**h]hp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubh is }(hj[hhhNhNubj?)}(h``NULL``h]hNULL}(hj+\hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj[ubh!, kfree_sensitive() does nothing.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj[ubj9)}(h**Note**h]jz)}(hjF\h]hNote}(hjH\hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjD\ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj[ubj9)}(hthis function zeroes the whole allocated buffer which can be a good deal bigger than the requested buffer size passed to kmalloc(). So be careful when using this function in performance sensitive code.h]hthis function zeroes the whole allocated buffer which can be a good deal bigger than the requested buffer size passed to kmalloc(). So be careful when using this function in performance sensitive code.}(hj\\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkvfree_rcu_barrier (C function)c.kvfree_rcu_barrierhNtauh1hhjUhhhNhNubh)}(hhh](h)}(hvoid kvfree_rcu_barrier (void)h]h)}(hvoid kvfree_rcu_barrier(void)h](j)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hMubh)}(hkvfree_rcu_barrierh]h)}(hkvfree_rcu_barrierh]hkvfree_rcu_barrier}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj\hhhj\hMubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubah}(h]h ]h"]h$]h&]jj uh1jhj\hhhj\hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj\hhhj\hMubah}(h]j~\ah ](jjeh"]h$]h&]jj)jhuh1hhj\hMhj\hhubj )}(hhh]j9)}(h/Wait until all in-flight kvfree_rcu() complete.h]h/Wait until all in-flight kvfree_rcu() complete.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj\hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j ]j4j ]j5j6j7uh1hhhhjUhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj]ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj]ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j?)}(hj3]h]hvoid}(hj5]hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1]ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chKhj-]ubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hjL]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjH]hKhjI]ubah}(h]h ]h"]h$]h&]uh1jhj-]ubeh}(h]h ]h"]h$]h&]uh1jhjH]hKhj*]ubah}(h]h ]h"]h$]h&]uh1jhj]ubj9)}(h**Description**h]jz)}(hjn]h]h Description}(hjp]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjl]ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chKhj]ubj9)}(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().}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkfree_const (C function) c.kfree_consthNtauh1hhjUhhhNhNubh)}(hhh](h)}(h void kfree_const (const void *x)h]h)}(hvoid kfree_const(const void *x)h](j)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK&ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj]hK&ubh)}(h kfree_consth]h)}(h kfree_consth]h kfree_const}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj]hhhj]hK&ubj)}(h(const void *x)h]j)}(h const void *xh](j!)}(hjeh]hconst}(hj]hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj]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]ubj2 )}(hj5 h]h*}(hj'^hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj]ubh)}(hj>h]hx}(hj4^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj]ubah}(h]h ]h"]h$]h&]jj uh1jhj]hhhj]hK&ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj]hhhj]hK&ubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhj]hK&hj]hhubj )}(hhh]j9)}(hconditionally free memoryh]hconditionally free memory}(hj]^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK&hjZ^hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hK&ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3ju^j4ju^j5j6j7uh1hhhhjUhNhNubjp)}(h**Parameters** ``const void *x`` pointer to the memory **Description** Function calls kfree only if **x** is not in .rodata section.h](j9)}(h**Parameters**h]jz)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}^ubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK*hjy^ubj)}(hhh]j)}(h(``const void *x`` pointer to the memory h](j)}(h``const void *x``h]j?)}(hj^h]h const void *x}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj^ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK'hj^ubj)}(hhh]j9)}(hpointer to the memoryh]hpointer to the memory}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^hK'hj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hK'hj^ubah}(h]h ]h"]h$]h&]uh1jhjy^ubj9)}(h**Description**h]jz)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj^ubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK)hjy^ubj9)}(h=Function calls kfree only if **x** is not in .rodata section.h](hFunction calls kfree only if }(hj^hhhNhNubjz)}(h**x**h]hx}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj^ubh is not in .rodata section.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK(hjy^ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubeh}(h]the-slab-cacheah ]h"]the slab cacheah$]h&]uh1hhhhhhhhK#ubh)}(hhh](h)}(hVirtually Contiguous Mappingsh]hVirtually Contiguous Mappings}(hj"_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hhhhhK2ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_unmap_aliases (C function)c.vm_unmap_aliaseshNtauh1hhj_hhhNhNubh)}(hhh](h)}(hvoid vm_unmap_aliases (void)h]h)}(hvoid vm_unmap_aliases(void)h](j)}(hvoidh]hvoid}(hjI_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE_hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hjX_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE_hhhjW_hM ubh)}(hvm_unmap_aliasesh]h)}(hvm_unmap_aliasesh]hvm_unmap_aliases}(hjj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjf_ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjE_hhhjW_hM ubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]noemphjj uh1jhj~_ubah}(h]h ]h"]h$]h&]jj uh1jhjE_hhhjW_hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjA_hhhjW_hM ubah}(h]j<_ah ](jjeh"]h$]h&]jj)jhuh1hhjW_hM hj>_hhubj )}(hhh]j9)}(h0unmap outstanding lazy aliases in the vmap layerh]h0unmap outstanding lazy aliases in the vmap layer}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj_hhubah}(h]h ]h"]h$]h&]uh1jhj>_hhhjW_hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j_j4j_j5j6j7uh1hhhhj_hNhNubjp)}(hXQ**Parameters** ``void`` no arguments **Description** The vmap/vmalloc layer lazily flushes kernel virtual mappings primarily to amortize TLB flushing overheads. What this means is that any page you have now, may, in a former life, have been mapped into kernel virtual address by the vmap layer and so there might be some CPUs with TLB entries still referencing that page (additional to the regular 1:1 kernel mapping). vm_unmap_aliases flushes all such lazy mappings. After it returns, we can be sure that none of the pages we have control over will have any aliases from the vmap layer.h](j9)}(h**Parameters**h]jz)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj_ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j?)}(hj_h]hvoid}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chKhj_ubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`hKhj`ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj`hKhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubj9)}(h**Description**h]jz)}(hj,`h]h Description}(hj.`hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*`ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chKhj_ubj9)}(hXmThe vmap/vmalloc layer lazily flushes kernel virtual mappings primarily to amortize TLB flushing overheads. What this means is that any page you have now, may, in a former life, have been mapped into kernel virtual address by the vmap layer and so there might be some CPUs with TLB entries still referencing that page (additional to the regular 1:1 kernel mapping).h]hXmThe vmap/vmalloc layer lazily flushes kernel virtual mappings primarily to amortize TLB flushing overheads. What this means is that any page you have now, may, in a former life, have been mapped into kernel virtual address by the vmap layer and so there might be some CPUs with TLB entries still referencing that page (additional to the regular 1:1 kernel mapping).}(hjB`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj_ubj9)}(hvm_unmap_aliases flushes all such lazy mappings. After it returns, we can be sure that none of the pages we have control over will have any aliases from the vmap layer.h]hvm_unmap_aliases flushes all such lazy mappings. After it returns, we can be sure that none of the pages we have control over will have any aliases from the vmap layer.}(hjQ`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_unmap_ram (C function)c.vm_unmap_ramhNtauh1hhj_hhhNhNubh)}(hhh](h)}(h7void vm_unmap_ram (const void *mem, unsigned int count)h]h)}(h6void vm_unmap_ram(const void *mem, unsigned int count)h](j)}(hvoidh]hvoid}(hj`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 }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|`hhhj`hM ubh)}(h vm_unmap_ramh]h)}(h vm_unmap_ramh]h vm_unmap_ram}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj|`hhhj`hM ubj)}(h%(const void *mem, unsigned int count)h](j)}(hconst void *memh](j!)}(hjeh]hconst}(hj`hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj`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`ubj2 )}(hj5 h]h*}(hj`hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj`ubh)}(hmemh]hmem}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubj)}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hj(ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hinth]hint}(hj6ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hjDahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hcounth]hcount}(hjRahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubeh}(h]h ]h"]h$]h&]jj uh1jhj|`hhhj`hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjx`hhhj`hM ubah}(h]js`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hM hju`hhubj )}(hhh]j9)}(h6unmap linear kernel address space set up by vm_map_ramh]h6unmap linear kernel address space set up by vm_map_ram}(hj|ahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyahhubah}(h]h ]h"]h$]h&]uh1jhju`hhhj`hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jaj4jaj5j6j7uh1hhhhj_hNhNubjp)}(h**Parameters** ``const void *mem`` the pointer returned by vm_map_ram ``unsigned int count`` the count passed to that vm_map_ram call (cannot unmap partial)h](j9)}(h**Parameters**h]jz)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjaubj)}(hhh](j)}(h7``const void *mem`` the pointer returned by vm_map_ram h](j)}(h``const void *mem``h]j?)}(hjah]hconst void *mem}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjaubj)}(hhh]j9)}(h"the pointer returned by vm_map_ramh]h"the pointer returned by vm_map_ram}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjahM hjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahM hjaubj)}(hV``unsigned int count`` the count passed to that vm_map_ram call (cannot unmap partial)h](j)}(h``unsigned int count``h]j?)}(hjah]hunsigned int count}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjaubj)}(hhh]j9)}(h?the count passed to that vm_map_ram call (cannot unmap partial)h]h?the count passed to that vm_map_ram call (cannot unmap partial)}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj bubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj bhM hjaubeh}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_map_ram (C function) c.vm_map_ramhNtauh1hhj_hhhNhNubh)}(hhh](h)}(hEvoid * vm_map_ram (struct page **pages, unsigned int count, int node)h]h)}(hCvoid *vm_map_ram(struct page **pages, unsigned int count, int node)h](j)}(hvoidh]hvoid}(hjPbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLbhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hj_bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLbhhhj^bhM ubj2 )}(hj5 h]h*}(hjmbhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjLbhhhj^bhM ubh)}(h vm_map_ramh]h)}(h vm_map_ramh]h vm_map_ram}(hj~bhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzbubah}(h]h ](jjeh"]h$]h&]jj uh1hhjLbhhhj^bhM ubj)}(h3(struct page **pages, unsigned int count, int node)h](j)}(hstruct page **pagesh](j!)}(hj$h]hstruct}(hjbhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]h)}(hpageh]hpage}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbmodnameN classnameNj\j_)}jb]je)}jXjbsb c.vm_map_ramasbuh1hhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2 )}(hj5 h]h*}(hjbhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjbubj2 )}(hj5 h]h*}(hjbhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjbubh)}(hpagesh]hpages}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubj)}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hj'chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hinth]hint}(hj5chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjCchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hcounth]hcount}(hjQchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubj)}(hint nodeh](j)}(hinth]hint}(hjjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfcubj)}(h h]h }(hjxchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfcubh)}(hnodeh]hnode}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfcubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubeh}(h]h ]h"]h$]h&]jj uh1jhjLbhhhj^bhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjHbhhhj^bhM ubah}(h]jCbah ](jjeh"]h$]h&]jj)jhuh1hhj^bhM hjEbhhubj )}(hhh]j9)}(h>map pages linearly into kernel virtual address (vmalloc space)h]h>map pages linearly into kernel virtual address (vmalloc space)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjchhubah}(h]h ]h"]h$]h&]uh1jhjEbhhhj^bhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jcj4jcj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjcubj)}(hhh](j)}(hG``struct page **pages`` an array of pointers to the pages to be mapped h](j)}(h``struct page **pages``h]j?)}(hjch]hstruct page **pages}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjcubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjcubj)}(hhh]j9)}(h.an array of pointers to the pages to be mappedh]h.an array of pointers to the pages to be mapped}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjdhM hjdubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjdhM hjcubj)}(h'``unsigned int count`` number of pages h](j)}(h``unsigned int count``h]j?)}(hj*dh]hunsigned int count}(hj,dhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj(dubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj$dubj)}(hhh]j9)}(hnumber of pagesh]hnumber of pages}(hjCdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj?dhM hj@dubah}(h]h ]h"]h$]h&]uh1jhj$dubeh}(h]h ]h"]h$]h&]uh1jhj?dhM hjcubj)}(h=``int node`` prefer to allocate data structures on this node h](j)}(h ``int node``h]j?)}(hjcdh]hint node}(hjedhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjadubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj]dubj)}(hhh]j9)}(h/prefer to allocate data structures on this nodeh]h/prefer to allocate data structures on this node}(hj|dhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjxdhM hjydubah}(h]h ]h"]h$]h&]uh1jhj]dubeh}(h]h ]h"]h$]h&]uh1jhjxdhM hjcubeh}(h]h ]h"]h$]h&]uh1jhjcubj9)}(h**Description**h]jz)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjdubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjcubj9)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjcubj9)}(h **Return**h]jz)}(hjdh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjdubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjcubj9)}(hEa pointer to the address that has been mapped, or ``NULL`` on failureh](h2a pointer to the address that has been mapped, or }(hjdhhhNhNubj?)}(h``NULL``h]hNULL}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjdubh on failure}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvfree (C function)c.vfreehNtauh1hhj_hhhNhNubh)}(hhh](h)}(hvoid vfree (const void *addr)h]h)}(hvoid vfree(const void *addr)h](j)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM5 ubj)}(h h]h }(hj+ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhj*ehM5 ubh)}(hvfreeh]h)}(hvfreeh]hvfree}(hj=ehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9eubah}(h]h ](jjeh"]h$]h&]jj uh1hhjehhhj*ehM5 ubj)}(h(const void *addr)h]j)}(hconst void *addrh](j!)}(hjeh]hconst}(hjYehhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjUeubj)}(h h]h }(hjfehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUeubj)}(hvoidh]hvoid}(hjtehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUeubj2 )}(hj5 h]h*}(hjehhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjUeubh)}(haddrh]haddr}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUeubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQeubah}(h]h ]h"]h$]h&]jj uh1jhjehhhj*ehM5 ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjehhhj*ehM5 ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhj*ehM5 hjehhubj )}(hhh]j9)}(h%Release memory allocated by vmalloc()h]h%Release memory allocated by vmalloc()}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM5 hjehhubah}(h]h ]h"]h$]h&]uh1jhjehhhj*ehM5 ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jej4jej5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjeubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM9 hjeubj)}(hhh]j)}(h)``const void *addr`` Memory base address h](j)}(h``const void *addr``h]j?)}(hjfh]hconst void *addr}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM6 hjfubj)}(hhh]j9)}(hMemory base addressh]hMemory base address}(hj!fhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjfhM6 hjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhM6 hjeubah}(h]h ]h"]h$]h&]uh1jhjeubj9)}(h**Description**h]jz)}(hjCfh]h Description}(hjEfhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAfubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM8 hjeubj9)}(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 }(hjYfhhhNhNubjz)}(h**addr**h]haddr}(hjafhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYfubh, 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.}(hjYfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM7 hjeubj9)}(h/If **addr** is NULL, no operation is performed.h](hIf }(hjzfhhhNhNubjz)}(h**addr**h]haddr}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjzfubh$ is NULL, no operation is performed.}(hjzfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM< hjeubj9)}(h **Context**h]jz)}(hjfh]hContext}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjfubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM> hjeubj9)}(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 }(hjfhhhNhNubjK)}(h*not*h]hnot}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjfubh 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).}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM? hjeubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvunmap (C function)c.vunmaphNtauh1hhj_hhhNhNubh)}(hhh](h)}(hvoid vunmap (const void *addr)h]h)}(hvoid vunmap(const void *addr)h](j)}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMu ubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjghMu ubh)}(hvunmaph]h)}(hvunmaph]hvunmap}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubah}(h]h ](jjeh"]h$]h&]jj uh1hhjfhhhjghMu ubj)}(h(const void *addr)h]j)}(hconst void *addrh](j!)}(hjeh]hconst}(hj1ghhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj-gubj)}(h h]h }(hj>ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-gubj)}(hvoidh]hvoid}(hjLghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-gubj)}(h h]h }(hjZghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-gubj2 )}(hj5 h]h*}(hjhghhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj-gubh)}(haddrh]haddr}(hjughhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-gubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)gubah}(h]h ]h"]h$]h&]jj uh1jhjfhhhjghMu ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjfhhhjghMu ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjghMu hjfhhubj )}(hhh]j9)}(h*release virtual mapping obtained by vmap()h]h*release virtual mapping obtained by vmap()}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMu hjghhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjghMu ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jgj4jgj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjgubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMy hjgubj)}(hhh]j)}(h)``const void *addr`` memory base address h](j)}(h``const void *addr``h]j?)}(hjgh]hconst void *addr}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMv hjgubj)}(hhh]j9)}(hmemory base addressh]hmemory base address}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghMv hjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMv hjgubah}(h]h ]h"]h$]h&]uh1jhjgubj9)}(h**Description**h]jz)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMx hjgubj9)}(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 }(hj1hhhhNhNubjz)}(h**addr**h]haddr}(hj9hhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1hubh9, which was created from the page array passed to vmap().}(hj1hhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMw hjgubj9)}(h(Must not be called in interrupt context.h]h(Must not be called in interrupt context.}(hjRhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMz hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmap (C function)c.vmaphNtauh1hhj_hhhNhNubh)}(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}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhhjhhM ubj2 )}(hj5 h]h*}(hjhhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj}hhhhjhhM ubh)}(hvmaph]h)}(hvmaph]hvmap}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ](jjeh"]h$]h&]jj uh1hhj}hhhhjhhM ubj)}(hM(struct page **pages, unsigned int count, unsigned long flags, pgprot_t prot)h](j)}(hstruct page **pagesh](j!)}(hj$h]hstruct}(hjhhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]h)}(hpageh]hpage}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]je)}jXjhsbc.vmapasbuh1hhjhubj)}(h h]h }(hj ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2 )}(hj5 h]h*}(hjihhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhubj2 )}(hj5 h]h*}(hj$ihhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhubh)}(hpagesh]hpages}(hj1ihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjJihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFiubj)}(h h]h }(hjXihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFiubj)}(hinth]hint}(hjfihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFiubj)}(h h]h }(hjtihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFiubh)}(hcounth]hcount}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hlongh]hlong}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hflagsh]hflags}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(h pgprot_t proth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjimodnameN classnameNj\j_)}jb]jic.vmapasbuh1hhjiubj)}(h h]h }(hj jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hproth]hprot}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubeh}(h]h ]h"]h$]h&]jj uh1jhj}hhhhjhhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjyhhhhjhhM ubah}(h]jthah ](jjeh"]h$]h&]jj)jhuh1hhjhhM hjvhhhubj )}(hhh]j9)}(h5map an array of pages into virtually contiguous spaceh]h5map an array of pages into virtually contiguous space}(hjEjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjBjhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhhjhhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j]jj4j]jj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjgjh]h Parameters}(hjijhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjejubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjajubj)}(hhh](j)}(h/``struct page **pages`` array of page pointers h](j)}(h``struct page **pages``h]j?)}(hjjh]hstruct page **pages}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjjubj)}(hhh]j9)}(harray of page pointersh]harray of page pointers}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhM hjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhM hj}jubj)}(h.``unsigned int count`` number of pages to map h](j)}(h``unsigned int count``h]j?)}(hjjh]hunsigned int count}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjjubj)}(hhh]j9)}(hnumber of pages to maph]hnumber of pages to map}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhM hjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhM hj}jubj)}(h'``unsigned long flags`` vm_area->flags h](j)}(h``unsigned long flags``h]j?)}(hjjh]hunsigned long flags}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjjubj)}(hhh]j9)}(hvm_area->flagsh]hvm_area->flags}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj khM hjkubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhj khM hj}jubj)}(h2``pgprot_t prot`` page protection for the mapping h](j)}(h``pgprot_t prot``h]j?)}(hj1kh]h pgprot_t prot}(hj3khhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/kubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj+kubj)}(hhh]j9)}(hpage protection for the mappingh]hpage protection for the mapping}(hjJkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFkhM hjGkubah}(h]h ]h"]h$]h&]uh1jhj+kubeh}(h]h ]h"]h$]h&]uh1jhjFkhM hj}jubeh}(h]h ]h"]h$]h&]uh1jhjajubj9)}(h**Description**h]jz)}(hjlkh]h Description}(hjnkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjjkubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjajubj9)}(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 }(hjkhhhNhNubjz)}(h **count**h]hcount}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubh pages from }(hjkhhhNhNubjz)}(h **pages**h]hpages}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubh* into contiguous kernel virtual space. If }(hjkhhhNhNubjz)}(h **flags**h]hflags}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubh contains }(hjkhhhNhNubj?)}(h``VM_MAP_PUT_PAGES``h]hVM_MAP_PUT_PAGES}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubh 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.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjajubj9)}(h **Return**h]jz)}(hjkh]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjajubj9)}(h.the address of the area or ``NULL`` on failureh](hthe address of the area or }(hjkhhhNhNubj?)}(h``NULL``h]hNULL}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubh on failure}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjajubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmap_pfn (C function) c.vmap_pfnhNtauh1hhj_hhhNhNubh)}(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}(hj2lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.lhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hjAlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.lhhhj@lhM ubj2 )}(hj5 h]h*}(hjOlhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj.lhhhj@lhM ubh)}(hvmap_pfnh]h)}(hvmap_pfnh]hvmap_pfn}(hj`lhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\lubah}(h]h ](jjeh"]h$]h&]jj uh1hhj.lhhhj@lhM ubj)}(h8(unsigned long *pfns, unsigned int count, pgprot_t prot)h](j)}(hunsigned long *pfnsh](j)}(hunsignedh]hunsigned}(hj|lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxlubj)}(hlongh]hlong}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxlubj2 )}(hj5 h]h*}(hjlhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxlubh)}(hpfnsh]hpfns}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxlubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtlubj)}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hcounth]hcount}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtlubj)}(h pgprot_t proth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hj.mhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+mubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj0mmodnameN classnameNj\j_)}jb]je)}jXjblsb c.vmap_pfnasbuh1hhj'mubj)}(h h]h }(hjNmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'mubh)}(hproth]hprot}(hj\mhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'mubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtlubeh}(h]h ]h"]h$]h&]jj uh1jhj.lhhhj@lhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj*lhhhj@lhM ubah}(h]j%lah ](jjeh"]h$]h&]jj)jhuh1hhj@lhM hj'lhhubj )}(hhh]j9)}(h4map an array of PFNs into virtually contiguous spaceh]h4map an array of PFNs into virtually contiguous space}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjmhhubah}(h]h ]h"]h$]h&]uh1jhj'lhhhj@lhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jmj4jmj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjmubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjmubj)}(hhh](j)}(h&``unsigned long *pfns`` array of PFNs h](j)}(h``unsigned long *pfns``h]j?)}(hjmh]hunsigned long *pfns}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjmubj)}(hhh]j9)}(h array of PFNsh]h array of PFNs}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhM hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhM hjmubj)}(h.``unsigned int count`` number of pages to map h](j)}(h``unsigned int count``h]j?)}(hjnh]hunsigned int count}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjmubj)}(hhh]j9)}(hnumber of pages to maph]hnumber of pages to map}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnhM hjnubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjnhM hjmubj)}(h2``pgprot_t prot`` page protection for the mapping h](j)}(h``pgprot_t prot``h]j?)}(hj9nh]h pgprot_t prot}(hj;nhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7nubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj3nubj)}(hhh]j9)}(hpage protection for the mappingh]hpage protection for the mapping}(hjRnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjNnhM hjOnubah}(h]h ]h"]h$]h&]uh1jhj3nubeh}(h]h ]h"]h$]h&]uh1jhjNnhM hjmubeh}(h]h ]h"]h$]h&]uh1jhjmubj9)}(h**Description**h]jz)}(hjtnh]h Description}(hjvnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrnubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjmubj9)}(htMaps **count** PFNs from **pfns** into contiguous kernel virtual space and returns the start address of the mapping.h](hMaps }(hjnhhhNhNubjz)}(h **count**h]hcount}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnubh PFNs from }(hjnhhhNhNubjz)}(h**pfns**h]hpfns}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnubhS into contiguous kernel virtual space and returns the start address of the mapping.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__vmalloc_node (C function)c.__vmalloc_nodehNtauh1hhj_hhhNhNubh)}(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}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM_ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhM_ubj2 )}(hj5 h]h*}(hjnhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjnhhhjnhM_ubh)}(h__vmalloc_nodeh]h)}(h__vmalloc_nodeh]h__vmalloc_node}(hj ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ](jjeh"]h$]h&]jj uh1hhjnhhhjnhM_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}(hj'ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#oubj)}(h h]h }(hj5ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#oubj)}(hlongh]hlong}(hjCohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#oubj)}(h h]h }(hjQohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#oubh)}(hsizeh]hsize}(hj_ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#oubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubj)}(hunsigned long alignh](j)}(hunsignedh]hunsigned}(hjxohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtoubj)}(hlongh]hlong}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtoubh)}(halignh]halign}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtoubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjomodnameN classnameNj\j_)}jb]je)}jXj osbc.__vmalloc_nodeasbuh1hhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hgfp_maskh]hgfp_mask}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubj)}(hint nodeh](j)}(hinth]hint}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hj!phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hnodeh]hnode}(hj/phhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubj)}(hconst void *callerh](j!)}(hjeh]hconst}(hjHphhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjDpubj)}(h h]h }(hjUphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDpubj)}(hvoidh]hvoid}(hjcphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDpubj)}(h h]h }(hjqphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDpubj2 )}(hj5 h]h*}(hjphhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjDpubh)}(hcallerh]hcaller}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubeh}(h]h ]h"]h$]h&]jj uh1jhjnhhhjnhM_ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjnhhhjnhM_ubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjnhM_hjnhhubj )}(hhh]j9)}(h$allocate virtually contiguous memoryh]h$allocate virtually contiguous memory}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM_hjphhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhM_ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jpj4jpj5j6j7uh1hhhhj_hNhNubjp)}(hX**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. Reclaim modifiers in **gfp_mask** - __GFP_NORETRY, __GFP_RETRY_MAYFAIL and __GFP_NOFAIL are not supported Any use of gfp flags outside of GFP_KERNEL should be consulted with mm people. **Return** pointer to the allocated memory or ``NULL`` on errorh](j9)}(h**Parameters**h]jz)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjpubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMchjpubj)}(hhh](j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjph]hunsigned long size}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjpubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM`hjpubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj qhM`hj qubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhj qhM`hjpubj)}(h*``unsigned long align`` desired alignment h](j)}(h``unsigned long align``h]j?)}(hj0qh]hunsigned long align}(hj2qhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj.qubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMahj*qubj)}(hhh]j9)}(hdesired alignmenth]hdesired alignment}(hjIqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEqhMahjFqubah}(h]h ]h"]h$]h&]uh1jhj*qubeh}(h]h ]h"]h$]h&]uh1jhjEqhMahjpubj)}(h6``gfp_t gfp_mask`` flags for the page level allocator h](j)}(h``gfp_t gfp_mask``h]j?)}(hjiqh]hgfp_t gfp_mask}(hjkqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgqubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMbhjcqubj)}(hhh]j9)}(h"flags for the page level allocatorh]h"flags for the page level allocator}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj~qhMbhjqubah}(h]h ]h"]h$]h&]uh1jhjcqubeh}(h]h ]h"]h$]h&]uh1jhj~qhMbhjpubj)}(h8``int node`` node to use for allocation or NUMA_NO_NODE h](j)}(h ``int node``h]j?)}(hjqh]hint node}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjqubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMchjqubj)}(hhh]j9)}(h*node to use for allocation or NUMA_NO_NODEh]h*node to use for allocation or NUMA_NO_NODE}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjqhMchjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMchjpubj)}(h/``const void *caller`` caller's return address h](j)}(h``const void *caller``h]j?)}(hjqh]hconst void *caller}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjqubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMdhjqubj)}(hhh]j9)}(hcaller's return addressh]hcaller’s return address}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjqhMdhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMdhjpubeh}(h]h ]h"]h$]h&]uh1jhjpubj9)}(h**Description**h]jz)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMfhjpubj9)}(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 }(hj,rhhhNhNubjz)}(h**size**h]hsize}(hj4rhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,rubh$ from the page level allocator with }(hj,rhhhNhNubjz)}(h **gfp_mask**h]hgfp_mask}(hjFrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,rubh7 flags. Map them into contiguous kernel virtual space.}(hj,rhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMehjpubj9)}(hiReclaim modifiers in **gfp_mask** - __GFP_NORETRY, __GFP_RETRY_MAYFAIL and __GFP_NOFAIL are not supportedh](hReclaim modifiers in }(hj_rhhhNhNubjz)}(h **gfp_mask**h]hgfp_mask}(hjgrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_rubhH - __GFP_NORETRY, __GFP_RETRY_MAYFAIL and __GFP_NOFAIL are not supported}(hj_rhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhhjpubj9)}(hNAny use of gfp flags outside of GFP_KERNEL should be consulted with mm people.h]hNAny use of gfp flags outside of GFP_KERNEL should be consulted with mm people.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMkhjpubj9)}(h **Return**h]jz)}(hjrh]hReturn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMnhjpubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjrhhhNhNubj?)}(h``NULL``h]hNULL}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubh on error}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMohjpubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc (C function) c.vmallochNtauh1hhj_hhhNhNubh)}(hhh](h)}(h#void * vmalloc (unsigned long size)h]h)}(h!void *vmalloc(unsigned long size)h](j)}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjrhMubj2 )}(hj5 h]h*}(hjshhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjrhhhjrhMubh)}(hvmalloch]h)}(hvmalloch]hvmalloc}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ](jjeh"]h$]h&]jj uh1hhjrhhhjrhMubj)}(h(unsigned long size)h]j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hj2shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.subj)}(h h]h }(hj@shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.subj)}(hlongh]hlong}(hjNshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.subj)}(h h]h }(hj\shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.subh)}(hsizeh]hsize}(hjjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.subeh}(h]h ]h"]h$]h&]noemphjj uh1jhj*subah}(h]h ]h"]h$]h&]jj uh1jhjrhhhjrhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjrhhhjrhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjrhMhjrhhubj )}(hhh]j9)}(h$allocate virtually contiguous memoryh]h$allocate virtually contiguous memory}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjshhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jsj4jsj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjsubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjsubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjsh]hunsigned long size}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjsubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjshMhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjsubah}(h]h ]h"]h$]h&]uh1jhjsubj9)}(h**Description**h]jz)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjsubj9)}(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&thhhNhNubjz)}(h**size**h]hsize}(hj.thhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj&tubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hj&thhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjsubj9)}(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.}(hjGthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjsubj9)}(h **Return**h]jz)}(hjXth]hReturn}(hjZthhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVtubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjsubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjnthhhNhNubj?)}(h``NULL``h]hNULL}(hjvthhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjntubh on error}(hjnthhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc_huge_node (C function)c.vmalloc_huge_nodehNtauh1hhj_hhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthMubj2 )}(hj5 h]h*}(hjthhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjthhhjthMubh)}(hvmalloc_huge_nodeh]h)}(hvmalloc_huge_nodeh]hvmalloc_huge_node}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ](jjeh"]h$]h&]jj uh1hhjthhhjthMubj)}(h.(unsigned long size, gfp_t gfp_mask, int node)h](j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hj#uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hsizeh]hsize}(hj1uhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjMuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJuubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjOumodnameN classnameNj\j_)}jb]je)}jXjtsbc.vmalloc_huge_nodeasbuh1hhjFuubj)}(h h]h }(hjmuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFuubh)}(hgfp_maskh]hgfp_mask}(hj{uhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubj)}(hint nodeh](j)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hnodeh]hnode}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubeh}(h]h ]h"]h$]h&]jj uh1jhjthhhjthMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjthhhjthMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1hhjthMhjthhubj )}(hhh]j9)}(h6allocate virtually contiguous memory, allow huge pagesh]h6allocate virtually contiguous memory, allow huge pages}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3juj4juj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjuubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjuubj)}(hhh](j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjvh]hunsigned long size}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjvubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hj4vhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0vhMhj1vubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhj0vhMhjvubj)}(h6``gfp_t gfp_mask`` flags for the page level allocator h](j)}(h``gfp_t gfp_mask``h]j?)}(hjTvh]hgfp_t gfp_mask}(hjVvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRvubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjNvubj)}(hhh]j9)}(h"flags for the page level allocatorh]h"flags for the page level allocator}(hjmvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjivhMhjjvubah}(h]h ]h"]h$]h&]uh1jhjNvubeh}(h]h ]h"]h$]h&]uh1jhjivhMhjvubj)}(h8``int node`` node to use for allocation or NUMA_NO_NODE h](j)}(h ``int node``h]j?)}(hjvh]hint node}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjvubj)}(hhh]j9)}(h*node to use for allocation or NUMA_NO_NODEh]h*node to use for allocation or NUMA_NO_NODE}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjvhMhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjvubeh}(h]h ]h"]h$]h&]uh1jhjuubj9)}(h**Description**h]jz)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjuubj9)}(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 }(hjvhhhNhNubjz)}(h**size**h]hsize}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubhU from the page level allocator and map them into contiguous kernel virtual space. If }(hjvhhhNhNubjz)}(h**size**h]hsize}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubhL is greater than or equal to PMD_SIZE, allow using huge pages for the memory}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjuubj9)}(h **Return**h]jz)}(hjwh]hReturn}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjuubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hj)whhhNhNubj?)}(h``NULL``h]hNULL}(hj1whhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj)wubh on error}(hj)whhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvzalloc (C function) c.vzallochNtauh1hhj_hhhNhNubh)}(hhh](h)}(h#void * vzalloc (unsigned long size)h]h)}(h!void *vzalloc(unsigned long size)h](j)}(hvoidh]hvoid}(hjjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfwhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjywhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfwhhhjxwhMubj2 )}(hj5 h]h*}(hjwhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjfwhhhjxwhMubh)}(hvzalloch]h)}(hvzalloch]hvzalloc}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubah}(h]h ](jjeh"]h$]h&]jj uh1hhjfwhhhjxwhMubj)}(h(unsigned long size)h]j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hlongh]hlong}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hsizeh]hsize}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjwubah}(h]h ]h"]h$]h&]jj uh1jhjfwhhhjxwhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjbwhhhjxwhMubah}(h]j]wah ](jjeh"]h$]h&]jj)jhuh1hhjxwhMhj_whhubj )}(hhh]j9)}(h3allocate virtually contiguous memory with zero fillh]h3allocate virtually contiguous memory with zero fill}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jhj_whhhjxwhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j.xj4j.xj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj8xh]h Parameters}(hj:xhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6xubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj2xubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjWxh]hunsigned long size}(hjYxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUxubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjQxubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hjpxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjlxhMhjmxubah}(h]h ]h"]h$]h&]uh1jhjQxubeh}(h]h ]h"]h$]h&]uh1jhjlxhMhjNxubah}(h]h ]h"]h$]h&]uh1jhj2xubj9)}(h**Description**h]jz)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj2xubj9)}(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 }(hjxhhhNhNubjz)}(h**size**h]hsize}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubhv from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj2xubj9)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj2xubj9)}(h **Return**h]jz)}(hjxh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj2xubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjxhhhNhNubj?)}(h``NULL``h]hNULL}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxubh on error}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj2xubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc_user (C function)c.vmalloc_userhNtauh1hhj_hhhNhNubh)}(hhh](h)}(h(void * vmalloc_user (unsigned long size)h]h)}(h&void *vmalloc_user(unsigned long size)h](j)}(hvoidh]hvoid}(hj1yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-yhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hj@yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-yhhhj?yhMubj2 )}(hj5 h]h*}(hjNyhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj-yhhhj?yhMubh)}(h vmalloc_userh]h)}(h vmalloc_userh]h vmalloc_user}(hj_yhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[yubah}(h]h ](jjeh"]h$]h&]jj uh1hhj-yhhhj?yhMubj)}(h(unsigned long size)h]j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hj{yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwyubj)}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwyubh)}(hsizeh]hsize}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwyubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjsyubah}(h]h ]h"]h$]h&]jj uh1jhj-yhhhj?yhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj)yhhhj?yhMubah}(h]j$yah ](jjeh"]h$]h&]jj)jhuh1hhj?yhMhj&yhhubj )}(hhh]j9)}(h9allocate zeroed virtually contiguous memory for userspaceh]h9allocate zeroed virtually contiguous memory for userspace}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhj&yhhhj?yhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jyj4jyj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjyh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjyubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjzh]hunsigned long size}(hj zhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjzubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjzubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hj7zhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj3zhMhj4zubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj3zhMhjzubah}(h]h ]h"]h$]h&]uh1jhjyubj9)}(h**Description**h]jz)}(hjYzh]h Description}(hj[zhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjWzubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjyubj9)}(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.}(hjozhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjyubj9)}(h **Return**h]jz)}(hjzh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~zubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjyubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjzhhhNhNubj?)}(h``NULL``h]hNULL}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjzubh on error}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc_node (C function)c.vmalloc_nodehNtauh1hhj_hhhNhNubh)}(hhh](h)}(h2void * vmalloc_node (unsigned long size, int node)h]h)}(h0void *vmalloc_node(unsigned long size, int node)h](j)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhMubj2 )}(hj5 h]h*}(hjzhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjzhhhjzhMubh)}(h vmalloc_nodeh]h)}(h vmalloc_nodeh]h vmalloc_node}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjzhhhjzhMubj)}(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 }(hj/{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hlongh]hlong}(hj={hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h h]h }(hjK{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hsizeh]hsize}(hjY{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj{ubj)}(hint nodeh](j)}(hinth]hint}(hjr{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn{ubh)}(hnodeh]hnode}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjn{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj{ubeh}(h]h ]h"]h$]h&]jj uh1jhjzhhhjzhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjzhhhjzhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjzhhubj )}(hhh]j9)}(h"allocate memory on a specific nodeh]h"allocate memory on a specific node}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj{hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j{j4j{j5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj{ubah}(h]h ]h"]h$]h&]uh1j8hL/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]j?)}(hj{h]hunsigned long size}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj{ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj{ubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj{ubj)}(h``int node`` numa node h](j)}(h ``int node``h]j?)}(hj2|h]hint node}(hj4|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0|ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj,|ubj)}(hhh]j9)}(h numa nodeh]h numa node}(hjK|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjG|hMhjH|ubah}(h]h ]h"]h$]h&]uh1jhj,|ubeh}(h]h ]h"]h$]h&]uh1jhjG|hMhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubj9)}(h**Description**h]jz)}(hjm|h]h Description}(hjo|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjk|ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj{ubj9)}(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|hhhNhNubjz)}(h**size**h]hsize}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj{ubj9)}(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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj{ubj9)}(h **Return**h]jz)}(hj|h]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj{ubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hj|hhhNhNubj?)}(h``NULL``h]hNULL}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj|ubh on error}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvzalloc_node (C function)c.vzalloc_nodehNtauh1hhj_hhhNhNubh)}(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}hMubj2 )}(hj5 h]h*}(hj)}hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj}hhhj}hMubh)}(h vzalloc_nodeh]h)}(h vzalloc_nodeh]h vzalloc_node}(hj:}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6}ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj}hhhj}hMubj)}(h(unsigned long size, int node)h](j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjV}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR}ubj)}(h h]h }(hjd}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR}ubj)}(hlongh]hlong}(hjr}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR}ubh)}(hsizeh]hsize}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjR}ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjN}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}ubh)}(hnodeh]hnode}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjN}ubeh}(h]h ]h"]h$]h&]jj uh1jhj}hhhj}hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj}hhhj}hMubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj}hMhj}hhubj )}(hhh]j9)}(h1allocate memory on a specific node with zero fillh]h1allocate memory on a specific node with zero fill}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj}hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j~j4j~j5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ~ubah}(h]h ]h"]h$]h&]uh1j8hL/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]j?)}(hj.~h]hunsigned long size}(hj0~hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj,~ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj(~ubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hjG~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjC~hMhjD~ubah}(h]h ]h"]h$]h&]uh1jhj(~ubeh}(h]h ]h"]h$]h&]uh1jhjC~hMhj%~ubj)}(h``int node`` numa node h](j)}(h ``int node``h]j?)}(hjg~h]hint node}(hji~hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hje~ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhja~ubj)}(hhh]j9)}(h numa nodeh]h numa node}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|~hMhj}~ubah}(h]h ]h"]h$]h&]uh1jhja~ubeh}(h]h ]h"]h$]h&]uh1jhj|~hMhj%~ubeh}(h]h ]h"]h$]h&]uh1jhj ~ubj9)}(h**Description**h]jz)}(hj~h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj ~ubj9)}(hAllocate enough pages to cover **size** from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.h](hAllocate enough pages to cover }(hj~hhhNhNubjz)}(h**size**h]hsize}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~ubhv from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj ~ubj9)}(h **Return**h]jz)}(hj~h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj ~ubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hj~hhhNhNubj?)}(h``NULL``h]hNULL}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj~ubh on error}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj ~ubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc_32 (C function) c.vmalloc_32hNtauh1hhj_hhhNhNubh)}(hhh](h)}(h&void * vmalloc_32 (unsigned long size)h]h)}(h$void *vmalloc_32(unsigned long size)h](j)}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMbubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj@hMbubj2 )}(hj5 h]h*}(hjOhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj.hhhj@hMbubh)}(h vmalloc_32h]h)}(h vmalloc_32h]h vmalloc_32}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj.hhhj@hMbubj)}(h(unsigned long size)h]j)}(hunsigned long sizeh](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&]uh1jhjxubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubah}(h]h ]h"]h$]h&]jj uh1jhj.hhhj@hMbubeh}(h]h ]h"]h$]h&]jj juh1hjjhj*hhhj@hMbubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMbhj'hhubj )}(hhh]j9)}(h8allocate virtually contiguous memory (32bit addressable)h]h8allocate virtually contiguous memory (32bit addressable)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMbhjhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hMbubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMfhjubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjh]hunsigned long size}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMchjubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4hMchj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMchjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMehjubj9)}(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 }(hjphhhNhNubjz)}(h**size**h]hsize}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjpubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMdhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMghjubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh on error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc_32_user (C function)c.vmalloc_32_userhNtauh1hhj_hhhNhNubh)}(hhh](h)}(h+void * vmalloc_32_user (unsigned long size)h]h)}(h)void *vmalloc_32_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.chMrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMrubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMrubh)}(hvmalloc_32_userh]h)}(hvmalloc_32_userh]hvmalloc_32_user}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMrubj)}(h(unsigned long size)h]j)}(hunsigned long sizeh](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&]uh1jhj0ubh)}(hsizeh]hsize}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,ubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMrubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMrubah}(h]j݀ah ](jjeh"]h$]h&]jj)jhuh1hhjhMrhj߀hhubj )}(hhh]j9)}(h1allocate zeroed virtually contiguous 32bit memoryh]h1allocate zeroed virtually contiguous 32bit memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMrhjhhubah}(h]h ]h"]h$]h&]uh1jhj߀hhhjhMrubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMvhjubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjׁh]hunsigned long size}(hjفhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjՁubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMshjсubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMshjubah}(h]h ]h"]h$]h&]uh1jhjсubeh}(h]h ]h"]h$]h&]uh1jhjhMshj΁ubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMuhjubj9)}(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.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMthjubj9)}(h **Return**h]jz)}(hj9h]hReturn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMwhjubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjOhhhNhNubj?)}(h``NULL``h]hNULL}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjOubh on error}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ remap_vmalloc_range (C function)c.remap_vmalloc_rangehNtauh1hhj_hhhNhNubh)}(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}(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&]uh1jhjhhhjhMubh)}(hremap_vmalloc_rangeh]h)}(hremap_vmalloc_rangeh]hremap_vmalloc_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h=(struct vm_area_struct *vma, void *addr, unsigned long pgoff)h](j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hj͂hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjɂubj)}(h h]h }(hjڂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɂubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.remap_vmalloc_rangeasbuh1hhjɂubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɂubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjɂubh)}(hvmah]hvma}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjɂubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjłubj)}(h void *addrh](j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2 )}(hj5 h]h*}(hj[hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj;ubh)}(haddrh]haddr}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjłubj)}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubh)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjłubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hmap vmalloc pages to userspaceh]hmap vmalloc pages to userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhj_hNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(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]j?)}(hj$h]hstruct vm_area_struct *vma}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]j9)}(h$vma to cover (map full range of vma)h]h$vma to cover (map full range of vma)}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubj)}(h``void *addr`` vmalloc memory h](j)}(h``void *addr``h]j?)}(hj]h]h void *addr}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj[ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjWubj)}(hhh]j9)}(hvmalloc memoryh]hvmalloc memory}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjubj)}(hK``unsigned long pgoff`` number of pages into addr before first page to map h](j)}(h``unsigned long pgoff``h]j?)}(hjh]hunsigned long pgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Return**h]jz)}(hjфh]hReturn}(hjӄhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjτubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj9)}(h0 for success, -Exxx on failureh]h0 for success, -Exxx on failure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj9)}(hThis function checks that addr is a valid vmalloc'ed area, and that it is big enough to cover the vma. Will return failure if that criteria isn't met.h]hThis function checks that addr is a valid vmalloc’ed area, and that it is big enough to cover the vma. Will return failure if that criteria isn’t met.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj9)}(h.Similar to remap_pfn_range() (see mm/memory.c)h]h.Similar to remap_pfn_range() (see mm/memory.c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johj_hhhNhNubeh}(h]virtually-contiguous-mappingsah ]h"]virtually contiguous mappingsah$]h&]uh1hhhhhhhhK2ubh)}(hhh](h)}(hFile Mapping and Page Cacheh]hFile Mapping and Page Cache}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hhhhhK8ubh)}(hhh](h)}(hFilemaph]hFilemap}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhhhhhK;ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#filemap_fdatawrite_wbc (C function)c.filemap_fdatawrite_wbchNtauh1hhjLhhhNhNubh)}(hhh](h)}(hYint filemap_fdatawrite_wbc (struct address_space *mapping, struct writeback_control *wbc)h]h)}(hXint filemap_fdatawrite_wbc(struct address_space *mapping, struct writeback_control *wbc)h](j)}(hinth]hint}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMoubh)}(hfilemap_fdatawrite_wbch]h)}(hfilemap_fdatawrite_wbch]hfilemap_fdatawrite_wbc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjrhhhjhMoubj)}(h>(struct address_space *mapping, struct writeback_control *wbc)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjхhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj΅ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjӅmodnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_fdatawrite_wbcasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct writeback_control *wbch](j!)}(hj$h]hstruct}(hj%hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]h)}(hwriteback_controlh]hwriteback_control}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjEmodnameN classnameNj\j_)}jb]jc.filemap_fdatawrite_wbcasbuh1hhj!ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2 )}(hj5 h]h*}(hjohhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj!ubh)}(hwbch]hwbc}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjrhhhjhMoubeh}(h]h ]h"]h$]h&]jj juh1hjjhjnhhhjhMoubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhMohjkhhubj )}(hhh]j9)}(h/start writeback on mapping dirty pages in rangeh]h/start writeback on mapping dirty pages in range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMohjhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMoubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(hXG**Parameters** ``struct address_space *mapping`` address space structure to write ``struct writeback_control *wbc`` the writeback_control controlling the writeout **Description** Call writepages on the mapping using the provided wbc to control the writeout. **Return** ``0`` on success, negative error code otherwise.h](j9)}(h**Parameters**h]jz)}(hjȆh]h Parameters}(hjʆhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjƆubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMshj†ubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMphjubj)}(hhh]j9)}(h address space structure to writeh]h address space structure to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMphjކubj)}(hQ``struct writeback_control *wbc`` the writeback_control controlling the writeout h](j)}(h!``struct writeback_control *wbc``h]j?)}(hj h]hstruct writeback_control *wbc}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMqhjubj)}(hhh]j9)}(h.the writeback_control controlling the writeouth]h.the writeback_control controlling the writeout}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5hMqhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMqhjކubeh}(h]h ]h"]h$]h&]uh1jhj†ubj9)}(h**Description**h]jz)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMshj†ubj9)}(hNCall writepages on the mapping using the provided wbc to control the writeout.h]hNCall writepages on the mapping using the provided wbc to control the writeout.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMrhj†ubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMuhj†ubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMvhj†ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*filemap_fdatawrite_range_kick (C function)c.filemap_fdatawrite_range_kickhNtauh1hhjLhhhNhNubh)}(hhh](h)}(h[int filemap_fdatawrite_range_kick (struct address_space *mapping, loff_t start, loff_t end)h]h)}(hZint filemap_fdatawrite_range_kick(struct address_space *mapping, loff_t start, loff_t end)h](j)}(hinth]hint}(hjՇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjчhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjчhhhjhMubh)}(hfilemap_fdatawrite_range_kickh]h)}(hfilemap_fdatawrite_range_kickh]hfilemap_fdatawrite_range_kick}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjчhhhjhMubj)}(h9(struct address_space *mapping, loff_t start, loff_t end)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2modnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_fdatawrite_range_kickasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj^hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(h loff_t starth](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jLc.filemap_fdatawrite_range_kickasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(h loff_t endh](h)}(hhh]h)}(hloff_th]hloff_t}(hjψhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj̈ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjшmodnameN classnameNj\j_)}jb]jLc.filemap_fdatawrite_range_kickasbu&h1hhjȈubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȈubh)}(hendh]hend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjȈubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhjчhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj͇hhhjhMubah}(h]jȇah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjʇhhubj )}(hhh]j9)}(hstart writeback on a rangeh]hstart writeback on a range}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj"hhubah}(h]h ]h"]h$]h&]uh1jhjʇhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j=j4j=j5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjAubj)}(hhh](j)}(h7``struct address_space *mapping`` target address_space h](j)}(h!``struct address_space *mapping``h]j?)}(hjfh]hstruct address_space *mapping}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjdubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj`ubj)}(hhh]j9)}(htarget address_spaceh]htarget address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj{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]j?)}(hjh]h loff_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hindex to start writeback onh]hindex to start writeback on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj]ubj)}(h4``loff_t end`` last (inclusive) index for writeback h](j)}(h``loff_t end``h]j?)}(hj؉h]h loff_t end}(hjډhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj։ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj҉ubj)}(hhh]j9)}(h$last (inclusive) index for writebackh]h$last (inclusive) index for writeback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj҉ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjAubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjAubj9)}(h **Return**h]jz)}(hj:h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj8ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjAubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPubh+ on success, negative error code otherwise.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_flush (C function)c.filemap_flushhNtauh1hhjLhhhNhNubh)}(hhh](h)}(h1int filemap_flush (struct address_space *mapping)h]h)}(h0int filemap_flush(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.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h filemap_flushh]h)}(h filemap_flushh]h filemap_flush}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(struct address_space *mapping)h]j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjʊhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjƊubj)}(h h]h }(hj׊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƊubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_flushasbuh1hhjƊubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƊubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjƊubh)}(hmappingh]hmapping}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjƊubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjŠubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hmostly a non-blocking flushh]hmostly a non-blocking flush}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjJhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jej4jej5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjmubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjiubj)}(hhh]j)}(h7``struct address_space *mapping`` target address_space h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(htarget address_spaceh]htarget address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubj9)}(h**Description**h]jz)}(hjɋh]h Description}(hjˋhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjiubj9)}(hThis is a mostly non-blocking flush. Not suitable for data-integrity purposes - I/O may not be started against all dirty pages.h]hThis is a mostly non-blocking flush. Not suitable for data-integrity purposes - I/O may not be started against all dirty pages.}(hjߋhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjiubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjiubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#filemap_range_has_page (C function)c.filemap_range_has_pagehNtauh1hhjLhhhNhNubh)}(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}(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 }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjPhMubh)}(hfilemap_range_has_pageh]h)}(hfilemap_range_has_pageh]hfilemap_range_has_page}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj?hhhjPhMubj)}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjesbc.filemap_range_has_pageasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj2 )}(hj5 h]h*}(hjˌhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj{ubh)}(hmappingh]hmapping}(hj،hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjwubj)}(hloff_t start_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_range_has_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h start_byteh]h start_byte}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjwubj)}(hloff_t end_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj>modnameN classnameNj\j_)}jb]jc.filemap_range_has_pageasbuh1hhj5ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hend_byteh]hend_byte}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjwubeh}(h]h ]h"]h$]h&]jj uh1jhj?hhhjPhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj;hhhjPhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhj8hhubj )}(hhh]j9)}(h check if a page exists in range.h]h check if a page exists in range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjPhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(hF``struct address_space *mapping`` address space within which to check h](j)}(h!``struct address_space *mapping``h]j?)}(hjӍh]hstruct address_space *mapping}(hjՍhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjэubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj͍ubj)}(hhh]j9)}(h#address space within which to checkh]h#address space within which to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj͍ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjʍubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]j?)}(hj h]hloff_t start_byte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjʍubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]j?)}(hjEh]hloff_t end_byte}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj?ubj)}(hhh]j9)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjʍubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(hQ``true`` if at least one page exists in the specified range, ``false`` otherwise.h](j?)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh5 if at least one page exists in the specified range, }(hjhhhNhNubj?)}(h ``false``h]hfalse}(hjӎhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$filemap_fdatawait_range (C function)c.filemap_fdatawait_rangehNtauh1hhjLhhhNhNubh)}(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}(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_fdatawait_rangeh]h)}(hfilemap_fdatawait_rangeh]hfilemap_fdatawait_range}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM#ubj)}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjIhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]h)}(h address_spaceh]h address_space}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjimodnameN classnameNj\j_)}jb]je)}jXj/sbc.filemap_fdatawait_rangeasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjEubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAubj)}(hloff_t start_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hj܏hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h start_byteh]h start_byte}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAubj)}(hloff_t end_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hend_byteh]hend_byte}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM#ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM#ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM#hjhhubj )}(hhh]j9)}(hwait for writeback to completeh]hwait for writeback to complete}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM#hjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM#ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jtj4jtj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM'hjxubj)}(hhh](j)}(hF``struct address_space *mapping`` address space structure to wait for h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM$hjubj)}(hhh]j9)}(h#address space structure to wait forh]h#address space structure to wait for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]j?)}(hj֐h]hloff_t start_byte}(hjؐhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjԐubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM%hjАubj)}(hhh]j9)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjАubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]j?)}(hjh]hloff_t end_byte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM&hj ubj)}(hhh]j9)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj$hM&hj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM&hjubeh}(h]h ]h"]h$]h&]uh1jhjxubj9)}(h**Description**h]jz)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM(hjxubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM'hjxubj9)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM+hjxubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM/hjxubj9)}(h"error status of the address space.h]h"error status of the address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM0hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ0filemap_fdatawait_range_keep_errors (C function)%c.filemap_fdatawait_range_keep_errorshNtauh1hhjLhhhNhNubh)}(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}(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 }(hjԑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjӑhM;ubh)}(h#filemap_fdatawait_range_keep_errorsh]h)}(h#filemap_fdatawait_range_keep_errorsh]h#filemap_fdatawait_range_keep_errors}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjӑhM;ubj)}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj"modnameN classnameNj\j_)}jb]je)}jXjsb%c.filemap_fdatawait_range_keep_errorsasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjNhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hloff_t start_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjymodnameN classnameNj\j_)}jb]j<%c.filemap_fdatawait_range_keep_errorsasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(h start_byteh]h start_byte}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hloff_t end_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j<%c.filemap_fdatawait_range_keep_errorsasbuh1hhjubj)}(h h]h }(hjݒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hend_byteh]hend_byte}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjӑhM;ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjӑhM;ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjӑhM;hjhhubj )}(hhh]j9)}(hwait for writeback to completeh]hwait for writeback to complete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM;hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjӑhM;ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j-j4j-j5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM?hj1ubj)}(hhh](j)}(hF``struct address_space *mapping`` address space structure to wait for h](j)}(h!``struct address_space *mapping``h]j?)}(hjVh]hstruct address_space *mapping}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjTubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM<hjPubj)}(hhh]j9)}(h#address space structure to wait forh]h#address space structure to wait for}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhM<hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM<hjMubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]j?)}(hjh]hloff_t start_byte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM=hjubj)}(hhh]j9)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjMubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]j?)}(hjȓh]hloff_t end_byte}(hjʓhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjƓubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM>hj“ubj)}(hhh]j9)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjݓhM>hjޓubah}(h]h ]h"]h$]h&]uh1jhj“ubeh}(h]h ]h"]h$]h&]uh1jhjݓhM>hjMubeh}(h]h ]h"]h$]h&]uh1jhj1ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM@hj1ubj9)}(hWalk the list of under-writeback pages of the given address space in the given range and wait for all of them. Unlike filemap_fdatawait_range(), this function does not clear error status of the address space.h]hWalk the list of under-writeback pages of the given address space in the given range and wait for all of them. Unlike filemap_fdatawait_range(), this function does not clear error status of the address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM?hj1ubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMChj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!file_fdatawait_range (C function)c.file_fdatawait_rangehNtauh1hhjLhhhNhNubh)}(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}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMQubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjehMQubh)}(hfile_fdatawait_rangeh]h)}(hfile_fdatawait_rangeh]hfile_fdatawait_range}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ](jjeh"]h$]h&]jj uh1hhjShhhjehMQubj)}(h7(struct file *file, loff_t start_byte, loff_t end_byte)h](j)}(hstruct file *fileh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjzsbc.file_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hjҔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hloff_t start_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]jΔc.file_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h start_byteh]h start_byte}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hloff_t end_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjSmodnameN classnameNj\j_)}jb]jΔc.file_fdatawait_rangeasbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hend_byteh]hend_byte}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjShhhjehMQubeh}(h]h ]h"]h$]h&]jj juh1hjjhjOhhhjehMQubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjehMQhjLhhubj )}(hhh]j9)}(hwait for writeback to completeh]hwait for writeback to complete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMQhjhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjehMQubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjɕh]h Parameters}(hj˕hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjǕubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMUhjÕubj)}(hhh](j)}(hK``struct file *file`` file pointing to address space structure to wait for h](j)}(h``struct file *file``h]j?)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMRhjubj)}(hhh]j9)}(h4file pointing to address space structure to wait forh]h4file pointing to address space structure to wait for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjߕubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]j?)}(hj!h]hloff_t start_byte}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMShjubj)}(hhh]j9)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hMShj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMShjߕubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]j?)}(hjZh]hloff_t end_byte}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjXubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMThjTubj)}(hhh]j9)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjohMThjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMThjߕubeh}(h]h ]h"]h$]h&]uh1jhjÕubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMVhjÕubj9)}(hWalk the list of under-writeback pages of the address space that file refers to, in the given range and wait for all of them. Check error status of the address space vs. the file->f_wb_err cursor and return it.h]hWalk the list of under-writeback pages of the address space that file refers to, in the given range and wait for all of them. Check error status of the address space vs. the file->f_wb_err cursor and return it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMUhjÕubj9)}(hSince the error status of the file is advanced by this function, callers are responsible for checking the return value and handling and/or reporting the error.h]hSince the error status of the file is advanced by this function, callers are responsible for checking the return value and handling and/or reporting the error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMYhjÕubj9)}(h **Return**h]jz)}(hj˖h]hReturn}(hj͖hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjɖubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM]hjÕubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM^hjÕubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*filemap_fdatawait_keep_errors (C function)c.filemap_fdatawait_keep_errorshNtauh1hhjLhhhNhNubh)}(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&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMjubh)}(hfilemap_fdatawait_keep_errorsh]h)}(hfilemap_fdatawait_keep_errorsh]hfilemap_fdatawait_keep_errors}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhjhMjubj)}(h(struct address_space *mapping)h]j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjMhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]h)}(h address_spaceh]h address_space}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmmodnameN classnameNj\j_)}jb]je)}jXj3sbc.filemap_fdatawait_keep_errorsasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjIubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjEubah}(h]h ]h"]h$]h&]jj uh1jhj hhhjhMjubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMjubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMjhjhhubj )}(hhh]j9)}(h*wait for writeback without clearing errorsh]h*wait for writeback without clearing errors}(hjЗhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMjhj͗hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMjubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMnhjubj)}(hhh]j)}(hF``struct address_space *mapping`` address space structure to wait for h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMkhj ubj)}(hhh]j9)}(h#address space structure to wait forh]h#address space structure to wait for}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj&hMkhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMkhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMmhjubj9)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMlhjubj9)}(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)}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMphjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMthjubj9)}(h"error status of the address space.h]h"error status of the address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMuhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)filemap_write_and_wait_range (C function)c.filemap_write_and_wait_rangehNtauh1hhjLhhhNhNubh)}(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}(hjǘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjØhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj֘hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjØhhhj՘hMubh)}(hfilemap_write_and_wait_rangeh]h)}(hfilemap_write_and_wait_rangeh]hfilemap_write_and_wait_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjØhhhj՘hMubj)}(h;(struct address_space *mapping, loff_t lstart, loff_t lend)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj$modnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjPhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t lstarth](h)}(hhh]h)}(hloff_th]hloff_t}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{modnameN classnameNj\j_)}jb]j>c.filemap_write_and_wait_rangeasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hlstarth]hlstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t lendh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjÙmodnameN classnameNj\j_)}jb]j>c.filemap_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hjߙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hlendh]hlend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjØhhhj՘hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj՘hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj՘hMhjhhubj )}(hhh]j9)}(h write out & wait on a file rangeh]h write out & wait on a file range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj՘hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j/j4j/j5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj3ubj)}(hhh](j)}(hB``struct address_space *mapping`` the address_space for the pages h](j)}(h!``struct address_space *mapping``h]j?)}(hjXh]hstruct address_space *mapping}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjRubj)}(hhh]j9)}(hthe address_space for the pagesh]hthe address_space for the pages}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(h9``loff_t lstart`` offset in bytes where the range starts h](j)}(h``loff_t lstart``h]j?)}(hjh]h loff_t lstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(hA``loff_t lend`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t lend``h]j?)}(hjʚh]h loff_t lend}(hj̚hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjȚubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjĚubj)}(hhh]j9)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjߚhMhjubah}(h]h ]h"]h$]h&]uh1jhjĚubeh}(h]h ]h"]h$]h&]uh1jhjߚhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj3ubj9)}(h=Write out and wait upon file offsets lstart->lend, inclusive.h]h=Write out and wait upon file offsets lstart->lend, inclusive.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj3ubj9)}(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*hhhNhNubjz)}(h**lend**h]hlend}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj3ubj9)}(h **Return**h]jz)}(hjMh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj3ubj9)}(h"error status of the address space.h]h"error status of the address space.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*file_check_and_advance_wb_err (C function)c.file_check_and_advance_wb_errhNtauh1hhjLhhhNhNubh)}(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}(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)}(hfile_check_and_advance_wb_errh]h)}(hfile_check_and_advance_wb_errh]hfile_check_and_advance_wb_err}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j!)}(hj$h]hstruct}(hjϛhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj˛ubj)}(h h]h }(hjܛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˛ubh)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.file_check_and_advance_wb_errasbuh1hhj˛ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˛ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj˛ubh)}(hfileh]hfile}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj˛ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjǛubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(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}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jjj4jjj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjnubj)}(hhh]j)}(hG``struct file *file`` struct file on which the error is being reported h](j)}(h``struct file *file``h]j?)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h0struct file on which the error is being reportedh]h0struct file on which the error is being reported}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubj9)}(h**Description**h]jz)}(hjΜh]h Description}(hjМhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj̜ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjnubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjnubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjnubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjnubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjnubj9)}(h **Return**h]jz)}(hj"h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjnubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8ubh+ on success, negative error code otherwise.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&file_write_and_wait_range (C function)c.file_write_and_wait_rangehNtauh1hhjLhhhNhNubh)}(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}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhMubh)}(hfile_write_and_wait_rangeh]h)}(hfile_write_and_wait_rangeh]hfile_write_and_wait_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjqhhhjhMubj)}(h/(struct file *file, loff_t lstart, loff_t lend)h](j)}(hstruct file *fileh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfileh]hfile}(hjНhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj͝ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjҝmodnameN classnameNj\j_)}jb]je)}jXjsbc.file_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t lstarth](h)}(hhh]h)}(hloff_th]hloff_t}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj)modnameN classnameNj\j_)}jb]jc.file_write_and_wait_rangeasbuh1hhj ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hlstarth]hlstart}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t lendh](h)}(hhh]h)}(hloff_th]hloff_t}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjqmodnameN classnameNj\j_)}jb]jc.file_write_and_wait_rangeasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hlendh]hlend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjqhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjjhhubj )}(hhh]j9)}(h write out & wait on a file rangeh]h write out & wait on a file range}(hjŞhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjžhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jݞj4jݞj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/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]j?)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h)file pointing to address_space with pagesh]h)file pointing to address_space with pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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]j?)}(hj?h]h loff_t lstart}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj=ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj9ubj)}(hhh]j9)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubj)}(hA``loff_t lend`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t lend``h]j?)}(hjxh]h loff_t lend}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjrubj)}(hhh]j9)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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؟hhhNhNubjz)}(h**lend**h]hlend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj؟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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj9)}(h **Return**h]jz)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubh+ on success, negative error code otherwise.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%replace_page_cache_folio (C function)c.replace_page_cache_foliohNtauh1hhjLhhhNhNubh)}(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&]uh1jhjYhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM(ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhM(ubh)}(hreplace_page_cache_folioh]h)}(hreplace_page_cache_folioh]hreplace_page_cache_folio}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ](jjeh"]h$]h&]jj uh1hhjYhhhjkhM(ubj)}(h&(struct folio *old, struct folio *new)h](j)}(hstruct folio *oldh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.replace_page_cache_folioasbuh1hhjubj)}(h h]h }(hjؠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(holdh]hold}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct folio *newh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj,modnameN classnameNj\j_)}jb]jԠc.replace_page_cache_folioasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hnewh]hnew}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjYhhhjkhM(ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjUhhhjkhM(ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjkhM(hjRhhubj )}(hhh]j9)}(h(replace a pagecache folio with a new oneh]h(replace a pagecache folio with a new one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM(hjhhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjkhM(ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM,hjubj)}(hhh](j)}(h+``struct folio *old`` folio to be replaced h](j)}(h``struct folio *old``h]j?)}(hjΡh]hstruct folio *old}(hjСhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj̡ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM)hjȡubj)}(hhh]j9)}(hfolio to be replacedh]hfolio to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjȡubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjšubj)}(h,``struct folio *new`` folio to replace with h](j)}(h``struct folio *new``h]j?)}(hjh]hstruct folio *new}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM*hjubj)}(hhh]j9)}(hfolio to replace withh]hfolio to replace with}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjšubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM,hjubj9)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM+hjubj9)}(h7The remove + add is atomic. This function cannot fail.h]h7The remove + add is atomic. This function cannot fail.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_unlock (C function)c.folio_unlockhNtauh1hhjLhhhNhNubh)}(hhh](h)}(h'void folio_unlock (struct folio *folio)h]h)}(h&void folio_unlock(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)}(h folio_unlockh]h)}(h folio_unlockh]h folio_unlock}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjӢhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjϢubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϢubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_unlockasbuh1hhjϢubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϢubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjϢubh)}(hfolioh]hfolio}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjϢubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjˢubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hUnlock a locked folio.h]hUnlock a locked folio.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jnj4jnj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjrubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubj9)}(h**Description**h]jz)}(hjңh]h Description}(hjԣhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjУubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjrubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjrubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjrubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_end_read (C function)c.folio_end_readhNtauh1hhjLhhhNhNubh)}(hhh](h)}(h7void folio_end_read (struct folio *folio, bool success)h]h)}(h6void folio_end_read(struct folio *folio, bool success)h](j)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjLhMubh)}(hfolio_end_readh]h)}(hfolio_end_readh]hfolio_end_read}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj:hhhjLhMubj)}(h#(struct folio *folio, bool success)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj{hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjasbc.folio_end_readasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2 )}(hj5 h]h*}(hjǤhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjwubh)}(hfolioh]hfolio}(hjԤhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjsubj)}(h bool successh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsuccessh]hsuccess}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjsubeh}(h]h ]h"]h$]h&]jj uh1jhj:hhhjLhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj6hhhjLhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhj3hhubj )}(hhh]j9)}(hEnd read on a folio.h]hEnd read on a folio.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj/hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jJj4jJj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjNubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjsh]hstruct folio *folio}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjqubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjmubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubj)}(h;``bool success`` True if all reads completed successfully. h](j)}(h``bool success``h]j?)}(hjh]h bool success}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h)True if all reads completed successfully.h]h)True if all reads completed successfully.}(hjťhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhj¥ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjNubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjNubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjNubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_end_private_2 (C function)c.folio_end_private_2hNtauh1hhjLhhhNhNubh)}(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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjahMubh)}(hfolio_end_private_2h]h)}(hfolio_end_private_2h]hfolio_end_private_2}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubah}(h]h ](jjeh"]h$]h&]jj uh1hhjOhhhjahMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjvsbc.folio_end_private_2asbuh1hhjubj)}(h h]h }(hjΦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjܦhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjahMhjHhhubj )}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j+j4j+j5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubah}(h]h ]h"]h$]h&]uh1j8hL/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]j?)}(hjTh]hstruct folio *folio}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjNubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj/ubj9)}(hClear the PG_private_2 bit on a folio and wake up any sleepers waiting for it. The folio reference held for PG_private_2 being set is released.h]hClear the PG_private_2 bit on a folio and wake up any sleepers waiting for it. The folio reference held for PG_private_2 being set is released.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj/ubj9)}(hThis is, for example, used when a netfs folio is being written to a local disk cache, thereby allowing writes to the cache for the same folio to be serialised.h]hThis is, for example, used when a netfs folio is being written to a local disk cache, thereby allowing writes to the cache for the same folio to be serialised.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!folio_wait_private_2 (C function)c.folio_wait_private_2hNtauh1hhjLhhhNhNubh)}(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&]uh1jhjߧhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߧhhhjhMubh)}(hfolio_wait_private_2h]h)}(hfolio_wait_private_2h]hfolio_wait_private_2}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjߧhhhjhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj@modnameN classnameNj\j_)}jb]je)}jXjsbc.folio_wait_private_2asbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjlhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjߧhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjۧhhhjhMubah}(h]j֧ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjاhhubj )}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjاhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(h**Parameters** ``struct folio *folio`` The folio to wait on. **Description** Wait for PG_private_2 to be cleared on a folio.h](j9)}(h**Parameters**h]jz)}(hjŨh]h Parameters}(hjǨhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjèubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j)}(h.``struct folio *folio`` The folio to wait on. h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjިubj)}(hhh]j9)}(hThe folio to wait on.h]hThe folio to wait on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjިubeh}(h]h ]h"]h$]h&]uh1jhjhMhjۨubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*folio_wait_private_2_killable (C function)c.folio_wait_private_2_killablehNtauh1hhjLhhhNhNubh)}(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}(hjdhhhNhNubah}(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 }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjrhM ubh)}(hfolio_wait_private_2_killableh]h)}(hfolio_wait_private_2_killableh]hfolio_wait_private_2_killable}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj`hhhjrhM ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_wait_private_2_killableasbuh1hhjubj)}(h h]h }(hjߩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhj`hhhjrhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj\hhhjrhM ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjrhM hjYhhubj )}(hhh]j9)}(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.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj!hhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjrhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j<j4j<j5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM$hj@ubj)}(hhh]j)}(h.``struct folio *folio`` The folio to wait on. h](j)}(h``struct folio *folio``h]j?)}(hjeh]hstruct folio *folio}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjcubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM!hj_ubj)}(hhh]j9)}(hThe folio to wait on.h]hThe folio to wait on.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjzhM!hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhM!hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM#hj@ubj9)}(hgWait for PG_private_2 to be cleared on a folio or until a fatal signal is received by the calling task.h]hgWait for PG_private_2 to be cleared on a folio or until a fatal signal is received by the calling task.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM"hj@ubj9)}(h **Return**h]jz)}(hjǪh]hReturn}(hjɪhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjŪubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM%hj@ubh bullet_list)}(hhh](j+)}(h0 if successful.h]j9)}(hjh]h0 if successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM&hjubah}(h]h ]h"]h$]h&]uh1j+hjߪubj+)}(h)-EINTR if a fatal signal was encountered.h]j9)}(hjh]h)-EINTR if a fatal signal was encountered.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM'hjubah}(h]h ]h"]h$]h&]uh1j+hjߪubeh}(h]h ]h"]h$]h&]bullet-uh1jݪhjhM&hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_end_writeback (C function)c.folio_end_writebackhNtauh1hhjLhhhNhNubh)}(hhh](h)}(h.void folio_end_writeback (struct folio *folio)h]h)}(h-void folio_end_writeback(struct folio *folio)h](j)}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM^ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhjHhM^ubh)}(hfolio_end_writebackh]h)}(hfolio_end_writebackh]hfolio_end_writeback}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ](jjeh"]h$]h&]jj uh1hhj6hhhjHhM^ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjwhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj]sbc.folio_end_writebackasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2 )}(hj5 h]h*}(hjëhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjsubh)}(hfolioh]hfolio}(hjЫhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubah}(h]h ]h"]h$]h&]jj uh1jhj6hhhjHhM^ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj2hhhjHhM^ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhjHhM^hj/hhubj )}(hhh]j9)}(hEnd writeback against a folio.h]hEnd writeback against a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM^hjhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhM^ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMbhjubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj;h]hstruct folio *folio}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM_hj5ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhM_hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhM_hj2ubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjvh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMahjubj9)}(h+The folio must actually be under writeback.h]h+The folio must actually be under writeback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM`hjubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMbhjubj9)}(h0May be called from process or interrupt context.h]h0May be called from process or interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMchjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__folio_lock (C function)c.__folio_lockhNtauh1hhjLhhhNhNubh)}(hhh](h)}(h'void __folio_lock (struct folio *folio)h]h)}(h&void __folio_lock(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjެhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjެhhhjhMubh)}(h __folio_lockh]h)}(h __folio_lockh]h __folio_lock}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjެhhhjhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj?modnameN classnameNj\j_)}jb]je)}jXjsbc.__folio_lockasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjkhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjެhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjڬhhhjhMubah}(h]jլah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj׬hhubj )}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj׬hhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(h;**Parameters** ``struct folio *folio`` The folio to lockh](j9)}(h**Parameters**h]jz)}(hjĭh]h Parameters}(hjƭhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj­ubah}(h]h ]h"]h$]h&]uh1j8hL/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]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjݭubj)}(hhh]j9)}(hThe folio to lockh]hThe folio to lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubah}(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&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!page_cache_next_miss (C function)c.page_cache_next_misshNtauh1hhjLhhhNhNubh)}(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]h)}(hpgoff_th]hpgoff_t}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjBmodnameN classnameNj\j_)}jb]je)}jXpage_cache_next_misssbc.page_cache_next_missasbuh1hhj9hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjahMubh)}(hpage_cache_next_missh]h)}(hj^h]hpage_cache_next_miss}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubah}(h]h ](jjeh"]h$]h&]jj uh1hhj9hhhjahMubj)}(hF(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j\c.page_cache_next_missasbuh1hhjubj)}(h h]h }(hjˮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjٮhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j\c.page_cache_next_missasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hindexh]hindex}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long max_scanh](j)}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hlongh]hlong}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hmax_scanh]hmax_scan}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj9hhhjahMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj5hhhjahMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjahMhj2hhubj )}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjahMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj˯h]h Parameters}(hjͯhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjɯubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjůubj)}(hhh](j)}(h+``struct address_space *mapping`` Mapping. h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hMapping.h]hMapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``pgoff_t index`` Index. h](j)}(h``pgoff_t index``h]j?)}(hj#h]h pgoff_t index}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj!ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hIndex.h]hIndex.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(h4``unsigned long max_scan`` Maximum range to search. h](j)}(h``unsigned long max_scan``h]j?)}(hj\h]hunsigned long max_scan}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjZubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjVubj)}(hhh]j9)}(hMaximum range to search.h]hMaximum range to search.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubeh}(h]h ]h"]h$]h&]uh1jhjůubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjůubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjůubj9)}(hXJThis function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 5, then subsequently a gap is created at index 10, page_cache_next_miss covering both indices may return 10 if called under the rcu_read_lock.h]hXJThis function may be called under the rcu_read_lock. However, this will not atomically search a snapshot of the cache at a single point in time. For example, if a gap is created at index 5, then subsequently a gap is created at index 10, page_cache_next_miss covering both indices may return 10 if called under the rcu_read_lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjůubj9)}(h **Return**h]jz)}(hjͰh]hReturn}(hjϰhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj˰ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjůubj9)}(hThe index of the gap if found, otherwise an index outside the range specified (in which case 'return - index >= max_scan' will be true). In the rare case of index wrap-around, 0 will be returned.h]hThe index of the gap if found, otherwise an index outside the range specified (in which case ‘return - index >= max_scan’ will be true). In the rare case of index wrap-around, 0 will be returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjůubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!page_cache_prev_miss (C function)c.page_cache_prev_misshNtauh1hhjLhhhNhNubh)}(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]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXpage_cache_prev_misssbc.page_cache_prev_missasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj6hMubh)}(hpage_cache_prev_missh]h)}(hj3h]hpage_cache_prev_miss}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj6hMubj)}(hF(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjdhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j1c.page_cache_prev_missasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj`ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjױhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjԱubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjٱmodnameN classnameNj\j_)}jb]j1c.page_cache_prev_missasbuh1hhjбubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjбubh)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjбubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubj)}(hunsigned long max_scanh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hmax_scanh]hmax_scan}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj6hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj6hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj6hMhjhhubj )}(hhh]j9)}(h(Find the previous gap in the page cache.h]h(Find the previous gap in the page cache.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj{hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/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]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hMapping.h]hMapping.}(hjزhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjԲhMhjղubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԲhMhjubj)}(h``pgoff_t index`` Index. h](j)}(h``pgoff_t index``h]j?)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hIndex.h]hIndex.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h4``unsigned long max_scan`` Maximum range to search. h](j)}(h``unsigned long max_scan``h]j?)}(hj1h]hunsigned long max_scan}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj+ubj)}(hhh]j9)}(hMaximum range to search.h]hMaximum range to search.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(hThe index of the gap if found, otherwise an index outside the range specified (in which case 'index - return >= max_scan' will be true). In the rare case of wrap-around, ULONG_MAX will be returned.h]hThe index of the gap if found, otherwise an index outside the range specified (in which case ‘index - return >= max_scan’ will be true). In the rare case of wrap-around, ULONG_MAX will be returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ __filemap_get_folio (C function)c.__filemap_get_foliohNtauh1hhjLhhhNhNubh)}(hhh](h)}(hmstruct folio * __filemap_get_folio (struct address_space *mapping, pgoff_t index, fgf_t fgp_flags, gfp_t gfp)h]h)}(hkstruct folio *__filemap_get_folio(struct address_space *mapping, pgoff_t index, fgf_t fgp_flags, gfp_t gfp)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMgubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jX__filemap_get_foliosbc.__filemap_get_folioasbuh1hhjhhhjhMgubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMgubj2 )}(hj5 h]h*}(hj5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMgubh)}(h__filemap_get_folioh]h)}(hj$h]h__filemap_get_folio}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMgubj)}(hJ(struct address_space *mapping, pgoff_t index, fgf_t fgp_flags, gfp_t gfp)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjahhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j"c.__filemap_get_folioasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj]ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjYubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjԴhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjѴubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjִmodnameN classnameNj\j_)}jb]j"c.__filemap_get_folioasbuh1hhjʹubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʹubh)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjʹubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjYubj)}(hfgf_t fgp_flagsh](h)}(hhh]h)}(hfgf_th]hfgf_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j"c.__filemap_get_folioasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h fgp_flagsh]h fgp_flags}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjYubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjfmodnameN classnameNj\j_)}jb]j"c.__filemap_get_folioasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjYubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMgubeh}(h]h ]h"]h$]h&]jj juh1hjjhj߳hhhjhMgubah}(h]jڳah ](jjeh"]h$]h&]jj)jhuh1hhjhMghjܳhhubj )}(hhh]j9)}(h$Find and get a reference to a folio.h]h$Find and get a reference to a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMghjhhubah}(h]h ]h"]h$]h&]uh1jhjܳhhhjhMgubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jҵj4jҵj5j6j7uh1hhhhjLhNhNubjp)}(hXk**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. **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](j9)}(h**Parameters**h]jz)}(hjܵh]h Parameters}(hj޵hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjڵubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMkhjֵubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhhjubj)}(hhh]j9)}(hThe address_space to search.h]hThe address_space to search.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]j?)}(hj4h]h pgoff_t index}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMihj.ubj)}(hhh]j9)}(hThe page index.h]hThe page index.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhMihjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMihjubj)}(hD``fgf_t fgp_flags`` ``FGP`` flags modify how the folio is returned. h](j)}(h``fgf_t fgp_flags``h]j?)}(hjmh]hfgf_t fgp_flags}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMjhjgubj)}(hhh]j9)}(h/``FGP`` flags modify how the folio is returned.h](j?)}(h``FGP``h]hFGP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh( flags modify how the folio is returned.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubj)}(hL``gfp_t gfp`` Memory allocation flags to use if ``FGP_CREAT`` is specified. h](j)}(h ``gfp_t gfp``h]j?)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMkhjubj)}(hhh]j9)}(h=Memory allocation flags to use if ``FGP_CREAT`` is specified.h](h"Memory allocation flags to use if }(hjͶhhhNhNubj?)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjնhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjͶubh is specified.}(hjͶhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjɶhMkhjʶubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɶhMkhjubeh}(h]h ]h"]h$]h&]uh1jhjֵubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMmhjֵubj9)}(h9Looks up the page cache entry at **mapping** & **index**.h](h!Looks up the page cache entry at }(hjhhhNhNubjz)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh & }(hjhhhNhNubjz)}(h **index**h]hindex}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMlhjֵubj9)}(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 }(hjJhhhNhNubj?)}(h ``FGP_LOCK``h]hFGP_LOCK}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubh or }(hjJhhhNhNubj?)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubh7 are specified then the function may sleep even if the }(hjJhhhNhNubj?)}(h``GFP``h]hGFP}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubh flags specified for }(hjJhhhNhNubj?)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubh are atomic.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMnhjֵubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMqhjֵubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMshjֵubj9)}(h*The found folio or an ERR_PTR() otherwise.h]h*The found folio or an ERR_PTR() otherwise.}(hjȷhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMthjֵubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_get_folios (C function)c.filemap_get_folioshNtauh1hhjLhhhNhNubh)}(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]h)}(hfilemap_get_foliosh]hfilemap_get_folios}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hX(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj4hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjTmodnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_get_foliosasbuh1hhj0ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj0ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,ubj)}(hpgoff_t *starth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jnc.filemap_get_foliosasbuh1hhjubj)}(h h]h }(hjǸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjոhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,ubj)}(h pgoff_t endh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jnc.filemap_get_foliosasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hendh]hend}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,ubj)}(hstruct folio_batch *fbatchh](j!)}(hj$h]hstruct}(hjChhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj?ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]h)}(h folio_batchh]h folio_batch}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjcmodnameN classnameNj\j_)}jb]jnc.filemap_get_foliosasbuh1hhj?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj?ubh)}(hfbatchh]hfbatch}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hGet a batch of foliosh]hGet a batch of folios}(hjĹhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jܹj4jܹj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/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]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hThe address_space to searchh]hThe address_space to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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]j?)}(hj>h]hpgoff_t *start}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj<ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj8ubj)}(hhh]j9)}(hThe starting page indexh]hThe starting page index}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubj)}(h1``pgoff_t end`` The final page index (inclusive) h](j)}(h``pgoff_t end``h]j?)}(hjwh]h pgoff_t end}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjuubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjqubj)}(hhh]j9)}(h The final page index (inclusive)h]h The final page index (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``struct folio_batch *fbatch`` The batch to fill. h](j)}(h``struct folio_batch *fbatch``h]j?)}(hjh]hstruct folio_batch *fbatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hThe batch to fill.h]hThe batch to fill.}(hjɺhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjźhMhjƺubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjźhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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 }(hjhhhNhNubjz)}(h **start**h]hstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh and up to index }(hjhhhNhNubjz)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh* (inclusive). The folios are returned in }(hjhhhNhNubjz)}(h **fbatch**h]hfbatch}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh" with an elevated reference count.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(h **Return**h]jz)}(hjHh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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 }(hj^hhhNhNubjz)}(h **start**h]hstart}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj^ubh+ to index the next folio for the traversal.}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&filemap_get_folios_contig (C function)c.filemap_get_folios_contighNtauh1hhjLhhhNhNubh)}(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]h)}(hfilemap_get_folios_contigh]hfilemap_get_folios_contig}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hX(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjܻhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjػubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjػubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj»sbc.filemap_get_folios_contigasbuh1hhjػubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjػubj2 )}(hj5 h]h*}(hj(hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjػubh)}(hmappingh]hmapping}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjػubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjԻubj)}(hpgoff_t *starth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjSmodnameN classnameNj\j_)}jb]jc.filemap_get_folios_contigasbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2 )}(hj5 h]h*}(hj}hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjJubh)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjԻubj)}(h pgoff_t endh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_get_folios_contigasbuh1hhjubj)}(h h]h }(hjļhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hendh]hend}(hjҼhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjԻubj)}(hstruct folio_batch *fbatchh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h folio_batchh]h folio_batch}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]jc.filemap_get_folios_contigasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfbatchh]hfbatch}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjԻubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h Get a batch of contiguous foliosh]h Get a batch of contiguous folios}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/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]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hThe address_space to searchh]hThe address_space to search}(hjƽhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj½hMhjýubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj½hMhjubj)}(h+``pgoff_t *start`` The starting page index h](j)}(h``pgoff_t *start``h]j?)}(hjh]hpgoff_t *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hThe starting page indexh]hThe starting page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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]j?)}(hjh]h pgoff_t end}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h The final page index (inclusive)h]h The final page index (inclusive)}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubj)}(h1``struct folio_batch *fbatch`` The batch to fill h](j)}(h``struct folio_batch *fbatch``h]j?)}(hjXh]hstruct folio_batch *fbatch}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjRubj)}(hhh]j9)}(hThe batch to fillh]hThe batch to fill}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(hcThe number of folios found. Also update **start** to be positioned for traversal of the next folio.h](h(The number of folios found. Also update }(hjоhhhNhNubjz)}(h **start**h]hstart}(hjؾhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjоubh2 to be positioned for traversal of the next folio.}(hjоhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#filemap_get_folios_tag (C function)c.filemap_get_folios_taghNtauh1hhjLhhhNhNubh)}(hhh](h)}(hunsigned filemap_get_folios_tag (struct address_space *mapping, pgoff_t *start, pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch)h]h)}(hunsigned filemap_get_folios_tag(struct address_space *mapping, pgoff_t *start, pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubh)}(hfilemap_get_folios_tagh]h)}(hfilemap_get_folios_tagh]hfilemap_get_folios_tag}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhjhMubj)}(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](j!)}(hj$h]hstruct}(hjNhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]h)}(h address_spaceh]h address_space}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjnmodnameN classnameNj\j_)}jb]je)}jXj4sbc.filemap_get_folios_tagasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjJubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubj)}(hpgoff_t *starth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjÿhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjſmodnameN classnameNj\j_)}jb]jc.filemap_get_folios_tagasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubj)}(h pgoff_t endh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_get_folios_tagasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hendh]hend}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubj)}(h xa_mark_t tagh](h)}(hhh]h)}(h xa_mark_th]h xa_mark_t}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbmodnameN classnameNj\j_)}jb]jc.filemap_get_folios_tagasbuh1hhjYubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(htagh]htag}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubj)}(hstruct folio_batch *fbatchh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h folio_batchh]h folio_batch}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_get_folios_tagasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfbatchh]hfbatch}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubeh}(h]h ]h"]h$]h&]jj uh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h&Get a batch of folios matching **tag**h](hGet a batch of folios matching }(hj&hhhNhNubjz)}(h**tag**h]htag}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj&ubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj#hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jLj4jLj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjTubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjPubj)}(hhh](j)}(h>``struct address_space *mapping`` The address_space to search h](j)}(h!``struct address_space *mapping``h]j?)}(hjuh]hstruct address_space *mapping}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjoubj)}(hhh]j9)}(hThe address_space to searchh]hThe address_space to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(h+``pgoff_t *start`` The starting page index h](j)}(h``pgoff_t *start``h]j?)}(hjh]hpgoff_t *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hThe starting page indexh]hThe starting page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(h1``pgoff_t end`` The final page index (inclusive) h](j)}(h``pgoff_t end``h]j?)}(hjh]h pgoff_t end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h The final page index (inclusive)h]h The final page index (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(h ``xa_mark_t tag`` The tag index h](j)}(h``xa_mark_t tag``h]j?)}(hj h]h xa_mark_t tag}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h The tag indexh]h The tag index}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjlubj)}(h1``struct folio_batch *fbatch`` The batch to fill h](j)}(h``struct folio_batch *fbatch``h]j?)}(hjYh]hstruct folio_batch *fbatch}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjSubj)}(hhh]j9)}(hThe batch to fillh]hThe batch to fill}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjPubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjPubj9)}(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 }(hjhhhNhNubjz)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh; if it does, it will contain }(hjhhhNhNubjz)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh%. The final folio may extend beyond }(hjhhhNhNubjz)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh; if it does, it will contain }(hjhhhNhNubjz)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhX*. 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 }(hjhhhNhNubjz)}(h**tag**h]htag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjPubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjPubj9)}(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+hhhNhNubjz)}(h **start**h]hstart}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj+ubh' to index the next folio for traversal.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_read (C function)c.filemap_readhNtauh1hhjLhhhNhNubh)}(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]h)}(hssize_th]hssize_t}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjqmodnameN classnameNj\j_)}jb]je)}jX filemap_readsbc.filemap_readasbuh1hhjhhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMg ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhMg ubh)}(h filemap_readh]h)}(hjh]h filemap_read}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhhjhMg ubj)}(hA(struct kiocb *iocb, struct iov_iter *iter, ssize_t already_read)h](j)}(hstruct kiocb *iocbh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hkiocbh]hkiocb}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct iov_iter *iterh](j!)}(hj$h]hstruct}(hj.hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj*ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]h)}(hiov_iterh]hiov_iter}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjNmodnameN classnameNj\j_)}jb]jc.filemap_readasbuh1hhj*ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj2 )}(hj5 h]h*}(hjxhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj*ubh)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hssize_t already_readh](h)}(hhh]h)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h already_readh]h already_read}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhhjhMg ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjdhhhjhMg ubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjhMg hjahhubj )}(hhh]j9)}(hRead data from the page cache.h]hRead data from the page cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMg hjhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjhMg ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMk hjubj)}(hhh](j)}(h)``struct kiocb *iocb`` The iocb to read. h](j)}(h``struct kiocb *iocb``h]j?)}(hj8h]hstruct kiocb *iocb}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMh hj2ubj)}(hhh]j9)}(hThe iocb to read.h]hThe iocb to read.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMhMh hjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMh hj/ubj)}(h4``struct iov_iter *iter`` Destination for the data. h](j)}(h``struct iov_iter *iter``h]j?)}(hjqh]hstruct iov_iter *iter}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjoubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMi hjkubj)}(hhh]j9)}(hDestination for the data.h]hDestination for the data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMi hjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMi hj/ubj)}(hE``ssize_t already_read`` Number of bytes already read by the caller. h](j)}(h``ssize_t already_read``h]j?)}(hjh]hssize_t already_read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMj hjubj)}(hhh]j9)}(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&]uh1j8hjhMj hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMj hj/ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMl hjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMk hjubj9)}(h **Return**h]jz)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMn hjubj9)}(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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMo hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#generic_file_read_iter (C function)c.generic_file_read_iterhNtauh1hhjLhhhNhNubh)}(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]h)}(hssize_th]hssize_t}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjVmodnameN classnameNj\j_)}jb]je)}jXgeneric_file_read_itersbc.generic_file_read_iterasbuh1hhjMhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhjuhM ubh)}(hgeneric_file_read_iterh]h)}(hjrh]hgeneric_file_read_iter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjMhhhjuhM ubj)}(h+(struct kiocb *iocb, struct iov_iter *iter)h](j)}(hstruct kiocb *iocbh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hkiocbh]hkiocb}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jpc.generic_file_read_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct iov_iter *iterh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hiov_iterh]hiov_iter}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3modnameN classnameNj\j_)}jb]jpc.generic_file_read_iterasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj]hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hiterh]hiter}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjMhhhjuhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjIhhhjuhM ubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjuhM hjFhhubj )}(hhh]j9)}(hgeneric filesystem read routineh]hgeneric filesystem read routine}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjuhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/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]j?)}(hjh]hstruct kiocb *iocb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]j9)}(hkernel I/O control blockh]hkernel I/O control block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h8``struct iov_iter *iter`` destination for the data read h](j)}(h``struct iov_iter *iter``h]j?)}(hjh]hstruct iov_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]j9)}(hdestination for the data readh]hdestination for the data read}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj#hM hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj9)}(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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj9)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj9)}(hXThe IOCB_NOIO flag in iocb->ki_flags indicates that no new I/O requests shall be made for the read or for readahead. When no data can be read, -EAGAIN shall be returned. When readahead would be triggered, a partial, possibly empty read shall be returned.h]hXThe IOCB_NOIO flag in iocb->ki_flags indicates that no new I/O requests shall be made for the read or for readahead. When no data can be read, -EAGAIN shall be returned. When readahead would be triggered, a partial, possibly empty read shall be returned.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM$ hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM) hjubjު)}(hhh](j+)}(h.number of bytes copied, even for partial readsh]j9)}(hjh]h.number of bytes copied, even for partial reads}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/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]j9)}(hjh]h;negative error code (or 0 if IOCB_NOIO) if nothing was read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/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&]jj5 uh1jݪhjhM* hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ filemap_splice_read (C function)c.filemap_splice_readhNtauh1hhjLhhhNhNubh)}(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]h)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXfilemap_splice_readsbc.filemap_splice_readasbuh1hhjhhhL/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)}(hfilemap_splice_readh]h)}(hjh]hfilemap_splice_read}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj!hM~ ubj)}(h](struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)h](j)}(hstruct file *inh](j!)}(hj$h]hstruct}(hjOhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]h)}(hfileh]hfile}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjomodnameN classnameNj\j_)}jb]jc.filemap_splice_readasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjKubh)}(hinh]hin}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjGubj)}(h loff_t *pposh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_splice_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpposh]hppos}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjGubj)}(hstruct pipe_inode_info *pipeh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpipe_inode_infoh]hpipe_inode_info}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4modnameN classnameNj\j_)}jb]jc.filemap_splice_readasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj^hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpipeh]hpipe}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjGubj)}(h size_t lenh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_splice_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjGubj)}(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&]uh1jhjubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjGubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj!hM~ ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj!hM~ ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj!hM~ hjhhubj )}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM~ hj+hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hM~ ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jFj4jFj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjJubj)}(hhh](j)}(h*``struct file *in`` The file to read from h](j)}(h``struct file *in``h]j?)}(hjoh]hstruct file *in}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjiubj)}(hhh]j9)}(hThe file to read fromh]hThe file to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM hjfubj)}(h;``loff_t *ppos`` Pointer to the file position to read from h](j)}(h``loff_t *ppos``h]j?)}(hjh]h loff_t *ppos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]j9)}(h)Pointer to the file position to read fromh]h)Pointer to the file position to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjfubj)}(h9``struct pipe_inode_info *pipe`` The pipe to splice into h](j)}(h ``struct pipe_inode_info *pipe``h]j?)}(hjh]hstruct pipe_inode_info *pipe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]j9)}(hThe pipe to splice intoh]hThe pipe to splice into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjfubj)}(h$``size_t len`` The amount to splice h](j)}(h``size_t len``h]j?)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]j9)}(hThe amount to spliceh]hThe amount to splice}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj/hM hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hM hjfubj)}(h,``unsigned int flags`` The SPLICE_F_* flags h](j)}(h``unsigned int flags``h]j?)}(hjSh]hunsigned int flags}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjMubj)}(hhh]j9)}(hThe SPLICE_F_* flagsh]hThe SPLICE_F_* flags}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhhM hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjfubeh}(h]h ]h"]h$]h&]uh1jhjJubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjJubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjJubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjJubj9)}(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 }(hjhhhNhNubjz)}(h ***ppos**h]h*ppos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhX4 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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_fault (C function)c.filemap_faulthNtauh1hhjLhhhNhNubh)}(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]h)}(h vm_fault_th]h vm_fault_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jX filemap_faultsbc.filemap_faultasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM5 ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hM5 ubh)}(h filemap_faulth]h)}(hj-h]h filemap_fault}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj0hM5 ubj)}(h(struct vm_fault *vmf)h]j)}(hstruct vm_fault *vmfh](j!)}(hj$h]hstruct}(hj^hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]h)}(hvm_faulth]hvm_fault}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]j+c.filemap_faultasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZubh)}(hvmfh]hvmf}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjVubah}(h]h ]h"]h$]h&]jj uh1jhjhhhj0hM5 ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj0hM5 ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hM5 hjhhubj )}(hhh]j9)}(h)read in file data for page fault handlingh]h)read in file data for page fault handling}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM5 hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hM5 ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM9 hjubj)}(hhh]j)}(hI``struct vm_fault *vmf`` struct vm_fault containing details of the fault h](j)}(h``struct vm_fault *vmf``h]j?)}(hj h]hstruct vm_fault *vmf}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM6 hjubj)}(hhh]j9)}(h/struct vm_fault containing details of the faulth]h/struct vm_fault containing details of the fault}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5hM6 hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM6 hjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM8 hjubj9)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM7 hjubj9)}(hThe goto's are kind of ugly, but this streamlines the normal case of having it in the page cache, and handles the special cases reasonably without having a lot of duplicated code.h]hThe goto’s are kind of ugly, but this streamlines the normal case of having it in the page cache, and handles the special cases reasonably without having a lot of duplicated code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM: hjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM> hjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM@ hjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMC hjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMF hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMH hjubj9)}(h"bitwise-OR of ``VM_FAULT_`` codes.h](hbitwise-OR of }(hjhhhNhNubj?)}(h ``VM_FAULT_``h]h VM_FAULT_}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh codes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMI hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌread_cache_folio (C function)c.read_cache_foliohNtauh1hhjLhhhNhNubh)}(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](j!)}(hj$h]hstruct}(hj$hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj1hMubh)}(hhh]h)}(hfolioh]hfolio}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjEmodnameN classnameNj\j_)}jb]je)}jXread_cache_foliosbc.read_cache_folioasbuh1hhj hhhj1hMubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj1hMubj2 )}(hj5 h]h*}(hjrhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj hhhj1hMubh)}(hread_cache_folioh]h)}(hjah]hread_cache_folio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj1hMubj)}(hR(struct address_space *mapping, pgoff_t index, filler_t filler, struct file *file)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j_c.read_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j_c.read_cache_folioasbuh1hhj ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hindexh]hindex}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hfiller_t fillerh](h)}(hhh]h)}(hfiller_th]hfiller_t}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj[modnameN classnameNj\j_)}jb]j_c.read_cache_folioasbuh1hhjRubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hfillerh]hfiller}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct file *fileh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j_c.read_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj hhhj1hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj1hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhjhhubj )}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j7j4j7j5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj;ubj)}(hhh](j)}(hB``struct address_space *mapping`` The address_space to read from. h](j)}(h!``struct address_space *mapping``h]j?)}(hj`h]hstruct address_space *mapping}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj^ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjZubj)}(hhh]j9)}(hThe address_space to read from.h]hThe address_space to read from.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjWubj)}(h%``pgoff_t index`` The index to read. h](j)}(h``pgoff_t index``h]j?)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hThe index to read.h]hThe index to read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubj)}(hU``filler_t filler`` Function to perform the read, or NULL to use aops->read_folio(). h](j)}(h``filler_t filler``h]j?)}(hjh]hfiller_t filler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubj)}(hN``struct file *file`` Passed to filler function, may be NULL if not required. h](j)}(h``struct file *file``h]j?)}(hj h]hstruct file *file}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h7Passed to filler function, may be NULL if not required.h]h7Passed to filler function, may be NULL if not required.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubj9)}(h**Description**h]jz)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj;ubj9)}(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 }(hj\hhhNhNubjz)}(h **index**h]hindex}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj\ubh0, but it may not be the first page of the folio.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj;ubj9)}(hKIf the filler function returns an error, it will be returned to the caller.h]hKIf the filler function returns an error, it will be returned to the caller.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj;ubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj;ubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj;ubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj;ubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#mapping_read_folio_gfp (C function)c.mapping_read_folio_gfphNtauh1hhjLhhhNhNubh)}(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](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXmapping_read_folio_gfpsbc.mapping_read_folio_gfpasbuh1hhjhhhjhMubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjHhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(hmapping_read_folio_gfph]h)}(hj7h]hmapping_read_folio_gfp}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h9(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjthhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j5c.mapping_read_folio_gfpasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjpubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjlubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j5c.mapping_read_folio_gfpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjlubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]j5c.mapping_read_folio_gfpasbuh1hhj(ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(hgfph]hgfp}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjlubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h7Read into page cache, using specified allocation flags.h]h7Read into page cache, using specified allocation flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(hC``struct address_space *mapping`` The address_space for the folio. h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h The address_space for the folio.h]h The address_space for the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hC``pgoff_t index`` The index that the allocated folio will contain. h](j)}(h``pgoff_t index``h]j?)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h0The index that the allocated folio will contain.h]h0The index that the allocated folio will contain.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h=``gfp_t gfp`` The page allocator flags to use if allocating. h](j)}(h ``gfp_t gfp``h]j?)}(hj8h]h gfp_t gfp}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj2ubj)}(hhh]j9)}(h.The page allocator flags to use if allocating.h]h.The page allocator flags to use if allocating.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(h0Uptodate folio on success, ERR_PTR() on failure.h]h0Uptodate folio on success, ERR_PTR() on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ read_cache_page_gfp (C function)c.read_cache_page_gfphNtauh1hhjLhhhNhNubh)}(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](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhL/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]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXread_cache_page_gfpsbc.read_cache_page_gfpasbuh1hhjhhhj hMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj2 )}(hj5 h]h*}(hjKhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhj hMubh)}(hread_cache_page_gfph]h)}(hj:h]hread_cache_page_gfp}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj hMubj)}(h9(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjwhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j8c.read_cache_page_gfpasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjsubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j8c.read_cache_page_gfpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4modnameN classnameNj\j_)}jb]j8c.read_cache_page_gfpasbuh1hhj+ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(hgfph]hgfp}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj )}(hhh]j9)}(hinvalidate_lock to be already held. **Return** up to date page on success, ERR_PTR() on failure.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h;``struct address_space *mapping`` the page's address_space h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hthe page's address_spaceh]hthe page’s address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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]j?)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hthe page indexh]hthe page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``gfp_t gfp`` the page allocator flags to use if allocating h](j)}(h ``gfp_t gfp``h]j?)}(hj;h]h gfp_t gfp}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj5ubj)}(hhh]j9)}(h-the page allocator flags to use if allocatingh]h-the page allocator flags to use if allocating}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjvh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&__generic_file_write_iter (C function)c.__generic_file_write_iterhNtauh1hhjLhhhNhNubh)}(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]h)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jX__generic_file_write_itersbc.__generic_file_write_iterasbuh1hhjhhhL/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)}(h__generic_file_write_iterh]h)}(hj!h]h__generic_file_write_iter}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj$hMubj)}(h+(struct kiocb *iocb, struct iov_iter *from)h](j)}(hstruct kiocb *iocbh](j!)}(hj$h]hstruct}(hjRhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]h)}(hkiocbh]hkiocb}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjrmodnameN classnameNj\j_)}jb]jc.__generic_file_write_iterasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjNubh)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjJubj)}(hstruct iov_iter *fromh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.__generic_file_write_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjJubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj$hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj$hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj$hMhjhhubj )}(hhh]j9)}(hwrite data to a fileh]hwrite data to a file}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj@hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj$hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j[j4j[j5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj_ubj)}(hhh](j)}(h?``struct kiocb *iocb`` IO state structure (file, offset, etc.) h](j)}(h``struct kiocb *iocb``h]j?)}(hjh]hstruct kiocb *iocb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj~ubj)}(hhh]j9)}(h'IO state structure (file, offset, etc.)h]h'IO state structure (file, offset, etc.)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj{ubj)}(h6``struct iov_iter *from`` iov_iter with data to write h](j)}(h``struct iov_iter *from``h]j?)}(hjh]hstruct iov_iter *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(hiov_iter with data to writeh]hiov_iter with data to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj{ubeh}(h]h ]h"]h$]h&]uh1jhj_ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj_ubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj_ubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj_ubj9)}(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,hhhNhNubjK)}(h*not*h]hnot}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jJhj,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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj_ubj9)}(h **Return**h]jz)}(hjOh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj_ubjު)}(hhh](j+)}(h2number of bytes written, even for truncated writesh]j9)}(hjjh]h2number of bytes written, even for truncated writes}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhubah}(h]h ]h"]h$]h&]uh1j+hjeubj+)}(h6negative error code if no data has been written at allh]j9)}(hjh]h6negative error code if no data has been written at all}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubah}(h]h ]h"]h$]h&]uh1j+hjeubeh}(h]h ]h"]h$]h&]jj5 uh1jݪhjyhMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$generic_file_write_iter (C function)c.generic_file_write_iterhNtauh1hhjLhhhNhNubh)}(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]h)}(hssize_th]hssize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXgeneric_file_write_itersbc.generic_file_write_iterasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hgeneric_file_write_iterh]h)}(hjh]hgeneric_file_write_iter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h+(struct kiocb *iocb, struct iov_iter *from)h](j)}(hstruct kiocb *iocbh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(hkiocbh]hkiocb}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj0modnameN classnameNj\j_)}jb]jc.generic_file_write_iterasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hiocbh]hiocb}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct iov_iter *fromh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]h)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.generic_file_write_iterasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|ubh)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hwrite data to a fileh]hwrite data to a file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh](j)}(h*``struct kiocb *iocb`` IO state structure h](j)}(h``struct kiocb *iocb``h]j?)}(hjBh]hstruct kiocb *iocb}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj@ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj<ubj)}(hhh]j9)}(hIO state structureh]hIO state structure}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubj)}(h6``struct iov_iter *from`` iov_iter with data to write h](j)}(h``struct iov_iter *from``h]j?)}(hj{h]hstruct iov_iter *from}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjuubj)}(hhh]j9)}(hiov_iter with data to writeh]hiov_iter with data to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubjު)}(hhh](j+)}(hjnegative error code if no data has been written at all of vfs_fsync_range() failed for a synchronous writeh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(h2number of bytes written, even for truncated writesh]j9)}(hjh]h2number of bytes written, even for truncated writes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jj5 uh1jݪhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"filemap_release_folio (C function)c.filemap_release_foliohNtauh1hhjLhhhNhNubh)}(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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjZhMubh)}(hfilemap_release_folioh]h)}(hfilemap_release_folioh]hfilemap_release_folio}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ](jjeh"]h$]h&]jj uh1hhjIhhhjZhMubj)}(h (struct folio *folio, gfp_t gfp)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjosbc.filemap_release_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_release_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfph]hgfp}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjIhhhjZhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjEhhhjZhMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhjZhMhjBhhubj )}(hhh]j9)}(h(Release fs-specific metadata on a folio.h]h(Release fs-specific metadata on a folio.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjZhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jlj4jlj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjpubj)}(hhh](j)}(hF``struct folio *folio`` The folio which the kernel is trying to free. h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(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]j?)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h'Memory allocation flags (and I/O mode).h]h'Memory allocation flags (and I/O mode).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjpubj9)}(h**Description**h]jz)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjpubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjpubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjpubj9)}(hThe **gfp** argument specifies whether I/O may be performed to release this page (__GFP_IO), and whether the call may block (__GFP_RECLAIM & __GFP_FS).h](hThe }(hj=hhhNhNubjz)}(h**gfp**h]hgfp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj=ubh argument specifies whether I/O may be performed to release this page (__GFP_IO), and whether the call may block (__GFP_RECLAIM & __GFP_FS).}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjpubj9)}(h **Return**h]jz)}(hj`h]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj^ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjpubj9)}(h<``true`` if the release was successful, otherwise ``false``.h](j?)}(h``true``h]htrue}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvubh* if the release was successful, otherwise }(hjvhhhNhNubj?)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvubh.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%filemap_invalidate_inode (C function)c.filemap_invalidate_inodehNtauh1hhjLhhhNhNubh)}(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.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfilemap_invalidate_inodeh]h)}(hfilemap_invalidate_inodeh]hfilemap_invalidate_inode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(h;(struct inode *inode, bool flush, loff_t start, loff_t end)h](j)}(hstruct inode *inodeh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hinodeh]hinode}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj"modnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_invalidate_inodeasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjNhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hinodeh]hinode}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h bool flushh](j)}(hj)h]hbool}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hflushh]hflush}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t starth](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j<c.filemap_invalidate_inodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t endh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j<c.filemap_invalidate_inodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hendh]hend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(h>Invalidate/forcibly write back a range of an inode's pagecacheh]h@Invalidate/forcibly write back a range of an inode’s pagecache}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jaj4jaj5j6j7uh1hhhhjLhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjeubj)}(hhh](j)}(h+``struct inode *inode`` The inode to flush h](j)}(h``struct inode *inode``h]j?)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]j9)}(hThe inode to flushh]hThe inode to flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h@``bool flush`` Set to write back rather than simply invalidate. h](j)}(h``bool flush``h]j?)}(hjh]h bool flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]j9)}(h0Set to write back rather than simply invalidate.h]h0Set to write back rather than simply invalidate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h)``loff_t start`` First byte to in range. h](j)}(h``loff_t start``h]j?)}(hjh]h loff_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(hhh]j9)}(hFirst byte to in range.h]hFirst byte to in range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h_``loff_t end`` Last byte in range (inclusive), or LLONG_MAX for everything from start onwards. h](j)}(h``loff_t end``h]j?)}(hj5h]h loff_t end}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj3ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj/ubj)}(hhh]j9)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubeh}(h]h ]h"]h$]h&]uh1jhjeubj9)}(h**Description**h]jz)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjoubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjeubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1johjLhhhNhNubeh}(h]filemapah ]h"]filemapah$]h&]uh1hhj;hhhhhK;ubh)}(hhh](h)}(h Readaheadh]h Readahead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKAubj9)}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK hjhhubj9)}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKhjhhubj9)}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKhjhhubj9)}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK"hjhhubj9)}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK&hjhhubj9)}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK*hjhhubj9)}(hXThe size of the region is normally determined from the size of the previous readahead which loaded the preceding pages. This may be discovered from the struct file_ra_state for simple sequential reads, or from examining the state of the page cache when multiple sequential reads are interleaved. Specifically: where the readahead was triggered by the readahead flag, the size of the previous readahead is assumed to be the number of pages from the triggering page to the start of the new readahead. In these cases, the size of the previous readahead is scaled, often doubled, for the new readahead, though see get_next_ra_size() for details.h]hXThe size of the region is normally determined from the size of the previous readahead which loaded the preceding pages. This may be discovered from the struct file_ra_state for simple sequential reads, or from examining the state of the page cache when multiple sequential reads are interleaved. Specifically: where the readahead was triggered by the readahead flag, the size of the previous readahead is assumed to be the number of pages from the triggering page to the start of the new readahead. In these cases, the size of the previous readahead is scaled, often doubled, for the new readahead, though see get_next_ra_size() for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK0hjhhubj9)}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK;hjhhubj9)}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKBhjhhubj9)}(hThe above calculation, based on the previous readahead size, determines the size of the readahead, to which any requested read size may be added.h]hThe above calculation, based on the previous readahead size, determines the size of the readahead, to which any requested read size may be added.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKGhjhhubj9)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKKhjhhubj9)}(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:}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKShjhhubjު)}(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]j9)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKWhjmubah}(h]h ]h"]h$]h&]uh1j+hjjubj+)}(hhfailing to actually submit a read request for a given folio, possibly due to insufficient resources, or h]j9)}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chK[hjubah}(h]h ]h"]h$]h&]uh1j+hjjubj+)}(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 }(hjhhhNhNubj?)}(h``async_size``h]h async_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhX  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 }(hjhhhNhNubj?)}(h``async_size``h]h async_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubhX 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&]uh1j8hN/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]h)}(hpage_cache_ra_unboundedh]hpage_cache_ra_unbounded}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj'hKubj)}(hY(struct readahead_control *ractl, unsigned long nr_to_read, unsigned long lookahead_size)h](j)}(hstruct readahead_control *ractlh](j!)}(hj$h]hstruct}(hjVhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjvmodnameN classnameNj\j_)}jb]je)}jXj<sbc.page_cache_ra_unboundedasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjRubh)}(hractlh]hractl}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjNubj)}(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&]uh1jhjubh)}(h nr_to_readh]h nr_to_read}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjNubj)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hlookahead_sizeh]hlookahead_size}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjNubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj'hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj'hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hKhjhhubj )}(hhh]j9)}(hStart unchecked readahead.h]hStart unchecked readahead.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjxhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hXY**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. Mutexes may be held by caller. May sleep, but will not reenter filesystem to reclaim memory.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/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]j?)}(hjh]hstruct readahead_control *ractl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj)}(hhh]j9)}(hReadahead control.h]hReadahead control.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(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]j?)}(hjh]hunsigned long nr_to_read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj)}(hhh]j9)}(hThe number of pages to read.h]hThe number of pages to read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(hD``unsigned long lookahead_size`` Where to start the next readahead. h](j)}(h ``unsigned long lookahead_size``h]j?)}(hj.h]hunsigned long lookahead_size}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj,ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhj(ubj)}(hhh]j9)}(h"Where to start the next readahead.h]h"Where to start the next readahead.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjChKhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjgubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubj9)}(h{File is referenced by caller. Mutexes may be held by caller. May sleep, but will not reenter filesystem to reclaim memory.h]h{File is referenced by caller. Mutexes may be held by caller. May sleep, but will not reenter filesystem to reclaim memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌreadahead_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]h)}(hreadahead_expandh]hreadahead_expand}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hC(struct readahead_control *ractl, loff_t new_start, size_t new_len)h](j)}(hstruct readahead_control *ractlh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2modnameN classnameNj\j_)}jb]je)}jXjsbc.readahead_expandasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj^hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hractlh]hractl}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hloff_t new_starth](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jLc.readahead_expandasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h new_starth]h new_start}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hsize_t new_lenh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jLc.readahead_expandasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnew_lenh]hnew_len}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hExpand a readahead requesth]hExpand a readahead request}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj"hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j=j4j=j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjAubj)}(hhh](j)}(h?``struct readahead_control *ractl`` The request to be expanded h](j)}(h#``struct readahead_control *ractl``h]j?)}(hjfh]hstruct readahead_control *ractl}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjdubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhj`ubj)}(hhh]j9)}(hThe request to be expandedh]hThe request to be expanded}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj]ubj)}(h'``loff_t new_start`` The revised start h](j)}(h``loff_t new_start``h]j?)}(hjh]hloff_t new_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubj)}(hhh]j9)}(hThe revised starth]hThe revised start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj]ubj)}(h3``size_t new_len`` The revised size of the request h](j)}(h``size_t new_len``h]j?)}(hjh]hsize_t new_len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubj)}(hhh]j9)}(hThe revised size of the requesth]hThe revised size of the request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjAubj9)}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjAubj9)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjAubj9)}(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 }(hjGhhhNhNubjz)}(h **ractl**h]hractl}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubh5 object for a different expansion than was requested.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubeh}(h] readaheadah ]h"] readaheadah$]h&]uh1hhj;hhhhhKAubh)}(hhh](h)}(h Writebackh]h Writeback}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhhhhhKJubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ2balance_dirty_pages_ratelimited_flags (C function)'c.balance_dirty_pages_ratelimited_flagshNtauh1hhjwhhhNhNubh)}(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]h)}(h%balance_dirty_pages_ratelimited_flagsh]h%balance_dirty_pages_ratelimited_flags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h3(struct address_space *mapping, unsigned int flags)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsb'c.balance_dirty_pages_ratelimited_flagsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj*hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hBalance dirty memory state.h]hBalance dirty memory state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjwhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/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]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubj)}(hhh]j9)}(h address_space which was dirtied.h]h address_space which was dirtied.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhj ubah}(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]j?)}(hj,h]hunsigned int flags}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj*ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhj&ubj)}(hhh]j9)}(h BDP flags.h]h BDP flags.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjeubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubj9)}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubj9)}(h2See balance_dirty_pages_ratelimited() for details.h]h2See balance_dirty_pages_ratelimited() for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubj9)}(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 }(hjhhhNhNubjz)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhX$ 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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,balance_dirty_pages_ratelimited (C function)!c.balance_dirty_pages_ratelimitedhNtauh1hhjwhhhNhNubh)}(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.chM9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM9ubh)}(hbalance_dirty_pages_ratelimitedh]h)}(hbalance_dirty_pages_ratelimitedh]hbalance_dirty_pages_ratelimited}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM9ubj)}(h(struct address_space *mapping)h]j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj1hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjQmodnameN classnameNj\j_)}jb]je)}jXjsb!c.balance_dirty_pages_ratelimitedasbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj2 )}(hj5 h]h*}(hj}hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj-ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)ubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM9ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM9hjhhubj )}(hhh]j9)}(hbalance dirty memory state.h]hbalance dirty memory state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM9hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM9ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjwhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM=hjubj)}(hhh]j)}(hC``struct address_space *mapping`` address_space which was dirtied. h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM:hjubj)}(hhh]j9)}(h address_space which was dirtied.h]h address_space which was dirtied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hM:hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM:hjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM<hjubj9)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM;hjubj9)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM?hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$tag_pages_for_writeback (C function)c.tag_pages_for_writebackhNtauh1hhjwhhhNhNubh)}(hhh](h)}(hXvoid tag_pages_for_writeback (struct address_space *mapping, pgoff_t start, pgoff_t end)h]h)}(hWvoid tag_pages_for_writeback(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMB ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMB ubh)}(htag_pages_for_writebackh]h)}(htag_pages_for_writebackh]htag_pages_for_writeback}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMB ubj)}(h;(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.tag_pages_for_writebackasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t starth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]jc.tag_pages_for_writebackasbuh1hhj/ubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hstarth]hstart}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t endh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.tag_pages_for_writebackasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hendh]hend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMB ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj|hhhjhMB ubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMB hjyhhubj )}(hhh]j9)}(h$tag pages to be written by writebackh]h$tag pages to be written by writeback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMB hjhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMB ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjwhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMF hjubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMC hjubj)}(hhh]j9)}(h address space structure to writeh]h address space structure to write}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hMC hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMC hj ubj)}(h&``pgoff_t start`` starting page index h](j)}(h``pgoff_t start``h]j?)}(hjNh]h pgoff_t start}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMD hjHubj)}(hhh]j9)}(hstarting page indexh]hstarting page index}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjchMD hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMD hj ubj)}(h.``pgoff_t end`` ending page index (inclusive) h](j)}(h``pgoff_t end``h]j?)}(hjh]h pgoff_t end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chME hjubj)}(hhh]j9)}(hending page index (inclusive)h]hending page index (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhME hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhME hj ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMG hjubj9)}(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 }(hjhhhNhNubjz)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh to }(hjhhhNhNubjz)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhX (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).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMF hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwriteback_iter (C function)c.writeback_iterhNtauh1hhjwhhhNhNubh)}(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](j!)}(hj$h]hstruct}(hj+hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj'hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj8hM ubh)}(hhh]h)}(hfolioh]hfolio}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjLmodnameN classnameNj\j_)}jb]je)}jXwriteback_itersbc.writeback_iterasbuh1hhj'hhhj8hM ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj8hM ubj2 )}(hj5 h]h*}(hjyhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj'hhhj8hM ubh)}(hwriteback_iterh]h)}(hjhh]hwriteback_iter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj'hhhj8hM ubj)}(h_(struct address_space *mapping, struct writeback_control *wbc, struct folio *folio, int *error)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jfc.writeback_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct writeback_control *wbch](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hwriteback_controlh]hwriteback_control}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj5modnameN classnameNj\j_)}jb]jfc.writeback_iterasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj_hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hwbch]hwbc}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jfc.writeback_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int *errorh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(herrorh]herror}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj'hhhj8hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj#hhhj8hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj8hM hj hhubj )}(hhh]j9)}(h(iterate folio of a mapping for writebackh]h(iterate folio of a mapping for writeback}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjEhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj8hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j`j4j`j5j6j7uh1hhhhjwhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjdubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j9)}(h address space structure to writeh]h address space structure to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h4``struct writeback_control *wbc`` writeback context h](j)}(h!``struct writeback_control *wbc``h]j?)}(hjh]hstruct writeback_control *wbc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j9)}(hwriteback contexth]hwriteback context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hF``struct folio *folio`` previously iterated folio (``NULL`` to start) h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j9)}(h-previously iterated folio (``NULL`` to start)h](hpreviously iterated folio (}(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh to start)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h?``int *error`` in-out pointer for writeback errors (see below) h](j)}(h``int *error``h]j?)}(hjFh]h int *error}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj@ubj)}(hhh]j9)}(h/in-out pointer for writeback errors (see below)h]h/in-out pointer for writeback errors (see below)}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hM hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM hjubeh}(h]h ]h"]h$]h&]uh1jhjdubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjdubj9)}(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 }(hjhhhNhNubjz)}(h**wbc**h]hwbc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh on }(hjhhhNhNubjz)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhJ and should be called in a while loop in the ->writepages implementation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjdubj9)}(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, }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh is passed in the }(hjhhhNhNubjz)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhe argument, and for every subsequent iteration the folio returned previously should be passed back in.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjdubj9)}(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, }(hjhhhNhNubjz)}(h **error**h]herror}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh" should be set to the error value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjdubj9)}(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 }(hjhhhNhNubjz)}(h**wbc**h]hwbc}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh) has finished, this function will return }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh: and if there was an error in any iteration restore it to }(hjhhhNhNubjz)}(h **error**h]herror}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjdubj9)}(h**Note**h]jz)}(hjeh]hNote}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjdubj9)}(hcallers should not manually break out of the loop using break or goto but must keep calling writeback_iter() until it returns ``NULL``.h](h~callers should not manually break out of the loop using break or goto but must keep calling writeback_iter() until it returns }(hj{hhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjdubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjdubj9)}(h3the folio to write or ``NULL`` if the loop is done.h](hthe folio to write or }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh if the loop is done.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwrite_cache_pages (C function)c.write_cache_pageshNtauh1hhjwhhhNhNubh)}(hhh](h)}(hwint write_cache_pages (struct address_space *mapping, struct writeback_control *wbc, writepage_t writepage, void *data)h]h)}(hvint write_cache_pages(struct address_space *mapping, struct writeback_control *wbc, writepage_t writepage, void *data)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)}(hwrite_cache_pagesh]h)}(hwrite_cache_pagesh]hwrite_cache_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM" ubj)}(ha(struct address_space *mapping, struct writeback_control *wbc, writepage_t writepage, void *data)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj2hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjRmodnameN classnameNj\j_)}jb]je)}jXjsbc.write_cache_pagesasbuh1hhj.ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2 )}(hj5 h]h*}(hj~hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj.ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj*ubj)}(hstruct writeback_control *wbch](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hwriteback_controlh]hwriteback_control}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jlc.write_cache_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hwbch]hwbc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj*ubj)}(hwritepage_t writepageh](h)}(hhh]h)}(h writepage_th]h writepage_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jlc.write_cache_pagesasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h writepageh]h writepage}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj*ubj)}(h void *datah](j)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj2 )}(hj5 h]h*}(hjxhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjXubh)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj*ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM" ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM" ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM" hjhhubj )}(hhh]j9)}(hNwalk the list of dirty pages of the given address space and write all of them.h]hNwalk the list of dirty pages of the given address space and write all of them.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM" hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM" ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjwhNhNubjp)}(hX**Parameters** ``struct address_space *mapping`` address space structure to write ``struct writeback_control *wbc`` subtract the number of written pages from ***wbc->nr_to_write** ``writepage_t writepage`` function called for each page ``void *data`` data passed to writepage function **Return** ``0`` on success, negative error code otherwise **Note** please use writeback_iter() instead.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM& hjubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM# hjubj)}(hhh]j9)}(h address space structure to writeh]h address space structure to write}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM# hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM# hjubj)}(hb``struct writeback_control *wbc`` subtract the number of written pages from ***wbc->nr_to_write** h](j)}(h!``struct writeback_control *wbc``h]j?)}(hj)h]hstruct writeback_control *wbc}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj'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]j9)}(h?subtract the number of written pages from ***wbc->nr_to_write**h](h*subtract the number of written pages from }(hjBhhhNhNubjz)}(h***wbc->nr_to_write**h]h*wbc->nr_to_write}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubeh}(h]h ]h"]h$]h&]uh1j8hj>hM$ hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM$ hjubj)}(h8``writepage_t writepage`` function called for each page h](j)}(h``writepage_t writepage``h]j?)}(hjph]hwritepage_t writepage}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjnubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM% hjjubj)}(hhh]j9)}(hfunction called for each pageh]hfunction called for each page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM% hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhM% hjubj)}(h1``void *data`` data passed to writepage function h](j)}(h``void *data``h]j?)}(hjh]h void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM& hjubj)}(hhh]j9)}(h!data passed to writepage functionh]h!data passed to writepage function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM& hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM& hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM( hjubj9)}(h/``0`` on success, negative error code otherwiseh](j?)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh* on success, negative error code otherwise}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM( hjubj9)}(h**Note**h]jz)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM* hjubj9)}(h$please use writeback_iter() instead.h]h$please use writeback_iter() instead.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM* hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ filemap_dirty_folio (C function)c.filemap_dirty_foliohNtauh1hhjwhhhNhNubh)}(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}(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 }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjkhM ubh)}(hfilemap_dirty_folioh]h)}(hfilemap_dirty_folioh]hfilemap_dirty_folio}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ](jjeh"]h$]h&]jj uh1hhjZhhhjkhM ubj)}(h4(struct address_space *mapping, struct folio *folio)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_dirty_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj,modnameN classnameNj\j_)}jb]jc.filemap_dirty_folioasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjZhhhjkhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjVhhhjkhM ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjkhM hjShhubj )}(hhh]j9)}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjkhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjwhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh](j)}(hG``struct address_space *mapping`` Address space this folio belongs to. h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j9)}(h$Address space this folio belongs to.h]h$Address space this folio belongs to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h5``struct folio *folio`` Folio to be marked as dirty. h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j9)}(hFolio to be marked as dirty.h]hFolio to be marked as dirty.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj9)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj9)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj9)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(folio_redirty_for_writepage (C function)c.folio_redirty_for_writepagehNtauh1hhjwhhhNhNubh)}(hhh](h)}(hUbool folio_redirty_for_writepage (struct writeback_control *wbc, struct folio *folio)h]h)}(hTbool folio_redirty_for_writepage(struct writeback_control *wbc, struct folio *folio)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_redirty_for_writepageh]h)}(hfolio_redirty_for_writepageh]hfolio_redirty_for_writepage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(h4(struct writeback_control *wbc, struct folio *folio)h](j)}(hstruct writeback_control *wbch](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hwriteback_controlh]hwriteback_control}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_redirty_for_writepageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj-hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hwbch]hwbc}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjShhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]h)}(hfolioh]hfolio}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjsmodnameN classnameNj\j_)}jb]jc.folio_redirty_for_writepageasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjOubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(hDecline to write a dirty folio.h]hDecline to write a dirty folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjwhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/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]j?)}(hjh]hstruct writeback_control *wbc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j9)}(hThe writeback control.h]hThe writeback control.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hM hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hM hj ubj)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjNh]hstruct folio *folio}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjHubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjchM hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM hj ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj9)}(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 }(hjhhhNhNubjz)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh7 for some reason, it should call this function, unlock }(hjhhhNhNubjz)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh and return 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj9)}(hHTrue if we redirtied the folio. False if someone else dirtied it first.h]hHTrue if we redirtied the folio. False if someone else dirtied it first.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mark_dirty (C function)c.folio_mark_dirtyhNtauh1hhjwhhhNhNubh)}(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 }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hM ubh)}(hfolio_mark_dirtyh]h)}(hfolio_mark_dirtyh]hfolio_mark_dirty}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj&hM ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjUhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]h)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjumodnameN classnameNj\j_)}jb]je)}jXj;sbc.folio_mark_dirtyasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjQubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjMubah}(h]h ]h"]h$]h&]jj uh1jhjhhhj&hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj&hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj&hM hjhhubj )}(hhh]j9)}(hMark a folio as being modified.h]hMark a folio as being modified.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj&hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjwhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/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]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj.hM hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hM hjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj9)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj9)}(h **Return**h]jz)}(hj{h]hReturn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj9)}(hCTrue if the folio was newly dirtied, false if it was already dirty.h]hCTrue if the folio was newly dirtied, false if it was already dirty.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!folio_wait_writeback (C function)c.folio_wait_writebackhNtauh1hhjwhhhNhNubh)}(hhh](h)}(h/void folio_wait_writeback (struct folio *folio)h]h)}(h.void folio_wait_writeback(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM% ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM% ubh)}(hfolio_wait_writebackh]h)}(hfolio_wait_writebackh]hfolio_wait_writeback}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM% ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_wait_writebackasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM% ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM% ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM% hjhhubj )}(hhh]j9)}(h%Wait for a folio to finish writeback.h]h%Wait for a folio to finish writeback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM% hj}hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM% ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjwhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/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]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM& hjubj)}(hhh]j9)}(hThe folio to wait for.h]hThe folio to wait for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM& hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM& hjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM( hjubj9)}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM' hjubj9)}(h **Context**h]jz)}(hj#h]hContext}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM* hjubj9)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM+ hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*folio_wait_writeback_killable (C function)c.folio_wait_writeback_killablehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h7int folio_wait_writeback_killable (struct folio *folio)h]h)}(h6int folio_wait_writeback_killable(struct folio *folio)h](j)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM: ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjvhM: ubh)}(hfolio_wait_writeback_killableh]h)}(hfolio_wait_writeback_killableh]hfolio_wait_writeback_killable}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjdhhhjvhM: ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_wait_writeback_killableasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjdhhhjvhM: ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj`hhhjvhM: ubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1hhjvhM: hj]hhubj )}(hhh]j9)}(h%Wait for a folio to finish writeback.h]h%Wait for a folio to finish writeback.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM: hj%hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhjvhM: ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j@j4j@j5j6j7uh1hhhhjwhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM> hjDubj)}(hhh]j)}(h/``struct folio *folio`` The folio to wait for. h](j)}(h``struct folio *folio``h]j?)}(hjih]hstruct folio *folio}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM; hjcubj)}(hhh]j9)}(hThe folio to wait for.h]hThe folio to wait for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj~hM; hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM; hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM= hjDubj9)}(hrIf the folio is currently being written back to storage, wait for the I/O to complete or a fatal signal to arrive.h]hrIf the folio is currently being written back to storage, wait for the I/O to complete or a fatal signal to arrive.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM< hjDubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM? hjDubj9)}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM@ hjDubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chME hjDubj9)}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMD hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_wait_stable (C function)c.folio_wait_stablehNtauh1hhjwhhhNhNubh)}(hhh](h)}(h,void folio_wait_stable (struct folio *folio)h]h)}(h+void folio_wait_stable(struct folio *folio)h](j)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMS ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhjEhMS ubh)}(hfolio_wait_stableh]h)}(hfolio_wait_stableh]hfolio_wait_stable}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubah}(h]h ](jjeh"]h$]h&]jj uh1hhj3hhhjEhMS ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjthhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjZsbc.folio_wait_stableasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjpubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjlubah}(h]h ]h"]h$]h&]jj uh1jhj3hhhjEhMS ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj/hhhjEhMS ubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjEhMS hj,hhubj )}(hhh]j9)}(h+wait for writeback to finish, if necessary.h]h+wait for writeback to finish, if necessary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMS hjhhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhMS ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjwhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMW hjubj)}(hhh]j)}(h.``struct folio *folio`` The folio to wait on. h](j)}(h``struct folio *folio``h]j?)}(hj8h]hstruct folio *folio}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMT hj2ubj)}(hhh]j9)}(hThe folio to wait on.h]hThe folio to wait on.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMhMT hjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMT hj/ubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMV hjubj9)}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMU hjubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMY hjubj9)}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMZ hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjwhhhNhNubeh}(h] writebackah ]h"] writebackah$]h&]uh1hhj;hhhhhKJubh)}(hhh](h)}(hTruncateh]hTruncate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKPubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_invalidate (C function)c.folio_invalidatehNtauh1hhjhhhNhNubh)}(hhh](h)}(hIvoid folio_invalidate (struct folio *folio, size_t offset, size_t length)h]h)}(hHvoid folio_invalidate(struct folio *folio, size_t offset, size_t length)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKyubh)}(hfolio_invalidateh]h)}(hfolio_invalidateh]hfolio_invalidate}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKyubj)}(h3(struct folio *folio, size_t offset, size_t length)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]h)}(hfolioh]hfolio}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjUmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_invalidateasbuh1hhj1ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj1ubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubj)}(h size_t offseth](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]joc.folio_invalidateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubj)}(h size_t lengthh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]joc.folio_invalidateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hlengthh]hlength}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKyubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKyubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKyhjhhubj )}(hhh]j9)}(h"Invalidate part or all of a folio.h]h"Invalidate part or all of a folio.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKyhjEhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKyubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j`j4j`j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK}hjdubj)}(hhh](j)}(h5``struct folio *folio`` The folio which is affected. h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKzhjubj)}(hhh]j9)}(hThe folio which is affected.h]hThe folio which is affected.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKzhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKzhjubj)}(h3``size_t offset`` start of the range to invalidate h](j)}(h``size_t offset``h]j?)}(hjh]h size_t offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK{hjubj)}(hhh]j9)}(h start of the range to invalidateh]h start of the range to invalidate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhK{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK{hjubj)}(h4``size_t length`` length of the range to invalidate h](j)}(h``size_t length``h]j?)}(hjh]h size_t length}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK|hjubj)}(hhh]j9)}(h!length of the range to invalidateh]h!length of the range to invalidate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhK|hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK|hjubeh}(h]h ]h"]h$]h&]uh1jhjdubj9)}(h**Description**h]jz)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK~hjdubj9)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK}hjdubj9)}(hX)folio_invalidate() does not have to release all buffers, but it must ensure that no dirty buffer is left outside **offset** and that no I/O is underway against any of the blocks which are outside the truncation point. Because the caller is about to free (and possibly reuse) those blocks on-disk.h](hqfolio_invalidate() does not have to release all buffers, but it must ensure that no dirty buffer is left outside }(hj[hhhNhNubjz)}(h **offset**h]hoffset}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubh and that no I/O is underway against any of the blocks which are outside the truncation point. Because the caller is about to free (and possibly reuse) those blocks on-disk.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'truncate_inode_pages_range (C function)c.truncate_inode_pages_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(h[void truncate_inode_pages_range (struct address_space *mapping, loff_t lstart, loff_t lend)h]h)}(hZvoid truncate_inode_pages_range(struct address_space *mapping, loff_t lstart, loff_t lend)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM>ubh)}(htruncate_inode_pages_rangeh]h)}(htruncate_inode_pages_rangeh]htruncate_inode_pages_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM>ubj)}(h;(struct address_space *mapping, loff_t lstart, loff_t lend)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.truncate_inode_pages_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj%hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t lstarth](h)}(hhh]h)}(hloff_th]hloff_t}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjPmodnameN classnameNj\j_)}jb]jc.truncate_inode_pages_rangeasbuh1hhjGubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(hlstarth]hlstart}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t lendh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.truncate_inode_pages_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hlendh]hlend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM>ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM>hjhhubj )}(hhh]j9)}(h=truncate range of pages specified by start & end byte offsetsh]h=truncate range of pages specified by start & end byte offsets}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM>hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM>ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct address_space *mapping`` mapping to truncate ``loff_t lstart`` offset from which to truncate ``loff_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](j9)}(h**Parameters**h]jz)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMBhj ubj)}(hhh](j)}(h6``struct address_space *mapping`` mapping to truncate h](j)}(h!``struct address_space *mapping``h]j?)}(hj- h]hstruct address_space *mapping}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj+ ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM?hj' ubj)}(hhh]j9)}(hmapping to truncateh]hmapping to truncate}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjB hM?hjC ubah}(h]h ]h"]h$]h&]uh1jhj' ubeh}(h]h ]h"]h$]h&]uh1jhjB hM?hj$ ubj)}(h0``loff_t lstart`` offset from which to truncate h](j)}(h``loff_t lstart``h]j?)}(hjf h]h loff_t lstart}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjd ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM@hj` ubj)}(hhh]j9)}(hoffset from which to truncateh]hoffset from which to truncate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj{ hM@hj| ubah}(h]h ]h"]h$]h&]uh1jhj` ubeh}(h]h ]h"]h$]h&]uh1jhj{ hM@hj$ ubj)}(h8``loff_t lend`` offset to which to truncate (inclusive) h](j)}(h``loff_t lend``h]j?)}(hj h]h loff_t lend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMAhj ubj)}(hhh]j9)}(h'offset to which to truncate (inclusive)h]h'offset to which to truncate (inclusive)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMAhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMAhj$ ubeh}(h]h ]h"]h$]h&]uh1jhj ubj9)}(h**Description**h]jz)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMChj ubj9)}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMBhj ubj9)}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMFhj ubj9)}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMLhj ubj9)}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMPhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!truncate_inode_pages (C function)c.truncate_inode_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hHvoid truncate_inode_pages (struct address_space *mapping, loff_t lstart)h]h)}(hGvoid truncate_inode_pages(struct address_space *mapping, loff_t lstart)h](j)}(hvoidh]hvoid}(hjL hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH 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&]uh1jhjH hhhjZ hMubh)}(htruncate_inode_pagesh]h)}(htruncate_inode_pagesh]htruncate_inode_pages}(hjm hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhji ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjH hhhjZ hMubj)}(h.(struct address_space *mapping, loff_t lstart)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjo sbc.truncate_inode_pagesasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hmappingh]hmapping}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(h loff_t lstarth](h)}(hhh]h)}(hloff_th]hloff_t}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]j c.truncate_inode_pagesasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hlstarth]hlstart}(hj* hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhjH hhhjZ hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjD hhhjZ hMubah}(h]j? ah ](jjeh"]h$]h&]jj)jhuh1hhjZ hMhjA hhubj )}(hhh]j9)}(h'truncate *all* the pages from an offseth](h truncate }(hjT hhhNhNubjK)}(h*all*h]hall}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjT ubh the pages from an offset}(hjT hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjQ hhubah}(h]h ]h"]h$]h&]uh1jhjA hhhjZ hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j~ j4j~ j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hM/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]j?)}(hj h]hstruct address_space *mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj ubj)}(hhh]j9)}(hmapping to truncateh]hmapping to truncate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(h0``loff_t lstart`` offset from which to truncate h](j)}(h``loff_t lstart``h]j?)}(hj h]h loff_t lstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj ubj)}(hhh]j9)}(hoffset from which to truncateh]hoffset from which to truncate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj9)}(h**Description**h]jz)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj ubj9)}(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.}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj ubj9)}(h**Note**h]jz)}(hjB h]hNote}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@ ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj ubj9)}(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.}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'truncate_inode_pages_final (C function)c.truncate_inode_pages_finalhNtauh1hhjhhhNhNubh)}(hhh](h)}(h?void truncate_inode_pages_final (struct address_space *mapping)h]h)}(h>void truncate_inode_pages_final(struct address_space *mapping)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubh)}(htruncate_inode_pages_finalh]h)}(htruncate_inode_pages_finalh]htruncate_inode_pages_final}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj hMubj)}(h(struct address_space *mapping)h]j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXj sbc.truncate_inode_pages_finalasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hmappingh]hmapping}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubah}(h]h ]h"]h$]h&]jj uh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj hMubah}(h]jz ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj| hhubj )}(hhh]j9)}(h&truncate *all* pages before inode diesh](h truncate }(hjG hhhNhNubjK)}(h*all*h]hall}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjG ubh pages before inode dies}(hjG hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjD hhubah}(h]h ]h"]h$]h&]uh1jhj| hhhj hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jq j4jq j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj{ h]h Parameters}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjy ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhju ubj)}(hhh]j)}(h6``struct address_space *mapping`` mapping to truncate h](j)}(h!``struct address_space *mapping``h]j?)}(hj h]hstruct address_space *mapping}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj ubj)}(hhh]j9)}(hmapping to truncateh]hmapping to truncate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhju ubj9)}(h**Description**h]jz)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhju ubj9)}(h0Called under (and serialized by) inode->i_rwsem.h]h0Called under (and serialized by) inode->i_rwsem.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhju ubj9)}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhju ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%invalidate_mapping_pages (C function)c.invalidate_mapping_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hbunsigned long invalidate_mapping_pages (struct address_space *mapping, pgoff_t start, pgoff_t end)h]h)}(haunsigned long invalidate_mapping_pages(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hunsignedh]hunsigned}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM1ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj7hM1ubj)}(hlongh]hlong}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj7hM1ubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj7hM1ubh)}(hinvalidate_mapping_pagesh]h)}(hinvalidate_mapping_pagesh]hinvalidate_mapping_pages}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ](jjeh"]h$]h&]jj uh1hhj%hhhj7hM1ubj)}(h;(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjhsbc.invalidate_mapping_pagesasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj~ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubj)}(h pgoff_t starth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.invalidate_mapping_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hstarth]hstart}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubj)}(h pgoff_t endh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjAmodnameN classnameNj\j_)}jb]jc.invalidate_mapping_pagesasbuh1hhj8ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hendh]hend}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubeh}(h]h ]h"]h$]h&]jj uh1jhj%hhhj7hM1ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj!hhhj7hM1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hM1hjhhubj )}(hhh]j9)}(h1Invalidate all clean, unlocked cache of one inodeh]h1Invalidate all clean, unlocked cache of one inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM1hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hM1ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM5hjubj)}(hhh](j)}(hX``struct address_space *mapping`` the address_space which holds the cache to invalidate h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM2hjubj)}(hhh]j9)}(h5the address_space which holds the cache to invalidateh]h5the address_space which holds the cache to invalidate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(h8``pgoff_t start`` the offset 'from' which to invalidate h](j)}(h``pgoff_t start``h]j?)}(hjh]h pgoff_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM3hj ubj)}(hhh]j9)}(h%the offset 'from' which to invalidateh]h)the offset ‘from’ which to invalidate}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj$hM3hj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM3hjubj)}(h@``pgoff_t end`` the offset 'to' which to invalidate (inclusive) h](j)}(h``pgoff_t end``h]j?)}(hjHh]h pgoff_t end}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjFubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM4hjBubj)}(hhh]j9)}(h/the offset 'to' which to invalidate (inclusive)h]h3the offset ‘to’ which to invalidate (inclusive)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj]hM4hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM4hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM6hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM5hjubj9)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM8hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM;hjubj9)}(h9The number of indices that had their contents invalidatedh]h9The number of indices that had their contents invalidated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM<hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*invalidate_inode_pages2_range (C function)c.invalidate_inode_pages2_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(h]int invalidate_inode_pages2_range (struct address_space *mapping, pgoff_t start, pgoff_t end)h]h)}(h\int invalidate_inode_pages2_range(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/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&]uh1jhjhhhj hM}ubh)}(hinvalidate_inode_pages2_rangeh]h)}(hinvalidate_inode_pages2_rangeh]hinvalidate_inode_pages2_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj hM}ubj)}(h;(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj;hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj[modnameN classnameNj\j_)}jb]je)}jXj!sbc.invalidate_inode_pages2_rangeasbuh1hhj7ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj7ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj3ubj)}(h pgoff_t starth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]juc.invalidate_inode_pages2_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj3ubj)}(h pgoff_t endh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]juc.invalidate_inode_pages2_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hendh]hend}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj3ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj hM}ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj hM}ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hM}hjhhubj )}(hhh]j9)}(h+remove range of pages from an address_spaceh]h+remove range of pages from an address_space}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM}hjKhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM}ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jfj4jfj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjjubj)}(hhh](j)}(h4``struct address_space *mapping`` the address_space h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM~hjubj)}(hhh]j9)}(hthe address_spaceh]hthe address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjubj)}(h=``pgoff_t start`` the page offset 'from' which to invalidate h](j)}(h``pgoff_t start``h]j?)}(hjh]h pgoff_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubj)}(hhh]j9)}(h*the page offset 'from' which to invalidateh]h.the page offset ‘from’ which to invalidate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hE``pgoff_t end`` the page offset 'to' which to invalidate (inclusive) h](j)}(h``pgoff_t end``h]j?)}(hjh]h pgoff_t end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubj)}(hhh]j9)}(h4the page offset 'to' which to invalidate (inclusive)h]h8the page offset ‘to’ which to invalidate (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjjubj9)}(h**Description**h]jz)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjjubj9)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjjubj9)}(h **Return**h]jz)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjjubj9)}(h--EBUSY if any pages could not be invalidated.h]h--EBUSY if any pages could not be invalidated.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$invalidate_inode_pages2 (C function)c.invalidate_inode_pages2hNtauh1hhjhhhNhNubh)}(hhh](h)}(h;int invalidate_inode_pages2 (struct address_space *mapping)h]h)}(h:int invalidate_inode_pages2(struct address_space *mapping)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hinvalidate_inode_pages2h]h)}(hinvalidate_inode_pages2h]hinvalidate_inode_pages2}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(struct address_space *mapping)h]j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.invalidate_inode_pages2asbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj1hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h&remove all pages from an address_spaceh]h&remove all pages from an address_space}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubj)}(hhh]j)}(h4``struct address_space *mapping`` the address_space h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubj)}(hhh]j9)}(hthe address_spaceh]hthe address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubj9)}(h **Return**h]jz)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubj9)}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtruncate_pagecache (C function)c.truncate_pagecachehNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void truncate_pagecache (struct inode *inode, loff_t newsize)h]h)}(h ah"]h$]h&]uh1j1 hjubh)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hloff_t newsizeh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.truncate_pagecacheasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnewsizeh]hnewsize}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjLhhhj^hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjHhhhj^hMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhj^hMhjEhhubj )}(hhh]j9)}(h2unmap and remove pagecache that has been truncatedh]h2unmap and remove pagecache that has been truncated}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjUhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj^hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jpj4jpj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjtubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j?)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubj)}(hhh]j9)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``loff_t newsize`` new file size h](j)}(h``loff_t newsize``h]j?)}(hjh]hloff_t newsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubj)}(hhh]j9)}(h new file sizeh]h new file size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjtubj9)}(h**Description**h]jz)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjtubj9)}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjtubj9)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtruncate_setsize (C function)c.truncate_setsizehNtauh1hhjhhhNhNubh)}(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}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhjohMubh)}(htruncate_setsizeh]h)}(htruncate_setsizeh]htruncate_setsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj]hhhjohMubj)}(h%(struct inode *inode, loff_t newsize)h](j)}(hstruct inode *inodeh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.truncate_setsizeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hloff_t newsizeh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.truncate_setsizeasbuh1hhj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hnewsizeh]hnewsize}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj]hhhjohMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjYhhhjohMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjVhhubj )}(hhh]j9)}(h.update inode and pagecache for a new file sizeh]h.update inode and pagecache for a new file size}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM hjubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j?)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubj)}(hhh]j9)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``loff_t newsize`` new file size h](j)}(h``loff_t newsize``h]j?)}(hjh]hloff_t newsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM hjubj)}(hhh]j9)}(h new file sizeh]h new file size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM hjubj9)}(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 }(hj4hhhNhNubjz)}(h **newsize**h]hnewsize}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubhf. It will be typically be called from the filesystem’s setattr function when ATTR_SIZE is passed in.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM hjubj9)}(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.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%pagecache_isize_extended (C function)c.pagecache_isize_extendedhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpagecache_isize_extendedh]h)}(hpagecache_isize_extendedh]hpagecache_isize_extended}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h-(struct inode *inode, loff_t from, loff_t to)h](j)}(hstruct inode *inodeh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pagecache_isize_extendedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t fromh](h)}(hhh]h)}(hloff_th]hloff_t}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]jc.pagecache_isize_extendedasbuh1hhj/ubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hfromh]hfrom}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t toh](h)}(hhh]h)}(hloff_th]hloff_t}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.pagecache_isize_extendedasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(htoh]hto}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj|hhhjhMubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjyhhubj )}(hhh]j9)}(h*update pagecache after extension of i_sizeh]h*update pagecache after extension of i_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM#hjubj)}(hhh](j)}(h<``struct inode *inode`` inode for which i_size was extended h](j)}(h``struct inode *inode``h]j?)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM hjubj)}(hhh]j9)}(h#inode for which i_size was extendedh]h#inode for which i_size was extended}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hM hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hM hj ubj)}(h$``loff_t from`` original inode size h](j)}(h``loff_t from``h]j?)}(hjNh]h loff_t from}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjLubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM!hjHubj)}(hhh]j9)}(horiginal inode sizeh]horiginal inode size}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjchM!hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM!hj ubj)}(h``loff_t to`` new inode size h](j)}(h ``loff_t to``h]j?)}(hjh]h loff_t to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM"hjubj)}(hhh]j9)}(hnew inode sizeh]hnew inode size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hj ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM$hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM#hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%truncate_pagecache_range (C function)c.truncate_pagecache_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hOvoid truncate_pagecache_range (struct inode *inode, loff_t lstart, loff_t lend)h]h)}(hNvoid truncate_pagecache_range(struct inode *inode, loff_t lstart, loff_t lend)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/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&]uh1jhjhhhj$hM_ubh)}(htruncate_pagecache_rangeh]h)}(htruncate_pagecache_rangeh]htruncate_pagecache_range}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj$hM_ubj)}(h1(struct inode *inode, loff_t lstart, loff_t lend)h](j)}(hstruct inode *inodeh](j!)}(hj$h]hstruct}(hjShhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]h)}(hinodeh]hinode}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjsmodnameN classnameNj\j_)}jb]je)}jXj9sbc.truncate_pagecache_rangeasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjOubh)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjKubj)}(h loff_t lstarth](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.truncate_pagecache_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hlstarth]hlstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjKubj)}(h loff_t lendh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.truncate_pagecache_rangeasbuh1hhj ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hlendh]hlend}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjKubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj$hM_ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj$hM_ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj$hM_hj hhubj )}(hhh]j9)}(h/unmap and remove pagecache that is hole-punchedh]h/unmap and remove pagecache that is hole-punched}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM_hjchhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hM_ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j~j4j~j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMchjubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j?)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM`hjubj)}(hhh]j9)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubj)}(h.``loff_t lstart`` offset of beginning of hole h](j)}(h``loff_t lstart``h]j?)}(hjh]h loff_t lstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMahjubj)}(hhh]j9)}(hoffset of beginning of holeh]hoffset of beginning of hole}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubj)}(h,``loff_t lend`` offset of last byte of hole h](j)}(h``loff_t lend``h]j?)}(hjh]h loff_t lend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMbhjubj)}(hhh]j9)}(hoffset of last byte of holeh]hoffset of last byte of hole}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj.hMbhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMbhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMdhjubj9)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMchjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_set_wb_err (C function)c.filemap_set_wb_errhNtauh1hhjhhhNhNubh)}(hhh](h)}(h@void filemap_set_wb_err (struct address_space *mapping, int err)h]h)}(h?void filemap_set_wb_err(struct address_space *mapping, int err)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKHubh)}(hfilemap_set_wb_errh]h)}(hfilemap_set_wb_errh]hfilemap_set_wb_err}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKHubj)}(h((struct address_space *mapping, int err)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_set_wb_errasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj"hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint errh](j)}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(herrh]herr}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKHubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKHubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKHhjhhubj )}(hhh]j9)}(h)set a writeback error on an address_spaceh]h)set a writeback error on an address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKHhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKHubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKLhjubj)}(hhh](j)}(hJ``struct address_space *mapping`` mapping in which to set writeback error h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKIhjubj)}(hhh]j9)}(h'mapping in which to set writeback errorh]h'mapping in which to set writeback error}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKIhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKIhjubj)}(h'``int err`` error to be set in mapping h](j)}(h ``int err``h]j?)}(hj h]hint err}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKJhj ubj)}(hhh]j9)}(herror to be set in mappingh]herror to be set in mapping}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hKJhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKJhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjC h]h Description}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjA ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKLhjubj9)}(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.}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKKhjubj9)}(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.}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!filemap_check_wb_err (C function)c.filemap_check_wb_errhNtauh1hhjhhhNhNubh)}(hhh](h)}(hHint filemap_check_wb_err (struct address_space *mapping, errseq_t since)h]h)}(hGint filemap_check_wb_err(struct address_space *mapping, errseq_t since)h](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK]ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hK]ubh)}(hfilemap_check_wb_errh]h)}(hfilemap_check_wb_errh]hfilemap_check_wb_err}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj hK]ubj)}(h/(struct address_space *mapping, errseq_t since)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXj sbc.filemap_check_wb_errasbuh1hhj ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hj !hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hmappingh]hmapping}(hj-!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(herrseq_t sinceh](h)}(hhh]h)}(herrseq_th]herrseq_t}(hjI!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjF!ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjK!modnameN classnameNj\j_)}jb]j!c.filemap_check_wb_errasbuh1hhjB!ubj)}(h h]h }(hjg!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB!ubh)}(hsinceh]hsince}(hju!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjB!ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhj hhhj hK]ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj hK]ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hK]hj hhubj )}(hhh]j9)}(h1has an error occurred since the mark was sampled?h]h1has an error occurred since the mark was sampled?}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK]hj!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hK]ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j!j4j!j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKahj!ubj)}(hhh](j)}(hH``struct address_space *mapping`` mapping to check for writeback errors h](j)}(h!``struct address_space *mapping``h]j?)}(hj!h]hstruct address_space *mapping}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj!ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK^hj!ubj)}(hhh]j9)}(h%mapping to check for writeback errorsh]h%mapping to check for writeback errors}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!hK^hj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hK^hj!ubj)}(h/``errseq_t since`` previously-sampled errseq_t h](j)}(h``errseq_t since``h]j?)}(hj"h]herrseq_t since}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK_hj"ubj)}(hhh]j9)}(hpreviously-sampled errseq_th]hpreviously-sampled errseq_t}(hj2"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj."hK_hj/"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj."hK_hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubj9)}(h**Description**h]jz)}(hjT"h]h Description}(hjV"hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjR"ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKahj!ubj9)}(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.}(hjj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK`hj!ubj9)}(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.}(hjy"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKchj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"filemap_sample_wb_err (C function)c.filemap_sample_wb_errhNtauh1hhjhhhNhNubh)}(hhh](h)}(h>errseq_t filemap_sample_wb_err (struct address_space *mapping)h]h)}(h=errseq_t filemap_sample_wb_err(struct address_space *mapping)h](h)}(hhh]h)}(herrseq_th]herrseq_t}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj"modnameN classnameNj\j_)}jb]je)}jXfilemap_sample_wb_errsbc.filemap_sample_wb_errasbuh1hhj"hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKmubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhj"hKmubh)}(hfilemap_sample_wb_errh]h)}(hj"h]hfilemap_sample_wb_err}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj"hhhj"hKmubj)}(h(struct address_space *mapping)h]j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj"hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj"ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj#modnameN classnameNj\j_)}jb]j"c.filemap_sample_wb_errasbuh1hhj"ubj)}(h h]h }(hj6#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj2 )}(hj5 h]h*}(hjD#hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj"ubh)}(hmappingh]hmapping}(hjQ#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj"ubah}(h]h ]h"]h$]h&]jj uh1jhj"hhhj"hKmubeh}(h]h ]h"]h$]h&]jj juh1hjjhj"hhhj"hKmubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj"hKmhj"hhubj )}(hhh]j9)}(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&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKmhjx#hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj"hKmubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j#j4j#j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKqhj#ubj)}(hhh]j)}(h8``struct address_space *mapping`` mapping to be sampled h](j)}(h!``struct address_space *mapping``h]j?)}(hj#h]hstruct address_space *mapping}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKnhj#ubj)}(hhh]j9)}(hmapping to be sampledh]hmapping to be sampled}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj#hKnhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hKnhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubj9)}(h**Description**h]jz)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKphj#ubj9)}(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&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKohj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfile_sample_sb_err (C function)c.file_sample_sb_errhNtauh1hhjhhhNhNubh)}(hhh](h)}(h/errseq_t file_sample_sb_err (struct file *file)h]h)}(h.errseq_t file_sample_sb_err(struct file *file)h](h)}(hhh]h)}(herrseq_th]herrseq_t}(hj?$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<$ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjA$modnameN classnameNj\j_)}jb]je)}jXfile_sample_sb_errsbc.file_sample_sb_errasbuh1hhj8$hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKyubj)}(h h]h }(hja$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8$hhhj`$hKyubh)}(hfile_sample_sb_errh]h)}(hj]$h]hfile_sample_sb_err}(hjs$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjo$ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8$hhhj`$hKyubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j!)}(hj$h]hstruct}(hj$hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]h)}(hfileh]hfile}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj$modnameN classnameNj\j_)}jb]j[$c.file_sample_sb_errasbuh1hhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2 )}(hj5 h]h*}(hj$hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj$ubh)}(hfileh]hfile}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj$ubah}(h]h ]h"]h$]h&]jj uh1jhj8$hhhj`$hKyubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4$hhhj`$hKyubah}(h]j/$ah ](jjeh"]h$]h&]jj)jhuh1hhj`$hKyhj1$hhubj )}(hhh]j9)}(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&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKyhj %hhubah}(h]h ]h"]h$]h&]uh1jhj1$hhhj`$hKyubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j'%j4j'%j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj1%h]h Parameters}(hj3%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/%ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK}hj+%ubj)}(hhh]j)}(h1``struct file *file`` file pointer to be sampled h](j)}(h``struct file *file``h]j?)}(hjP%h]hstruct file *file}(hjR%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjN%ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKzhjJ%ubj)}(hhh]j9)}(hfile pointer to be sampledh]hfile pointer to be sampled}(hji%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hje%hKzhjf%ubah}(h]h ]h"]h$]h&]uh1jhjJ%ubeh}(h]h ]h"]h$]h&]uh1jhje%hKzhjG%ubah}(h]h ]h"]h$]h&]uh1jhj+%ubj9)}(h**Description**h]jz)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK|hj+%ubj9)}(hPGrab the most current superblock-level errseq_t value for the given struct file.h]hPGrab the most current superblock-level errseq_t value for the given struct file.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhK{hj+%ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmapping_set_error (C function)c.mapping_set_errorhNtauh1hhjhhhNhNubh)}(hhh](h)}(hAvoid mapping_set_error (struct address_space *mapping, int error)h]h)}(h@void mapping_set_error(struct address_space *mapping, int error)h](j)}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hKubh)}(hmapping_set_errorh]h)}(hmapping_set_errorh]hmapping_set_error}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj%hhhj%hKubj)}(h*(struct address_space *mapping, int error)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj &hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj &ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj &ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj+&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(&ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj-&modnameN classnameNj\j_)}jb]je)}jXj%sbc.mapping_set_errorasbuh1hhj &ubj)}(h h]h }(hjK&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj &ubj2 )}(hj5 h]h*}(hjY&hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj &ubh)}(hmappingh]hmapping}(hjf&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj &ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj&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{&ubh)}(herrorh]herror}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{&ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj&ubeh}(h]h ]h"]h$]h&]jj uh1jhj%hhhj%hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj%hhhj%hKubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj%hKhj%hhubj )}(hhh]j9)}(h-record a writeback error in the address_spaceh]h-record a writeback error in the address_space}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j&j4j&j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj&ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj&ubj)}(hhh](j)}(hN``struct address_space *mapping`` the mapping in which an error should be set h](j)}(h!``struct address_space *mapping``h]j?)}(hj'h]hstruct address_space *mapping}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj'ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj'ubj)}(hhh]j9)}(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&]uh1j8hj'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]j?)}(hj?'h]h int error}(hjA'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj='ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj9'ubj)}(hhh]j9)}(hthe error to set in the mappingh]hthe error to set in the mapping}(hjX'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjT'hKhjU'ubah}(h]h ]h"]h$]h&]uh1jhj9'ubeh}(h]h ]h"]h$]h&]uh1jhjT'hKhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&ubj9)}(h**Description**h]jz)}(hjz'h]h Description}(hj|'hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjx'ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj&ubj9)}(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&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj&ubj9)}(hWhen a writeback error occurs, most filesystems will want to call mapping_set_error to record the error in the mapping so that it can be reported when the application calls fsync(2).h]hWhen a writeback error occurs, most filesystems will want to call mapping_set_error to record the error in the mapping so that it can be reported when the application calls fsync(2).}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%mapping_set_large_folios (C function)c.mapping_set_large_folioshNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void mapping_set_large_folios (struct address_space *mapping)h]h)}(h ah"]h$]h&]uh1j1 hj(ubh)}(hmappingh]hmapping}(hjd(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj(ubah}(h]h ]h"]h$]h&]jj uh1jhj'hhhj'hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj'hhhj'hMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhj'hhubj )}(hhh]j9)}(h(Indicate the file supports large folios.h]h(Indicate the file supports large folios.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j(j4j(j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj(ubah}(h]h ]h"]h$]h&]uh1j8hW/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]j?)}(hj(h]hstruct address_space *mapping}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj(ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj(ubj)}(hhh]j9)}(hThe address space of the file.h]hThe address space of the file.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj(hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubj9)}(h**Description**h]jz)}(hj )h]h Description}(hj )hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj)ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj(ubj9)}(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&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj(ubj9)}(h **Context**h]jz)}(hj1)h]hContext}(hj3)hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/)ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj(ubj9)}(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.}(hjG)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ mapping_align_index (C function)c.mapping_align_indexhNtauh1hhjhhhNhNubh)}(hhh](h)}(hJpgoff_t mapping_align_index (struct address_space *mapping, pgoff_t index)h]h)}(hIpgoff_t mapping_align_index(struct address_space *mapping, pgoff_t index)h](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjy)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjv)ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{)modnameN classnameNj\j_)}jb]je)}jXmapping_align_indexsbc.mapping_align_indexasbuh1hhjr)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&]uh1jhjr)hhhj)hMubh)}(hmapping_align_indexh]h)}(hj)h]hmapping_align_index}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjr)hhhj)hMubj)}(h.(struct address_space *mapping, pgoff_t index)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj)hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj)modnameN classnameNj\j_)}jb]j)c.mapping_align_indexasbuh1hhj)ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2 )}(hj5 h]h*}(hj*hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj)ubh)}(hmappingh]hmapping}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)ubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj;*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8*ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj=*modnameN classnameNj\j_)}jb]j)c.mapping_align_indexasbuh1hhj4*ubj)}(h h]h }(hjY*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4*ubh)}(hindexh]hindex}(hjg*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)ubeh}(h]h ]h"]h$]h&]jj uh1jhjr)hhhj)hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjn)hhhj)hMubah}(h]ji)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hMhjk)hhubj )}(hhh]j9)}(hAlign index for this mapping.h]hAlign index for this mapping.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj*hhubah}(h]h ]h"]h$]h&]uh1jhjk)hhhj)hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j*j4j*j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``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](j9)}(h**Parameters**h]jz)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj*ubj)}(hhh](j)}(h5``struct address_space *mapping`` The address_space. h](j)}(h!``struct address_space *mapping``h]j?)}(hj*h]hstruct address_space *mapping}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj*ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj*ubj)}(hhh]j9)}(hThe address_space.h]hThe address_space.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj*ubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]j?)}(hj +h]h pgoff_t index}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj +ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj+ubj)}(hhh]j9)}(hThe page index.h]hThe page index.}(hj$+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj +hMhj!+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj +hMhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*ubj9)}(h**Description**h]jz)}(hjF+h]h Description}(hjH+hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjD+ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj*ubj9)}(hThe index of a folio must be naturally aligned. If you are adding a new folio to the page cache and need to know what index to give it, call this function.h]hThe index of a folio must be naturally aligned. If you are adding a new folio to the page cache and need to know what index to give it, call this function.}(hj\+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_flush_mapping (C function)c.folio_flush_mappinghNtauh1hhjhhhNhNubh)}(hhh](h)}(h@struct address_space * folio_flush_mapping (struct folio *folio)h]h)}(h>struct address_space *folio_flush_mapping(struct folio *folio)h](j!)}(hj$h]hstruct}(hj+hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj+hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM%ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj+hM%ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj+modnameN classnameNj\j_)}jb]je)}jXfolio_flush_mappingsbc.folio_flush_mappingasbuh1hhj+hhhj+hM%ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj+hM%ubj2 )}(hj5 h]h*}(hj+hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj+hhhj+hM%ubh)}(hfolio_flush_mappingh]h)}(hj+h]hfolio_flush_mapping}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj+hhhj+hM%ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj,hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubh)}(hhh]h)}(hfolioh]hfolio}(hj#,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ,ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj%,modnameN classnameNj\j_)}jb]j+c.folio_flush_mappingasbuh1hhj,ubj)}(h h]h }(hjA,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2 )}(hj5 h]h*}(hjO,hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj,ubh)}(hfolioh]hfolio}(hj\,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj+ubah}(h]h ]h"]h$]h&]jj uh1jhj+hhhj+hM%ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj+hhhj+hM%ubah}(h]j~+ah ](jjeh"]h$]h&]jj)jhuh1hhj+hM%hj+hhubj )}(hhh]j9)}(h,Find the file mapping this folio belongs to.h]h,Find the file mapping this folio belongs to.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM%hj,hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hM%ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j,j4j,j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM)hj,ubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj,h]hstruct folio *folio}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj,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]j9)}(h The folio.h]h The folio.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj,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,ubj9)}(h**Description**h]jz)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj-ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM(hj,ubj9)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM'hj,ubj9)}(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().}(hj'-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM+hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_inode (C function) c.folio_inodehNtauh1hhjhhhNhNubh)}(hhh](h)}(h0struct inode * folio_inode (struct folio *folio)h]h)}(h.struct inode *folio_inode(struct folio *folio)h](j!)}(hj$h]hstruct}(hjV-hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjR-hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM9ubj)}(h h]h }(hjd-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR-hhhjc-hM9ubh)}(hhh]h)}(hinodeh]hinode}(hju-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjr-ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjw-modnameN classnameNj\j_)}jb]je)}jX folio_inodesb c.folio_inodeasbuh1hhjR-hhhjc-hM9ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR-hhhjc-hM9ubj2 )}(hj5 h]h*}(hj-hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjR-hhhjc-hM9ubh)}(h folio_inodeh]h)}(hj-h]h folio_inode}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjR-hhhjc-hM9ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj-hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]h)}(hfolioh]hfolio}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj-modnameN classnameNj\j_)}jb]j- c.folio_inodeasbuh1hhj-ubj)}(h h]h }(hj .hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj2 )}(hj5 h]h*}(hj.hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj-ubh)}(hfolioh]hfolio}(hj'.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubah}(h]h ]h"]h$]h&]jj uh1jhjR-hhhjc-hM9ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjN-hhhjc-hM9ubah}(h]jI-ah ](jjeh"]h$]h&]jj)jhuh1hhjc-hM9hjK-hhubj )}(hhh]j9)}(h"Get the host inode for this folio.h]h"Get the host inode for this folio.}(hjQ.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM9hjN.hhubah}(h]h ]h"]h$]h&]uh1jhjK-hhhjc-hM9ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3ji.j4ji.j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjs.h]h Parameters}(hju.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjq.ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM=hjm.ubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj.h]hstruct folio *folio}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj.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]j9)}(h The folio.h]h The folio.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj.hM:hj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM:hj.ubah}(h]h ]h"]h$]h&]uh1jhjm.ubj9)}(h**Description**h]jz)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM<hjm.ubj9)}(hTFor folios which are in the page cache, return the inode that this folio belongs to.h]hTFor folios which are in the page cache, return the inode that this folio belongs to.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM;hjm.ubj9)}(h;Do not call this for folios which aren't in the page cache.h]h=Do not call this for folios which aren’t in the page cache.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>hjm.ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!folio_attach_private (C function)c.folio_attach_privatehNtauh1hhjhhhNhNubh)}(hhh](h)}(h;void folio_attach_private (struct folio *folio, void *data)h]h)}(h:void folio_attach_private(struct folio *folio, void *data)h](j)}(hvoidh]hvoid}(hj!/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMGubj)}(h h]h }(hj0/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj//hMGubh)}(hfolio_attach_privateh]h)}(hfolio_attach_privateh]hfolio_attach_private}(hjB/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>/ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj/hhhj//hMGubj)}(h!(struct folio *folio, void *data)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj^/hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjZ/ubj)}(h h]h }(hjk/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ/ubh)}(hhh]h)}(hfolioh]hfolio}(hj|/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjy/ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~/modnameN classnameNj\j_)}jb]je)}jXjD/sbc.folio_attach_privateasbuh1hhjZ/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ/ubj2 )}(hj5 h]h*}(hj/hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZ/ubh)}(hfolioh]hfolio}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZ/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjV/ubj)}(h void *datah](j)}(hvoidh]hvoid}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2 )}(hj5 h]h*}(hj/hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj/ubh)}(hdatah]hdata}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjV/ubeh}(h]h ]h"]h$]h&]jj uh1jhj/hhhj//hMGubeh}(h]h ]h"]h$]h&]jj juh1hjjhj/hhhj//hMGubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhj//hMGhj/hhubj )}(hhh]j9)}(hAttach private data to a folio.h]hAttach private data to a folio.}(hj#0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMGhj 0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj//hMGubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j;0j4j;0j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct folio *folio`` Folio to attach data to. ``void *data`` Data to attach to folio. **Description** Attaching private data to a folio increments the page's reference count. The data must be detached before the folio will be freed.h](j9)}(h**Parameters**h]jz)}(hjE0h]h Parameters}(hjG0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjC0ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMKhj?0ubj)}(hhh](j)}(h1``struct folio *folio`` Folio to attach data to. h](j)}(h``struct folio *folio``h]j?)}(hjd0h]hstruct folio *folio}(hjf0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjb0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMHhj^0ubj)}(hhh]j9)}(hFolio to attach data to.h]hFolio to attach data to.}(hj}0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjy0hMHhjz0ubah}(h]h ]h"]h$]h&]uh1jhj^0ubeh}(h]h ]h"]h$]h&]uh1jhjy0hMHhj[0ubj)}(h(``void *data`` Data to attach to folio. h](j)}(h``void *data``h]j?)}(hj0h]h void *data}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMIhj0ubj)}(hhh]j9)}(hData to attach to folio.h]hData to attach to folio.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMIhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMIhj[0ubeh}(h]h ]h"]h$]h&]uh1jhj?0ubj9)}(h**Description**h]jz)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMKhj?0ubj9)}(hAttaching private data to a folio increments the page's reference count. The data must be detached before the folio will be freed.h]hAttaching private data to a folio increments the page’s reference count. The data must be detached before the folio will be freed.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMJhj?0ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!folio_change_private (C function)c.folio_change_privatehNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void * folio_change_private (struct folio *folio, void *data)h]h)}(h;void *folio_change_private(struct folio *folio, void *data)h](j)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMVubj)}(h h]h }(hj,1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj+1hMVubj2 )}(hj5 h]h*}(hj:1hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj1hhhj+1hMVubh)}(hfolio_change_privateh]h)}(hfolio_change_privateh]hfolio_change_private}(hjK1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjG1ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj1hhhj+1hMVubj)}(h!(struct folio *folio, void *data)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjg1hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjc1ubj)}(h h]h }(hjt1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc1ubh)}(hhh]h)}(hfolioh]hfolio}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]je)}jXjM1sbc.folio_change_privateasbuh1hhjc1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc1ubj2 )}(hj5 h]h*}(hj1hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjc1ubh)}(hfolioh]hfolio}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjc1ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj_1ubj)}(h void *datah](j)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2 )}(hj5 h]h*}(hj1hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj1ubh)}(hdatah]hdata}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj_1ubeh}(h]h ]h"]h$]h&]jj uh1jhj1hhhj+1hMVubeh}(h]h ]h"]h$]h&]jj juh1hjjhj1hhhj+1hMVubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj+1hMVhj1hhubj )}(hhh]j9)}(hChange private data on a folio.h]hChange private data on a folio.}(hj,2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMVhj)2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj+1hMVubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jD2j4jD2j5j6j7uh1hhhhjhNhNubjp)}(hXu**Parameters** ``struct folio *folio`` Folio to change the data on. ``void *data`` Data to set on the folio. **Description** Change the private data attached to a folio and return the old data. The page must previously have had data attached and the data must be detached before the folio will be freed. **Return** Data that was previously attached to the folio.h](j9)}(h**Parameters**h]jz)}(hjN2h]h Parameters}(hjP2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjL2ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMZhjH2ubj)}(hhh](j)}(h5``struct folio *folio`` Folio to change the data on. h](j)}(h``struct folio *folio``h]j?)}(hjm2h]hstruct folio *folio}(hjo2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjk2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMWhjg2ubj)}(hhh]j9)}(hFolio to change the data on.h]hFolio to change the data on.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hMWhj2ubah}(h]h ]h"]h$]h&]uh1jhjg2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMWhjd2ubj)}(h)``void *data`` Data to set on the folio. h](j)}(h``void *data``h]j?)}(hj2h]h void *data}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMXhj2ubj)}(hhh]j9)}(hData to set on the folio.h]hData to set on the folio.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hMXhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMXhjd2ubeh}(h]h ]h"]h$]h&]uh1jhjH2ubj9)}(h**Description**h]jz)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMZhjH2ubj9)}(hChange the private data attached to a folio and return the old data. The page must previously have had data attached and the data must be detached before the folio will be freed.h]hChange the private data attached to a folio and return the old data. The page must previously have had data attached and the data must be detached before the folio will be freed.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMYhjH2ubj9)}(h **Return**h]jz)}(hj3h]hReturn}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM]hjH2ubj9)}(h/Data that was previously attached to the folio.h]h/Data that was previously attached to the folio.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM^hjH2ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!folio_detach_private (C function)c.folio_detach_privatehNtauh1hhjhhhNhNubh)}(hhh](h)}(h1void * folio_detach_private (struct folio *folio)h]h)}(h/void *folio_detach_private(struct folio *folio)h](j)}(hvoidh]hvoid}(hjM3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI3hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMiubj)}(h h]h }(hj\3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI3hhhj[3hMiubj2 )}(hj5 h]h*}(hjj3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjI3hhhj[3hMiubh)}(hfolio_detach_privateh]h)}(hfolio_detach_privateh]hfolio_detach_private}(hj{3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjw3ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjI3hhhj[3hMiubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj3hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]h)}(hfolioh]hfolio}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3modnameN classnameNj\j_)}jb]je)}jXj}3sbc.folio_detach_privateasbuh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2 )}(hj5 h]h*}(hj3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj3ubh)}(hfolioh]hfolio}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj3ubah}(h]h ]h"]h$]h&]jj uh1jhjI3hhhj[3hMiubeh}(h]h ]h"]h$]h&]jj juh1hjjhjE3hhhj[3hMiubah}(h]j@3ah ](jjeh"]h$]h&]jj)jhuh1hhj[3hMihjB3hhubj )}(hhh]j9)}(h!Detach private data from a folio.h]h!Detach private data from a folio.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMihj4hhubah}(h]h ]h"]h$]h&]uh1jhjB3hhhj[3hMiubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j24j4j24j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct folio *folio`` Folio to detach data from. **Description** Removes the data that was previously attached to the folio and decrements the refcount on the page. **Return** Data that was attached to the folio.h](j9)}(h**Parameters**h]jz)}(hj<4h]h Parameters}(hj>4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:4ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMmhj64ubj)}(hhh]j)}(h3``struct folio *folio`` Folio to detach data from. h](j)}(h``struct folio *folio``h]j?)}(hj[4h]hstruct folio *folio}(hj]4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjY4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMjhjU4ubj)}(hhh]j9)}(hFolio to detach data from.h]hFolio to detach data from.}(hjt4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjp4hMjhjq4ubah}(h]h ]h"]h$]h&]uh1jhjU4ubeh}(h]h ]h"]h$]h&]uh1jhjp4hMjhjR4ubah}(h]h ]h"]h$]h&]uh1jhj64ubj9)}(h**Description**h]jz)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMlhj64ubj9)}(hcRemoves the data that was previously attached to the folio and decrements the refcount on the page.h]hcRemoves the data that was previously attached to the folio and decrements the refcount on the page.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMkhj64ubj9)}(h **Return**h]jz)}(hj4h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMnhj64ubj9)}(h$Data that was attached to the folio.h]h$Data that was attached to the folio.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMohj64ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfgf_t (C type)c.fgf_thNtauh1hhjhhhNhNubh)}(hhh](h)}(hfgf_th]h)}(h type fgf_th](j!)}(htypeh]htype}(hj5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMtubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj5hMtubh)}(hfgf_th]h)}(hj4h]hfgf_t}(hj#5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj4hhhj5hMtubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4hhhj5hMtubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhj5hMthj4hhubj )}(hhh]j9)}(h-Flags for getting folios from the page cache.h]h-Flags for getting folios from the page cache.}(hjE5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjB5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj5hMtubeh}(h]h ](j-typeeh"]h$]h&]j2j-j3j]5j4j]5j5j6j7uh1hhhhjhNhNubj9)}(h**Description**h]jz)}(hjc5h]h Description}(hje5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhja5ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubj9)}(hXMost users of the page cache will not need to use these flags; there are convenience functions such as filemap_get_folio() and filemap_lock_folio(). For users which need more control over exactly what is done with the folios, these flags to __filemap_get_folio() are available.h]hXMost users of the page cache will not need to use these flags; there are convenience functions such as filemap_get_folio() and filemap_lock_folio(). For users which need more control over exactly what is done with the folios, these flags to __filemap_get_folio() are available.}(hjy5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubjު)}(hhh](j+)}(h5``FGP_ACCESSED`` - The folio will be marked accessed.h]j9)}(hj5h](j?)}(h``FGP_ACCESSED``h]h FGP_ACCESSED}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubh% - The folio will be marked accessed.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj5ubah}(h]h ]h"]h$]h&]uh1j+hj5ubj+)}(h,``FGP_LOCK`` - The folio is returned locked.h]j9)}(hj5h](j?)}(h ``FGP_LOCK``h]hFGP_LOCK}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubh - The folio is returned locked.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj5ubah}(h]h ]h"]h$]h&]uh1j+hj5ubj+)}(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]j9)}(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](j?)}(h ``FGP_CREAT``h]h FGP_CREAT}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubh - 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.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj5ubah}(h]h ]h"]h$]h&]uh1j+hj5ubj+)}(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]j9)}(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](j?)}(h``FGP_FOR_MMAP``h]h FGP_FOR_MMAP}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubh - 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.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj5ubah}(h]h ]h"]h$]h&]uh1j+hj5ubj+)}(h;``FGP_WRITE`` - The folio will be written to by the caller.h]j9)}(hj'6h](j?)}(h ``FGP_WRITE``h]h FGP_WRITE}(hj,6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj)6ubh. - The folio will be written to by the caller.}(hj)6hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj%6ubah}(h]h ]h"]h$]h&]uh1j+hj5ubj+)}(h0``FGP_NOFS`` - __GFP_FS will get cleared in gfp.h]j9)}(hjM6h](j?)}(h ``FGP_NOFS``h]hFGP_NOFS}(hjR6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjO6ubh$ - __GFP_FS will get cleared in gfp.}(hjO6hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjK6ubah}(h]h ]h"]h$]h&]uh1j+hj5ubj+)}(h/``FGP_NOWAIT`` - Don't block on the folio lock.h]j9)}(hjs6h](j?)}(h``FGP_NOWAIT``h]h FGP_NOWAIT}(hjx6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hju6ubh# - Don’t block on the folio lock.}(hju6hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjq6ubah}(h]h ]h"]h$]h&]uh1j+hj5ubj+)}(hE``FGP_STABLE`` - Wait for the folio to be stable (finished writeback)h]j9)}(hj6h](j?)}(h``FGP_STABLE``h]h FGP_STABLE}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubh7 - Wait for the folio to be stable (finished writeback)}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj6ubah}(h]h ]h"]h$]h&]uh1j+hj5ubj+)}(h(``FGP_DONTCACHE`` - Uncached buffered IOh]j9)}(hj6h](j?)}(h``FGP_DONTCACHE``h]h FGP_DONTCACHE}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubh - Uncached buffered IO}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj6ubah}(h]h ]h"]h$]h&]uh1j+hj5ubj+)}(hU``FGP_WRITEBEGIN`` - The flags to use in a filesystem write_begin() implementation. h]j9)}(hS``FGP_WRITEBEGIN`` - The flags to use in a filesystem write_begin() implementation.h](j?)}(h``FGP_WRITEBEGIN``h]hFGP_WRITEBEGIN}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubhA - The flags to use in a filesystem write_begin() implementation.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj6ubah}(h]h ]h"]h$]h&]uh1j+hj5ubeh}(h]h ]h"]h$]h&]jj5 uh1jݪhj5hMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfgf_set_order (C function)c.fgf_set_orderhNtauh1hhjhhhNhNubh)}(hhh](h)}(h!fgf_t fgf_set_order (size_t size)h]h)}(h fgf_t fgf_set_order(size_t size)h](h)}(hhh]h)}(hfgf_th]hfgf_t}(hj,7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)7ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj.7modnameN classnameNj\j_)}jb]je)}jX fgf_set_ordersbc.fgf_set_orderasbuh1hhj%7hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjN7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%7hhhjM7hMubh)}(h fgf_set_orderh]h)}(hjJ7h]h fgf_set_order}(hj`7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\7ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj%7hhhjM7hMubj)}(h (size_t size)h]j)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj~7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{7ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj7modnameN classnameNj\j_)}jb]jH7c.fgf_set_orderasbuh1hhjw7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw7ubh)}(hsizeh]hsize}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjw7ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjs7ubah}(h]h ]h"]h$]h&]jj uh1jhj%7hhhjM7hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj!7hhhjM7hMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjM7hMhj7hhubj )}(hhh]j9)}(h#Encode a length in the fgf_t flags.h]h#Encode a length in the fgf_t flags.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj7hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjM7hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j7j4j7j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj7ubj)}(hhh]j)}(h;``size_t size`` The suggested size of the folio to create. h](j)}(h``size_t size``h]j?)}(hj8h]h size_t size}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj8ubj)}(hhh]j9)}(h*The suggested size of the folio to create.h]h*The suggested size of the folio to create.}(hj.8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*8hMhj+8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj*8hMhj 8ubah}(h]h ]h"]h$]h&]uh1jhj7ubj9)}(h**Description**h]jz)}(hjP8h]h Description}(hjR8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjN8ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj7ubj9)}(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.}(hjf8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"write_begin_get_folio (C function)c.write_begin_get_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hystruct folio * write_begin_get_folio (const struct kiocb *iocb, struct address_space *mapping, pgoff_t index, size_t len)h]h)}(hwstruct folio *write_begin_get_folio(const struct kiocb *iocb, struct address_space *mapping, pgoff_t index, size_t len)h](j!)}(hj$h]hstruct}(hj8hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj8hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj8hMubh)}(hhh]h)}(hfolioh]hfolio}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]je)}jXwrite_begin_get_foliosbc.write_begin_get_folioasbuh1hhj8hhhj8hMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj8hMubj2 )}(hj5 h]h*}(hj8hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj8hhhj8hMubh)}(hwrite_begin_get_folioh]h)}(hj8h]hwrite_begin_get_folio}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8hhhj8hMubj)}(hT(const struct kiocb *iocb, struct address_space *mapping, pgoff_t index, size_t len)h](j)}(hconst struct kiocb *iocbh](j!)}(hjeh]hconst}(hj9hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj 9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 9ubj!)}(hj$h]hstruct}(hj*9hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj 9ubj)}(h h]h }(hj79hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 9ubh)}(hhh]h)}(hkiocbh]hkiocb}(hjH9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjE9ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjJ9modnameN classnameNj\j_)}jb]j8c.write_begin_get_folioasbuh1hhj 9ubj)}(h h]h }(hjf9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 9ubj2 )}(hj5 h]h*}(hjt9hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj 9ubh)}(hiocbh]hiocb}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj 9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj9hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj9modnameN classnameNj\j_)}jb]j8c.write_begin_get_folioasbuh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2 )}(hj5 h]h*}(hj9hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj9ubh)}(hmappingh]hmapping}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj :hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj :ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]j8c.write_begin_get_folioasbuh1hhj:ubj)}(h h]h }(hj+:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hindexh]hindex}(hj9:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(h size_t lenh](h)}(hhh]h)}(hsize_th]hsize_t}(hjU:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjR:ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjW:modnameN classnameNj\j_)}jb]j8c.write_begin_get_folioasbuh1hhjN:ubj)}(h h]h }(hjs:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN:ubh)}(hlenh]hlen}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjN:ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubeh}(h]h ]h"]h$]h&]jj uh1jhj8hhhj8hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj8hhhj8hMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj8hMhj8hhubj )}(hhh]j9)}(h%Get folio for write_begin with flags.h]h%Get folio for write_begin with flags.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j:j4j:j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:ubj)}(hhh](j)}(hN``const struct kiocb *iocb`` The kiocb passed from write_begin (may be NULL). h](j)}(h``const struct kiocb *iocb``h]j?)}(hj:h]hconst struct kiocb *iocb}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:ubj)}(hhh]j9)}(h0The kiocb passed from write_begin (may be NULL).h]h0The kiocb passed from write_begin (may be NULL).}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj:ubj)}(h?``struct address_space *mapping`` The address space to search. h](j)}(h!``struct address_space *mapping``h]j?)}(hj%;h]hstruct address_space *mapping}(hj';hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj#;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj;ubj)}(hhh]j9)}(hThe address space to search.h]hThe address space to search.}(hj>;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj:;hMhj;;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj:;hMhj:ubj)}(h(``pgoff_t index`` The page cache index. h](j)}(h``pgoff_t index``h]j?)}(hj^;h]h pgoff_t index}(hj`;hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj\;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjX;ubj)}(hhh]j9)}(hThe page cache index.h]hThe page cache index.}(hjw;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjs;hMhjt;ubah}(h]h ]h"]h$]h&]uh1jhjX;ubeh}(h]h ]h"]h$]h&]uh1jhjs;hMhj:ubj)}(h-``size_t len`` Length of data being written. h](j)}(h``size_t len``h]j?)}(hj;h]h size_t len}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj;ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj;ubj)}(hhh]j9)}(hLength of data being written.h]hLength of data being written.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj;hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:ubj9)}(h**Description**h]jz)}(hj;h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj;ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:ubj9)}(hThis is a helper for filesystem write_begin() implementations. It wraps __filemap_get_folio(), setting appropriate flags in the write begin context.h]hThis is a helper for filesystem write_begin() implementations. It wraps __filemap_get_folio(), setting appropriate flags in the write begin context.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:ubj9)}(h **Return**h]jz)}(hj;h]hReturn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj;ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:ubj9)}(hA folio or an ERR_PTR.h]hA folio or an ERR_PTR.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_get_folio (C function)c.filemap_get_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hOstruct folio * filemap_get_folio (struct address_space *mapping, pgoff_t index)h]h)}(hMstruct folio *filemap_get_folio(struct address_space *mapping, pgoff_t index)h](j!)}(hj$h]hstruct}(hj><hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj:<hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM ubj)}(h h]h }(hjL<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:<hhhjK<hM ubh)}(hhh]h)}(hfolioh]hfolio}(hj]<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZ<ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_<modnameN classnameNj\j_)}jb]je)}jXfilemap_get_foliosbc.filemap_get_folioasbuh1hhj:<hhhjK<hM ubj)}(h h]h }(hj~<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:<hhhjK<hM ubj2 )}(hj5 h]h*}(hj<hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj:<hhhjK<hM ubh)}(hfilemap_get_folioh]h)}(hj{<h]hfilemap_get_folio}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj:<hhhjK<hM ubj)}(h.(struct address_space *mapping, pgoff_t index)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj<hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj<modnameN classnameNj\j_)}jb]jy<c.filemap_get_folioasbuh1hhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2 )}(hj5 h]h*}(hj=hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj<ubh)}(hmappingh]hmapping}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj<ubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj+=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(=ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj-=modnameN classnameNj\j_)}jb]jy<c.filemap_get_folioasbuh1hhj$=ubj)}(h h]h }(hjI=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$=ubh)}(hindexh]hindex}(hjW=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$=ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj<ubeh}(h]h ]h"]h$]h&]jj uh1jhj:<hhhjK<hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj6<hhhjK<hM ubah}(h]j1<ah ](jjeh"]h$]h&]jj)jhuh1hhjK<hM hj3<hhubj )}(hhh]j9)}(hFind and get a folio.h]hFind and get a folio.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hj~=hhubah}(h]h ]h"]h$]h&]uh1jhj3<hhhjK<hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j=j4j=j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj=ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=ubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]j?)}(hj=h]hstruct address_space *mapping}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=ubj)}(hhh]j9)}(hThe address_space to search.h]hThe address_space to search.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj=ubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]j?)}(hj=h]h pgoff_t index}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj=ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=ubj)}(hhh]j9)}(hThe page index.h]hThe page index.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=ubj9)}(h**Description**h]jz)}(hj6>h]h Description}(hj8>hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4>ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=ubj9)}(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 }(hjL>hhhNhNubjz)}(h **mapping**h]hmapping}(hjT>hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjL>ubh & }(hjL>hhhNhNubjz)}(h **index**h]hindex}(hjf>hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjL>ubhD. If a folio is present, it is returned with an increased refcount.}(hjL>hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=ubj9)}(h **Return**h]jz)}(hj>h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj>ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=ubj9)}(h{A folio or ERR_PTR(-ENOENT) if there is no folio in the cache for this index. Will not return a shadow, swap or DAX entry.h]h{A folio or ERR_PTR(-ENOENT) if there is no folio in the cache for this index. Will not return a shadow, swap or DAX entry.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_lock_folio (C function)c.filemap_lock_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hPstruct folio * filemap_lock_folio (struct address_space *mapping, pgoff_t index)h]h)}(hNstruct folio *filemap_lock_folio(struct address_space *mapping, pgoff_t index)h](j!)}(hj$h]hstruct}(hj>hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj>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)}(hhh]h)}(hfolioh]hfolio}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj>modnameN classnameNj\j_)}jb]je)}jXfilemap_lock_foliosbc.filemap_lock_folioasbuh1hhj>hhhj>hMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hMubj2 )}(hj5 h]h*}(hj?hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj>hhhj>hMubh)}(hfilemap_lock_folioh]h)}(hj?h]hfilemap_lock_folio}(hj%?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!?ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj>hhhj>hMubj)}(h.(struct address_space *mapping, pgoff_t index)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj@?hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ah"]h$]h&]uh1j1 hjhhhj>hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj>hhhj>hMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhj>hMhj>hhubj )}(hhh]j9)}(hFind and lock a folio.h]hFind and lock a folio.}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj@hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj>hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j!@j4j!@j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj+@h]h Parameters}(hj-@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj)@ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM"hj%@ubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]j?)}(hjJ@h]hstruct address_space *mapping}(hjL@hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjH@ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjD@ubj)}(hhh]j9)}(hThe address_space to search.h]hThe address_space to search.}(hjc@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_@hMhj`@ubah}(h]h ]h"]h$]h&]uh1jhjD@ubeh}(h]h ]h"]h$]h&]uh1jhj_@hMhjA@ubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]j?)}(hj@h]h pgoff_t index}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj@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]j9)}(hThe page index.h]hThe page index.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@hM hj@ubah}(h]h ]h"]h$]h&]uh1jhj}@ubeh}(h]h ]h"]h$]h&]uh1jhj@hM hjA@ubeh}(h]h ]h"]h$]h&]uh1jhj%@ubj9)}(h**Description**h]jz)}(hj@h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM"hj%@ubj9)}(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 }(hj@hhhNhNubjz)}(h **mapping**h]hmapping}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@ubh & }(hj@hhhNhNubjz)}(h **index**h]hindex}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@ubhK. If a folio is present, it is returned locked with an increased refcount.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM!hj%@ubj9)}(h **Context**h]jz)}(hj Ah]hContext}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM$hj%@ubj9)}(h May sleep.h]h May sleep.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM%hj%@ubj9)}(h **Return**h]jz)}(hj0Ah]hReturn}(hj2AhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.Aubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM'hj%@ubj9)}(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.}(hjFAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM&hj%@ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_grab_folio (C function)c.filemap_grab_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hPstruct folio * filemap_grab_folio (struct address_space *mapping, pgoff_t index)h]h)}(hNstruct folio *filemap_grab_folio(struct address_space *mapping, pgoff_t index)h](j!)}(hj$h]hstruct}(hjuAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjqAhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqAhhhjAhM0ubh)}(hhh]h)}(hfolioh]hfolio}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjAmodnameN classnameNj\j_)}jb]je)}jXfilemap_grab_foliosbc.filemap_grab_folioasbuh1hhjqAhhhjAhM0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqAhhhjAhM0ubj2 )}(hj5 h]h*}(hjAhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjqAhhhjAhM0ubh)}(hfilemap_grab_folioh]h)}(hjAh]hfilemap_grab_folio}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ](jjeh"]h$]h&]jj uh1hhjqAhhhjAhM0ubj)}(h.(struct address_space *mapping, pgoff_t index)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]h)}(h address_spaceh]h address_space}(hj BhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Bubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjBmodnameN classnameNj\j_)}jb]jAc.filemap_grab_folioasbuh1hhjAubj)}(h h]h }(hj+BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2 )}(hj5 h]h*}(hj9BhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjAubh)}(hmappingh]hmapping}(hjFBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjbBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_Bubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjdBmodnameN classnameNj\j_)}jb]jAc.filemap_grab_folioasbuh1hhj[Bubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Bubh)}(hindexh]hindex}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[Bubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAubeh}(h]h ]h"]h$]h&]jj uh1jhjqAhhhjAhM0ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjmAhhhjAhM0ubah}(h]jhAah ](jjeh"]h$]h&]jj)jhuh1hhjAhM0hjjAhhubj )}(hhh]j9)}(h grab a folio from the page cacheh]h grab a folio from the page cache}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM0hjBhhubah}(h]h ]h"]h$]h&]uh1jhjjAhhhjAhM0ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jBj4jBj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM4hjBubj)}(hhh](j)}(h>``struct address_space *mapping`` The address space to search h](j)}(h!``struct address_space *mapping``h]j?)}(hjBh]hstruct address_space *mapping}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM1hjBubj)}(hhh]j9)}(hThe address space to searchh]hThe address space to search}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjChM1hjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjChM1hjBubj)}(h!``pgoff_t index`` The page index h](j)}(h``pgoff_t index``h]j?)}(hj2Ch]h pgoff_t index}(hj4ChhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0Cubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM2hj,Cubj)}(hhh]j9)}(hThe page indexh]hThe page index}(hjKChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGChM2hjHCubah}(h]h ]h"]h$]h&]uh1jhj,Cubeh}(h]h ]h"]h$]h&]uh1jhjGChM2hjBubeh}(h]h ]h"]h$]h&]uh1jhjBubj9)}(h**Description**h]jz)}(hjmCh]h Description}(hjoChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkCubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM4hjBubj9)}(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 }(hjChhhNhNubjz)}(h **mapping**h]hmapping}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubh & }(hjChhhNhNubjz)}(h **index**h]hindex}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubhf. If no folio is found, a new folio is created. The folio is locked, marked as accessed, and returned.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM3hjBubj9)}(h **Return**h]jz)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM7hjBubj9)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM8hjBubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfind_get_page (C function)c.find_get_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hKstruct page * find_get_page (struct address_space *mapping, pgoff_t offset)h]h)}(hIstruct page *find_get_page(struct address_space *mapping, pgoff_t offset)h](j!)}(hj$h]hstruct}(hjChhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjChhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMDubj)}(h h]h }(hj DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhj DhMDubh)}(hhh]h)}(hpageh]hpage}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjDmodnameN classnameNj\j_)}jb]je)}jX find_get_pagesbc.find_get_pageasbuh1hhjChhhj DhMDubj)}(h h]h }(hj=DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhj DhMDubj2 )}(hj5 h]h*}(hjKDhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjChhhj DhMDubh)}(h find_get_pageh]h)}(hj:Dh]h find_get_page}(hj\DhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXDubah}(h]h ](jjeh"]h$]h&]jj uh1hhjChhhj DhMDubj)}(h/(struct address_space *mapping, pgoff_t offset)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjwDhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjsDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsDubh)}(hhh]h)}(h address_spaceh]h address_space}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjDmodnameN classnameNj\j_)}jb]j8Dc.find_get_pageasbuh1hhjsDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsDubj2 )}(hj5 h]h*}(hjDhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjsDubh)}(hmappingh]hmapping}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoDubj)}(hpgoff_t offseth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjDmodnameN classnameNj\j_)}jb]j8Dc.find_get_pageasbuh1hhjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hoffseth]hoffset}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoDubeh}(h]h ]h"]h$]h&]jj uh1jhjChhhj DhMDubeh}(h]h ]h"]h$]h&]jj juh1hjjhjChhhj DhMDubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhj DhMDhjChhubj )}(hhh]j9)}(hfind and get a page referenceh]hfind and get a page reference}(hj@EhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMDhj=Ehhubah}(h]h ]h"]h$]h&]uh1jhjChhhj DhMDubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jXEj4jXEj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjbEh]h Parameters}(hjdEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj`Eubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMHhj\Eubj)}(hhh](j)}(h>``struct address_space *mapping`` the address_space to search h](j)}(h!``struct address_space *mapping``h]j?)}(hjEh]hstruct address_space *mapping}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMEhj{Eubj)}(hhh]j9)}(hthe address_space to searchh]hthe address_space to search}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEhMEhjEubah}(h]h ]h"]h$]h&]uh1jhj{Eubeh}(h]h ]h"]h$]h&]uh1jhjEhMEhjxEubj)}(h"``pgoff_t offset`` the page index h](j)}(h``pgoff_t offset``h]j?)}(hjEh]hpgoff_t offset}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMFhjEubj)}(hhh]j9)}(hthe page indexh]hthe page index}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEhMFhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMFhjxEubeh}(h]h ]h"]h$]h&]uh1jhj\Eubj9)}(h**Description**h]jz)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMHhj\Eubj9)}(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 FhhhNhNubjz)}(h **mapping**h]hmapping}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj Fubh & }(hj FhhhNhNubjz)}(h **offset**h]hoffset}(hj%FhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj FubhL. If there is a page cache page, it is returned with an increased refcount.}(hj FhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMGhj\Eubj9)}(h Otherwise, ``NULL`` is returned.h](h Otherwise, }(hj>FhhhNhNubj?)}(h``NULL``h]hNULL}(hjFFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj>Fubh is returned.}(hj>FhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMJhj\Eubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfind_lock_page (C function)c.find_lock_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hKstruct page * find_lock_page (struct address_space *mapping, pgoff_t index)h]h)}(hIstruct page *find_lock_page(struct address_space *mapping, pgoff_t index)h](j!)}(hj$h]hstruct}(hjFhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj{FhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMZubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{FhhhjFhMZubh)}(hhh]h)}(hpageh]hpage}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFmodnameN classnameNj\j_)}jb]je)}jXfind_lock_pagesbc.find_lock_pageasbuh1hhj{FhhhjFhMZubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{FhhhjFhMZubj2 )}(hj5 h]h*}(hjFhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj{FhhhjFhMZubh)}(hfind_lock_pageh]h)}(hjFh]hfind_lock_page}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubah}(h]h ](jjeh"]h$]h&]jj uh1hhj{FhhhjFhMZubj)}(h.(struct address_space *mapping, pgoff_t index)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjFhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjFubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]h)}(h address_spaceh]h address_space}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjGmodnameN classnameNj\j_)}jb]jFc.find_lock_pageasbuh1hhjFubj)}(h h]h }(hj5GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2 )}(hj5 h]h*}(hjCGhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjFubh)}(hmappingh]hmapping}(hjPGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjlGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiGubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjnGmodnameN classnameNj\j_)}jb]jFc.find_lock_pageasbuh1hhjeGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeGubh)}(hindexh]hindex}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeGubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubeh}(h]h ]h"]h$]h&]jj uh1jhj{FhhhjFhMZubeh}(h]h ]h"]h$]h&]jj juh1hjjhjwFhhhjFhMZubah}(h]jrFah ](jjeh"]h$]h&]jj)jhuh1hhjFhMZhjtFhhubj )}(hhh]j9)}(h%locate, pin and lock a pagecache pageh]h%locate, pin and lock a pagecache page}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMZhjGhhubah}(h]h ]h"]h$]h&]uh1jhjtFhhhjFhMZubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jGj4jGj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM^hjGubj)}(hhh](j)}(h>``struct address_space *mapping`` the address_space to search h](j)}(h!``struct address_space *mapping``h]j?)}(hjHh]hstruct address_space *mapping}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM[hjGubj)}(hhh]j9)}(hthe address_space to searchh]hthe address_space to search}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjHhM[hjHubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjHhM[hjGubj)}(h!``pgoff_t index`` the page index h](j)}(h``pgoff_t index``h]j?)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:Hubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM\hj6Hubj)}(hhh]j9)}(hthe page indexh]hthe page index}(hjUHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQHhM\hjRHubah}(h]h ]h"]h$]h&]uh1jhj6Hubeh}(h]h ]h"]h$]h&]uh1jhjQHhM\hjGubeh}(h]h ]h"]h$]h&]uh1jhjGubj9)}(h**Description**h]jz)}(hjwHh]h Description}(hjyHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjuHubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM^hjGubj9)}(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 }(hjHhhhNhNubjz)}(h **mapping**h]hmapping}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubh & }(hjHhhhNhNubjz)}(h **index**h]hindex}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubhW. If there is a page cache page, it is returned locked and with an increased refcount.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM]hjGubj9)}(h **Context**h]jz)}(hjHh]hContext}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMahjGubj9)}(h May sleep.h]h May sleep.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMbhjGubj9)}(h **Return**h]jz)}(hjHh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMdhjGubj9)}(hJA struct page or ``NULL`` if there is no page in the cache for this index.h](hA struct page or }(hjHhhhNhNubj?)}(h``NULL``h]hNULL}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHubh1 if there is no page in the cache for this index.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMchjGubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ find_or_create_page (C function)c.find_or_create_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h`struct page * find_or_create_page (struct address_space *mapping, pgoff_t index, gfp_t gfp_mask)h]h)}(h^struct page *find_or_create_page(struct address_space *mapping, pgoff_t index, gfp_t gfp_mask)h](j!)}(hj$h]hstruct}(hj@IhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ah"]h$]h&]uh1j1 hj(struct address_space *mapping, pgoff_t index, gfp_t gfp_mask)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjIhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]h)}(h address_spaceh]h address_space}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjImodnameN classnameNj\j_)}jb]j{Ic.find_or_create_pageasbuh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2 )}(hj5 h]h*}(hjJhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjIubh)}(hmappingh]hmapping}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjIubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj-JhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*Jubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj/JmodnameN classnameNj\j_)}jb]j{Ic.find_or_create_pageasbuh1hhj&Jubj)}(h h]h }(hjKJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Jubh)}(hindexh]hindex}(hjYJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&Jubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjIubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjuJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrJubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjwJmodnameN classnameNj\j_)}jb]j{Ic.find_or_create_pageasbuh1hhjnJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnJubh)}(hgfp_maskh]hgfp_mask}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjIubeh}(h]h ]h"]h$]h&]jj uh1jhjhj Kubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMnhjKubj)}(hhh]j9)}(hthe page's address_spaceh]hthe page’s address_space}(hj%KhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!KhMnhj"Kubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhj!KhMnhjKubj)}(h4``pgoff_t index`` the page's index into the mapping h](j)}(h``pgoff_t index``h]j?)}(hjEKh]h pgoff_t index}(hjGKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMohj?Kubj)}(hhh]j9)}(h!the page's index into the mappingh]h#the page’s index into the mapping}(hj^KhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjZKhMohj[Kubah}(h]h ]h"]h$]h&]uh1jhj?Kubeh}(h]h ]h"]h$]h&]uh1jhjZKhMohjKubj)}(h(``gfp_t gfp_mask`` page allocation mode h](j)}(h``gfp_t gfp_mask``h]j?)}(hj~Kh]hgfp_t gfp_mask}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj|Kubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMphjxKubj)}(hhh]j9)}(hpage allocation modeh]hpage allocation mode}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjKhMphjKubah}(h]h ]h"]h$]h&]uh1jhjxKubeh}(h]h ]h"]h$]h&]uh1jhjKhMphjKubeh}(h]h ]h"]h$]h&]uh1jhjJubj9)}(h**Description**h]jz)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMrhjJubj9)}(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 }(hjKhhhNhNubjz)}(h **mapping**h]hmapping}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKubh & }(hjKhhhNhNubjz)}(h **offset**h]hoffset}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKubhW. If there is a page cache page, it is returned locked and with an increased refcount.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMqhjJubj9)}(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 }(hjLhhhNhNubjz)}(h **gfp_mask**h]hgfp_mask}(hj LhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubhr and added to the page cache and the VM’s LRU list. The page is returned locked and with an increased refcount.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMuhjJubj9)}(h+On memory exhaustion, ``NULL`` is returned.h](hOn memory exhaustion, }(hj#LhhhNhNubj?)}(h``NULL``h]hNULL}(hj+LhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj#Lubh is returned.}(hj#LhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMyhjJubj9)}(hVfind_or_create_page() may sleep, even if **gfp_flags** specifies an atomic allocation!h](h)find_or_create_page() may sleep, even if }(hjDLhhhNhNubjz)}(h **gfp_flags**h]h gfp_flags}(hjLLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDLubh specifies an atomic allocation!}(hjDLhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM{hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#grab_cache_page_nowait (C function)c.grab_cache_page_nowaithNtauh1hhjhhhNhNubh)}(hhh](h)}(hSstruct page * grab_cache_page_nowait (struct address_space *mapping, pgoff_t index)h]h)}(hQstruct page *grab_cache_page_nowait(struct address_space *mapping, pgoff_t index)h](j!)}(hj$h]hstruct}(hjLhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjLhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhMubh)}(hhh]h)}(hpageh]hpage}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjLmodnameN classnameNj\j_)}jb]je)}jXgrab_cache_page_nowaitsbc.grab_cache_page_nowaitasbuh1hhjLhhhjLhMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhMubj2 )}(hj5 h]h*}(hjLhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjLhhhjLhMubh)}(hgrab_cache_page_nowaith]h)}(hjLh]hgrab_cache_page_nowait}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ](jjeh"]h$]h&]jj uh1hhjLhhhjLhMubj)}(h.(struct address_space *mapping, pgoff_t index)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjLhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjLubj)}(h h]h }(hj MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]h)}(h address_spaceh]h address_space}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjMmodnameN classnameNj\j_)}jb]jLc.grab_cache_page_nowaitasbuh1hhjLubj)}(h h]h }(hj;MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2 )}(hj5 h]h*}(hjIMhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjLubh)}(hmappingh]hmapping}(hjVMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjLubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjrMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoMubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjtMmodnameN classnameNj\j_)}jb]jLc.grab_cache_page_nowaitasbuh1hhjkMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkMubh)}(hindexh]hindex}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkMubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjLubeh}(h]h ]h"]h$]h&]jj uh1jhjLhhhjLhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj}LhhhjLhMubah}(h]jxLah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhjzLhhubj )}(hhh]j9)}(h1returns locked page at given index in given cacheh]h1returns locked page at given index in given cache}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjzLhhhjLhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jMj4jMj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjMubj)}(hhh](j)}(h7``struct address_space *mapping`` target address_space h](j)}(h!``struct address_space *mapping``h]j?)}(hj Nh]hstruct address_space *mapping}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjNubj)}(hhh]j9)}(htarget address_spaceh]htarget address_space}(hj"NhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjNhMhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjNubj)}(h!``pgoff_t index`` the page index h](j)}(h``pgoff_t index``h]j?)}(hjBNh]h pgoff_t index}(hjDNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj@Nubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjOubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjCOmodnameN classnameNj\j_)}jb]jNc.folio_next_indexasbuh1hhjOubj)}(h h]h }(hj_OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2 )}(hj5 h]h*}(hjmOhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjOubh)}(hfolioh]hfolio}(hjzOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjOubah}(h]h ]h"]h$]h&]jj uh1jhjNhhhjNhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjNhhhjNhMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhMhjNhhubj )}(hhh]j9)}(h Get the index of the next folio.h]h Get the index of the next folio.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jOj4jOj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct folio *folio`` The current folio. **Return** The index of the folio which follows this folio in the file.h](j9)}(h**Parameters**h]jz)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjOubj)}(hhh]j)}(h+``struct folio *folio`` The current folio. h](j)}(h``struct folio *folio``h]j?)}(hjOh]hstruct folio *folio}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjOubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjOubj)}(hhh]j9)}(hThe current folio.h]hThe current folio.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjOhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjOubah}(h]h ]h"]h$]h&]uh1jhjOubj9)}(h **Return**h]jz)}(hj Ph]hReturn}(hj"PhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjPubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjOubj9)}(h ah"]h$]h&]uh1j1 hjaPhhhjrPhMubh)}(hfolio_file_pageh]h)}(hjPh]hfolio_file_page}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ](jjeh"]h$]h&]jj uh1hhjaPhhhjrPhMubj)}(h$(struct folio *folio, pgoff_t index)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjPhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]h)}(hfolioh]hfolio}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjPmodnameN classnameNj\j_)}jb]jPc.folio_file_pageasbuh1hhjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2 )}(hj5 h]h*}(hj)QhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjPubh)}(hfolioh]hfolio}(hj6QhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjRQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOQubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjTQmodnameN classnameNj\j_)}jb]jPc.folio_file_pageasbuh1hhjKQubj)}(h h]h }(hjpQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKQubh)}(hindexh]hindex}(hj~QhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPubeh}(h]h ]h"]h$]h&]jj uh1jhjaPhhhjrPhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj]PhhhjrPhMubah}(h]jXPah ](jjeh"]h$]h&]jj)jhuh1hhjrPhMhjZPhhubj )}(hhh]j9)}(h The page for a particular index.h]h The page for a particular index.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjZPhhhjrPhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jQj4jQj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjQubj)}(hhh](j)}(h=``struct folio *folio`` The folio which contains this index. h](j)}(h``struct folio *folio``h]j?)}(hjQh]hstruct folio *folio}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjQubj)}(hhh]j9)}(h$The folio which contains this index.h]h$The folio which contains this index.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjQubj)}(h0``pgoff_t index`` The index we want to look up. h](j)}(h``pgoff_t index``h]j?)}(hj"Rh]h pgoff_t index}(hj$RhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj Rubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjRubj)}(hhh]j9)}(hThe index we want to look up.h]hThe index we want to look up.}(hj;RhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7RhMhj8Rubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhj7RhMhjQubeh}(h]h ]h"]h$]h&]uh1jhjQubj9)}(h**Description**h]jz)}(hj]Rh]h Description}(hj_RhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[Rubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjQubj9)}(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).}(hjsRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjQubj9)}(h **Return**h]jz)}(hjRh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjQubj9)}(h1The page containing the file data for this index.h]h1The page containing the file data for this index.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_contains (C function)c.folio_containshNtauh1hhjhhhNhNubh)}(hhh](h)}(h8bool folio_contains (struct folio *folio, pgoff_t index)h]h)}(h7bool folio_contains(struct folio *folio, pgoff_t index)h](j)}(hj)h]hbool}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhW/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)}(hfolio_containsh]h)}(hfolio_containsh]hfolio_contains}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubah}(h]h ](jjeh"]h$]h&]jj uh1hhjRhhhjRhMubj)}(h$(struct folio *folio, pgoff_t index)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjShhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]h)}(hfolioh]hfolio}(hj#ShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Subah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj%SmodnameN classnameNj\j_)}jb]je)}jXjRsbc.folio_containsasbuh1hhjSubj)}(h h]h }(hjCShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2 )}(hj5 h]h*}(hjQShhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjSubh)}(hfolioh]hfolio}(hj^ShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjRubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjzShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwSubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj|SmodnameN classnameNj\j_)}jb]j?Sc.folio_containsasbuh1hhjsSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsSubh)}(hindexh]hindex}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjRubeh}(h]h ]h"]h$]h&]jj uh1jhjRhhhjRhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjRhhhjRhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjRhMhjRhhubj )}(hhh]j9)}(h#Does this folio contain this index?h]h#Does this folio contain this index?}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjShhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjRhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jSj4jSj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``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](j9)}(h**Parameters**h]jz)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjSubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjTh]hstruct folio *folio}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjTubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj Tubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj*ThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj&ThMhj'Tubah}(h]h ]h"]h$]h&]uh1jhj Tubeh}(h]h ]h"]h$]h&]uh1jhj&ThMhjTubj)}(h2``pgoff_t index`` The page index within the file. h](j)}(h``pgoff_t index``h]j?)}(hjJTh]h pgoff_t index}(hjLThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHTubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjDTubj)}(hhh]j9)}(hThe page index within the file.h]hThe page index within the file.}(hjcThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_ThMhj`Tubah}(h]h ]h"]h$]h&]uh1jhjDTubeh}(h]h ]h"]h$]h&]uh1jhj_ThMhjTubeh}(h]h ]h"]h$]h&]uh1jhjSubj9)}(h **Context**h]jz)}(hjTh]hContext}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjTubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjSubj9)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjSubj9)}(h **Return**h]jz)}(hjTh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjTubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjSubj9)}(htrue or false.h]htrue or false.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpage_pgoff (C function) c.page_pgoffhNtauh1hhjhhhNhNubh)}(hhh](h)}(hGpgoff_t page_pgoff (const struct folio *folio, const struct page *page)h]h)}(hFpgoff_t page_pgoff(const struct folio *folio, const struct page *page)h](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjTmodnameN classnameNj\j_)}jb]je)}jX page_pgoffsb c.page_pgoffasbuh1hhjThhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjUhMubh)}(h page_pgoffh]h)}(hjUh]h page_pgoff}(hj(UhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$Uubah}(h]h ](jjeh"]h$]h&]jj uh1hhjThhhjUhMubj)}(h4(const struct folio *folio, const struct page *page)h](j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hjCUhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj?Uubj)}(h h]h }(hjPUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Uubj!)}(hj$h]hstruct}(hj^UhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj?Uubj)}(h h]h }(hjkUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Uubh)}(hhh]h)}(hfolioh]hfolio}(hj|UhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~UmodnameN classnameNj\j_)}jb]jU c.page_pgoffasbuh1hhj?Uubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Uubj2 )}(hj5 h]h*}(hjUhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj?Uubh)}(hfolioh]hfolio}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?Uubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj;Uubj)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hjUhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj!)}(hj$h]hstruct}(hjUhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hhh]h)}(hpageh]hpage}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj VmodnameN classnameNj\j_)}jb]jU c.page_pgoffasbuh1hhjUubj)}(h h]h }(hj%VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2 )}(hj5 h]h*}(hj3VhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjUubh)}(hpageh]hpage}(hj@VhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj;Uubeh}(h]h ]h"]h$]h&]jj uh1jhjThhhjUhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjThhhjUhMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhjThhubj )}(hhh]j9)}(h/Calculate the logical page offset of this page.h]h/Calculate the logical page offset of this page.}(hjjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjgVhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjUhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jVj4jVj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjVubj)}(hhh](j)}(h>``const struct folio *folio`` The folio containing this page. h](j)}(h``const struct folio *folio``h]j?)}(hjVh]hconst struct folio *folio}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjVubj)}(hhh]j9)}(hThe folio containing this page.h]hThe folio containing this page.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjVhMhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjVubj)}(hB``const struct page *page`` The page which we need the offset of. h](j)}(h``const struct page *page``h]j?)}(hjVh]hconst struct page *page}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjVubj)}(hhh]j9)}(h%The page which we need the offset of.h]h%The page which we need the offset of.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjVhMhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjVubeh}(h]h ]h"]h$]h&]uh1jhjVubj9)}(h**Description**h]jz)}(hjWh]h Description}(hj!WhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjWubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjVubj9)}(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.}(hj5WhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjVubj9)}(h **Context**h]jz)}(hjFWh]hContext}(hjHWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDWubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjVubj9)}(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.}(hj\WhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjVubj9)}(h **Return**h]jz)}(hjmWh]hReturn}(hjoWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkWubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjVubj9)}(h!The offset in units of PAGE_SIZE.h]h!The offset in units of PAGE_SIZE.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_pos (C function) c.folio_poshNtauh1hhjhhhNhNubh)}(hhh](h)}(h,loff_t folio_pos (const struct folio *folio)h]h)}(h+loff_t folio_pos(const struct folio *folio)h](h)}(hhh]h)}(hloff_th]hloff_t}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjWmodnameN classnameNj\j_)}jb]je)}jX folio_possb c.folio_posasbuh1hhjWhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhjWhMubh)}(h folio_posh]h)}(hjWh]h folio_pos}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ](jjeh"]h$]h&]jj uh1hhjWhhhjWhMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hjXhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj!)}(hj$h]hstruct}(hjXhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjXubj)}(h h]h }(hj,XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]h)}(hfolioh]hfolio}(hj=XhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:Xubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj?XmodnameN classnameNj\j_)}jb]jW c.folio_posasbuh1hhjXubj)}(h h]h }(hj[XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj2 )}(hj5 h]h*}(hjiXhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjXubh)}(hfolioh]hfolio}(hjvXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjWubah}(h]h ]h"]h$]h&]jj uh1jhjWhhhjWhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjWhhhjWhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhjWhhubj )}(hhh]j9)}(h4Returns the byte position of this folio in its file.h]h4Returns the byte position of this folio in its file.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjXhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jXj4jXj5j6j7uh1hhhhjhNhNubjp)}(h:**Parameters** ``const struct folio *folio`` The folio.h](j9)}(h**Parameters**h]jz)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjXubj)}(hhh]j)}(h(``const struct folio *folio`` The folio.h](j)}(h``const struct folio *folio``h]j?)}(hjXh]hconst struct folio *folio}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjXubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjXubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_trylock (C function)c.folio_trylockhNtauh1hhjhhhNhNubh)}(hhh](h)}(h(bool folio_trylock (struct folio *folio)h]h)}(h'bool folio_trylock(struct folio *folio)h](j)}(hj)h]hbool}(hj;YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7YhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM;ubj)}(h h]h }(hjIYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7YhhhjHYhM;ubh)}(h folio_trylockh]h)}(h folio_trylockh]h folio_trylock}(hj[YhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWYubah}(h]h ](jjeh"]h$]h&]jj uh1hhj7YhhhjHYhM;ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjwYhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjsYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsYubh)}(hhh]h)}(hfolioh]hfolio}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjYmodnameN classnameNj\j_)}jb]je)}jXj]Ysbc.folio_trylockasbuh1hhjsYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsYubj2 )}(hj5 h]h*}(hjYhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjsYubh)}(hfolioh]hfolio}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsYubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoYubah}(h]h ]h"]h$]h&]jj uh1jhj7YhhhjHYhM;ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj3YhhhjHYhM;ubah}(h]j.Yah ](jjeh"]h$]h&]jj)jhuh1hhjHYhM;hj0Yhhubj )}(hhh]j9)}(hAttempt to lock a folio.h]hAttempt to lock a folio.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM;hjYhhubah}(h]h ]h"]h$]h&]uh1jhj0YhhhjHYhM;ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jZj4jZj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM?hjZubj)}(hhh]j)}(h6``struct folio *folio`` The folio to attempt to lock. h](j)}(h``struct folio *folio``h]j?)}(hj;Zh]hstruct folio *folio}(hj=ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9Zubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM<hj5Zubj)}(hhh]j9)}(hThe folio to attempt to lock.h]hThe folio to attempt to lock.}(hjTZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPZhM<hjQZubah}(h]h ]h"]h$]h&]uh1jhj5Zubeh}(h]h ]h"]h$]h&]uh1jhjPZhM<hj2Zubah}(h]h ]h"]h$]h&]uh1jhjZubj9)}(h**Description**h]jz)}(hjvZh]h Description}(hjxZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtZubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM>hjZubj9)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM=hjZubj9)}(h **Context**h]jz)}(hjZh]hContext}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMBhjZubj9)}(h Any context.h]h Any context.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMChjZubj9)}(h **Return**h]jz)}(hjZh]hReturn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMEhjZubj9)}(h+Whether the lock was successfully acquired.h]h+Whether the lock was successfully acquired.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMDhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(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}(hj [hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMTubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhj[hMTubh)}(h folio_lockh]h)}(h folio_lockh]h folio_lock}(hj*[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&[ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj[hhhj[hMTubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjF[hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjB[ubj)}(h h]h }(hjS[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB[ubh)}(hhh]h)}(hfolioh]hfolio}(hjd[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhja[ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjf[modnameN classnameNj\j_)}jb]je)}jXj,[sb c.folio_lockasbuh1hhjB[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB[ubj2 )}(hj5 h]h*}(hj[hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjB[ubh)}(hfolioh]hfolio}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjB[ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj>[ubah}(h]h ]h"]h$]h&]jj uh1jhj[hhhj[hMTubeh}(h]h ]h"]h$]h&]jj juh1hjjhj[hhhj[hMTubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhj[hMThjZhhubj )}(hhh]j9)}(hLock this folio.h]hLock this folio.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMThj[hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhj[hMTubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j[j4j[j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMXhj[ubj)}(hhh]j)}(h+``struct folio *folio`` The folio to lock. h](j)}(h``struct folio *folio``h]j?)}(hj \h]hstruct folio *folio}(hj \hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj\ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUhj\ubj)}(hhh]j9)}(hThe folio to lock.h]hThe folio to lock.}(hj#\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj\hMUhj \ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMUhj\ubah}(h]h ]h"]h$]h&]uh1jhj[ubj9)}(h**Description**h]jz)}(hjE\h]h Description}(hjG\hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjC\ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMWhj[ubj9)}(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.}(hj[\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMVhj[ubj9)}(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.}(hjj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM\hj[ubj9)}(h **Context**h]jz)}(hj{\h]hContext}(hj}\hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjy\ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMbhj[ubj9)}(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\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMchj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlock_page (C function) c.lock_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h"void lock_page (struct page *page)h]h)}(h!void lock_page(struct page *page)h](j)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMqubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hMqubh)}(h lock_pageh]h)}(h lock_pageh]h lock_page}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj\hhhj\hMqubj)}(h(struct page *page)h]j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj\hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj\ubj)}(h h]h }(hj ]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]h)}(hpageh]hpage}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj]modnameN classnameNj\j_)}jb]je)}jXj\sb c.lock_pageasbuh1hhj\ubj)}(h h]h }(hj;]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2 )}(hj5 h]h*}(hjI]hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj\ubh)}(hpageh]hpage}(hjV]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubah}(h]h ]h"]h$]h&]jj uh1jhj\hhhj\hMqubeh}(h]h ]h"]h$]h&]jj juh1hjjhj\hhhj\hMqubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhj\hMqhj\hhubj )}(hhh]j9)}(h$Lock the folio containing this page.h]h$Lock the folio containing this page.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMqhj}]hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hMqubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j]j4j]j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj]ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMuhj]ubj)}(hhh]j)}(h(``struct page *page`` The page to lock. h](j)}(h``struct page *page``h]j?)}(hj]h]hstruct page *page}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMrhj]ubj)}(hhh]j9)}(hThe page to lock.h]hThe page to lock.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj]hMrhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMrhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubj9)}(h**Description**h]jz)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj]ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMthj]ubj9)}(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.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMshj]ubj9)}(h **Context**h]jz)}(hj#^h]hContext}(hj%^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!^ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMwhj]ubj9)}(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.}(hj9^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMxhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_lock_killable (C function)c.folio_lock_killablehNtauh1hhjhhhNhNubh)}(hhh](h)}(h-int folio_lock_killable (struct folio *folio)h]h)}(h,int folio_lock_killable(struct folio *folio)h](j)}(hinth]hint}(hjh^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd^hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjw^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd^hhhjv^hMubh)}(hfolio_lock_killableh]h)}(hfolio_lock_killableh]hfolio_lock_killable}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjd^hhhjv^hMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj^hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]h)}(hfolioh]hfolio}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj^modnameN classnameNj\j_)}jb]je)}jXj^sbc.folio_lock_killableasbuh1hhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2 )}(hj5 h]h*}(hj^hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj^ubh)}(hfolioh]hfolio}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj^ubah}(h]h ]h"]h$]h&]jj uh1jhjd^hhhjv^hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj`^hhhjv^hMubah}(h]j[^ah ](jjeh"]h$]h&]jj)jhuh1hhjv^hMhj]^hhubj )}(hhh]j9)}(h1Lock this folio, interruptible by a fatal signal.h]h1Lock this folio, interruptible by a fatal signal.}(hj(_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj%_hhubah}(h]h ]h"]h$]h&]uh1jhj]^hhhjv^hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j@_j4j@_j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjJ_h]h Parameters}(hjL_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjH_ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjD_ubj)}(hhh]j)}(h+``struct folio *folio`` The folio to lock. h](j)}(h``struct folio *folio``h]j?)}(hji_h]hstruct folio *folio}(hjk_hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjg_ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjc_ubj)}(hhh]j9)}(hThe folio to lock.h]hThe folio to lock.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj~_hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjc_ubeh}(h]h ]h"]h$]h&]uh1jhj~_hMhj`_ubah}(h]h ]h"]h$]h&]uh1jhjD_ubj9)}(h**Description**h]jz)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjD_ubj9)}(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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjD_ubj9)}(h **Context**h]jz)}(hj_h]hContext}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjD_ubj9)}(hMay sleep; see folio_lock().h]hMay sleep; see folio_lock().}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjD_ubj9)}(h **Return**h]jz)}(hj_h]hReturn}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjD_ubj9)}(hB0 if the lock was acquired; -EINTR if a fatal signal was received.h]hB0 if the lock was acquired; -EINTR if a fatal signal was received.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjD_ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*filemap_range_needs_writeback (C function)c.filemap_range_needs_writebackhNtauh1hhjhhhNhNubh)}(hhh](h)}(hfbool filemap_range_needs_writeback (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(hebool filemap_range_needs_writeback(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hj)h]hbool}(hj7`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3`hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjE`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3`hhhjD`hMubh)}(hfilemap_range_needs_writebackh]h)}(hfilemap_range_needs_writebackh]hfilemap_range_needs_writeback}(hjW`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjS`ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj3`hhhjD`hMubj)}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjs`hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjo`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo`ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj`modnameN classnameNj\j_)}jb]je)}jXjY`sbc.filemap_range_needs_writebackasbuh1hhjo`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo`ubj2 )}(hj5 h]h*}(hj`hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjo`ubh)}(hmappingh]hmapping}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjo`ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjk`ubj)}(hloff_t start_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj`modnameN classnameNj\j_)}jb]j`c.filemap_range_needs_writebackasbuh1hhj`ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(h start_byteh]h start_byte}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjk`ubj)}(hloff_t end_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hj0ahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-aubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2amodnameN classnameNj\j_)}jb]j`c.filemap_range_needs_writebackasbuh1hhj)aubj)}(h h]h }(hjNahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)aubh)}(hend_byteh]hend_byte}(hj\ahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)aubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjk`ubeh}(h]h ]h"]h$]h&]jj uh1jhj3`hhhjD`hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj/`hhhjD`hMubah}(h]j*`ah ](jjeh"]h$]h&]jj)jhuh1hhjD`hMhj,`hhubj )}(hhh]j9)}(h*check if range potentially needs writebackh]h*check if range potentially needs writeback}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjahhubah}(h]h ]h"]h$]h&]uh1jhj,`hhhjD`hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jaj4jaj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubj)}(hhh](j)}(hF``struct address_space *mapping`` address space within which to check h](j)}(h!``struct address_space *mapping``h]j?)}(hjah]hstruct address_space *mapping}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubj)}(hhh]j9)}(h#address space within which to checkh]h#address space within which to check}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhjaubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]j?)}(hjbh]hloff_t start_byte}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubj)}(hhh]j9)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjaubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]j?)}(hj9bh]hloff_t end_byte}(hj;bhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7bubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj3bubj)}(hhh]j9)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjRbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjNbhMhjObubah}(h]h ]h"]h$]h&]uh1jhj3bubeh}(h]h ]h"]h$]h&]uh1jhjNbhMhjaubeh}(h]h ]h"]h$]h&]uh1jhjaubj9)}(h**Description**h]jz)}(hjtbh]h Description}(hjvbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrbubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubj9)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubj9)}(h **Return**h]jz)}(hjbh]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjbubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubj9)}(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](j?)}(h``true``h]htrue}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubhg if the caller should do filemap_write_and_wait_range() before doing O_DIRECT to a page in this range, }(hjbhhhNhNubj?)}(h ``false``h]hfalse}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubh otherwise.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌreadahead_control (C struct)c.readahead_controlhNtauh1hhjhhhNhNubh)}(hhh](h)}(hreadahead_controlh]h)}(hstruct readahead_controlh](j!)}(hj$h]hstruct}(hjchhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjbhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhj chMubh)}(hreadahead_controlh]h)}(hjbh]hreadahead_control}(hj chhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ](jjeh"]h$]h&]jj uh1hhjbhhhj chMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjbhhhj chMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj chMhjbhhubj )}(hhh]j9)}(hDescribes a readahead request.h]hDescribes a readahead request.}(hjBchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj?chhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj chMubeh}(h]h ](j-structeh"]h$]h&]j2j-j3jZcj4jZcj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Definition**::h](jz)}(h**Definition**h]h Definition}(hjfchhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjbcubh:}(hjbchhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj^cubj)}(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; };}hjcsbah}(h]h ]h"]h$]h&]jj uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj^cubj9)}(h **Members**h]jz)}(hjch]hMembers}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM$hj^cubj)}(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]j?)}(hjch]hfile}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM$hjcubj)}(hhh]j9)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM#hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchM$hjcubj)}(h.``mapping`` Readahead this filesystem object. h](j)}(h ``mapping``h]j?)}(hjch]hmapping}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM%hjcubj)}(hhh]j9)}(h!Readahead this filesystem object.h]h!Readahead this filesystem object.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjchM%hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchM%hjcubj)}(h*``ra`` File readahead state. May be NULL.h](j)}(h``ra``h]j?)}(hj"dh]hra}(hj$dhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj dubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM%hjdubj)}(hhh]j9)}(h#File readahead state. May be NULL.h]h#File readahead state. May be NULL.}(hj;dhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM&hj8dubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhj7dhM%hjcubeh}(h]h ]h"]h$]h&]uh1jhj^cubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubj9)}(h**Description**h]jz)}(hjedh]h Description}(hjgdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcdubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM)hjhhubj9)}(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{dhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubj9)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&page_cache_sync_readahead (C function)c.page_cache_sync_readaheadhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid page_cache_sync_readahead (struct address_space *mapping, struct file_ra_state *ra, struct file *file, pgoff_t index, unsigned long req_count)h]h)}(hvoid page_cache_sync_readahead(struct address_space *mapping, struct file_ra_state *ra, struct file *file, pgoff_t index, unsigned long req_count)h](j)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMGubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhMGubh)}(hpage_cache_sync_readaheadh]h)}(hpage_cache_sync_readaheadh]hpage_cache_sync_readahead}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ](jjeh"]h$]h&]jj uh1hhjdhhhjdhMGubj)}(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](j!)}(hj$h]hstruct}(hjdhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]h)}(h address_spaceh]h address_space}(hj ehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj eubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjemodnameN classnameNj\j_)}jb]je)}jXjdsbc.page_cache_sync_readaheadasbuh1hhjdubj)}(h h]h }(hj-ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2 )}(hj5 h]h*}(hj;ehhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdubh)}(hmappingh]hmapping}(hjHehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(hstruct file_ra_state *rah](j!)}(hj$h]hstruct}(hjaehhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj]eubj)}(h h]h }(hjnehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]eubh)}(hhh]h)}(h file_ra_stateh]h file_ra_state}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|eubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjemodnameN classnameNj\j_)}jb]j)ec.page_cache_sync_readaheadasbuh1hhj]eubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]eubj2 )}(hj5 h]h*}(hjehhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj]eubh)}(hrah]hra}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]eubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(hstruct file *fileh](j!)}(hj$h]hstruct}(hjehhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hhh]h)}(hfileh]hfile}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjemodnameN classnameNj\j_)}jb]j)ec.page_cache_sync_readaheadasbuh1hhjeubj)}(h h]h }(hj fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2 )}(hj5 h]h*}(hjfhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjeubh)}(hfileh]hfile}(hj(fhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjDfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAfubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFfmodnameN classnameNj\j_)}jb]j)ec.page_cache_sync_readaheadasbuh1hhj=fubj)}(h h]h }(hjbfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=fubh)}(hindexh]hindex}(hjpfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=fubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(hunsigned long req_counth](j)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(h req_counth]h req_count}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubeh}(h]h ]h"]h$]h&]jj uh1jhjdhhhjdhMGubeh}(h]h ]h"]h$]h&]jj juh1hjjhjdhhhjdhMGubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjdhMGhjdhhubj )}(hhh]j9)}(hgeneric file readaheadh]hgeneric file readahead}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMGhjfhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhMGubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jgj4jgj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj gh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj gubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMKhjgubj)}(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]j?)}(hj,gh]hstruct address_space *mapping}(hj.ghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj*gubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMHhj&gubj)}(hhh]j9)}(h7address_space which holds the pagecache and I/O vectorsh]h7address_space which holds the pagecache and I/O vectors}(hjEghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjAghMHhjBgubah}(h]h ]h"]h$]h&]uh1jhj&gubeh}(h]h ]h"]h$]h&]uh1jhjAghMHhj#gubj)}(hK``struct file_ra_state *ra`` file_ra_state which holds the readahead state h](j)}(h``struct file_ra_state *ra``h]j?)}(hjegh]hstruct file_ra_state *ra}(hjgghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjcgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMIhj_gubj)}(hhh]j9)}(h-file_ra_state which holds the readahead stateh]h-file_ra_state which holds the readahead state}(hj~ghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjzghMIhj{gubah}(h]h ]h"]h$]h&]uh1jhj_gubeh}(h]h ]h"]h$]h&]uh1jhjzghMIhj#gubj)}(hA``struct file *file`` Used by the filesystem for authentication. h](j)}(h``struct file *file``h]j?)}(hjgh]hstruct file *file}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMJhjgubj)}(hhh]j9)}(h*Used by the filesystem for authentication.h]h*Used by the filesystem for authentication.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghMJhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMJhj#gubj)}(h2``pgoff_t index`` Index of first page to be read. h](j)}(h``pgoff_t index``h]j?)}(hjgh]h pgoff_t index}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMKhjgubj)}(hhh]j9)}(hIndex of first page to be read.h]hIndex of first page to be read.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghMKhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMKhj#gubj)}(hL``unsigned long req_count`` Total number of pages being read by the caller. h](j)}(h``unsigned long req_count``h]j?)}(hjhh]hunsigned long req_count}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjhubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMLhj hubj)}(hhh]j9)}(h/Total number of pages being read by the caller.h]h/Total number of pages being read by the caller.}(hj)hhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%hhMLhj&hubah}(h]h ]h"]h$]h&]uh1jhj hubeh}(h]h ]h"]h$]h&]uh1jhj%hhMLhj#gubeh}(h]h ]h"]h$]h&]uh1jhjgubj9)}(h**Description**h]jz)}(hjKhh]h Description}(hjMhhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjIhubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMNhjgubj9)}(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.}(hjahhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'page_cache_async_readahead (C function)c.page_cache_async_readaheadhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid page_cache_async_readahead (struct address_space *mapping, struct file_ra_state *ra, struct file *file, struct folio *folio, unsigned long req_count)h]h)}(hvoid page_cache_async_readahead(struct address_space *mapping, struct file_ra_state *ra, struct file *file, struct folio *folio, unsigned long req_count)h](j)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM]ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhM]ubh)}(hpage_cache_async_readaheadh]h)}(hpage_cache_async_readaheadh]hpage_cache_async_readahead}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhhjhhM]ubj)}(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](j!)}(hj$h]hstruct}(hjhhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]je)}jXjhsbc.page_cache_async_readaheadasbuh1hhjhubj)}(h h]h }(hj ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2 )}(hj5 h]h*}(hjihhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhubh)}(hmappingh]hmapping}(hj&ihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(hstruct file_ra_state *rah](j!)}(hj$h]hstruct}(hj?ihhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj;iubj)}(h h]h }(hjLihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;iubh)}(hhh]h)}(h file_ra_stateh]h file_ra_state}(hj]ihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_imodnameN classnameNj\j_)}jb]jic.page_cache_async_readaheadasbuh1hhj;iubj)}(h h]h }(hj{ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;iubj2 )}(hj5 h]h*}(hjihhhNhNubah}(h]h ]j> ah"-]h$]h&]uh1j1 hj;iubh)}(hrah]hra}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;iubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(hstruct file *fileh](j!)}(hj$h]hstruct}(hjihhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]h)}(hfileh]hfile}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjimodnameN classnameNj\j_)}jb]jic.page_cache_async_readaheadasbuh1hhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj2 )}(hj5 h]h*}(hjihhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjiubh)}(hfileh]hfile}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjjubj)}(h h]h }(hj,jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]h)}(hfolioh]hfolio}(hj=jhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:jubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj?jmodnameN classnameNj\j_)}jb]jic.page_cache_async_readaheadasbuh1hhjjubj)}(h h]h }(hj[jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2 )}(hj5 h]h*}(hjijhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjjubh)}(hfolioh]hfolio}(hjvjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(hunsigned long req_counth](j)}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hlongh]hlong}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(h req_counth]h req_count}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhhjhhM]ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhhjhhM]ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhhM]hjhhhubj )}(hhh]j9)}(hfile readahead for marked pagesh]hfile readahead for marked pages}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM]hjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhM]ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j kj4j kj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMahj kubj)}(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]j?)}(hj2kh]hstruct address_space *mapping}(hj4khhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0kubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM^hj,kubj)}(hhh]j9)}(h7address_space which holds the pagecache and I/O vectorsh]h7address_space which holds the pagecache and I/O vectors}(hjKkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGkhM^hjHkubah}(h]h ]h"]h$]h&]uh1jhj,kubeh}(h]h ]h"]h$]h&]uh1jhjGkhM^hj)kubj)}(hK``struct file_ra_state *ra`` file_ra_state which holds the readahead state h](j)}(h``struct file_ra_state *ra``h]j?)}(hjkkh]hstruct file_ra_state *ra}(hjmkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjikubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM_hjekubj)}(hhh]j9)}(h-file_ra_state which holds the readahead stateh]h-file_ra_state which holds the readahead state}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhM_hjkubah}(h]h ]h"]h$]h&]uh1jhjekubeh}(h]h ]h"]h$]h&]uh1jhjkhM_hj)kubj)}(hA``struct file *file`` Used by the filesystem for authentication. h](j)}(h``struct file *file``h]j?)}(hjkh]hstruct file *file}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM`hjkubj)}(hhh]j9)}(h*Used by the filesystem for authentication.h]h*Used by the filesystem for authentication.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhM`hjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhM`hj)kubj)}(hF``struct folio *folio`` The folio which triggered the readahead call. h](j)}(h``struct folio *folio``h]j?)}(hjkh]hstruct folio *folio}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMahjkubj)}(hhh]j9)}(h-The folio which triggered the readahead call.h]h-The folio which triggered the readahead call.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhMahjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMahj)kubj)}(hL``unsigned long req_count`` Total number of pages being read by the caller. h](j)}(h``unsigned long req_count``h]j?)}(hjlh]hunsigned long req_count}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjlubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMbhjlubj)}(hhh]j9)}(h/Total number of pages being read by the caller.h]h/Total number of pages being read by the caller.}(hj/lhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+lhMbhj,lubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhj+lhMbhj)kubeh}(h]h ]h"]h$]h&]uh1jhj kubj9)}(h**Description**h]jz)}(hjQlh]h Description}(hjSlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOlubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMdhj kubj9)}(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.}(hjglhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMchj kubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌreadahead_folio (C function)c.readahead_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(h@struct folio * readahead_folio (struct readahead_control *ractl)h]h)}(h>struct folio *readahead_folio(struct readahead_control *ractl)h](j!)}(hj$h]hstruct}(hjlhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjlhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhjlhMubh)}(hhh]h)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjlmodnameN classnameNj\j_)}jb]je)}jXreadahead_foliosbc.readahead_folioasbuh1hhjlhhhjlhMubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhjlhMubj2 )}(hj5 h]h*}(hjlhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjlhhhjlhMubh)}(hreadahead_folioh]h)}(hjlh]hreadahead_folio}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ](jjeh"]h$]h&]jj uh1hhjlhhhjlhMubj)}(h!(struct readahead_control *ractl)h]j)}(hstruct readahead_control *ractlh](j!)}(hj$h]hstruct}(hjmhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj mubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj mubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hj.mhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+mubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj0mmodnameN classnameNj\j_)}jb]jlc.readahead_folioasbuh1hhj mubj)}(h h]h }(hjLmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj mubj2 )}(hj5 h]h*}(hjZmhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj mubh)}(hractlh]hractl}(hjgmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj mubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubah}(h]h ]h"]h$]h&]jj uh1jhjlhhhjlhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjlhhhjlhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhMhjlhhubj )}(hhh]j9)}(hGet the next folio to read.h]hGet the next folio to read.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jmj4jmj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjmubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubj)}(hhh]j)}(hC``struct readahead_control *ractl`` The current readahead request. h](j)}(h#``struct readahead_control *ractl``h]j?)}(hjmh]hstruct readahead_control *ractl}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubj)}(hhh]j9)}(hThe current readahead request.h]hThe current readahead request.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubj9)}(h **Context**h]jz)}(hj nh]hContext}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj nubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubj9)}(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.}(hj#nhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubj9)}(h **Return**h]jz)}(hj4nh]hReturn}(hj6nhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2nubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubj9)}(h8A pointer to the next folio, or ``NULL`` if we are done.h](h A pointer to the next folio, or }(hjJnhhhNhNubj?)}(h``NULL``h]hNULL}(hjRnhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJnubh if we are done.}(hjJnhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌreadahead_pos (C function)c.readahead_poshNtauh1hhjhhhNhNubh)}(hhh](h)}(h4loff_t readahead_pos (struct readahead_control *rac)h]h)}(h3loff_t readahead_pos(struct readahead_control *rac)h](h)}(hhh]h)}(hloff_th]hloff_t}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjnmodnameN classnameNj\j_)}jb]je)}jX readahead_possbc.readahead_posasbuh1hhjnhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhMubh)}(h readahead_posh]h)}(hjnh]h readahead_pos}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ](jjeh"]h$]h&]jj uh1hhjnhhhjnhMubj)}(h(struct readahead_control *rac)h]j)}(hstruct readahead_control *rach](j!)}(hj$h]hstruct}(hjnhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjnmodnameN classnameNj\j_)}jb]jnc.readahead_posasbuh1hhjnubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2 )}(hj5 h]h*}(hj'ohhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjnubh)}(hrach]hrac}(hj4ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjnubah}(h]h ]h"]h$]h&]jj uh1jhjnhhhjnhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjnhhhjnhMubah}(h]j~nah ](jjeh"]h$]h&]jj)jhuh1hhjnhMhjnhhubj )}(hhh]j9)}(h8The byte offset into the file of this readahead request.h]h8The byte offset into the file of this readahead request.}(hj^ohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj[ohhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jvoj4jvoj5j6j7uh1hhhhjhNhNubjp)}(hJ**Parameters** ``struct readahead_control *rac`` The readahead request.h](j9)}(h**Parameters**h]jz)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~oubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjzoubj)}(hhh]j)}(h8``struct readahead_control *rac`` The readahead request.h](j)}(h!``struct readahead_control *rac``h]j?)}(hjoh]hstruct readahead_control *rac}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjoubj)}(hhh]j9)}(hThe readahead request.h]hThe readahead request.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjzoubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌreadahead_length (C function)c.readahead_lengthhNtauh1hhjhhhNhNubh)}(hhh](h)}(h7size_t readahead_length (struct readahead_control *rac)h]h)}(h6size_t readahead_length(struct readahead_control *rac)h](h)}(hhh]h)}(hsize_th]hsize_t}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjomodnameN classnameNj\j_)}jb]je)}jXreadahead_lengthsbc.readahead_lengthasbuh1hhjohhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjphMubh)}(hreadahead_lengthh]h)}(hjph]hreadahead_length}(hj0phhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,pubah}(h]h ](jjeh"]h$]h&]jj uh1hhjohhhjphMubj)}(h(struct readahead_control *rac)h]j)}(hstruct readahead_control *rach](j!)}(hj$h]hstruct}(hjKphhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjGpubj)}(h h]h }(hjXphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGpubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hjiphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfpubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjkpmodnameN classnameNj\j_)}jb]jpc.readahead_lengthasbuh1hhjGpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGpubj2 )}(hj5 h]h*}(hjphhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjGpubh)}(hrach]hrac}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjCpubah}(h]h ]h"]h$]h&]jj uh1jhjohhhjphMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjohhhjphMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjphMhjohhubj )}(hhh]j9)}(h.The number of bytes in this readahead request.h]h.The number of bytes in this readahead request.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjphMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jpj4jpj5j6j7uh1hhhhjhNhNubjp)}(hJ**Parameters** ``struct readahead_control *rac`` The readahead request.h](j9)}(h**Parameters**h]jz)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjpubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjpubj)}(hhh]j)}(h8``struct readahead_control *rac`` The readahead request.h](j)}(h!``struct readahead_control *rac``h]j?)}(hj qh]hstruct readahead_control *rac}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj qubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjqubj)}(hhh]j9)}(hThe readahead request.h]hThe readahead request.}(hj&qhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj#qubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhj"qhMhjqubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌreadahead_index (C function)c.readahead_indexhNtauh1hhjhhhNhNubh)}(hhh](h)}(h7pgoff_t readahead_index (struct readahead_control *rac)h]h)}(h6pgoff_t readahead_index(struct readahead_control *rac)h](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgqubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjlqmodnameN classnameNj\j_)}jb]je)}jXreadahead_indexsbc.readahead_indexasbuh1hhjcqhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcqhhhjqhMubh)}(hreadahead_indexh]h)}(hjqh]hreadahead_index}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ](jjeh"]h$]h&]jj uh1hhjcqhhhjqhMubj)}(h(struct readahead_control *rac)h]j)}(hstruct readahead_control *rach](j!)}(hj$h]hstruct}(hjqhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjqmodnameN classnameNj\j_)}jb]jqc.readahead_indexasbuh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2 )}(hj5 h]h*}(hjrhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjqubh)}(hrach]hrac}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjqubah}(h]h ]h"]h$]h&]jj uh1jhjcqhhhjqhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj_qhhhjqhMubah}(h]jZqah ](jjeh"]h$]h&]jj)jhuh1hhjqhMhj\qhhubj )}(hhh]j9)}(h6The index of the first page in this readahead request.h]h6The index of the first page in this readahead request.}(hj:rhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj7rhhubah}(h]h ]h"]h$]h&]uh1jhj\qhhhjqhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jRrj4jRrj5j6j7uh1hhhhjhNhNubjp)}(hJ**Parameters** ``struct readahead_control *rac`` The readahead request.h](j9)}(h**Parameters**h]jz)}(hj\rh]h Parameters}(hj^rhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZrubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjVrubj)}(hhh]j)}(h8``struct readahead_control *rac`` The readahead request.h](j)}(h!``struct readahead_control *rac``h]j?)}(hj{rh]hstruct readahead_control *rac}(hj}rhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjurubj)}(hhh]j9)}(hThe readahead request.h]hThe readahead request.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjrubah}(h]h ]h"]h$]h&]uh1jhjurubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjrrubah}(h]h ]h"]h$]h&]uh1jhjVrubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌreadahead_count (C function)c.readahead_counthNtauh1hhjhhhNhNubh)}(hhh](h)}(h ah"]h$]h&]uh1j1 hj*subh)}(hrach]hrac}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*subeh}(h]h ]h"]h$]h&]noemphjj uh1jhj&subah}(h]h ]h"]h$]h&]jj uh1jhjrhhhjrhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjrhhhjrhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjrhMhjrhhubj )}(hhh]j9)}(h.The number of pages in this readahead request.h]h.The number of pages in this readahead request.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjshhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjrhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jsj4jsj5j6j7uh1hhhhjhNhNubjp)}(hJ**Parameters** ``struct readahead_control *rac`` The readahead request.h](j9)}(h**Parameters**h]jz)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjsubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubj)}(hhh]j)}(h8``struct readahead_control *rac`` The readahead request.h](j)}(h!``struct readahead_control *rac``h]j?)}(hjsh]hstruct readahead_control *rac}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjsubj)}(hhh]j9)}(hThe readahead request.h]hThe readahead request.}(hj thhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjtubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjthMhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#readahead_batch_length (C function)c.readahead_batch_lengthhNtauh1hhjhhhNhNubh)}(hhh](h)}(h=size_t readahead_batch_length (struct readahead_control *rac)h]h)}(h ah"]h$]h&]uh1j1 hjtubh)}(hrach]hrac}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubah}(h]h ]h"]h$]h&]jj uh1jhjHthhhjpthMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjDthhhjpthMubah}(h]j?tah ](jjeh"]h$]h&]jj)jhuh1hhjpthMhjAthhubj )}(hhh]j9)}(h)The number of bytes in the current batch.h]h)The number of bytes in the current batch.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjuhhubah}(h]h ]h"]h$]h&]uh1jhjAthhhjpthMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j7uj4j7uj5j6j7uh1hhhhjhNhNubjp)}(hJ**Parameters** ``struct readahead_control *rac`` The readahead request.h](j9)}(h**Parameters**h]jz)}(hjAuh]h Parameters}(hjCuhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?uubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj;uubj)}(hhh]j)}(h8``struct readahead_control *rac`` The readahead request.h](j)}(h!``struct readahead_control *rac``h]j?)}(hj`uh]hstruct readahead_control *rac}(hjbuhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj^uubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjZuubj)}(hhh]j9)}(hThe readahead request.h]hThe readahead request.}(hjyuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjvuubah}(h]h ]h"]h$]h&]uh1jhjZuubeh}(h]h ]h"]h$]h&]uh1jhjuuhMhjWuubah}(h]h ]h"]h$]h&]uh1jhj;uubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)folio_mkwrite_check_truncate (C function)c.folio_mkwrite_check_truncatehNtauh1hhjhhhNhNubh)}(hhh](h)}(hOssize_t folio_mkwrite_check_truncate (struct folio *folio, struct inode *inode)h]h)}(hNssize_t folio_mkwrite_check_truncate(struct folio *folio, struct inode *inode)h](h)}(hhh]h)}(hssize_th]hssize_t}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjumodnameN classnameNj\j_)}jb]je)}jXfolio_mkwrite_check_truncatesbc.folio_mkwrite_check_truncateasbuh1hhjuhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjuhMubh)}(hfolio_mkwrite_check_truncateh]h)}(hjuh]hfolio_mkwrite_check_truncate}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ](jjeh"]h$]h&]jj uh1hhjuhhhjuhMubj)}(h*(struct folio *folio, struct inode *inode)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj vhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]h)}(hfolioh]hfolio}(hj*vhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'vubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj,vmodnameN classnameNj\j_)}jb]juc.folio_mkwrite_check_truncateasbuh1hhjvubj)}(h h]h }(hjHvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2 )}(hj5 h]h*}(hjVvhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjvubh)}(hfolioh]hfolio}(hjcvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjvubj)}(hstruct inode *inodeh](j!)}(hj$h]hstruct}(hj|vhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjxvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxvubh)}(hhh]h)}(hinodeh]hinode}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjvmodnameN classnameNj\j_)}jb]juc.folio_mkwrite_check_truncateasbuh1hhjxvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxvubj2 )}(hj5 h]h*}(hjvhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxvubh)}(hinodeh]hinode}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxvubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjvubeh}(h]h ]h"]h$]h&]jj uh1jhjuhhhjuhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjuhhhjuhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhjuhhubj )}(hhh]j9)}(hcheck if folio was truncatedh]hcheck if folio was truncated}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjvhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jwj4jwj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct folio *folio`` the folio to check ``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](j9)}(h**Parameters**h]jz)}(hjwh]h Parameters}(hj!whhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubj)}(hhh](j)}(h+``struct folio *folio`` the folio to check h](j)}(h``struct folio *folio``h]j?)}(hj>wh]hstruct folio *folio}(hj@whhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjhjuwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjqwubj)}(hhh]j9)}(h$the inode to check the folio againsth]h$the inode to check the folio against}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjwhMhjwubah}(h]h ]h"]h$]h&]uh1jhjqwubeh}(h]h ]h"]h$]h&]uh1jhjwhMhj5wubeh}(h]h ]h"]h$]h&]uh1jhjwubj9)}(h **Return**h]jz)}(hjwh]hReturn}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubj9)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌi_blocks_per_folio (C function)c.i_blocks_per_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hJunsigned int i_blocks_per_folio (struct inode *inode, struct folio *folio)h]h)}(hIunsigned int i_blocks_per_folio(struct inode *inode, struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjxhMubj)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjxhMubj)}(h h]h }(hj"xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjxhMubh)}(hi_blocks_per_folioh]h)}(hi_blocks_per_folioh]hi_blocks_per_folio}(hj4xhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0xubah}(h]h ](jjeh"]h$]h&]jj uh1hhjwhhhjxhMubj)}(h*(struct inode *inode, struct folio *folio)h](j)}(hstruct inode *inodeh](j!)}(hj$h]hstruct}(hjPxhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjLxubj)}(h h]h }(hj]xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLxubh)}(hhh]h)}(hinodeh]hinode}(hjnxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkxubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjpxmodnameN classnameNj\j_)}jb]je)}jXj6xsbc.i_blocks_per_folioasbuh1hhjLxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLxubj2 )}(hj5 h]h*}(hjxhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjLxubh)}(hinodeh]hinode}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLxubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjHxubj)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjxhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]h)}(hfolioh]hfolio}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjxmodnameN classnameNj\j_)}jb]jxc.i_blocks_per_folioasbuh1hhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2 )}(hj5 h]h*}(hj yhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxubh)}(hfolioh]hfolio}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjHxubeh}(h]h ]h"]h$]h&]jj uh1jhjwhhhjxhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjwhhhjxhMubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjwhhubj )}(hhh]j9)}(h"How many blocks fit in this folio.h]h"How many blocks fit in this folio.}(hjCyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj@yhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjxhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j[yj4j[yj5j6j7uh1hhhhjhNhNubjp)}(hXm**Parameters** ``struct inode *inode`` The inode which contains the blocks. ``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](j9)}(h**Parameters**h]jz)}(hjeyh]h Parameters}(hjgyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcyubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj_yubj)}(hhh](j)}(h=``struct inode *inode`` The inode which contains the blocks. h](j)}(h``struct inode *inode``h]j?)}(hjyh]hstruct inode *inode}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj~yubj)}(hhh]j9)}(h$The inode which contains the blocks.h]h$The inode which contains the blocks.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhj~yubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj{yubj)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjyh]hstruct folio *folio}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjyubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj{yubeh}(h]h ]h"]h$]h&]uh1jhj_yubj9)}(h**Description**h]jz)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj_yubj9)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj_yubj9)}(h **Context**h]jz)}(hjzh]hContext}(hj!zhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjzubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj_yubj9)}(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.}(hj5zhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hj_yubj9)}(h **Return**h]jz)}(hjFzh]hReturn}(hjHzhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDzubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hj_yubj9)}(h6The number of filesystem blocks covered by this folio.h]h6The number of filesystem blocks covered by this folio.}(hj\zhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hj_yubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubeh}(h]truncateah ]h"]truncateah$]h&]uh1hhj;hhhhhKPubeh}(h]file-mapping-and-page-cacheah ]h"]file mapping and page cacheah$]h&]uh1hhhhhhhhK8ubh)}(hhh](h)}(h Memory poolsh]h Memory pools}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhhhhhKYubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_exit (C function)c.mempool_exithNtauh1hhjzhhhNhNubh)}(hhh](h)}(h#void mempool_exit (mempool_t *pool)h]h)}(h"void mempool_exit(mempool_t *pool)h](j)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhKubh)}(h mempool_exith]h)}(h mempool_exith]h mempool_exit}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ](jjeh"]h$]h&]jj uh1hhjzhhhjzhKubj)}(h(mempool_t *pool)h]j)}(hmempool_t *poolh](h)}(hhh]h)}(h mempool_th]h mempool_t}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjzmodnameN classnameNj\j_)}jb]je)}jXjzsbc.mempool_exitasbuh1hhjzubj)}(h h]h }(hj {hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj2 )}(hj5 h]h*}(hj{hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjzubh)}(hpoolh]hpool}(hj'{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubah}(h]h ]h"]h$]h&]jj uh1jhjzhhhjzhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjzhhhjzhKubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjzhKhjzhhubj )}(hhh]j9)}(h.exit a mempool initialized with mempool_init()h]h.exit a mempool initialized with mempool_init()}(hjQ{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjN{hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3ji{j4ji{j5j6j7uh1hhhhjzhNhNubjp)}(hXN**Parameters** ``mempool_t *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](j9)}(h**Parameters**h]jz)}(hjs{h]h Parameters}(hju{hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjq{ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjm{ubj)}(hhh]j)}(hZ``mempool_t *pool`` pointer to the memory pool which was initialized with mempool_init(). h](j)}(h``mempool_t *pool``h]j?)}(hj{h]hmempool_t *pool}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj{ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj{ubj)}(hhh]j9)}(hEpointer to the memory pool which was initialized with mempool_init().h]hEpointer to the memory pool which was initialized with mempool_init().}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hKhj{ubah}(h]h ]h"]h$]h&]uh1jhjm{ubj9)}(h**Description**h]jz)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj{ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjm{ubj9)}(hxFree all reserved elements in **pool** and **pool** itself. This function only sleeps if the free_fn() function sleeps.h](hFree all reserved elements in }(hj{hhhNhNubjz)}(h**pool**h]hpool}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj{ubh and }(hj{hhhNhNubjz)}(h**pool**h]hpool}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj{ubhE itself. This function only sleeps if the free_fn() function sleeps.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjm{ubj9)}(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()).}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjm{ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_destroy (C function)c.mempool_destroyhNtauh1hhjzhhhNhNubh)}(hhh](h)}(h&void mempool_destroy (mempool_t *pool)h]h)}(h%void mempool_destroy(mempool_t *pool)h](j)}(hvoidh]hvoid}(hjF|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB|hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hjU|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB|hhhjT|hKubh)}(hmempool_destroyh]h)}(hmempool_destroyh]hmempool_destroy}(hjg|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjc|ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjB|hhhjT|hKubj)}(h(mempool_t *pool)h]j)}(hmempool_t *poolh](h)}(hhh]h)}(h mempool_th]h mempool_t}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj|modnameN classnameNj\j_)}jb]je)}jXji|sbc.mempool_destroyasbuh1hhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2 )}(hj5 h]h*}(hj|hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|ubh)}(hpoolh]hpool}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj{|ubah}(h]h ]h"]h$]h&]jj uh1jhjB|hhhjT|hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj>|hhhjT|hKubah}(h]j9|ah ](jjeh"]h$]h&]jj)jhuh1hhjT|hKhj;|hhubj )}(hhh]j9)}(hdeallocate a memory poolh]hdeallocate a memory pool}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj|hhubah}(h]h ]h"]h$]h&]uh1jhj;|hhhjT|hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j}j4j}j5j6j7uh1hhhhjzhNhNubjp)}(h**Parameters** ``mempool_t *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](j9)}(h**Parameters**h]jz)}(hj }h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj }ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj}ubj)}(hhh]j)}(hY``mempool_t *pool`` pointer to the memory pool which was allocated via mempool_create(). h](j)}(h``mempool_t *pool``h]j?)}(hj,}h]hmempool_t *pool}(hj.}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj*}ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj&}ubj)}(hhh]j9)}(hDpointer to the memory pool which was allocated via mempool_create().h]hDpointer to the memory pool which was allocated via mempool_create().}(hjE}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjB}ubah}(h]h ]h"]h$]h&]uh1jhj&}ubeh}(h]h ]h"]h$]h&]uh1jhjA}hKhj#}ubah}(h]h ]h"]h$]h&]uh1jhj}ubj9)}(h**Description**h]jz)}(hjh}h]h Description}(hjj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjf}ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj}ubj9)}(hxFree all reserved elements in **pool** and **pool** itself. This function only sleeps if the free_fn() function sleeps.h](hFree all reserved elements in }(hj~}hhhNhNubjz)}(h**pool**h]hpool}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~}ubh and }(hj~}hhhNhNubjz)}(h**pool**h]hpool}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~}ubhE itself. This function only sleeps if the free_fn() function sleeps.}(hj~}hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_init (C function)c.mempool_inithNtauh1hhjzhhhNhNubh)}(hhh](h)}(hsint mempool_init (mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data)h]h)}(hrint mempool_init(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data)h](j)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhj}hKubh)}(h mempool_inith]h)}(h mempool_inith]h mempool_init}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj}hhhj}hKubj)}(hb(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data)h](j)}(hmempool_t *poolh](h)}(hhh]h)}(h mempool_th]h mempool_t}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]je)}jXj}sbc.mempool_initasbuh1hhj ~ubj)}(h h]h }(hj1~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ~ubj2 )}(hj5 h]h*}(hj?~hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ~ubh)}(hpoolh]hpool}(hjL~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~ubj)}(h int min_nrh](j)}(hinth]hint}(hje~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja~ubj)}(h h]h }(hjs~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja~ubh)}(hmin_nrh]hmin_nr}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhja~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~ubj)}(hmempool_alloc_t *alloc_fnh](h)}(hhh]h)}(hmempool_alloc_th]hmempool_alloc_t}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]j-~c.mempool_initasbuh1hhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj2 )}(hj5 h]h*}(hj~hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj~ubh)}(halloc_fnh]halloc_fn}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~ubj)}(hmempool_free_t *free_fnh](h)}(hhh]h)}(hmempool_free_th]hmempool_free_t}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]j-~c.mempool_initasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj~ubh)}(hfree_fnh]hfree_fn}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~ubj)}(hvoid *pool_datah](j)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2 )}(hj5 h]h*}(hj`hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj@ubh)}(h pool_datah]h pool_data}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~ubeh}(h]h ]h"]h$]h&]jj uh1jhj}hhhj}hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj}hhhj}hKubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhj}hKhj}hhubj )}(hhh]j9)}(hinitialize a memory poolh]hinitialize a memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjzhNhNubjp)}(hXH**Parameters** ``mempool_t *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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj)}(hhh](j)}(hJ``mempool_t *pool`` pointer to the memory pool that should be initialized h](j)}(h``mempool_t *pool``h]j?)}(hjh]hmempool_t *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj)}(hhh]j9)}(h5pointer to the memory pool that should be initializedh]h5pointer to the memory pool that should be initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hX``int min_nr`` the minimum number of elements guaranteed to be allocated for this pool. h](j)}(h``int min_nr``h]j?)}(hjh]h int min_nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj ubj)}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjubj)}(hH``mempool_alloc_t *alloc_fn`` user-defined element-allocation function. h](j)}(h``mempool_alloc_t *alloc_fn``h]j?)}(hjKh]hmempool_alloc_t *alloc_fn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjEubj)}(hhh]j9)}(h)user-defined element-allocation function.h]h)user-defined element-allocation function.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`hKhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjubj)}(hC``mempool_free_t *free_fn`` user-defined element-freeing function. h](j)}(h``mempool_free_t *free_fn``h]j?)}(hjh]hmempool_free_t *free_fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj~ubj)}(hhh]j9)}(h&user-defined element-freeing function.h]h&user-defined element-freeing function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hS``void *pool_data`` optional private data available to the user-defined functions. h](j)}(h``void *pool_data``h]j?)}(hjh]hvoid *pool_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj)}(hhh]j9)}(h>optional private data available to the user-defined functions.h]h>optional private data available to the user-defined functions.}(hjրhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjҀhKhjӀubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҀhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubh+ on success, negative error code otherwise.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ mempool_create_node (C function)c.mempool_create_nodehNtauh1hhjzhhhNhNubh)}(hhh](h)}(hmempool_t * 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)}(hmempool_t *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)}(hhh]h)}(h mempool_th]h mempool_t}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjwmodnameN classnameNj\j_)}jb]je)}jXmempool_create_nodesbc.mempool_create_nodeasbuh1hhjnhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjnhhhjhMubh)}(hmempool_create_nodeh]h)}(hjh]hmempool_create_node}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjnhhhjhMubj)}(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}(hjсhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj́ubj)}(h h]h }(hj߁hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj́ubh)}(hmin_nrh]hmin_nr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj́ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjɁubj)}(hmempool_alloc_t *alloc_fnh](h)}(hhh]h)}(hmempool_alloc_th]hmempool_alloc_t}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]jc.mempool_create_nodeasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(halloc_fnh]halloc_fn}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjɁubj)}(hmempool_free_t *free_fnh](h)}(hhh]h)}(hmempool_free_th]hmempool_free_t}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj`modnameN classnameNj\j_)}jb]jc.mempool_create_nodeasbuh1hhjWubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjWubh)}(hfree_fnh]hfree_fn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjɁubj)}(hvoid *pool_datah](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hĵhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(h pool_datah]h pool_data}(hjقhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjɁubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.mempool_create_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfp_maskh]hgfp_mask}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjɁubj)}(h int node_idh](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hnode_idh]hnode_id}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjɁubeh}(h]h ]h"]h$]h&]jj uh1jhjnhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjjhhhjhMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjghhubj )}(hhh]j9)}(hcreate a memory poolh]hcreate a memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj}hhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjzhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(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]j?)}(hjh]h int min_nr}(hjÃhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj׃ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjփhMhjubj)}(hH``mempool_alloc_t *alloc_fn`` user-defined element-allocation function. h](j)}(h``mempool_alloc_t *alloc_fn``h]j?)}(hjh]hmempool_alloc_t *alloc_fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]j9)}(h)user-defined element-allocation function.h]h)user-defined element-allocation function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hC``mempool_free_t *free_fn`` user-defined element-freeing function. h](j)}(h``mempool_free_t *free_fn``h]j?)}(hj4h]hmempool_free_t *free_fn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj.ubj)}(hhh]j9)}(h&user-defined element-freeing function.h]h&user-defined element-freeing function.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubj)}(hS``void *pool_data`` optional private data available to the user-defined functions. h](j)}(h``void *pool_data``h]j?)}(hjmh]hvoid *pool_data}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjgubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``gfp_t gfp_mask`` memory allocation flags h](j)}(h``gfp_t gfp_mask``h]j?)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]j9)}(hmemory allocation flagsh]hmemory allocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``int node_id`` numa node to allocate on h](j)}(h``int node_id``h]j?)}(hj߄h]h int node_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj݄ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjلubj)}(hhh]j9)}(hnuma node to allocate onh]hnuma node to allocate on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjلubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM hjubj9)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM hjubj9)}(h **Return**h]jz)}(hjAh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj9)}(h?pointer to the created memory pool object or ``NULL`` on error.h](h-pointer to the created memory pool object or }(hjWhhhNhNubj?)}(h``NULL``h]hNULL}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWubh on error.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_resize (C function)c.mempool_resizehNtauh1hhjzhhhNhNubh)}(hhh](h)}(h4int mempool_resize (mempool_t *pool, int new_min_nr)h]h)}(h3int mempool_resize(mempool_t *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.chM'ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM'ubh)}(hmempool_resizeh]h)}(hmempool_resizeh]hmempool_resize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM'ubj)}(h!(mempool_t *pool, int new_min_nr)h](j)}(hmempool_t *poolh](h)}(hhh]h)}(h mempool_th]h mempool_t}(hj؅hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjՅubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjڅmodnameN classnameNj\j_)}jb]je)}jXjsbc.mempool_resizeasbuh1hhjхubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjхubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjхubh)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjхubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjͅubj)}(hint new_min_nrh](j)}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(h new_min_nrh]h new_min_nr}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjͅubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM'ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM'ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM'hjhhubj )}(hhh]j9)}(hresize an existing memory poolh]hresize an existing memory pool}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM'hjohhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM'ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjzhNhNubjp)}(hX**Parameters** ``mempool_t *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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM+hjubj)}(hhh](j)}(hY``mempool_t *pool`` pointer to the memory pool which was allocated via mempool_create(). h](j)}(h``mempool_t *pool``h]j?)}(hjh]hmempool_t *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM)hjubj)}(hhh]j9)}(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&]uh1j8hL/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)}(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]j?)}(hjh]hint new_min_nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM+hjubj)}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj'ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM-hjubj9)}(hThis function shrinks/grows the pool. In the case of growing, it cannot be guaranteed that the pool will be grown to the new size immediately, but new mempool_free() calls will refill it. This function may sleep.h]hThis function shrinks/grows the pool. In the case of growing, it cannot be guaranteed that the pool will be grown to the new size immediately, but new mempool_free() calls will refill it. This function may sleep.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM,hjubj9)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM1hjubj9)}(h **Return**h]jz)}(hj_h]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj]ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM5hjubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjuubh+ on success, negative error code otherwise.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_alloc (C function)c.mempool_allochNtauh1hhjzhhhNhNubh)}(hhh](h)}(h6void * mempool_alloc (mempool_t *pool, gfp_t gfp_mask)h]h)}(h4void *mempool_alloc(mempool_t *pool, gfp_t gfp_mask)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMwubj2 )}(hj5 h]h*}(hjχhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMwubh)}(h mempool_alloch]h)}(h mempool_alloch]h mempool_alloc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj܇ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMwubj)}(h!(mempool_t *pool, gfp_t gfp_mask)h](j)}(hmempool_t *poolh](h)}(hhh]h)}(h mempool_th]h mempool_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.mempool_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj-hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpoolh]hpool}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjXmodnameN classnameNj\j_)}jb]jc.mempool_allocasbuh1hhjOubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMwubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMwhjhhubj )}(hhh]j9)}(h/allocate an element from a specific memory poolh]h/allocate an element from a specific memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMwhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMwubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jĈj4jĈj5j6j7uh1hhhhjzhNhNubjp)}(hX**Parameters** ``mempool_t *pool`` pointer to the memory pool which was allocated via mempool_create(). ``gfp_t gfp_mask`` the usual allocation bitmask. **Description** this function only sleeps if the alloc_fn() function sleeps or returns NULL. Note that due to preallocation, this function *never* fails when called from process contexts. (it might fail if called from an IRQ context.) **Note** using __GFP_ZERO is not supported. **Return** pointer to the allocated element or ``NULL`` on error.h](j9)}(h**Parameters**h]jz)}(hjΈh]h Parameters}(hjЈhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj̈ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM{hjȈubj)}(hhh](j)}(hY``mempool_t *pool`` pointer to the memory pool which was allocated via mempool_create(). h](j)}(h``mempool_t *pool``h]j?)}(hjh]hmempool_t *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMyhjubj)}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjubj)}(h1``gfp_t gfp_mask`` the usual allocation bitmask. h](j)}(h``gfp_t gfp_mask``h]j?)}(hj'h]hgfp_t gfp_mask}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMzhj!ubj)}(hhh]j9)}(hthe usual allocation bitmask.h]hthe usual allocation bitmask.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<hMzhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMzhjubeh}(h]h ]h"]h$]h&]uh1jhjȈubj9)}(h**Description**h]jz)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj`ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM|hjȈubj9)}(hthis function only sleeps if the alloc_fn() function sleeps or returns NULL. Note that due to preallocation, this function *never* fails when called from process contexts. (it might fail if called from an IRQ context.)h](h{this function only sleeps if the alloc_fn() function sleeps or returns NULL. Note that due to preallocation, this function }(hjxhhhNhNubjK)}(h*never*h]hnever}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjxubhX fails when called from process contexts. (it might fail if called from an IRQ context.)}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM{hjȈubj9)}(h**Note**h]jz)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjȈubj9)}(h"using __GFP_ZERO is not supported.h]h"using __GFP_ZERO is not supported.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjȈubj9)}(h **Return**h]jz)}(hj‰h]hReturn}(hjĉhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjȈubj9)}(h6pointer to the allocated element or ``NULL`` on error.h](h$pointer to the allocated element or }(hj؉hhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj؉ubh on error.}(hj؉hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjȈubeh}(h]h ] kernelindentah"]h$]h&]uh1johjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'mempool_alloc_preallocated (C function)c.mempool_alloc_preallocatedhNtauh1hhjzhhhNhNubh)}(hhh](h)}(h3void * mempool_alloc_preallocated (mempool_t *pool)h]h)}(h1void *mempool_alloc_preallocated(mempool_t *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.chMubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj'hMubj2 )}(hj5 h]h*}(hj6hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhj'hMubh)}(hmempool_alloc_preallocatedh]h)}(hmempool_alloc_preallocatedh]hmempool_alloc_preallocated}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj'hMubj)}(h(mempool_t *pool)h]j)}(hmempool_t *poolh](h)}(hhh]h)}(h mempool_th]h mempool_t}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]je)}jXjIsbc.mempool_alloc_preallocatedasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj_ubh)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj[ubah}(h]h ]h"]h$]h&]jj uh1jhjhhhj'hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj'hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhjhhubj )}(hhh]j9)}(hRallocate an element from preallocated elements belonging to a specific memory poolh]hRallocate an element from preallocated elements belonging to a specific memory pool}(hjˊhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjȊhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjzhNhNubjp)}(hX**Parameters** ``mempool_t *pool`` pointer to the memory pool which was allocated via mempool_create(). **Description** This function is similar to mempool_alloc, but it only attempts allocating an element from the preallocated elements. It does not sleep and immediately returns if no preallocated elements are available. **Return** pointer to the allocated element or ``NULL`` if no elements are available.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]j)}(hY``mempool_t *pool`` pointer to the memory pool which was allocated via mempool_create(). h](j)}(h``mempool_t *pool``h]j?)}(hj h]hmempool_t *pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj9)}(hThis function is similar to mempool_alloc, but it only attempts allocating an element from the preallocated elements. It does not sleep 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 does not sleep and immediately returns if no preallocated elements are available.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj9)}(h **Return**h]jz)}(hjoh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjmubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj9)}(hJpointer to the allocated element or ``NULL`` if no elements are available.h](h$pointer to the allocated element or }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh if no elements are available.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjzhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_free (C function)c.mempool_freehNtauh1hhjzhhhNhNubh)}(hhh](h)}(h2void mempool_free (void *element, mempool_t *pool)h]h)}(h1void mempool_free(void *element, mempool_t *pool)h](j)}(hvoidh]hvoid}(hjƋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj‹hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjՋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj‹hhhjԋhMubh)}(h mempool_freeh]h)}(h mempool_freeh]h mempool_free}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj‹hhhjԋhMubj)}(h (void *element, mempool_t *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&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(helementh]helement}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hmempool_t *poolh](h)}(hhh]h)}(h mempool_th]h mempool_t}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjJmodnameN classnameNj\j_)}jb]je)}jXjsbc.mempool_freeasbuh1hhjAubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2 )}(hj5 h]h*}(hjvhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjAubh)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj‹hhhjԋhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjԋhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjԋhMhjhhubj )}(hhh]j9)}(hreturn an element to the pool.h]hreturn an element to the pool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԋhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jŌj4jŌj5j6j7uh1hhhhjzhNhNubjp)}(h**Parameters** ``void *element`` pool element pointer. ``mempool_t *pool`` pointer to the memory pool which was allocated via mempool_create(). **Description** this function only sleeps if the free_fn() function sleeps.h](j9)}(h**Parameters**h]jz)}(hjόh]h Parameters}(hjьhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj͌ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjɌubj)}(hhh](j)}(h(``void *element`` pool element pointer. h](j)}(h``void *element``h]j?)}(hjh]h void *element}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjubj)}(hhh]j9)}(hpool element pointer.h]hpool element pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hY``mempool_t *pool`` pointer to the memory pool which was allocated via mempool_create(). h](j)}(h``mempool_t *pool``h]j?)}(hj'h]hmempool_t *pool}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj!ubj)}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubeh}(h]h ]h"]h$]h&]uh1jhjɌubj9)}(h**Description**h]jz)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjɌubj9)}(h;this function only sleeps if the free_fn() function sleeps.h]h;this function only sleeps if the free_fn() function sleeps.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjɌubeh}(h]h ] kernelindentah"]h$]h&]uh1johjzhhhNhNubeh}(h] memory-poolsah ]h"] memory poolsah$]h&]uh1hhhhhhhhKYubh)}(hhh](h)}(h More Memory Management Functionsh]h More Memory Management Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK_ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌzap_vma_ptes (C function)c.zap_vma_pteshNtauh1hhjhhhNhNubh)}(hhh](h)}(hYvoid zap_vma_ptes (struct vm_area_struct *vma, unsigned long address, unsigned long size)h]h)}(hXvoid zap_vma_ptes(struct vm_area_struct *vma, unsigned long address, unsigned long size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjЍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjύhMubh)}(h zap_vma_ptesh]h)}(h zap_vma_ptesh]h zap_vma_ptes}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjލubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjύhMubj)}(hG(struct vm_area_struct *vma, unsigned long address, unsigned long size)h](j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.zap_vma_ptesasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjJhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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&]uh1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjύhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjύhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjύhMhjhhubj )}(hhh]j9)}(hremove ptes mapping the vmah]hremove ptes mapping the vma}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjύhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j;j4j;j5j6j7uh1hhhhjhNhNubjp)}(hXW**Parameters** ``struct vm_area_struct *vma`` vm_area_struct holding ptes to be zapped ``unsigned long address`` starting address of pages to zap ``unsigned long size`` number of bytes to zap **Description** This function only unmaps ptes assigned to VM_PFNMAP vmas. The entire address range must be fully contained within the vma.h](j9)}(h**Parameters**h]jz)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj?ubj)}(hhh](j)}(hH``struct vm_area_struct *vma`` vm_area_struct holding ptes to be zapped h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjdh]hstruct vm_area_struct *vma}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj^ubj)}(hhh]j9)}(h(vm_area_struct holding ptes to be zappedh]h(vm_area_struct holding ptes to be zapped}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj[ubj)}(h;``unsigned long address`` starting address of pages to zap h](j)}(h``unsigned long address``h]j?)}(hjh]hunsigned long address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(h starting address of pages to zaph]h starting address of pages to zap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj[ubj)}(h.``unsigned long size`` number of bytes to zap h](j)}(h``unsigned long size``h]j?)}(hj֏h]hunsigned long size}(hj؏hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjԏubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjЏubj)}(hhh]j9)}(hnumber of bytes to zaph]hnumber of bytes to zap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjЏubeh}(h]h ]h"]h$]h&]uh1jhjhMhj[ubeh}(h]h ]h"]h$]h&]uh1jhj?ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj?ubj9)}(h:This function only unmaps ptes assigned to VM_PFNMAP vmas.h]h:This function only unmaps ptes assigned to VM_PFNMAP vmas.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj?ubj9)}(h@The entire address range must be fully contained within the vma.h]h@The entire address range must be fully contained within the vma.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_insert_pages (C function)c.vm_insert_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hmint vm_insert_pages (struct vm_area_struct *vma, unsigned long addr, struct page **pages, unsigned long *num)h]h)}(hlint vm_insert_pages(struct vm_area_struct *vma, unsigned long addr, struct page **pages, unsigned long *num)h](j)}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjshMubh)}(hvm_insert_pagesh]h)}(hvm_insert_pagesh]hvm_insert_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjahhhjshMubj)}(hY(struct vm_area_struct *vma, unsigned long addr, struct page **pages, unsigned long *num)h](j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.vm_insert_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct page **pagesh](j!)}(hj$h]hstruct}(hjehhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jܐc.vm_insert_pagesasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjaubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjaubh)}(hpagesh]hpages}(hjɑhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long *numh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޑubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޑubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޑubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޑubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjޑubh)}(hnumh]hnum}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjޑubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjahhhjshMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj]hhhjshMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjshMhjZhhubj )}(hhh]j9)}(h;insert multiple pages into user vma, batching the pmd lock.h]h;insert multiple pages into user vma, batching the pmd lock.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jij4jij5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjmubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``unsigned long addr`` target start user address of these pages h](j)}(h``unsigned long addr``h]j?)}(hj˒h]hunsigned long addr}(hj͒hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjɒubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjŒubj)}(hhh]j9)}(h(target start user address of these pagesh]h(target start user address of these pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjŒubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``struct page **pages`` source kernel pages h](j)}(h``struct page **pages``h]j?)}(hjh]hstruct page **pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(hsource kernel pagesh]hsource kernel pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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]j?)}(hj=h]hunsigned long *num}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj;ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj7ubj)}(hhh]j9)}(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 }(hjVhhhNhNubjK)}(h*not*h]hnot}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjVubh6 mapped. (0 means all pages were successfully mapped).}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubeh}(h]h ]h"]h$]h&]uh1jhjmubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjmubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjmubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjmubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_insert_page (C function)c.vm_insert_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hVint vm_insert_page (struct vm_area_struct *vma, unsigned long addr, struct page *page)h]h)}(hUint vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *page)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hvm_insert_pageh]h)}(hvm_insert_pageh]hvm_insert_page}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(hC(struct vm_area_struct *vma, unsigned long addr, struct page *page)h](j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hj+hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjKmodnameN classnameNj\j_)}jb]je)}jXjsbc.vm_insert_pageasbuh1hhj'ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj2 )}(hj5 h]h*}(hjwhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj'ubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj#ubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjǔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjՔhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj#ubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jec.vm_insert_pageasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj8hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj#ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(h insert single page into user vmah]h insert single page into user vma}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/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]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]j9)}(huser vma to map toh]huser vma to map to}(hjɕhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjŕhM hjƕubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŕhM hjubj)}(h8``unsigned long addr`` target user address of this page h](j)}(h``unsigned long addr``h]j?)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]j9)}(h target user address of this pageh]h target user address of this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h)``struct page *page`` source kernel page h](j)}(h``struct page *page``h]j?)}(hj"h]hstruct page *page}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]j9)}(hsource kernel pageh]hsource kernel page}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hM hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj]h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(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().}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(hThe page has to be a nice clean _individual_ kernel allocation. If you allocate a compound page, you need to have marked it as such (__GFP_COMP), or manually just split the page up yourself (see split_page()).h]hThe page has to be a nice clean _individual_ kernel allocation. If you allocate a compound page, you need to have marked it as such (__GFP_COMP), or manually just split the page up yourself (see split_page()).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hj–hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM% hjubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hjږhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj֖ubh+ on success, negative error code otherwise.}(hj֖hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM& hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_map_pages (C function)c.vm_map_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hUint vm_map_pages (struct vm_area_struct *vma, struct page **pages, unsigned long num)h]h)}(hTint vm_map_pages(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j)}(hinth]hint}(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)}(h vm_map_pagesh]h)}(h vm_map_pagesh]h vm_map_pages}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj!hM] ubj)}(hD(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjPhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjpmodnameN classnameNj\j_)}jb]je)}jXj6sbc.vm_map_pagesasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjLubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjHubj)}(hstruct page **pagesh](j!)}(hj$h]hstruct}(hj—hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjϗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjݗubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.vm_map_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpagesh]hpages}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjHubj)}(hunsigned long numh](j)}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hlongh]hlong}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hnumh]hnum}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjHubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj!hM] ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj!hM] ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj!hM] hjhhubj )}(hhh]j9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM] hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hM] ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjØh]h Parameters}(hjŘhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMa hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM^ hjܘubj)}(hhh]j9)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM^ hjubah}(h]h ]h"]h$]h&]uh1jhjܘubeh}(h]h ]h"]h$]h&]uh1jhjhM^ hj٘ubj)}(h@``struct page **pages`` pointer to array of source kernel pages h](j)}(h``struct page **pages``h]j?)}(hjh]hstruct page **pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM_ hjubj)}(hhh]j9)}(h'pointer to array of source kernel pagesh]h'pointer to array of source kernel pages}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hM_ hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM_ hj٘ubj)}(h4``unsigned long num`` number of pages in page array h](j)}(h``unsigned long num``h]j?)}(hjTh]hunsigned long num}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM` hjNubj)}(hhh]j9)}(hnumber of pages in page arrayh]hnumber of pages in page array}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihM` hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM` hj٘ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMb hjubj9)}(hVMaps an object consisting of **num** pages, catering for the user's requested vm_pgoffh](hMaps an object consisting of }(hjhhhNhNubjz)}(h**num**h]hnum}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh4 pages, catering for the user’s requested vm_pgoff}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMa hjubj9)}(hX\If we fail to insert any page into the vma, the function will return immediately leaving any previously inserted pages present. Callers from the mmap handler may immediately return the error as their caller will destroy the vma, removing any successfully inserted pages. Other callers should make their own arrangements for calling unmap_region().h]hX\If we fail to insert any page into the vma, the function will return immediately leaving any previously inserted pages present. Callers from the mmap handler may immediately return the error as their caller will destroy the vma, removing any successfully inserted pages. Other callers should make their own arrangements for calling unmap_region().}(hjƙhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMd hjubj9)}(h **Context**h]jz)}(hjיh]hContext}(hjٙhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjՙubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMj hjubj9)}(h)Process context. Called by mmap handlers.h]h)Process context. Called by mmap handlers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMk hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMm hjubj9)}(h&0 on success and error code otherwise.h]h&0 on success and error code otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMl hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_map_pages_zero (C function)c.vm_map_pages_zerohNtauh1hhjhhhNhNubh)}(hhh](h)}(hZint vm_map_pages_zero (struct vm_area_struct *vma, struct page **pages, unsigned long num)h]h)}(hYint vm_map_pages_zero(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j)}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMv ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMv ubh)}(hvm_map_pages_zeroh]h)}(hvm_map_pages_zeroh]hvm_map_pages_zero}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj?hhhjQhMv ubj)}(hD(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjfsbc.vm_map_pages_zeroasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2 )}(hj5 h]h*}(hj̚hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|ubh)}(hvmah]hvma}(hjٚhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjxubj)}(hstruct page **pagesh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.vm_map_pages_zeroasbuh1hhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj<hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpagesh]hpages}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjxubj)}(hunsigned long numh](j)}(hunsignedh]hunsigned}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hnumh]hnum}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjxubeh}(h]h ]h"]h$]h&]jj uh1jhj?hhhjQhMv ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj;hhhjQhMv ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhMv hj8hhubj )}(hhh]j9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMv hjΛhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhMv ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMz hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMw hj ubj)}(hhh]j9)}(huser vma to map toh]huser vma to map to}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj'hMw hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMw hj ubj)}(h@``struct page **pages`` pointer to array of source kernel pages h](j)}(h``struct page **pages``h]j?)}(hjKh]hstruct page **pages}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMx hjEubj)}(hhh]j9)}(h'pointer to array of source kernel pagesh]h'pointer to array of source kernel pages}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`hMx hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMx hj ubj)}(h4``unsigned long num`` number of pages in page array h](j)}(h``unsigned long num``h]j?)}(hjh]hunsigned long num}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMy hj~ubj)}(hhh]j9)}(hnumber of pages in page arrayh]hnumber of pages in page array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMy hjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMy hj ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM{ hjubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMz hjubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM~ hjubj9)}(h)Process context. Called by mmap handlers.h]h)Process context. Called by mmap handlers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(h **Return**h]jz)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(h&0 on success and error code otherwise.h]h&0 on success and error code otherwise.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ vmf_insert_pfn_prot (C function)c.vmf_insert_pfn_prothNtauh1hhjhhhNhNubh)}(hhh](h)}(hsvm_fault_t vmf_insert_pfn_prot (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, pgprot_t pgprot)h]h)}(hrvm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, pgprot_t pgprot)h](h)}(hhh]h)}(h vm_fault_th]h vm_fault_t}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjWmodnameN classnameNj\j_)}jb]je)}jXvmf_insert_pfn_protsbc.vmf_insert_pfn_protasbuh1hhjNhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjvhM ubh)}(hvmf_insert_pfn_proth]h)}(hjsh]hvmf_insert_pfn_prot}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjNhhhjvhM ubj)}(hT(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, pgprot_t pgprot)h](j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjĝmodnameN classnameNj\j_)}jb]jqc.vmf_insert_pfn_protasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long pfnh](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&]uh1jhjaubh)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hpgprot_t pgproth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jqc.vmf_insert_pfn_protasbuh1hhjubj)}(h h]h }(hjמhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hpgproth]hpgprot}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjNhhhjvhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjJhhhjvhM ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjvhM hjGhhubj )}(hhh]j9)}(h5insert single pfn into user vma with specified pgproth]h5insert single pfn into user vma with specified pgprot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjvhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j'j4j'j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/ubah}(h]h ]h"]h$]h&]uh1j8hK/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]j?)}(hjPh]hstruct vm_area_struct *vma}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjJubj)}(hhh]j9)}(huser vma to map toh]huser vma to map to}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehM hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM hjGubj)}(h8``unsigned long addr`` target user address of this page h](j)}(h``unsigned long addr``h]j?)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]j9)}(h target user address of this pageh]h target user address of this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjGubj)}(h(``unsigned long pfn`` source kernel pfn h](j)}(h``unsigned long pfn``h]j?)}(hjŸh]hunsigned long pfn}(hjğhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]j9)}(hsource kernel pfnh]hsource kernel pfn}(hj۟hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjןhM hj؟ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjןhM hjGubj)}(h7``pgprot_t pgprot`` pgprot flags for the inserted page h](j)}(h``pgprot_t pgprot``h]j?)}(hjh]hpgprot_t pgprot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]j9)}(h"pgprot flags for the inserted pageh]h"pgprot flags for the inserted page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubj9)}(h**Description**h]jz)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj+ubj9)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj+ubj9)}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj+ubj9)}(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 }(hjjhhhNhNubjz)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjjubhG when drivers set caching- and encryption bits different than those of }(hjjhhhNhNubjz)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjjubhJ, because the caching- or encryption mode may not be known at mmap() time.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj+ubj9)}(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 }(hjhhhNhNubjz)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhX$ 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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj+ubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj+ubj9)}(h **Context**h]jz)}(hjϠh]hContext}(hjѠhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj͠ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj+ubj9)}(h4Process context. May allocate using ``GFP_KERNEL``.h](h%Process context. May allocate using }(hjhhhNhNubj?)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj+ubj9)}(h **Return**h]jz)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj+ubj9)}(hvm_fault_t value.h]hvm_fault_t value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmf_insert_pfn (C function)c.vmf_insert_pfnhNtauh1hhjhhhNhNubh)}(hhh](h)}(h]vm_fault_t vmf_insert_pfn (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)h]h)}(h\vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)h](h)}(hhh]h)}(h vm_fault_th]h vm_fault_t}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjRmodnameN classnameNj\j_)}jb]je)}jXvmf_insert_pfnsbc.vmf_insert_pfnasbuh1hhjIhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjqhM ubh)}(hvmf_insert_pfnh]h)}(hjnh]hvmf_insert_pfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjIhhhjqhM ubj)}(hC(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)h](j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jlc.vmf_insert_pfnasbuh1hhjubj)}(h h]h }(hjۡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(haddrh]haddr}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hlongh]hlong}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjIhhhjqhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjEhhhjqhM ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhjqhM hjBhhubj )}(hhh]j9)}(hinsert single pfn into user vmah]hinsert single pfn into user vma}(hj¢hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjqhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jڢj4jڢj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/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]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj)}(hhh]j9)}(huser vma to map toh]huser vma to map to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM 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]j?)}(hj<h]hunsigned long addr}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj6ubj)}(hhh]j9)}(h target user address of this pageh]h target user address of this page}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQhM hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjubj)}(h(``unsigned long pfn`` source kernel pfn h](j)}(h``unsigned long pfn``h]j?)}(hjuh]hunsigned long pfn}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjoubj)}(hhh]j9)}(hsource kernel pfnh]hsource kernel pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjޢubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjޢubj9)}(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.}(hjƣhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjޢubj9)}(hThis function should only be called from a vm_ops->fault handler, and in that case the handler should return the result of this function.h]hThis function should only be called from a vm_ops->fault handler, and in that case the handler should return the result of this function.}(hjգhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjޢubj9)}(hvma cannot be a COW mapping.h]hvma cannot be a COW mapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjޢubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjޢubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjޢubj9)}(h4Process context. May allocate using ``GFP_KERNEL``.h](h%Process context. May allocate using }(hjhhhNhNubj?)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjޢubj9)}(h **Return**h]jz)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj;ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjޢubj9)}(hvm_fault_t value.h]hvm_fault_t value.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjޢubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌremap_pfn_range (C function)c.remap_pfn_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hzint remap_pfn_range (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)h]h)}(hyint remap_pfn_range(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM@ ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhM@ ubh)}(hremap_pfn_rangeh]h)}(hremap_pfn_rangeh]hremap_pfn_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj~hhhjhM@ 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](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj̤hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjݤhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjڤubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjߤmodnameN classnameNj\j_)}jb]je)}jXjsbc.remap_pfn_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hlongh]hlong}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(haddrh]haddr}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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ϥubh)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjϥubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgprot_t proth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj)modnameN classnameNj\j_)}jb]jc.remap_pfn_rangeasbuh1hhj ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hproth]hprot}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj~hhhjhM@ ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjzhhhjhM@ ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhM@ hjwhhubj )}(hhh]j9)}(h remap kernel memory to userspaceh]h remap kernel memory to userspace}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM@ hjzhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhM@ ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMD hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMA hjubj)}(hhh]j9)}(huser vma to map toh]huser vma to map to}(hjצhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjӦhMA hjԦubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӦhMA hjubj)}(hD``unsigned long addr`` target page aligned user address to start at h](j)}(h``unsigned long addr``h]j?)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMB hjubj)}(hhh]j9)}(h,target page aligned user address to start ath]h,target page aligned user address to start at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMB hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMB hjubj)}(hJ``unsigned long pfn`` page frame number of kernel physical memory address h](j)}(h``unsigned long pfn``h]j?)}(hj0h]hunsigned long pfn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj.ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMC hj*ubj)}(hhh]j9)}(h3page frame number of kernel physical memory addressh]h3page frame number of kernel physical memory address}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEhMC hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMC hjubj)}(h,``unsigned long size`` size of mapping area h](j)}(h``unsigned long size``h]j?)}(hjih]hunsigned long size}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMD hjcubj)}(hhh]j9)}(hsize of mapping areah]hsize of mapping area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj~hMD hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMD hjubj)}(h9``pgprot_t prot`` page protection flags for this mapping h](j)}(h``pgprot_t prot``h]j?)}(hjh]h pgprot_t prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chME hjubj)}(hhh]j9)}(h&page protection flags for this mappingh]h&page protection flags for this mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhME hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhME hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Note**h]jz)}(hjݧh]hNote}(hjߧhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjۧubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMG hjubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMG hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMI hjubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMI hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_iomap_memory (C function)c.vm_iomap_memoryhNtauh1hhjhhhNhNubh)}(hhh](h)}(hVint vm_iomap_memory (struct vm_area_struct *vma, phys_addr_t start, unsigned long len)h]h)}(hUint vm_iomap_memory(struct vm_area_struct *vma, phys_addr_t start, unsigned long len)h](j)}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM{ ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjehM{ ubh)}(hvm_iomap_memoryh]h)}(hvm_iomap_memoryh]hvm_iomap_memory}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ](jjeh"]h$]h&]jj uh1hhjShhhjehM{ ubj)}(hB(struct vm_area_struct *vma, phys_addr_t start, unsigned long len)h](j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjzsbc.vm_iomap_memoryasbuh1hhjubj)}(h h]h }(hjҨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hphys_addr_t starth](h)}(hhh]h)}(h phys_addr_th]h phys_addr_t}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]jΨc.vm_iomap_memoryasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hstarth]hstart}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hlongh]hlong}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjShhhjehM{ ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjOhhhjehM{ ubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjehM{ hjLhhubj )}(hhh]j9)}(hremap memory to userspaceh]hremap memory to userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM{ hjhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjehM{ ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jȩj4jȩj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjҩh]h Parameters}(hjԩhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjЩubah}(h]h ]h"]h$]h&]uh1j8hK/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]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM| hjubj)}(hhh]j9)}(huser vma to map toh]huser vma to map to}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM| 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]j?)}(hj*h]hphys_addr_t start}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj(ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM} hj$ubj)}(hhh]j9)}(h)start of the physical memory to be mappedh]h)start of the physical memory to be mapped}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj?hM} hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hM} hjubj)}(h#``unsigned long len`` size of area h](j)}(h``unsigned long len``h]j?)}(hjch]hunsigned long len}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM~ hj]ubj)}(hhh]j9)}(h size of areah]h size of area}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjxhM~ hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM~ hjubeh}(h]h ]h"]h$]h&]uh1jhj̩ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj̩ubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj̩ubj9)}(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.}(hjêhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj̩ubj9)}(h **Return**h]jz)}(hjԪh]hReturn}(hj֪hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjҪubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj̩ubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh+ on success, negative error code otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hj̩ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ unmap_mapping_pages (C function)c.unmap_mapping_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hcvoid unmap_mapping_pages (struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)h]h)}(hbvoid unmap_mapping_pages(struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)h](j)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj5hMubh)}(hunmap_mapping_pagesh]h)}(hunmap_mapping_pagesh]hunmap_mapping_pages}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubah}(h]h ](jjeh"]h$]h&]jj uh1hhj#hhhj5hMubj)}(hJ(struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjdhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjJsbc.unmap_mapping_pagesasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj`ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubj)}(h pgoff_t starth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj٫hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj֫ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj۫modnameN classnameNj\j_)}jb]jc.unmap_mapping_pagesasbuh1hhjҫubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҫubh)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjҫubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubj)}(h pgoff_t nrh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj#modnameN classnameNj\j_)}jb]jc.unmap_mapping_pagesasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnrh]hnr}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubj)}(hbool even_cowsh](j)}(hj)h]hbool}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(h even_cowsh]h even_cows}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubeh}(h]h ]h"]h$]h&]jj uh1jhj#hhhj5hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj5hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hMhjhhubj )}(hhh]j9)}(hUnmap pages from processes.h]hUnmap pages from processes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jìj4jìj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjͬh]h Parameters}(hjϬhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjˬubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjǬubj)}(hhh](j)}(hU``struct address_space *mapping`` The address space containing pages to be unmapped. h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(h2The address space containing pages to be unmapped.h]h2The address space containing pages to be unmapped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``pgoff_t start`` Index of first page to be unmapped. h](j)}(h``pgoff_t start``h]j?)}(hj%h]h pgoff_t start}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj#ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(h#Index of first page to be unmapped.h]h#Index of first page to be unmapped.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(hK``pgoff_t nr`` Number of pages to be unmapped. 0 to unmap to end of file. h](j)}(h``pgoff_t nr``h]j?)}(hj^h]h pgoff_t nr}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj\ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjXubj)}(hhh]j9)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubj)}(h>``bool even_cows`` Whether to unmap even private COWed pages. h](j)}(h``bool even_cows``h]j?)}(hjh]hbool even_cows}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(h*Whether to unmap even private COWed pages.h]h*Whether to unmap even private COWed pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjǬubj9)}(h**Description**h]jz)}(hjҭh]h Description}(hjԭhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjЭubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjǬubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjǬubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ unmap_mapping_range (C function)c.unmap_mapping_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(huvoid unmap_mapping_range (struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)h]h)}(htvoid unmap_mapping_range(struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj%hMubh)}(hunmap_mapping_rangeh]h)}(hunmap_mapping_rangeh]hunmap_mapping_range}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj%hMubj)}(h\(struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjThhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]h)}(h address_spaceh]h address_space}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjtmodnameN classnameNj\j_)}jb]je)}jXj:sbc.unmap_mapping_rangeasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjPubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjLubj)}(hloff_t const holebeginh](h)}(hhh]h)}(hloff_th]hloff_t}(hjɮhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjƮubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjˮmodnameN classnameNj\j_)}jb]jc.unmap_mapping_rangeasbuh1hhj®ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj®ubj!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj®ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj®ubh)}(h holebeginh]h holebegin}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj®ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjLubj)}(hloff_t const holelenh](h)}(hhh]h)}(hloff_th]hloff_t}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj.modnameN classnameNj\j_)}jb]jc.unmap_mapping_rangeasbuh1hhj%ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj!)}(hjeh]hconst}(hjXhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj%ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hholelenh]hholelen}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjLubj)}(h int even_cowsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h even_cowsh]h even_cows}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjLubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj%hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj%hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj%hMhj hhubj )}(hhh]j9)}(hunmap the portion of all mmaps in the specified address_space corresponding to the specified byte range in the underlying file.h]hunmap the portion of all mmaps in the specified address_space corresponding to the specified byte range in the underlying file.}(hjүhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjϯhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh](j)}(hU``struct address_space *mapping`` the address space containing mmaps to be unmapped. h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj ubj)}(hhh]j9)}(h2the address space containing mmaps to be unmapped.h]h2the address space containing mmaps to be unmapped.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj(hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhj ubj)}(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]j?)}(hjLh]hloff_t const holebegin}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjFubj)}(hhh]j9)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhj ubj)}(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]j?)}(hjh]hloff_t const holelen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(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]j?)}(hjh]h int even_cows}(hj°hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(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.}(hjٰhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjհhMhjְubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjհhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ follow_pfnmap_start (C function)c.follow_pfnmap_starthNtauh1hhjhhhNhNubh)}(hhh](h)}(h9int follow_pfnmap_start (struct follow_pfnmap_args *args)h]h)}(h8int follow_pfnmap_start(struct follow_pfnmap_args *args)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMaubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj'hMaubh)}(hfollow_pfnmap_starth]h)}(hfollow_pfnmap_starth]hfollow_pfnmap_start}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj'hMaubj)}(h!(struct follow_pfnmap_args *args)h]j)}(hstruct follow_pfnmap_args *argsh](j!)}(hj$h]hstruct}(hjVhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]h)}(hfollow_pfnmap_argsh]hfollow_pfnmap_args}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjvmodnameN classnameNj\j_)}jb]je)}jXj<sbc.follow_pfnmap_startasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjRubh)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjNubah}(h]h ]h"]h$]h&]jj uh1jhjhhhj'hMaubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj'hMaubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMahjhhubj )}(hhh]j9)}(h/Look up a pfn mapping at a user virtual addressh]h/Look up a pfn mapping at a user virtual address}(hjٱhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMahjֱhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMaubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMehjubj)}(hhh]j)}(hM``struct follow_pfnmap_args *args`` Pointer to struct **follow_pfnmap_args** h](j)}(h#``struct follow_pfnmap_args *args``h]j?)}(hjh]hstruct follow_pfnmap_args *args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMbhjubj)}(hhh]j9)}(h(Pointer to struct **follow_pfnmap_args**h](hPointer to struct }(hj3hhhNhNubjz)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubeh}(h]h ]h"]h$]h&]uh1j8hj/hMbhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMbhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMdhjubj9)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMchjubj9)}(hAfter the caller finished using the fields, the caller must invoke another follow_pfnmap_end() to proper releases the locks and resources of such look up request.h]hAfter the caller finished using the fields, the caller must invoke another follow_pfnmap_end() to proper releases the locks and resources of such look up request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMghjubj9)}(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 }(hjhhhNhNubjz)}(h**args**h]hargs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh[ will be valid as proper locks will be held. After the end() is called, all the fields in }(hjhhhNhNubjz)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh 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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMkhjubj9)}(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.}(hjʲhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMrhjubj9)}(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.}(hjٲhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMvhjubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMzhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM|hjubj9)}(h$zero on success, negative otherwise.h]h$zero on success, negative otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfollow_pfnmap_end (C function)c.follow_pfnmap_endhNtauh1hhjhhhNhNubh)}(hhh](h)}(h8void follow_pfnmap_end (struct follow_pfnmap_args *args)h]h)}(h7void follow_pfnmap_end(struct follow_pfnmap_args *args)h](j)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjLhMubh)}(hfollow_pfnmap_endh]h)}(hfollow_pfnmap_endh]hfollow_pfnmap_end}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj:hhhjLhMubj)}(h!(struct follow_pfnmap_args *args)h]j)}(hstruct follow_pfnmap_args *argsh](j!)}(hj$h]hstruct}(hj{hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]h)}(hfollow_pfnmap_argsh]hfollow_pfnmap_args}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjasbc.follow_pfnmap_endasbuh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2 )}(hj5 h]h*}(hjdzhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjwubh)}(hargsh]hargs}(hjԳhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjsubah}(h]h ]h"]h$]h&]jj uh1jhj:hhhjLhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj6hhhjLhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhjLhMhj3hhubj )}(hhh]j9)}(h#End a follow_pfnmap_start() processh]h#End a follow_pfnmap_start() process}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/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]j?)}(hj?h]hstruct follow_pfnmap_args *args}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj=ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj9ubj)}(hhh]j9)}(h(Pointer to struct **follow_pfnmap_args**h](hPointer to struct }(hjXhhhNhNubjz)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubeh}(h]h ]h"]h$]h&]uh1j8hjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ generic_access_phys (C function)c.generic_access_physhNtauh1hhjhhhNhNubh)}(hhh](h)}(hgint generic_access_phys (struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h]h)}(hfint generic_access_phys(struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h](j)}(hinth]hint}(hjʹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɴhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjܴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɴhhhj۴hMubh)}(hgeneric_access_physh]h)}(hgeneric_access_physh]hgeneric_access_phys}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjɴhhhj۴hMubj)}(hO(struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h](j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj*modnameN classnameNj\j_)}jb]je)}jXjsbc.generic_access_physasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long addrh](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&]uh1jhjxubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h void *bufh](j)}(hvoidh]hvoid}(hj͵hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɵubj)}(h h]h }(hj۵hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɵubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjɵubh)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjɵubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint lenh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hlenh]hlen}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int writeh](j)}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hwriteh]hwrite}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjɴhhhj۴hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjŴhhhj۴hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj۴hMhj´hhubj )}(hhh]j9)}(h,generic implementation for iomem mmap accessh]h,generic implementation for iomem mmap access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj´hhhj۴hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh](j)}(h1``struct vm_area_struct *vma`` the vma to access h](j)}(h``struct vm_area_struct *vma``h]j?)}(hj˶h]hstruct vm_area_struct *vma}(hjͶhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjɶubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjŶubj)}(hhh]j9)}(hthe vma to accessh]hthe vma to access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjŶubeh}(h]h ]h"]h$]h&]uh1jhjhMhj¶ubj)}(hM``unsigned long addr`` userspace address, not relative offset within **vma** h](j)}(h``unsigned long addr``h]j?)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(h5userspace address, not relative offset within **vma**h](h.userspace address, not relative offset within }(hjhhhNhNubjz)}(h**vma**h]hvma}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj¶ubj)}(h#``void *buf`` buffer to read/write h](j)}(h ``void *buf``h]j?)}(hjKh]h void *buf}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjEubj)}(hhh]j9)}(hbuffer to read/writeh]hbuffer to read/write}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhj¶ubj)}(h``int len`` length of transfer h](j)}(h ``int len``h]j?)}(hjh]hint len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj~ubj)}(hhh]j9)}(hlength of transferh]hlength of transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj¶ubj)}(h@``int write`` set to FOLL_WRITE when writing, otherwise reading h](j)}(h ``int write``h]j?)}(hjh]h int write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(h1set to FOLL_WRITE when writing, otherwise readingh]h1set to FOLL_WRITE when writing, otherwise reading}(hjַhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjҷhMhjӷubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҷhMhj¶ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj9)}(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]j?)}(hjh]hvm_operations_struct.access}(hjhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:vm_operations_structuh1hhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubhM for an iomem mapping. This callback is used by access_process_vm() when the }(hjhhhNhNubjz)}(h**vma**h]hvma}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is not page based.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj5hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcopy_remote_vm_str (C function)c.copy_remote_vm_strhNtauh1hhjhhhNhNubh)}(hhh](h)}(hpint copy_remote_vm_str (struct task_struct *tsk, unsigned long addr, void *buf, int len, unsigned int gup_flags)h]h)}(hoint copy_remote_vm_str(struct task_struct *tsk, unsigned long addr, void *buf, int len, unsigned int gup_flags)h](j)}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjhMubh)}(hcopy_remote_vm_strh]h)}(hcopy_remote_vm_strh]hcopy_remote_vm_str}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjnhhhjhMubj)}(hY(struct task_struct *tsk, unsigned long addr, void *buf, int len, unsigned int gup_flags)h](j)}(hstruct task_struct *tskh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h task_structh]h task_struct}(hj͸hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjʸubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjϸmodnameN classnameNj\j_)}jb]je)}jXjsbc.copy_remote_vm_strasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(htskh]htsk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h void *bufh](j)}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjnubh)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint lenh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj¹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hlenh]hlen}(hjйhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h gup_flagsh]h gup_flags}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjnhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjjhhhjhMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjghhubj )}(hhh]j9)}(h3copy a string from another process's address space.h]h5copy a string from another process’s address space.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jcj4jcj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjgubj)}(hhh](j)}(hA``struct task_struct *tsk`` the task of the target address space h](j)}(h``struct task_struct *tsk``h]j?)}(hjh]hstruct task_struct *tsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(h$the task of the target address spaceh]h$the task of the target address space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``unsigned long addr`` start address to read from h](j)}(h``unsigned long addr``h]j?)}(hjźh]hunsigned long addr}(hjǺhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjúubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(hstart address to read fromh]hstart address to read from}(hj޺hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjںhMhjۺubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjںhMhjubj)}(h!``void *buf`` destination buffer h](j)}(h ``void *buf``h]j?)}(hjh]h void *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjubj)}(hhh]j9)}(hdestination bufferh]hdestination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h$``int len`` number of bytes to copy h](j)}(h ``int len``h]j?)}(hj7h]hint len}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj1ubj)}(hhh]j9)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjubj)}(h<``unsigned int gup_flags`` flags modifying lookup behaviour h](j)}(h``unsigned int gup_flags``h]j?)}(hjph]hunsigned int gup_flags}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjnubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjjubj)}(hhh]j9)}(h flags modifying lookup behaviourh]h flags modifying lookup behaviour}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjgubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjgubj9)}(h+The caller must hold a reference on **mm**.h](h$The caller must hold a reference on }(hjhhhNhNubjz)}(h**mm**h]hmm}(hjɻhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjgubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjgubj9)}(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 }(hjhhhNhNubjz)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh (source) to }(hjhhhNhNubjz)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh (destination); not including the trailing NUL. Always guaranteed to leave NUL-terminated buffer. On any error, return -EFAULT.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&__get_pfnblock_flags_mask (C function)c.__get_pfnblock_flags_maskhNtauh1hhjhhhNhNubh)}(hhh](h)}(hhunsigned long __get_pfnblock_flags_mask (const struct page *page, unsigned long pfn, unsigned long mask)h]h)}(hgunsigned long __get_pfnblock_flags_mask(const struct page *page, unsigned long pfn, unsigned long mask)h](j)}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhP/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&]uh1jhjIhhhj[hMubj)}(hlongh]hlong}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhj[hMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhj[hMubh)}(h__get_pfnblock_flags_maskh]h)}(h__get_pfnblock_flags_maskh]h__get_pfnblock_flags_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjIhhhj[hMubj)}(h@(const struct page *page, unsigned long pfn, unsigned long mask)h](j)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjμhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hj߼hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjܼubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.__get_pfnblock_flags_maskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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/ubh)}(hpfnh]hpfn}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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&]uh1jhjubh)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjIhhhj[hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjEhhhj[hMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj[hMhjBhhubj )}(hhh]j9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/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]j?)}(hj'h]hconst struct page *page}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj!ubj)}(hhh]j9)}(h%The page within the block of interesth]h%The page within the block of interest}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]j?)}(hj`h]hunsigned long pfn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj^ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjZubj)}(hhh]j9)}(hThe target page frame numberh]hThe target page frame number}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubj)}(hE``unsigned long mask`` mask of bits that the caller is interested in h](j)}(h``unsigned long mask``h]j?)}(hjh]hunsigned long mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Return**h]jz)}(hjԾh]hReturn}(hj־hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjҾubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(hpageblock_bits flagsh]hpageblock_bits flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌget_pfnblock_bit (C function)c.get_pfnblock_bithNtauh1hhjhhhNhNubh)}(hhh](h)}(h^bool get_pfnblock_bit (const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h]h)}(h]bool get_pfnblock_bit(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hMubh)}(hget_pfnblock_bith]h)}(hget_pfnblock_bith]hget_pfnblock_bit}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj&hMubj)}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hjUhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj!)}(hj$h]hstruct}(hjphhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjQubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj;sbc.get_pfnblock_bitasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjQubh)}(hpageh]hpage}(hjɿhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjMubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj޿ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj޿ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj޿ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj޿ubh)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj޿ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjMubj)}(henum pageblock_bits pb_bith](j!)}(henumh]henum}(hj3hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj/ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]h)}(hpageblock_bitsh]hpageblock_bits}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjTmodnameN classnameNj\j_)}jb]jc.get_pfnblock_bitasbuh1hhj/ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hpb_bith]hpb_bit}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjMubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj&hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj&hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj&hMhjhhubj )}(hhh]j9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj&hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/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]j?)}(hjh]hconst struct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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]j?)}(hj"h]hunsigned long pfn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(hThe target page frame numberh]hThe target page frame number}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(h6``enum pageblock_bits pb_bit`` pageblock bit to check h](j)}(h``enum pageblock_bits pb_bit``h]j?)}(hj[h]henum pageblock_bits pb_bit}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjYubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjUubj)}(hhh]j9)}(hpageblock bit to checkh]hpageblock bit to check}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(h'true if the bit is set, otherwise falseh]h'true if the bit is set, otherwise false}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%get_pfnblock_migratetype (C function)c.get_pfnblock_migratetypehNtauh1hhjhhhNhNubh)}(hhh](h)}(hVenum migratetype get_pfnblock_migratetype (const struct page *page, unsigned long pfn)h]h)}(hUenum migratetype get_pfnblock_migratetype(const struct page *page, unsigned long pfn)h](j!)}(hj5h]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhP/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]h)}(h migratetypeh]h migratetype}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXget_pfnblock_migratetypesbc.get_pfnblock_migratetypeasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hget_pfnblock_migratetypeh]h)}(hjh]hget_pfnblock_migratetype}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h,(const struct page *page, unsigned long pfn)h](j)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hjHhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj!)}(hj$h]hstruct}(hjchhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjDubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.get_pfnblock_migratetypeasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjDubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj@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&]uh1jhjubh)}(hpfnh]hpfn}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj@ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h%Return the migratetype of a pageblockh]h%Return the migratetype of a pageblock}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jMj4jMj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjQubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]j?)}(hjvh]hconst struct page *page}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjtubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjpubj)}(hhh]j9)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]j?)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(hThe target page frame numberh]hThe target page frame number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjQubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjQubj9)}(h The migratetype of the pageblockh]h The migratetype of the pageblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjQubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjQubj9)}(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 }(hj'hhhNhNubjz)}(h**page**h]hpage}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj'ubh and }(hj'hhhNhNubjz)}(h**pfn**h]hpfn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj'ubh! to save a call to page_to_pfn().}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&__set_pfnblock_flags_mask (C function)c.__set_pfnblock_flags_maskhNtauh1hhjhhhNhNubh)}(hhh](h)}(hnvoid __set_pfnblock_flags_mask (struct page *page, unsigned long pfn, unsigned long flags, unsigned long mask)h]h)}(hmvoid __set_pfnblock_flags_mask(struct page *page, unsigned long pfn, unsigned long flags, unsigned long mask)h](j)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjhMubh)}(h__set_pfnblock_flags_maskh]h)}(h__set_pfnblock_flags_maskh]h__set_pfnblock_flags_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjvhhhjhMubj)}(hO(struct page *page, unsigned long pfn, unsigned long flags, unsigned long mask)h](j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.__set_pfnblock_flags_maskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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%ubh)}(hpfnh]hpfn}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long flagsh](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&]uh1jhjvubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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&]uh1jhjubh)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjvhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjrhhhjhMubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjohhubj )}(hhh]j9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj*hhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jEj4jEj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjIubj)}(hhh](j)}(h<``struct page *page`` The page within the block of interest h](j)}(h``struct page *page``h]j?)}(hjnh]hstruct page *page}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjlubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhubj)}(hhh]j9)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]j?)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(hThe target page frame numberh]hThe target page frame number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(h)``unsigned long flags`` The flags to set h](j)}(h``unsigned long flags``h]j?)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(hThe flags to seth]hThe flags to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(hD``unsigned long mask`` mask of bits that the caller is interested inh](j)}(h``unsigned long mask``h]j?)}(hjh]hunsigned long mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(h-mask of bits that the caller is interested inh]h-mask of bits that the caller is interested in}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjeubeh}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌset_pfnblock_bit (C function)c.set_pfnblock_bithNtauh1hhjhhhNhNubh)}(hhh](h)}(h^void set_pfnblock_bit (const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h]h)}(h]void set_pfnblock_bit(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hvoidh]hvoid}(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)}(hset_pfnblock_bith]h)}(hset_pfnblock_bith]hset_pfnblock_bit}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjohhhjhMubj)}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.set_pfnblock_bitasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hpfnh]hpfn}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum pageblock_bits pb_bith](j!)}(hj5h]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageblock_bitsh]hpageblock_bits}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.set_pfnblock_bitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hpb_bith]hpb_bit}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhhubj )}(hhh]j9)}(h#Set a standalone bit of a pageblockh]h#Set a standalone bit of a pageblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"ubah}(h]h ]h"]h$]h&]uh1j8hP/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]j?)}(hjCh]hconst struct page *page}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjAubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj=ubj)}(hhh]j9)}(h%The page within the block of interesth]h%The page within the block of interest}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj:ubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]j?)}(hj|h]hunsigned long pfn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjzubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjvubj)}(hhh]j9)}(hThe target page frame numberh]hThe target page frame number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubj)}(h3``enum pageblock_bits pb_bit`` pageblock bit to seth](j)}(h``enum pageblock_bits pb_bit``h]j?)}(hjh]henum pageblock_bits pb_bit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(hpageblock bit to seth]hpageblock bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclear_pfnblock_bit (C function)c.clear_pfnblock_bithNtauh1hhjhhhNhNubh)}(hhh](h)}(h`void clear_pfnblock_bit (const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h]h)}(h_void clear_pfnblock_bit(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]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)}(hclear_pfnblock_bith]h)}(hclear_pfnblock_bith]hclear_pfnblock_bit}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhjhMubj)}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hjLhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj!)}(hj$h]hstruct}(hjghhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjHubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj2sbc.clear_pfnblock_bitasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjHubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(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&]uh1jhjubh)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(henum pageblock_bits pb_bith](j!)}(hj5h]henum}(hj*hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]h)}(hpageblock_bitsh]hpageblock_bits}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjJmodnameN classnameNj\j_)}jb]jc.clear_pfnblock_bitasbuh1hhj&ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hpb_bith]hpb_bit}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubeh}(h]h ]h"]h$]h&]jj uh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h%Clear a standalone bit of a pageblockh]h%Clear a standalone bit of a pageblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/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]j?)}(hjh]hconst struct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(h%The page within the block of interesth]h%The page within the block of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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]j?)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(hThe target page frame numberh]hThe target page frame number}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj-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]j?)}(hjQh]henum pageblock_bits pb_bit}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjOubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjKubj)}(hhh]j9)}(hpageblock bit to clearh]hpageblock bit to clear}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&set_pageblock_migratetype (C function)c.set_pageblock_migratetypehNtauh1hhjhhhNhNubh)}(hhh](h)}(hPvoid set_pageblock_migratetype (struct page *page, enum migratetype migratetype)h]h)}(hOvoid set_pageblock_migratetype(struct page *page, enum migratetype migratetype)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hset_pageblock_migratetypeh]h)}(hset_pageblock_migratetypeh]hset_pageblock_migratetype}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(h1(struct page *page, enum migratetype migratetype)h](j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.set_pageblock_migratetypeasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj4hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum migratetype migratetypeh](j!)}(hj5h]henum}(hjZhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]h)}(h migratetypeh]h migratetype}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjzmodnameN classnameNj\j_)}jb]j"c.set_pageblock_migratetypeasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(h migratetypeh]h migratetype}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(h"Set the migratetype of a pageblockh]h"Set the migratetype of a pageblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct page *page`` The page within the block of interest ``enum migratetype migratetype`` migratetype to seth](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/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]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj 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]j9)}(h%The page within the block of interesth]h%The page within the block of interest}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj$hM hj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM hjubj)}(h3``enum migratetype migratetype`` migratetype to seth](j)}(h ``enum migratetype migratetype``h]j?)}(hjHh]henum migratetype migratetype}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjFubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjBubj)}(hhh]j9)}(hmigratetype to seth]hmigratetype to set}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+__move_freepages_block_isolate (C function) c.__move_freepages_block_isolatehNtauh1hhjhhhNhNubh)}(hhh](h)}(hXbool __move_freepages_block_isolate (struct zone *zone, struct page *page, bool isolate)h]h)}(hWbool __move_freepages_block_isolate(struct zone *zone, struct page *page, bool isolate)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h__move_freepages_block_isolateh]h)}(h__move_freepages_block_isolateh]h__move_freepages_block_isolate}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h4(struct zone *zone, struct page *page, bool isolate)h](j)}(hstruct zone *zoneh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hzoneh]hzone}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsb c.__move_freepages_block_isolateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj*hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hzoneh]hzone}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjPhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]h)}(hpageh]hpage}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjpmodnameN classnameNj\j_)}jb]j c.__move_freepages_block_isolateasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjLubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h bool isolateh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hisolateh]hisolate}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h+move free pages in block for page isolationh]h+move free pages in block for page isolation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj!ubj)}(hhh](j)}(h``struct zone *zone`` the zone h](j)}(h``struct zone *zone``h]j?)}(hjFh]hstruct zone *zone}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj@ubj)}(hhh]j9)}(hthe zoneh]hthe zone}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj=ubj)}(h)``struct page *page`` the pageblock page h](j)}(h``struct page *page``h]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjyubj)}(hhh]j9)}(hthe pageblock pageh]hthe pageblock page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubj)}(h@``bool isolate`` to isolate the given pageblock or unisolate it h](j)}(h``bool isolate``h]j?)}(hjh]h bool isolate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(h.to isolate the given pageblock or unisolate ith]h.to isolate the given pageblock or unisolate it}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj!ubj9)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj!ubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj!ubj9)}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj!ubj9)}(h>Returns ``true`` if pages could be moved, ``false`` otherwise.h](hReturns }(hj6hhhNhNubj?)}(h``true``h]htrue}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubh if pages could be moved, }(hj6hhhNhNubj?)}(h ``false``h]hfalse}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubh otherwise.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM"hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$__putback_isolated_page (C function)c.__putback_isolated_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hLvoid __putback_isolated_page (struct page *page, unsigned int order, int mt)h]h)}(hKvoid __putback_isolated_page(struct page *page, unsigned int order, int mt)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(h__putback_isolated_pageh]h)}(h__putback_isolated_pageh]h__putback_isolated_page}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(h/(struct page *page, unsigned int order, int mt)h](j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.__putback_isolated_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hinth]hint}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(horderh]horder}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint mth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hmth]hmt}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhjhM hj~hhubj )}(hhh]j9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjubj)}(hhh](j)}(h-``struct page *page`` Page that was isolated h](j)}(h``struct page *page``h]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj ubj)}(hhh]j9)}(hPage that was isolatedh]hPage that was isolated}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%hM hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hM hjubj)}(h2``unsigned int order`` Order of the isolated page h](j)}(h``unsigned int order``h]j?)}(hjIh]hunsigned int order}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjCubj)}(hhh]j9)}(hOrder of the isolated pageh]hOrder of the isolated page}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^hM hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM hjubj)}(h.``int mt`` The page's pageblock's migratetype h](j)}(h ``int mt``h]j?)}(hjh]hint mt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hj|ubj)}(hhh]j9)}(h"The page's pageblock's migratetypeh]h&The page’s pageblock’s migratetype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__free_pages (C function)c.__free_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h9void __free_pages (struct page *page, unsigned int order)h]h)}(h8void __free_pages(struct page *page, unsigned int order)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMwubh)}(h __free_pagesh]h)}(h __free_pagesh]h __free_pages}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMwubj)}(h'(struct page *page, unsigned int order)h](j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj?hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj;ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]h)}(hpageh]hpage}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_modnameN classnameNj\j_)}jb]je)}jXj%sbc.__free_pagesasbuh1hhj;ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj;ubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7ubj)}(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&]uh1jhjubh)}(horderh]horder}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMwubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMwhjhhubj )}(hhh]j9)}(h(Free pages allocated with alloc_pages().h]h(Free pages allocated with alloc_pages().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMwhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMwubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j+j4j+j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM{hj/ubj)}(hhh](j)}(hD``struct page *page`` The page pointer returned from alloc_pages(). h](j)}(h``struct page *page``h]j?)}(hjTh]hstruct page *page}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMxhjNubj)}(hhh]j9)}(h-The page pointer returned from alloc_pages().h]h-The page pointer returned from alloc_pages().}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihMxhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMxhjKubj)}(h4``unsigned int order`` The order of the allocation. h](j)}(h``unsigned int order``h]j?)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMyhjubj)}(hhh]j9)}(hThe order of the allocation.h]hThe order of the allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM{hj/ubj9)}(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 }(hjhhhNhNubjz)Q}(h **order**h]horder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh 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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMzhj/ubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj/ubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj/ubj9)}(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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_pages_exact (C function)c.alloc_pages_exacthNtauh1hhjhhhNhNubh)}(hhh](h)}(h6void * alloc_pages_exact (size_t size, gfp_t gfp_mask)h]h)}(h4void *alloc_pages_exact(size_t size, gfp_t gfp_mask)h](j)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjchMubj2 )}(hj5 h]h*}(hjrhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjQhhhjchMubh)}(halloc_pages_exacth]h)}(halloc_pages_exacth]halloc_pages_exact}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjQhhhjchMubj)}(h(size_t size, gfp_t gfp_mask)h](j)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.alloc_pages_exactasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.alloc_pages_exactasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjQhhhjchMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjMhhhjchMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjchMhjJhhubj )}(hhh]j9)}(h5allocate an exact number physically-contiguous pages.h]h5allocate an exact number physically-contiguous pages.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjchMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jZj4jZj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjbubah}(h]h ]h"]h$]h&]uh1j8hP/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]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj}ubj)}(hhh]j9)}(hthe number of bytes to allocateh]hthe number of bytes to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubj)}(hM``gfp_t gfp_mask`` GFP flags for the allocation, must not contain __GFP_COMP h](j)}(h``gfp_t gfp_mask``h]j?)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubeh}(h]h ]h"]h$]h&]uh1jhj^ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj^ubj9)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj^ubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj^ubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj^ubj9)}(h **Return**h]jz)}(hj<h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj^ubj9)}(h;pointer to the allocated area or ``NULL`` in case of error.h](h!pointer to the allocated area or }(hjRhhhNhNubj?)}(h``NULL``h]hNULL}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubh in case of error.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"alloc_pages_exact_nid (C function)c.alloc_pages_exact_nidhNtauh1hhjhhhNhNubh)}(hhh](h)}(hCvoid * alloc_pages_exact_nid (int nid, size_t size, gfp_t gfp_mask)h]h)}(hAvoid *alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(halloc_pages_exact_nidh]h)}(halloc_pages_exact_nidh]halloc_pages_exact_nid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(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&]uh1jhjubh)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.alloc_pages_exact_nidasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]j1c.alloc_pages_exact_nidasbuh1hhjXubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(hC``int nid`` the preferred node ID where memory should be allocated h](j)}(h ``int nid``h]j?)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(h6the preferred node ID where memory should be allocatedh]h6the preferred node ID where memory should be allocated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h0``size_t size`` the number of bytes to allocate h](j)}(h``size_t size``h]j?)}(hj/h]h size_t size}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj-ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj)ubj)}(hhh]j9)}(hthe number of bytes to allocateh]hthe number of bytes to allocate}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(hM``gfp_t gfp_mask`` GFP flags for the allocation, must not contain __GFP_COMP h](j)}(h``gfp_t gfp_mask``h]j?)}(hjhh]hgfp_t gfp_mask}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjbubj)}(hhh]j9)}(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&]uh1j8hj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(h;pointer to the allocated area or ``NULL`` in case of error.h](h!pointer to the allocated area or }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh in case of error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfree_pages_exact (C function)c.free_pages_exacthNtauh1hhjhhhNhNubh)}(hhh](h)}(h/void free_pages_exact (void *virt, size_t size)h]h)}(h.void free_pages_exact(void *virt, size_t size)h](j)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hMubh)}(hfree_pages_exacth]h)}(hfree_pages_exacth]hfree_pages_exact}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj/hMubj)}(h(void *virt, size_t size)h](j)}(h void *virth](j)}(hvoidh]hvoid}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2 )}(hj5 h]h*}(hjzhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZubh)}(hvirth]hvirt}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjVubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjDsbc.free_pages_exactasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjVubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj/hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj/hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj/hMhjhhubj )}(hhh]j9)}(h0release memory allocated via alloc_pages_exact()h]h0release memory allocated via alloc_pages_exact()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh](j)}(h8``void *virt`` the value returned by alloc_pages_exact. h](j)}(h``void *virt``h]j?)}(hj<h]h void *virt}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj6ubj)}(hhh]j9)}(h(the value returned by alloc_pages_exact.h]h(the value returned by alloc_pages_exact.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(hQ``size_t size`` size of allocation, same value as passed to alloc_pages_exact(). h](j)}(h``size_t size``h]j?)}(hjuh]h size_t size}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjoubj)}(hhh]j9)}(h@size of allocation, same value as passed to alloc_pages_exact().h]h@size of allocation, same value as passed to alloc_pages_exact().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌnr_free_zone_pages (C function)c.nr_free_zone_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h-unsigned long nr_free_zone_pages (int offset)h]h)}(h,unsigned long nr_free_zone_pages(int offset)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hnr_free_zone_pagesh]h)}(hnr_free_zone_pagesh]hnr_free_zone_pages}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h (int offset)h]j)}(h int offseth](j)}(hinth]hint}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hoffseth]hoffset}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h+count number of pages beyond high watermarkh]h+count number of pages beyond high watermark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j)}(h2``int offset`` The zone index of the highest zone h](j)}(h``int offset``h]j?)}(hjh]h int offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(h"The zone index of the highest zoneh]h"The zone index of the highest zone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(hnr_free_zone_pages() counts the number of pages which are beyond the high watermark within all zones at or below a given zone index. For each zone, the number of pages is calculated as:h]hnr_free_zone_pages() counts the number of pages which are beyond the high watermark within all zones at or below a given zone index. For each zone, the number of pages is calculated as:}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubjU)}(h0nr_free_zone_pages = managed_pages - high_pages h]j9)}(h/nr_free_zone_pages = managed_pages - high_pagesh]h/nr_free_zone_pages = managed_pages - high_pages}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj5ubah}(h]h ]h"]h$]h&]uh1jThjGhMhjubj9)}(h **Return**h]jz)}(hjPh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjubj9)}(h&number of pages beyond high watermark.h]h&number of pages beyond high watermark.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!nr_free_buffer_pages (C function)c.nr_free_buffer_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h)unsigned long nr_free_buffer_pages (void)h]h)}(h(unsigned long nr_free_buffer_pages(void)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM"ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM"ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM"ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM"ubh)}(hnr_free_buffer_pagesh]h)}(hnr_free_buffer_pagesh]hnr_free_buffer_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM"ubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM"ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM"ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM"hjhhubj )}(hhh]j9)}(h+count number of pages beyond high watermarkh]h+count number of pages beyond high watermark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM"hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM"ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j0j4j0j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj8ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM&hj4ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j?)}(hjYh]hvoid}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhjSubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnhKhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhj4ubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM#hj4ubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM&hj4ubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM'hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ find_next_best_node (C function)c.find_next_best_nodehNtauh1hhjhhhNhNubh)}(hhh](h)}(h>int find_next_best_node (int node, nodemask_t *used_node_mask)h]h)}(h=int find_next_best_node(int node, nodemask_t *used_node_mask)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMnubh)}(hfind_next_best_nodeh]h)}(hfind_next_best_nodeh]hfind_next_best_node}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMnubj)}(h&(int node, nodemask_t *used_node_mask)h](j)}(hint nodeh](j)}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hnodeh]hnode}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5ubj)}(hnodemask_t *used_node_maskh](h)}(hhh]h)}(h nodemask_th]h nodemask_t}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjwmodnameN classnameNj\j_)}jb]je)}jXj#sbc.find_next_best_nodeasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjnubh)}(hused_node_maskh]hused_node_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMnubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMnubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMnhjhhubj )}(hhh]j9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMnhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMnubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMrhjubj)}(hhh](j)}(h6``int node`` node whose fallback list we're appending h](j)}(h ``int node``h]j?)}(hjh]hint node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMohjubj)}(hhh]j9)}(h(node whose fallback list we're appendingh]h*node whose fallback list we’re appending}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMohj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMohjubj)}(h@``nodemask_t *used_node_mask`` nodemask_t of already used nodes h](j)}(h``nodemask_t *used_node_mask``h]j?)}(hjTh]hnodemask_t *used_node_mask}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMphjNubj)}(hhh]j9)}(h nodemask_t of already used nodesh]h nodemask_t of already used nodes}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihMphjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMphjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMrhjubj9)}(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 }(hjhhhNhNubjz)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhX.’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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMqhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMyhjubj9)}(hBnode id of the found node or ``NUMA_NO_NODE`` if no node is found.h](hnode id of the found node or }(hjhhhNhNubj?)}(h``NUMA_NO_NODE``h]h NUMA_NO_NODE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh if no node is found.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"setup_per_zone_wmarks (C function)c.setup_per_zone_wmarkshNtauh1hhjhhhNhNubh)}(hhh](h)}(h!void setup_per_zone_wmarks (void)h]h)}(h void setup_per_zone_wmarks(void)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hMubh)}(hsetup_per_zone_wmarksh]h)}(hsetup_per_zone_wmarksh]hsetup_per_zone_wmarks}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj-hMubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]noemphjj uh1jhjTubah}(h]h ]h"]h$]h&]jj uh1jhjhhhj-hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj-hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj-hMhjhhubj )}(hhh]j9)}(hIcalled when min_free_kbytes changes or when memory is hot-{added|removed}h]hIcalled when min_free_kbytes changes or when memory is hot-{added|removed}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j?)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhjubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhjubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_contig_range (C function)c.alloc_contig_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hhint alloc_contig_range (unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h]h)}(hgint alloc_contig_range(unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h](j)}(hinth]hint}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhMubh)}(halloc_contig_rangeh]h)}(halloc_contig_rangeh]halloc_contig_range}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ](jjeh"]h$]h&]jj uh1hhjChhhjUhMubj)}(hQ(unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h](j)}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|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&]uh1jhjubh)}(hendh]hend}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(hacr_flags_t alloc_flagsh](h)}(hhh]h)}(h acr_flags_th]h acr_flags_t}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj+modnameN classnameNj\j_)}jb]je)}jXjjsbc.alloc_contig_rangeasbuh1hhj"ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(h alloc_flagsh]h alloc_flags}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjumodnameN classnameNj\j_)}jb]jEc.alloc_contig_rangeasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubeh}(h]h ]h"]h$]h&]jj uh1jhjChhhjUhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj?hhhjUhMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhMhj<hhubj )}(hhh]jު)}(hhh]j+)}(h&tries to allocate given range of pagesh]j9)}(hjh]h&tries to allocate given range of pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/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&]jjuh1jݪhjhMhjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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. 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. **Return** zero on success or negative error code. On success all pages which PFN is in [start, end) are allocated for the caller and need to be freed with free_contig_range().h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/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]j?)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(hstart PFN to allocateh]hstart PFN to allocate}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(h8``unsigned long end`` one-past-the-last PFN to allocate h](j)}(h``unsigned long end``h]j?)}(hjUh]hunsigned long end}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjSubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjOubj)}(hhh]j9)}(h!one-past-the-last PFN to allocateh]h!one-past-the-last PFN to allocate}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjubj)}(h3``acr_flags_t alloc_flags`` allocation information h](j)}(h``acr_flags_t alloc_flags``h]j?)}(hjh]hacr_flags_t alloc_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(hallocation informationh]hallocation information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``gfp_t gfp_mask`` GFP mask. Node/zone/placement hints are ignored; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim. h](j)}(h``gfp_t gfp_mask``h]j?)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(hGFP mask. Node/zone/placement hints are ignored; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim.h]hGFP mask. Node/zone/placement hints are ignored; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(h`The PFN range does not have to be pageblock aligned. The PFN range must belong to a single zone.h]h`The PFN range does not have to be pageblock aligned. The PFN range must belong to a single zone.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(h **Return**h]jz)}(hj9h]hReturn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(hzero on success or negative error code. On success all pages which PFN is in [start, end) are allocated for the caller and need to be freed with free_contig_range().h]hzero on success or negative error code. On success all pages which PFN is in [start, end) are allocated for the caller and need to be freed with free_contig_range().}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_contig_pages (C function)c.alloc_contig_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hhstruct page * alloc_contig_pages (unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h]h)}(hfstruct page *alloc_contig_pages(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j!)}(hj$h]hstruct}(hj~hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjzhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjhMcubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXalloc_contig_pagessbc.alloc_contig_pagesasbuh1hhjzhhhjhMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjhMcubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjzhhhjhMcubh)}(halloc_contig_pagesh]h)}(hjh]halloc_contig_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjzhhhjhMcubj)}(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 }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnr_pagesh]hnr_pages}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjNmodnameN classnameNj\j_)}jb]jc.alloc_contig_pagesasbuh1hhjEubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hgfp_maskh]hgfp_mask}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint nidh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hnodemask_t *nodemaskh](h)}(hhh]h)}(h nodemask_th]h nodemask_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.alloc_contig_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hnodemaskh]hnodemask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjzhhhjhMcubeh}(h]h ]h"]h$]h&]jj juh1hjjhjvhhhjhMcubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjhMchjshhubj )}(hhh]jު)}(hhh]j+)}(h4tries to find and allocate contiguous range of pagesh]j9)}(hj1h]h4tries to find and allocate contiguous range of pages}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMchj/ubah}(h]h ]h"]h$]h&]uh1j+hj,hhhj@hNubah}(h]h ]h"]h$]h&]jjuh1jݪhj@hMchj)hhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhMcubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jVj4jVj5j6j7uh1hhhhjhNhNubjp)}(hXQ**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_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_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 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](j9)}(h**Parameters**h]jz)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj^ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMghjZubj)}(hhh](j)}(hB``unsigned long nr_pages`` Number of contiguous pages to allocate h](j)}(h``unsigned long nr_pages``h]j?)}(hjh]hunsigned long nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMdhjyubj)}(hhh]j9)}(h&Number of contiguous pages to allocateh]h&Number of contiguous pages to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjvubj)}(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]j?)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMghjubj)}(hhh]j9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjvubj)}(h``int nid`` Target node h](j)}(h ``int nid``h]j?)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhhjubj)}(hhh]j9)}(h Target nodeh]h Target node}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjvubj)}(h7``nodemask_t *nodemask`` Mask for other possible nodes h](j)}(h``nodemask_t *nodemask``h]j?)}(hj+h]hnodemask_t *nodemask}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMihj%ubj)}(hhh]j9)}(hMask for other possible nodesh]hMask for other possible nodes}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@hMihjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMihjvubeh}(h]h ]h"]h$]h&]uh1jhjZubj9)}(h**Description**h]jz)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjdubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMkhjZubj9)}(hX+This routine is a wrapper around alloc_contig_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_range(). This routine is intended for allocation requests which can not be fulfilled with the buddy allocator.h]hX+This routine is a wrapper around alloc_contig_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_range(). This routine is intended for allocation requests which can not be fulfilled with the buddy allocator.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMjhjZubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMohjZubj9)}(hrAllocated pages can be freed with free_contig_range() or by manually calling __free_page() on each allocated page.6h]hrAllocated pages can be freed with free_contig_range() or by manually calling __free_page() on each allocated page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMshjZubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMvhjZubj9)}(hBpointer to contiguous pages on success, or NULL if not successful.h]hBpointer to contiguous pages on success, or NULL if not successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMwhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_pages_nolock (C function)c.alloc_pages_nolockhNtauh1hhjhhhNhNubh)}(hhh](h)}(h>struct page * alloc_pages_nolock (int nid, unsigned int order)h]h)}(hhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhM:ubh)}(halloc_pages_nolockh]h)}(hj-h]halloc_pages_nolock}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM:ubj)}(h(int nid, unsigned int order)h](j)}(hint nidh](j)}(hinth]hint}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubj)}(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&]uh1jhjubh)}(horderh]horder}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM:ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM:ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM:hjhhubj )}(hhh]j9)}(h3opportunistic reentrant allocation from any contexth]h3opportunistic reentrant allocation from any context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM:hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM:ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hXy**Parameters** ``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](j9)}(h**Parameters**h]jz)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM>hjubj)}(hhh](j)}(h"``int nid`` node to allocate from h](j)}(h ``int nid``h]j?)}(hjBh]hint nid}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj@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]j9)}(hnode to allocate fromh]hnode to allocate from}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhM;hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM;hj9ubj)}(h-``unsigned int order`` allocation order size h](j)}(h``unsigned int order``h]j?)}(hj{h]hunsigned int order}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM<hjuubj)}(hhh]j9)}(hallocation order sizeh]hallocation order size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM<hj9ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM>hjubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM=hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMDhjubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMEhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌnuma_nearest_node (C function)c.numa_nearest_nodehNtauh1hhjhhhNhNubh)}(hhh](h)}(h4int numa_nearest_node (int node, unsigned int state)h]h)}(h3int numa_nearest_node(int node, unsigned int state)h](j)}(hinth]hint}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]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]h)}(hnuma_nearest_nodeh]hnuma_nearest_node}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj0hMubj)}(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[ubh)}(hnodeh]hnode}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjWubj)}(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&]uh1jhjubh)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjWubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj0hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj0hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj0hMhjhhubj )}(hhh]j9)}(hFind nearest node by stateh]hFind nearest node by state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/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]j?)}(hj7h]hint node}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhj1ubj)}(hhh]j9)}(hNode id to start the searchh]hNode id to start the search}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLhMhjMubah}(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]j?)}(hjph]hunsigned int state}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjnubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjjubj)}(hhh]j9)}(hState to filter the searchh]hState to filter the search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubj9)}(h?Lookup the closest node by distance if **nid** is not in state.h](h'Lookup the closest node by distance if }(hjhhhNhNubjz)}(h**nid**h]hnid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is not in state.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubj9)}(hGthis **node** if it is in state, otherwise the closest node by distanceh](hthis }(hjhhhNhNubjz)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh: if it is in state, otherwise the closest node by distance}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"nearest_node_nodemask (C function)c.nearest_node_nodemaskhNtauh1hhjhhhNhNubh)}(hhh](h)}(h6int nearest_node_nodemask (int node, nodemask_t *mask)h]h)}(h5int nearest_node_nodemask(int node, nodemask_t *mask)h](j)}(hinth]hint}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM5ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhjIhM5ubh)}(hnearest_node_nodemaskh]h)}(hnearest_node_nodemaskh]hnearest_node_nodemask}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubah}(h]h ](jjeh"]h$]h&]jj uh1hhj7hhhjIhM5ubj)}(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&]uh1jhjtubh)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpubj)}(hnodemask_t *maskh](h)}(hhh]h)}(h nodemask_th]h nodemask_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj^sbc.nearest_node_nodemaskasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpubeh}(h]h ]h"]h$]h&]jj uh1jhj7hhhjIhM5ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj3hhhjIhM5ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhjIhM5hj0hhubj )}(hhh]j9)}(h@Find the node in **mask** at the nearest distance from **node**.h](hFind the node in }(hjhhhNhNubjz)}(h**mask**h]hmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh at the nearest distance from }(hjhhhNhNubjz)}(h**node**h]hnode}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM5hjhhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjIhM5ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jQj4jQj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM9hjUubj)}(hhh](j)}(h7``int node`` a valid node ID to start the search from. h](j)}(h ``int node``h]j?)}(hjzh]hint node}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM8hjtubj)}(hhh]j9)}(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&]uh1j8hjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjqubj)}(hM``nodemask_t *mask`` a pointer to a nodemask representing the allowed nodes. h](j)}(h``nodemask_t *mask``h]j?)}(hjh]hnodemask_t *mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM9hjubj)}(hhh]j9)}(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&]uh1j8hjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjqubeh}(h]h ]h"]h$]h&]uh1jhjUubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM;hjUubj9)}(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 }(hjhhhNhNubjz)}(h**mask**h]hmask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh/ and calculates the distance from the starting }(hjhhhNhNubjz)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh5, then it returns the node ID that is the closest to }(hjhhhNhNubjz)}(h**node**h]hnode}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh&, or MAX_NUMNODES if no node is found.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM:hjUubj9)}(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 }(hjIhhhNhNubjz)}(h**node**h]hnode}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjIubh 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&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM>hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_pages_mpol (C function)c.alloc_pages_mpolhNtauh1hhjhhhNhNubh)}(hhh](h)}(hkstruct page * alloc_pages_mpol (gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid)h]h)}(histruct page *alloc_pages_mpol(gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM: ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM: ubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXalloc_pages_mpolsbc.alloc_pages_mpolasbuh1hhjhhhjhM: ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM: ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhM: ubh)}(halloc_pages_mpolh]h)}(hjh]halloc_pages_mpol}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM: ubj)}(hL(gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid)h](j)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]jc.alloc_pages_mpolasbuh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfph]hgfp}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(horderh]horder}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct mempolicy *polh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h mempolicyh]h mempolicy}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.alloc_pages_mpolasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpolh]hpol}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t ilxh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.alloc_pages_mpolasbuh1hhj ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hilxh]hilx}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint nidh](j)}(hinth]hint}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hnidh]hnid}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM: ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM: ubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhjhM: hjhhubj )}(hhh]j9)}(h+Allocate pages according to NUMA mempolicy.h]h+Allocate pages according to NUMA mempolicy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM: hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM: ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM> hjubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags. h](j)}(h ``gfp_t gfp``h]j?)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM; hjubj)}(hhh]j9)}(h GFP flags.h]h GFP flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM; hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM; hjubj)}(h5``unsigned int order`` Order of the page allocation. h](j)}(h``unsigned int order``h]j?)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM< hjubj)}(hhh]j9)}(hOrder of the page allocation.h]hOrder of the page allocation.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hM< hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hM< hjubj)}(h9``struct mempolicy *pol`` Pointer to the NUMA mempolicy. h](j)}(h``struct mempolicy *pol``h]j?)}(hjNh]hstruct mempolicy *pol}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjLubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM= hjHubj)}(hhh]j9)}(hPointer to the NUMA mempolicy.h]hPointer to the NUMA mempolicy.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjchM= hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM= hjubj)}(hS``pgoff_t ilx`` Index for interleave mempolicy (also distinguishes alloc_pages()). h](j)}(h``pgoff_t ilx``h]j?)}(hjh]h pgoff_t ilx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM> hjubj)}(hhh]j9)}(hBIndex for interleave mempolicy (also distinguishes alloc_pages()).h]hBIndex for interleave mempolicy (also distinguishes alloc_pages()).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM> hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM> hjubj)}(hR``int nid`` Preferred node (usually numa_node_id() but **mpol** may override it). h](j)}(h ``int nid``h]j?)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM? hjubj)}(hhh]j9)}(hEPreferred node (usually numa_node_id() but **mpol** may override it).h](h+Preferred node (usually numa_node_id() but }(hjhhhNhNubjz)}(h**mpol**h]hmpol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh may override it).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhM? hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM? hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Return**h]jz)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMA hjubj9)}(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&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMA hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvma_alloc_folio (C function)c.vma_alloc_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hestruct folio * vma_alloc_folio (gfp_t gfp, int order, struct vm_area_struct *vma, unsigned long addr)h]h)}(hcstruct folio *vma_alloc_folio(gfp_t gfp, int order, struct vm_area_struct *vma, unsigned long addr)h](j!)}(hj$h]hstruct}(hjRhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjNhhhO/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&]uh1jhjNhhhj_hM ubh)}(hhh]h)}(hfolioh]hfolio}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjsmodnameN classnameNj\j_)}jb]je)}jXvma_alloc_foliosbc.vma_alloc_folioasbuh1hhjNhhhj_hM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhj_hM ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjNhhhj_hM ubh)}(hvma_alloc_folioh]h)}(hjh]hvma_alloc_folio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjNhhhj_hM ubj)}(hF(gfp_t gfp, int order, struct vm_area_struct *vma, unsigned long addr)h](j)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.vma_alloc_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int orderh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(horderh]horder}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjIhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjimodnameN classnameNj\j_)}jb]jc.vma_alloc_folioasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjEubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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&]uh1jhjubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjNhhhj_hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjJhhhj_hM ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhj_hM hjGhhubj )}(hhh]j9)}(hAllocate a folio for a VMA.h]hAllocate a folio for a VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhj_hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j3j4j3j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj;ubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj7ubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags. h](j)}(h ``gfp_t gfp``h]j?)}(hj\h]h gfp_t gfp}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjZubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjVubj)}(hhh]j9)}(h GFP flags.h]h GFP flags.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjqhM hjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhM hjSubj)}(h"``int order`` Order of the folio. h](j)}(h ``int order``h]j?)}(hjh]h int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh]j9)}(hOrder of the folio.h]hOrder of the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjSubj)}(h/``struct vm_area_struct *vma`` Pointer to VMA. h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh]j9)}(hPointer to VMA.h]hPointer to VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjSubj)}(hS``unsigned long addr`` Virtual address of the allocation. Must be inside **vma**. h](j)}(h``unsigned long addr``h]j?)}(hjh]hunsigned long addr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh]j9)}(h;Virtual address of the allocation. Must be inside **vma**.h](h3Virtual address of the allocation. Must be inside }(hj hhhNhNubjz)}(h**vma**h]hvma}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubj9)}(h**Description**h]jz)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj7ubj9)}(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 }(hjjhhhNhNubjz)}(h**vma**h]hvma}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjjubhX6, 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.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj7ubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj7ubj9)}(h1The folio on success or NULL if allocation fails.h]h1The folio on success or NULL if allocation fails.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_pages (C function) c.alloc_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h9struct page * alloc_pages (gfp_t gfp, unsigned int order)h]h)}(h7struct page *alloc_pages(gfp_t gfp, unsigned int order)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jX alloc_pagessb c.alloc_pagesasbuh1hhjhhhjhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhM ubh)}(h alloc_pagesh]h)}(hjh]h alloc_pages}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(h(gfp_t gfp, unsigned int order)h](j)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjQmodnameN classnameNj\j_)}jb]j  c.alloc_pagesasbuh1hhjHubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hgfph]hgfp}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(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&]uh1jhjubh)}(horderh]horder}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(hAllocate pages.h]hAllocate pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags. h](j)}(h ``gfp_t gfp``h]j?)}(hj7h]h gfp_t gfp}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj1ubj)}(hhh]j9)}(h GFP flags.h]h GFP flags.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLhM hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM hj.ubj)}(hD``unsigned int order`` Power of two of number of pages to allocate. h](j)}(h``unsigned int order``h]j?)}(hjph]hunsigned int order}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjnubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjjubj)}(hhh]j9)}(h,Power of two of number of pages to allocate.h]h,Power of two of number of pages to allocate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj.ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj9)}(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 << }(hjhhhNhNubjz)}(h **order**h]horder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj9)}(h **Return**h]jz)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj9)}(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&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmpol_misplaced (C function)c.mpol_misplacedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hRint mpol_misplaced (struct folio *folio, struct vm_fault *vmf, unsigned long addr)h]h)}(hQint mpol_misplaced(struct folio *folio, struct vm_fault *vmf, unsigned long addr)h](j)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMP ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhj^hMP ubh)}(hmpol_misplacedh]h)}(hmpol_misplacedh]hmpol_misplaced}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubah}(h]h ](jjeh"]h$]h&]jj uh1hhjLhhhj^hMP ubj)}(h?(struct folio *folio, struct vm_fault *vmf, unsigned long addr)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjssbc.mpol_misplacedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct vm_fault *vmfh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_faulth]hvm_fault}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.mpol_misplacedasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmfh]hvmf}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long addrh](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&]uh1jhjkubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjLhhhj^hMP ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjHhhhj^hMP ubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhj^hMP hjEhhubj )}(hhh]j9)}(h3check whether current folio node is valid in policyh]h3check whether current folio node is valid in policy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMP hjhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj^hMP ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMT hjubj)}(hhh](j)}(h,``struct folio *folio`` folio to be checked h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMR hj ubj)}(hhh]j9)}(hfolio to be checkedh]hfolio to be checked}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj'hMR hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMR hj ubj)}(h8``struct vm_fault *vmf`` structure describing the fault h](j)}(h``struct vm_fault *vmf``h]j?)}(hjKh]hstruct vm_fault *vmf}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMS hjEubj)}(hhh]j9)}(hstructure describing the faulth]hstructure describing the fault}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`hMS hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMS hj ubj)}(ha``unsigned long addr`` virtual address in **vma** for shared policy lookup and interleave policy h](j)}(h``unsigned long addr``h]j?)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMT hj~ubj)}(hhh]j9)}(hIvirtual address in **vma** for shared policy lookup and interleave policyh](hvirtual address in }(hjhhhNhNubjz)}(h**vma**h]hvma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh/ for shared policy lookup and interleave policy}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhMT hjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMT hj ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMV hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMU hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMY hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMZ hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$mpol_shared_policy_init (C function)c.mpol_shared_policy_inithNtauh1hhjhhhNhNubh)}(hhh](h)}(hOvoid mpol_shared_policy_init (struct shared_policy *sp, struct mempolicy *mpol)h]h)}(hNvoid mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol)h](j)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM6 ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjKhM6 ubh)}(hmpol_shared_policy_inith]h)}(hmpol_shared_policy_inith]hmpol_shared_policy_init}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ](jjeh"]h$]h&]jj uh1hhj9hhhjKhM6 ubj)}(h2(struct shared_policy *sp, struct mempolicy *mpol)h](j)}(hstruct shared_policy *sph](j!)}(hj$h]hstruct}(hjzhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]h)}(h shared_policyh]h shared_policy}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj`sbc.mpol_shared_policy_initasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjvubh)}(hsph]hsp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjrubj)}(hstruct mempolicy *mpolh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h mempolicyh]h mempolicy}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]jc.mpol_shared_policy_initasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj6hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmpolh]hmpol}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjrubeh}(h]h ]h"]h$]h&]jj uh1jhj9hhhjKhM6 ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj5hhhjKhM6 ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhM6 hj2hhubj )}(hhh]j9)}(h"initialize shared policy for inodeh]h"initialize shared policy for inode}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM6 hjjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhM6 ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM: hjubj)}(hhh](j)}(h<``struct shared_policy *sp`` pointer to inode shared policy h](j)}(h``struct shared_policy *sp``h]j?)}(hjh]hstruct shared_policy *sp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM7 hjubj)}(hhh]j9)}(hpointer to inode shared policyh]hpointer to inode shared policy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM7 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7 hjubj)}(h7``struct mempolicy *mpol`` struct mempolicy to install h](j)}(h``struct mempolicy *mpol``h]j?)}(hjh]hstruct mempolicy *mpol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM8 hjubj)}(hhh]j9)}(hstruct mempolicy to installh]hstruct mempolicy to install}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM8 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8 hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM: hjubj9)}(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 }(hj8hhhNhNubjz)}(h**mpol**h]hmpol}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj8ubh^ in inode’s shared policy rb-tree. On entry, the current task has a reference on a non-NULL }(hj8hhhNhNubjz)}(h**mpol**h]hmpol}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj8ubh_. This must be released on exit. This is called at get_inode() calls and we can use GFP_KERNEL.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM9 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmpol_parse_str (C function)c.mpol_parse_strhNtauh1hhjhhhNhNubh)}(hhh](h)}(h7int mpol_parse_str (char *str, struct mempolicy **mpol)h]h)}(h6int mpol_parse_str(char *str, struct mempolicy **mpol)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hmpol_parse_strh]h)}(hmpol_parse_strh]hmpol_parse_str}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(h$(char *str, struct mempolicy **mpol)h](j)}(h char *strh](j)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct mempolicy **mpolh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h mempolicyh]h mempolicy}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj*modnameN classnameNj\j_)}jb]je)}jXjsbc.mpol_parse_strasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubj2 )}(hj5 h]h*}(hjchhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmpolh]hmpol}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(h7parse string to mempolicy, for tmpfs mpol mount option.h]h7parse string to mempolicy, for tmpfs mpol mount option.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh](j)}(h3``char *str`` string containing mempolicy to parse h](j)}(h ``char *str``h]j?)}(hjh]h char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh]j9)}(h$string containing mempolicy to parseh]h$string containing mempolicy to parse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hV``struct mempolicy **mpol`` pointer to struct mempolicy pointer, returned on success. h](j)}(h``struct mempolicy **mpol``h]j?)}(hjh]hstruct mempolicy **mpol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh]j9)}(h9pointer to struct mempolicy pointer, returned on success.h]h9pointer to struct mempolicy pointer, returned on success.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj)hM hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh]j)}(h/Format of input: [=][:] h](j)}(hFormat of input:h]hFormat of input:}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjhubj)}(hhh]j9)}(h[=][:]h]h[=][:]}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjzhM hj{ubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjzhM hjeubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj9)}(h``0`` on success, else ``1``h](j?)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh on success, else }(hjhhhNhNubj?)}(h``1``h]h1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmpol_to_str (C function) c.mpol_to_strhNtauh1hhjhhhNhNubh)}(hhh](h)}(hBvoid mpol_to_str (char *buffer, int maxlen, struct mempolicy *pol)h]h)}(hAvoid mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(h mpol_to_strh]h)}(h mpol_to_strh]h mpol_to_str}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(h1(char *buffer, int maxlen, struct mempolicy *pol)h](j)}(h char *bufferh](j)}(hcharh]hchar}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2 )}(hj5 h]h*}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj:ubh)}(hbufferh]hbuffer}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubj)}(h int maxlenh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hmaxlenh]hmaxlen}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubj)}(hstruct mempolicy *polh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h mempolicyh]h mempolicy}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj$sb c.mpol_to_strasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpolh]hpol}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(h)format a mempolicy structure for printingh]h)format a mempolicy structure for printing}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj5hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jPj4jPj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjTubj)}(hhh](j)}(h7``char *buffer`` to contain formatted mempolicy string h](j)}(h``char *buffer``h]j?)}(hjyh]h char *buffer}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjwubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjsubj)}(hhh]j9)}(h%to contain formatted mempolicy stringh]h%to contain formatted mempolicy string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM hjpubj)}(h$``int maxlen`` length of **buffer** h](j)}(h``int maxlen``h]j?)}(hjh]h int maxlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh]j9)}(hlength of **buffer**h](h length of }(hjhhhNhNubjz)}(h **buffer**h]hbuffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubeh}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjpubj)}(h?``struct mempolicy *pol`` pointer to mempolicy to be formatted h](j)}(h``struct mempolicy *pol``h]j?)}(hjh]hstruct mempolicy *pol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh]j9)}(h$pointer to mempolicy to be formattedh]h$pointer to mempolicy to be formatted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjpubeh}(h]h ]h"]h$]h&]uh1jhjTubj9)}(h**Description**h]jz)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjTubj9)}(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 }(hjJhhhNhNubjz)}(h**pol**h]hpol}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubh into a string. If }(hjJhhhNhNubjz)}(h **buffer**h]hbuffer}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubh0 is too short, truncate the string. Recommend a }(hjJhhhNhNubjz)}(h **maxlen**h]hmaxlen}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubh 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.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio (C struct)c.foliohNtauh1hhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhNubh)}(hhh](h)}(hfolioh]h)}(h struct folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hfolioh]h)}(hjh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(h%Represents a contiguous set of bytes.h]h%Represents a contiguous set of bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMQhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-structeh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhjhNubjp)}(hXw**Definition**:: struct folio { unsigned long 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](j9)}(h**Definition**::h](jz)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMUhjubj)}(hXstruct folio { unsigned long 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 { unsigned long 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; };}hj/sbah}(h]h ]h"]h$]h&]jj uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMWhjubj9)}(h **Members**h]jz)}(hj@h]hMembers}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj>ubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh](j)}(h'``flags`` Identical to the page flags. h](j)}(h ``flags``h]j?)}(hj_h]hflags}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj]ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMShjYubj)}(hhh]j9)}(hIdentical to the page flags.h]hIdentical to the page flags.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjthMShjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMShjVubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjubj)}(hhh]j9)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjVubj)}(hK``lru`` Least Recently Used list; tracks how recently this folio was used. h](j)}(h``lru``h]j?)}(hjh]hlru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMThjubj)}(hhh]j9)}(hBLeast Recently Used list; tracks how recently this folio was used.h]hBLeast Recently Used list; tracks how recently this folio was used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjVubj)}(hG``mlock_count`` Number of times this folio has been pinned by mlock(). h](j)}(h``mlock_count``h]j?)}(hj h]h mlock_count}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMUhjubj)}(hhh]j9)}(h6Number of times this folio has been pinned by mlock().h]h6Number of times this folio has been pinned by mlock().}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMUhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMUhjVubj)}(h,``pgmap`` Metadata for ZONE_DEVICE mappings h](j)}(h ``pgmap``h]j?)}(hjCh]hpgmap}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjAubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMchj=ubj)}(hhh]j9)}(h!Metadata for ZONE_DEVICE mappingsh]h!Metadata for ZONE_DEVICE mappings}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjXhMchjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMchjVubj)}(h[``mapping`` The file this page belongs to, or refers to the anon_vma for anonymous memory. h](j)}(h ``mapping``h]j?)}(hj|h]hmapping}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjzubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMWhjvubj)}(hhh]j9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMVhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjVubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjubj)}(hhh]j9)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjVubj)}(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]j?)}(hjh]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMYhjubj)}(hhh]j9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjVubj)}(hU``share`` number of DAX mappings that reference this folio. See dax_associate_entry. h](j)}(h ``share``h]j?)}(hj)h]hshare}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj'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]j9)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMZhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM[hjVubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hjch]h{unnamed_union}}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhj]ubj)}(hhh]j9)}(h anonymoush]h anonymous}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjxhKhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhKhjVubj)}(hD``private`` Filesystem per-folio data (see folio_attach_private()). h](j)}(h ``private``h]j?)}(hjh]hprivate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM\hjubj)}(hhh]j9)}(h7Filesystem per-folio data (see folio_attach_private()).h]h7Filesystem per-folio data (see folio_attach_private()).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjVubj)}(h9``swap`` Used for swp_entry_t if folio_test_swapcache(). h](j)}(h``swap``h]j?)}(hjh]hswap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM]hjubj)}(hhh]j9)}(h/Used for swp_entry_t if folio_test_swapcache().h]h/Used for swp_entry_t if folio_test_swapcache().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjVubj)}(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]j?)}(hjh]h _mapcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM_hjubj)}(hhh]j9)}(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&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM^hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hM_hjVubj)}(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]j?)}(hjHh]h _refcount}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMahjBubj)}(hhh]j9)}(hoDo not access this member directly. Use folio_ref_count() to find how many references there are to this folio.h]hoDo not access this member directly. Use folio_ref_count() to find how many references there are to this folio.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM`hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMahjVubj)}(h*``memcg_data`` Memory Control Group data. h](j)}(h``memcg_data``h]j?)}(hjh]h memcg_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMbhj|ubj)}(hhh]j9)}(hMemory Control Group data.h]hMemory Control Group data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMbhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMbhjVubj)}(hH``_unused_slab_obj_exts`` Placeholder to match obj_exts in struct slab. h](j)}(h``_unused_slab_obj_exts``h]j?)}(hjh]h_unused_slab_obj_exts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMshjubj)}(hhh]j9)}(h-Placeholder to match obj_exts in struct slab.h]h-Placeholder to match obj_exts in struct slab.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjVubj)}(h6``virtual`` Virtual address in the kernel direct map. h](j)}(h ``virtual``h]j?)}(hjh]hvirtual}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMdhjubj)}(hhh]j9)}(h)Virtual address in the kernel direct map.h]h)Virtual address in the kernel direct map.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMdhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMdhjVubj)}(hK``_last_cpupid`` IDs of last CPU and last process that accessed the folio. h](j)}(h``_last_cpupid``h]j?)}(hj- h]h _last_cpupid}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj+ ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMehj' ubj)}(hhh]j9)}(h9IDs of last CPU and last process that accessed the folio.h]h9IDs of last CPU and last process that accessed the folio.}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjB hMehjC ubah}(h]h ]h"]h$]h&]uh1jhj' ubeh}(h]h ]h"]h$]h&]uh1jhjB hMehjVubj)}(h@``_large_mapcount`` Do not use directly, call folio_mapcount(). h](j)}(h``_large_mapcount``h]j?)}(hjf h]h_large_mapcount}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjd ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMghj` ubj)}(hhh]j9)}(h+Do not use directly, call folio_mapcount().h]h+Do not use directly, call folio_mapcount().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj{ hMghj| ubah}(h]h ]h"]h$]h&]uh1jhj` ubeh}(h]h ]h"]h$]h&]uh1jhj{ hMghjVubj)}(h@``_nr_pages_mapped`` Do not use outside of rmap and debug code. h](j)}(h``_nr_pages_mapped``h]j?)}(hj h]h_nr_pages_mapped}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhhj ubj)}(hhh]j9)}(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&]uh1j8hj hMhhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhhjVubj)}(hH``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). h](j)}(h``_entire_mapcount``h]j?)}(hj h]h_entire_mapcount}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMfhj ubj)}(hhh]j9)}(h2Do not use directly, call folio_entire_mapcount().h]h2Do not use directly, call folio_entire_mapcount().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMfhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMfhjVubj)}(hB``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). h](j)}(h ``_pincount``h]j?)}(hj h]h _pincount}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMihj ubj)}(hhh]j9)}(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&]uh1j8hj& hMihj' ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj& hMihjVubj)}(h5``_mm_id_mapcount`` Do not use outside of rmap code. h](j)}(h``_mm_id_mapcount``h]j?)}(hjJ h]h_mm_id_mapcount}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjH ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMmhjD ubj)}(hhh]j9)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_ hMmhj` ubah}(h]h ]h"]h$]h&]uh1jhjD ubeh}(h]h ]h"]h$]h&]uh1jhj_ hMmhjVubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hj h]h{unnamed_union}}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhj} ubj)}(hhh]j9)}(h anonymoush]h anonymous}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj} ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjVubj)}(h,``_mm_id`` Do not use outside of rmap code. h](j)}(h ``_mm_id``h]j?)}(hj h]h_mm_id}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMkhj ubj)}(hhh]j9)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMkhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMkhjVubj)}(h-``_mm_ids`` Do not use outside of rmap code. h](j)}(h ``_mm_ids``h]j?)}(hj h]h_mm_ids}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMlhj ubj)}(hhh]j9)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMlhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMlhjVubj)}(h:``_nr_pages`` Do not use directly, call folio_nr_pages(). h](j)}(h ``_nr_pages``h]j?)}(hj. h]h _nr_pages}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj, ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMjhj( ubj)}(hhh]j9)}(h+Do not use directly, call folio_nr_pages().h]h+Do not use directly, call folio_nr_pages().}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjC hMjhjD ubah}(h]h ]h"]h$]h&]uh1jhj( ubeh}(h]h ]h"]h$]h&]uh1jhjC hMjhjVubj)}(h=``_deferred_list`` Folios to be split under memory pressure. h](j)}(h``_deferred_list``h]j?)}(hjg h]h_deferred_list}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hje ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMrhja ubj)}(hhh]j9)}(h)Folios to be split under memory pressure.h]h)Folios to be split under memory pressure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj| hMrhj} ubah}(h]h ]h"]h$]h&]uh1jhja ubeh}(h]h ]h"]h$]h&]uh1jhj| hMrhjVubj)}(hH``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). h](j)}(h``_entire_mapcount``h]j?)}(hj h]h_entire_mapcount}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMfhj ubj)}(hhh]j9)}(h2Do not use directly, call folio_entire_mapcount().h]h2Do not use directly, call folio_entire_mapcount().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMfhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMfhjVubj)}(hB``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). h](j)}(h ``_pincount``h]j?)}(hj h]h _pincount}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMihj ubj)}(hhh]j9)}(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&]uh1j8hj hMihj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMihjVubj)}(hE``_hugetlb_subpool`` Do not use directly, use accessor in hugetlb.h. h](j)}(h``_hugetlb_subpool``h]j?)}(hj h]h_hugetlb_subpool}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMnhj ubj)}(hhh]j9)}(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&]uh1j8hj' hMnhj( ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj' hMnhjVubj)}(hK``_hugetlb_cgroup`` Do not use directly, use accessor in hugetlb_cgroup.h. h](j)}(h``_hugetlb_cgroup``h]j?)}(hjK h]h_hugetlb_cgroup}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjI ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMohjE ubj)}(hhh]j9)}(h6Do not use directly, use accessor in hugetlb_cgroup.h.h]h6Do not use directly, use accessor in hugetlb_cgroup.h.}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj` hMohja ubah}(h]h ]h"]h$]h&]uh1jhjE ubeh}(h]h ]h"]h$]h&]uh1jhj` hMohjVubj)}(hP``_hugetlb_cgroup_rsvd`` Do not use directly, use accessor in hugetlb_cgroup.h. h](j)}(h``_hugetlb_cgroup_rsvd``h]j?)}(hj h]h_hugetlb_cgroup_rsvd}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj 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]j9)}(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&]uh1j8hj hMphj ubah}(h]h ]h"]h$]h&]uh1jhj~ ubeh}(h]h ]h"]h$]h&]uh1jhj hMphjVubj)}(hD``_hugetlb_hwpoison`` Do not use directly, call raw_hwp_list_head().h](j)}(h``_hugetlb_hwpoison``h]j?)}(hj h]h_hugetlb_hwpoison}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj 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]j9)}(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&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMqhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMphjVubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhjhNubj9)}(h**Description**h]jz)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMthjhhubj9)}(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 hhhNhNubj?)}(h ``PAGE_SIZE``h]h PAGE_SIZE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj 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&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMshjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌptdesc (C struct)c.ptdeschNtauh1hhjhhhjhNubh)}(hhh](h)}(hptdesch]h)}(h struct ptdesch](j!)}(hj$h]hstruct}(hjP hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjL hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM~ubj)}(h h]h }(hj^ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL hhhj] hM~ubh)}(hptdesch]h)}(hjJ h]hptdesc}(hjp hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjl ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjL hhhj] hM~ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjH hhhj] hM~ubah}(h]jC ah ](jjeh"]h$]h&]jj)jhuh1hhj] hM~hjE hhubj )}(hhh]j9)}(h"Memory descriptor for page tables.h]h"Memory descriptor for page tables.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhjE hhhj] hM~ubeh}(h]h ](j-structeh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhjhNubjp)}(hX**Definition**:: struct ptdesc { unsigned long __page_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** ``__page_flags`` Same as page flags. Powerpc only. ``{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](j9)}(h**Definition**::h](jz)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj ubj)}(hXstruct ptdesc { unsigned long __page_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 { unsigned long __page_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&]jj uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj ubj9)}(h **Members**h]jz)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM7hj ubj)}(hhh](j)}(h3``__page_flags`` Same as page flags. Powerpc only. h](j)}(h``__page_flags``h]j?)}(hj h]h __page_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj 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]j9)}(h!Same as page flags. Powerpc only.h]h!Same as page flags. Powerpc only.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hj8h]h{unnamed_union}}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhj2ubj)}(hhh]j9)}(h anonymoush]h anonymous}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj ubj)}(h.``pt_rcu_head`` For freeing page table pages. h](j)}(h``pt_rcu_head``h]j?)}(hjqh]h pt_rcu_head}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjoubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjkubj)}(hhh]j9)}(hFor freeing page table pages.h]hFor freeing page table pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhj 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]j?)}(hjh]hpt_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h``{unnamed_struct}`` anonymous h](j)}(h``{unnamed_struct}``h]j?)}(hjh]h{unnamed_struct}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjubj)}(hhh]j9)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj ubj)}(h>``_pt_pad_1`` Padding that aliases with page's compound head. h](j)}(h ``_pt_pad_1``h]j?)}(hjh]h _pt_pad_1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h/Padding that aliases with page's compound head.h]h1Padding that aliases with page’s compound head.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj ubj)}(h:``pmd_huge_pte`` Protected by ptdesc->ptl, used for THPs. h](j)}(h``pmd_huge_pte``h]j?)}(hjVh]h pmd_huge_pte}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjTubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjPubj)}(hhh]j9)}(h(Protected by ptdesc->ptl, used for THPs.h]h(Protected by ptdesc->ptl, used for THPs.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhj ubj)}(hG``__page_mapping`` Aliases with page->mapping. Unused for page tables. h](j)}(h``__page_mapping``h]j?)}(hjh]h__page_mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h3Aliases with page->mapping. Unused for page tables.h]h3Aliases with page->mapping. Unused for page tables.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjubj)}(hhh]j9)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj ubj)}(h!``pt_index`` Used for s390 gmap. h](j)}(h ``pt_index``h]j?)}(hjh]hpt_index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(hUsed for s390 gmap.h]hUsed for s390 gmap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h``pt_mm`` Used for x86 pgds. h](j)}(h ``pt_mm``h]j?)}(hj:h]hpt_mm}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj4ubj)}(hhh]j9)}(hUsed for x86 pgds.h]hUsed for x86 pgds.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjOhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj ubj)}(hG``pt_frag_refcount`` For fragmented page table tracking. Powerpc only. h](j)}(h``pt_frag_refcount``h]j?)}(hjsh]hpt_frag_refcount}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjqubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjmubj)}(hhh]j9)}(h1For fragmented page table tracking. Powerpc only.h]h1For fragmented page table tracking. Powerpc only.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h@``pt_share_count`` Used for HugeTLB PMD page table share count. h](j)}(h``pt_share_count``h]j?)}(hjh]hpt_share_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h,Used for HugeTLB PMD page table share count.h]h,Used for HugeTLB PMD page table share count.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKhjubj)}(hhh]j9)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj ubj)}(h2``_pt_pad_2`` Padding to ensure proper alignment. h](j)}(h ``_pt_pad_2``h]j?)}(hjh]h _pt_pad_2}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h#Padding to ensure proper alignment.h]h#Padding to ensure proper alignment.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj ubj)}(h!``ptl`` Lock for the page table. h](j)}(h``ptl``h]j?)}(hjWh]hptl}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjQubj)}(hhh]j9)}(hLock for the page table.h]hLock for the page table.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhj ubj)}(h!``ptl`` Lock for the page table. h](j)}(h``ptl``h]j?)}(hjh]hptl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(hLock for the page table.h]hLock for the page table.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hA``__page_type`` Same as page->page_type. Unused for page tables. h](j)}(h``__page_type``h]j?)}(hjh]h __page_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h0Same as page->page_type. Unused for page tables.h]h0Same as page->page_type. Unused for page tables.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h+``__page_refcount`` Same as page refcount. h](j)}(h``__page_refcount``h]j?)}(hjh]h__page_refcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM hjubj)}(hhh]j9)}(hSame as page refcount.h]hSame as page refcount.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj ubj)}(h;``pt_memcg_data`` Memcg data. Tracked for page tables here.h](j)}(h``pt_memcg_data``h]j?)}(hj;h]h pt_memcg_data}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM hj5ubj)}(hhh]j9)}(h)Memcg data. Tracked for page tables here.h]h)Memcg data. Tracked for page tables here.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM!hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhM hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhjhNubj9)}(h**Description**h]jz)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM$hjhhubj9)}(hcThis struct overlays struct page for now. Do not modify without a good understanding of the issues.h]hcThis struct overlays struct page for now. Do not modify without a good understanding of the issues.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM!hjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_fault_t (C type) c.vm_fault_thNtauh1hhjhhhjhNubh)}(hhh](h)}(h vm_fault_th]h)}(htype vm_fault_th](j!)}(hj5h]htype}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM'ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM'ubh)}(h vm_fault_th]h)}(hjh]h vm_fault_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM'ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM'ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM'hjhhubj )}(hhh]j9)}(h$Return type for page fault handlers.h]h$Return type for page fault handlers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM'ubeh}(h]h ](j-typeeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhjhNubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjhhubj9)}(hhj2ubh values.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_fault_reason (C enum)c.vm_fault_reasonhNtauh1hhjhhhjhNubh)}(hhh](h)}(hvm_fault_reasonh]h)}(henum vm_fault_reasonh](j!)}(hj5h]henum}(hjlhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjyhMubh)}(hvm_fault_reasonh]h)}(hjfh]hvm_fault_reason}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhhjyhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjdhhhjyhMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhjahhubj )}(hhh]j9)}(hPage fault handlers return a bitmask of these values to tell the core VM what happened when handling the fault. Used to decide whether a process gets delivered SIGBUS or just gets major/minor fault counters bumped up.h]hPage fault handlers return a bitmask of these values to tell the core VM what happened when handling the fault. Used to decide whether a process gets delivered SIGBUS or just gets major/minor fault counters bumped up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjyhMubeh}(h]h ](j-enumeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhjhNubjp)}(hXS**Constants** ``VM_FAULT_OOM`` Out Of Memory ``VM_FAULT_SIGBUS`` Bad access ``VM_FAULT_MAJOR`` Page read from storage ``VM_FAULT_HWPOISON`` Hit poisoned small page ``VM_FAULT_HWPOISON_LARGE`` Hit poisoned large page. Index encoded in upper bits ``VM_FAULT_SIGSEGV`` segmentation fault ``VM_FAULT_NOPAGE`` ->fault 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](j9)}(h **Constants**h]jz)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh](j)}(h``VM_FAULT_OOM`` Out Of Memory h](j)}(h``VM_FAULT_OOM``h]j?)}(hjh]h VM_FAULT_OOM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h Out Of Memoryh]h Out Of Memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``VM_FAULT_SIGBUS`` Bad access h](j)}(h``VM_FAULT_SIGBUS``h]j?)}(hj(h]hVM_FAULT_SIGBUS}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj&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]j9)}(h Bad accessh]h Bad access}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubj)}(h*``VM_FAULT_MAJOR`` Page read from storage h](j)}(h``VM_FAULT_MAJOR``h]j?)}(hjah]hVM_FAULT_MAJOR}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_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]j9)}(hPage read from storageh]hPage read from storage}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubj)}(h.``VM_FAULT_HWPOISON`` Hit poisoned small page h](j)}(h``VM_FAULT_HWPOISON``h]j?)}(hjh]hVM_FAULT_HWPOISON}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(hHit poisoned small pageh]hHit poisoned small page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hQ``VM_FAULT_HWPOISON_LARGE`` Hit poisoned large page. Index encoded in upper bits h](j)}(h``VM_FAULT_HWPOISON_LARGE``h]j?)}(hjh]hVM_FAULT_HWPOISON_LARGE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h4Hit poisoned large page. Index encoded in upper bitsh]h4Hit poisoned large page. Index encoded in upper bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``VM_FAULT_SIGSEGV`` segmentation fault h](j)}(h``VM_FAULT_SIGSEGV``h]j?)}(hj h]hVM_FAULT_SIGSEGV}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(hsegmentation faulth]hsegmentation fault}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubj)}(h?``VM_FAULT_NOPAGE`` ->fault installed the pte, not return page h](j)}(h``VM_FAULT_NOPAGE``h]j?)}(hjFh]hVM_FAULT_NOPAGE}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj@ubj)}(hhh]j9)}(h*->fault installed the pte, not return pageh]h*->fault installed the pte, not return page}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjubj)}(h5``VM_FAULT_LOCKED`` ->fault locked the returned page h](j)}(h``VM_FAULT_LOCKED``h]j?)}(hjh]hVM_FAULT_LOCKED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj}ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjyubj)}(hhh]j9)}(h ->fault locked the returned pageh]h ->fault locked the returned page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``VM_FAULT_RETRY`` ->fault blocked, must retry h](j)}(h``VM_FAULT_RETRY``h]j?)}(hjh]hVM_FAULT_RETRY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h->fault blocked, must retryh]h->fault blocked, must retry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``VM_FAULT_FALLBACK`` huge page fault failed, fall back to small h](j)}(h``VM_FAULT_FALLBACK``h]j?)}(hjh]hVM_FAULT_FALLBACK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h*huge page fault failed, fall back to smallh]h*huge page fault failed, fall back to small}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``VM_FAULT_DONE_COW`` ->fault has fully handled COW h](j)}(h``VM_FAULT_DONE_COW``h]j?)}(hj*h]hVM_FAULT_DONE_COW}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj(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]j9)}(h->fault has fully handled COWh]h->fault has fully handled COW}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjubj)}(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]j?)}(hjch]hVM_FAULT_NEEDDSYNC}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj]ubj)}(hhh]j9)}(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)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjubj)}(hG``VM_FAULT_COMPLETED`` ->fault completed, meanwhile mmap lock released h](j)}(h``VM_FAULT_COMPLETED``h]j?)}(hjh]hVM_FAULT_COMPLETED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h/->fault completed, meanwhile mmap lock releasedh]h/->fault completed, meanwhile mmap lock released}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``VM_FAULT_HINDEX_MASK`` mask HINDEX valueh](j)}(h``VM_FAULT_HINDEX_MASK``h]j?)}(hjh]hVM_FAULT_HINDEX_MASK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(hmask HINDEX valueh]hmask HINDEX value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhjhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfault_flag (C enum) c.fault_flaghNtauh1hhjhhhjhNubh)}(hhh](h)}(h fault_flagh]h)}(henum fault_flagh](j!)}(hj5h]henum}(hj0hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj,hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj=hMubh)}(h fault_flagh]h)}(hj*h]h fault_flag}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ](jjeh"]h$]h&]jj uh1hhj,hhhj=hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj(hhhj=hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1hhj=hMhj%hhubj )}(hhh]j9)}(hFault flag definitions.h]hFault flag definitions.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjohhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj=hMubeh}(h]h ](j-enumeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhjhNubjp)}(hX**Constants** ``FAULT_FLAG_WRITE`` Fault was a write fault. ``FAULT_FLAG_MKWRITE`` Fault was mkwrite of existing PTE. ``FAULT_FLAG_ALLOW_RETRY`` Allow to retry the fault if blocked. ``FAULT_FLAG_RETRY_NOWAIT`` Don't drop mmap_lock and wait when retrying. ``FAULT_FLAG_KILLABLE`` The fault task is in SIGKILL killable region. ``FAULT_FLAG_TRIED`` The fault has been tried once. ``FAULT_FLAG_USER`` The fault originated in userspace. ``FAULT_FLAG_REMOTE`` The fault is not for current task/mm. ``FAULT_FLAG_INSTRUCTION`` The fault was during an instruction fetch. ``FAULT_FLAG_INTERRUPTIBLE`` The fault can be interrupted by non-fatal signals. ``FAULT_FLAG_UNSHARE`` The fault is an unsharing request to break COW in a COW mapping, making sure that an exclusive anon page is mapped after the fault. ``FAULT_FLAG_ORIG_PTE_VALID`` whether the fault has vmf->orig_pte cached. We should only access orig_pte if this flag set. ``FAULT_FLAG_VMA_LOCK`` The fault is handled under VMA lock.h](j9)}(h **Constants**h]jz)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh](j)}(h.``FAULT_FLAG_WRITE`` Fault was a write fault. h](j)}(h``FAULT_FLAG_WRITE``h]j?)}(hjh]hFAULT_FLAG_WRITE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(hFault was a write fault.h]hFault was a write fault.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h:``FAULT_FLAG_MKWRITE`` Fault was mkwrite of existing PTE. h](j)}(h``FAULT_FLAG_MKWRITE``h]j?)}(hjh]hFAULT_FLAG_MKWRITE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjubj)}(hhh]j9)}(h"Fault was mkwrite of existing PTE.h]h"Fault was mkwrite of existing PTE.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``FAULT_FLAG_ALLOW_RETRY`` Allow to retry the fault if blocked. h](j)}(h``FAULT_FLAG_ALLOW_RETRY``h]j?)}(hj%h]hFAULT_FLAG_ALLOW_RETRY}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj#ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM hjubj)}(hhh]j9)}(h$Allow to retry the fault if blocked.h]h$Allow to retry the fault if blocked.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj:hM hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hM hjubj)}(hI``FAULT_FLAG_RETRY_NOWAIT`` Don't drop mmap_lock and wait when retrying. h](j)}(h``FAULT_FLAG_RETRY_NOWAIT``h]j?)}(hj^h]hFAULT_FLAG_RETRY_NOWAIT}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj\ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM#hjXubj)}(hhh]j9)}(h,Don't drop mmap_lock and wait when retrying.h]h.Don’t drop mmap_lock and wait when retrying.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjshM#hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshM#hjubj)}(hF``FAULT_FLAG_KILLABLE`` The fault task is in SIGKILL killable region. h](j)}(h``FAULT_FLAG_KILLABLE``h]j?)}(hjh]hFAULT_FLAG_KILLABLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM&hjubj)}(hhh]j9)}(h-The fault task is in SIGKILL killable region.h]h-The fault task is in SIGKILL killable region.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjubj)}(h4``FAULT_FLAG_TRIED`` The fault has been tried once. h](j)}(h``FAULT_FLAG_TRIED``h]j?)}(hjh]hFAULT_FLAG_TRIED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM)hjubj)}(hhh]j9)}(hThe fault has been tried once.h]hThe fault has been tried once.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjubj)}(h7``FAULT_FLAG_USER`` The fault originated in userspace. h](j)}(h``FAULT_FLAG_USER``h]j?)}(hj h]hFAULT_FLAG_USER}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM,hjubj)}(hhh]j9)}(h"The fault originated in userspace.h]h"The fault originated in userspace.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubj)}(h<``FAULT_FLAG_REMOTE`` The fault is not for current task/mm. h](j)}(h``FAULT_FLAG_REMOTE``h]j?)}(hjBh]hFAULT_FLAG_REMOTE}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj@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]j9)}(h%The fault is not for current task/mm.h]h%The fault is not for current task/mm.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhM/hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM/hjubj)}(hF``FAULT_FLAG_INSTRUCTION`` The fault was during an instruction fetch. h](j)}(h``FAULT_FLAG_INSTRUCTION``h]j?)}(hj{h]hFAULT_FLAG_INSTRUCTION}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM2hjuubj)}(hhh]j9)}(h*The fault was during an instruction fetch.h]h*The fault was during an instruction fetch.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(hP``FAULT_FLAG_INTERRUPTIBLE`` The fault can be interrupted by non-fatal signals. h](j)}(h``FAULT_FLAG_INTERRUPTIBLE``h]j?)}(hjh]hFAULT_FLAG_INTERRUPTIBLE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM5hjubj)}(hhh]j9)}(h2The fault can be interrupted by non-fatal signals.h]h2The fault can be interrupted by non-fatal signals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubj)}(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]j?)}(hjh]hFAULT_FLAG_UNSHARE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM:hjubj)}(hhh]j9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubj)}(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]j?)}(hj'h]hFAULT_FLAG_ORIG_PTE_VALID}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%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]j9)}(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@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM=hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hM>hjubj)}(h<``FAULT_FLAG_VMA_LOCK`` The fault is handled under VMA lock.h](j)}(h``FAULT_FLAG_VMA_LOCK``h]j?)}(hjah]hFAULT_FLAG_VMA_LOCK}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_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]j9)}(h$The fault is handled under VMA lock.h]h$The fault is handled under VMA lock.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMAhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM@hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhjhNubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMChjhhubj9)}(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 }(hjhhhNhNubjz)}(h**FAULT_FLAG_ALLOW_RETRY**h]hFAULT_FLAG_ALLOW_RETRY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh and }(hjhhhNhNubjz)}(h**FAULT_FLAG_TRIED**h]hFAULT_FLAG_TRIED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh: 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:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM$hjhhubj+)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM)hjubj)}(hhh]j9)}(hthis is the first tryh]hthis is the first try}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hM)hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM)hjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(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>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM,hj:ubj)}(hhh]j9)}(h!we've already tried at least onceh]h#we’ve already tried at least once}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLhM,hjMubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjLhM,hj7ubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(hH!ALLOW_RETRY and !TRIED: this means the page fault does not allow retry h]j9)}(hG!ALLOW_RETRY and !TRIED: this means the page fault does not allow retryh]hG!ALLOW_RETRY and !TRIED: this means the page fault does not allow retry}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM.hjvubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]j0, loweralphaj2,jk j3,j uh1j+hjhhhjhNubj9)}(hXThe unlisted combination (!ALLOW_RETRY && TRIED) is illegal and should never be used. Note that page faults can be allowed to retry for multiple times, in which case we'll have an initial fault with flags (a) then later on continuous faults with flags (b). We should always try to detect pending signals before a retry to make sure the continuous page faults can still be interrupted if necessary.h]hXThe unlisted combination (!ALLOW_RETRY && TRIED) is illegal and should never be used. Note that page faults can be allowed to retry for multiple times, in which case we’ll have an initial fault with flags (a) then later on continuous faults with flags (b). We should always try to detect pending signals before a retry to make sure the continuous page faults can still be interrupted if necessary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM0hjhhubj9)}(hThe combination FAULT_FLAG_WRITE|FAULT_FLAG_UNSHARE is illegal. FAULT_FLAG_UNSHARE is ignored and treated like an ordinary read fault when applied to mappings that are not COW mappings.h]hThe combination FAULT_FLAG_WRITE|FAULT_FLAG_UNSHARE is illegal. FAULT_FLAG_UNSHARE is ignored and treated like an ordinary read fault when applied to mappings that are not COW mappings.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM7hjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_is_file_lru (C function)c.folio_is_file_lruhNtauh1hhjhhhNhNubh)}(hhh](h)}(h+int folio_is_file_lru (struct folio *folio)h]h)}(h*int folio_is_file_lru(struct folio *folio)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hfolio_is_file_lruh]h)}(hfolio_is_file_lruh]hfolio_is_file_lru}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj*modnameN classnameNj\j_)}jb]je)}jXjsbc.folio_is_file_lruasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(h.Should the folio be on a file LRU or anon LRU?h]h.Should the folio be on a file LRU or anon LRU?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hXR**Parameters** ``struct folio *folio`` The folio to test. **Description** We would like to get this info without a page flag, but the state needs to survive until the folio is last deleted from the LRU, which could be as far down as __page_cache_release. **Return** An integer (not a boolean!) used to sort a folio onto the right LRU list and to account folios correctly. 1 if **folio** is a regular filesystem backed page cache folio or a lazily freed anonymous folio (e.g. via MADV_FREE). 0 if **folio** is a normal anonymous folio, a tmpfs folio or otherwise ram or swap backed folio.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjubj)}(hhh]j)}(h+``struct folio *folio`` The folio to test. h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjubj)}(hhh]j9)}(hThe folio to test.h]hThe folio to test.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjubj9)}(hWe would like to get this info without a page flag, but the state needs to survive until the folio is last deleted from the LRU, which could be as far down as __page_cache_release.h]hWe would like to get this info without a page flag, but the state needs to survive until the folio is last deleted from the LRU, which could be as far down as __page_cache_release.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjubj9)}(h **Return**h]jz)}(hj0h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.ubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjubj9)}(hXAAn integer (not a boolean!) used to sort a folio onto the right LRU list and to account folios correctly. 1 if **folio** is a regular filesystem backed page cache folio or a lazily freed anonymous folio (e.g. via MADV_FREE). 0 if **folio** is a normal anonymous folio, a tmpfs folio or otherwise ram or swap backed folio.h](hoAn integer (not a boolean!) used to sort a folio onto the right LRU list and to account folios correctly. 1 if }(hjFhhhNhNubjz)}(h **folio**h]hfolio}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFubhn is a regular filesystem backed page cache folio or a lazily freed anonymous folio (e.g. via MADV_FREE). 0 if }(hjFhhhNhNubjz)}(h **folio**h]hfolio}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFubhR is a normal anonymous folio, a tmpfs folio or otherwise ram or swap backed folio.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$__folio_clear_lru_flags (C function)c.__folio_clear_lru_flagshNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void __folio_clear_lru_flags (struct folio *folio)h]h)}(h1void __folio_clear_lru_flags(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK?ubh)}(h__folio_clear_lru_flagsh]h)}(h__folio_clear_lru_flagsh]h__folio_clear_lru_flags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhK?ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.__folio_clear_lru_flagsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj"hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhK?ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhK?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK?hjhhubj )}(hhh]j9)}(h-Clear page lru flags before releasing a page.h]h-Clear page lru flags before releasing a page.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK?hjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK?ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jqj4jqj5j6j7uh1hhhhjhNhNubjp)}(ha**Parameters** ``struct folio *folio`` The folio that was on lru and now has a zero reference.h](j9)}(h**Parameters**h]jz)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKChjuubj)}(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]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKEhjubj)}(hhh]j9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKEhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_lru_list (C function)c.folio_lru_listhNtauh1hhjhhhNhNubh)}(hhh](h)}(h2enum lru_list folio_lru_list (struct folio *folio)h]h)}(h1enum lru_list folio_lru_list(struct folio *folio)h](j!)}(hj5h]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKQubh)}(hhh]h)}(hlru_listh]hlru_list}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXfolio_lru_listsbc.folio_lru_listasbuh1hhjhhhjhKQubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKQubh)}(hfolio_lru_listh]h)}(hj1h]hfolio_lru_list}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKQubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjahhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j/c.folio_lru_listasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj]ubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjYubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKQubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKQubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKQhjhhubj )}(hhh]j9)}(h$Which LRU list should a folio be on?h]h$Which LRU list should a folio be on?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKQhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKQubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``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](j9)}(h**Parameters**h]jz)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKUhjubj)}(hhh]j)}(h+``struct folio *folio`` The folio to test. h](j)}(h``struct folio *folio``h]j?)}(hj# h]hstruct folio *folio}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj! ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKRhj ubj)}(hhh]j9)}(hThe folio to test.h]hThe folio to test.}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj8 hKRhj9 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj8 hKRhj ubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Return**h]jz)}(hj^ h]hReturn}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj\ ubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKThjubj9)}(hKThe LRU list a folio should be on, as an index into the array of LRU lists.h]hKThe LRU list a folio should be on, as an index into the array of LRU lists.}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKThjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpage_folio (C macro) c.page_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(h page_folioh]h)}(h page_folioh]h)}(h page_folioh]h)}(hj h]h page_folio}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM&ubah}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj hM&ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM&hj hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj hM&ubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhNhNubj9)}(h``page_folio (p)``h]j?)}(hj h]hpage_folio (p)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM(hjhhubjU)}(hConverts from page to folio. h]j9)}(hConverts from page to folio.h]hConverts from page to folio.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM&hj ubah}(h]h ]h"]h$]h&]uh1jThj!hM&hjhhubjp)}(hX**Parameters** ``p`` The page. **Description** Every page is part of a folio. This function cannot be called on a NULL pointer. **Context** No reference, nor lock is required on **page**. If the caller does not hold a reference, this call may race with a folio split, so it should re-check the folio still contains this page after gaining a reference on the folio. **Return** The folio which contains this page.h](j9)}(h**Parameters**h]jz)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj !ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM*hj!ubj)}(hhh]j)}(h``p`` The page. h](j)}(h``p``h]j?)}(hj-!h]hp}(hj/!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj+!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]j9)}(h The page.h]h The page.}(hjF!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjB!hM'hjC!ubah}(h]h ]h"]h$]h&]uh1jhj'!ubeh}(h]h ]h"]h$]h&]uh1jhjB!hM'hj$!ubah}(h]h ]h"]h$]h&]uh1jhj!ubj9)}(h**Description**h]jz)}(hjh!h]h Description}(hjj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjf!ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM)hj!ubj9)}(hQEvery page is part of a folio. This function cannot be called on a NULL pointer.h]hQEvery page is part of a folio. This function cannot be called on a NULL pointer.}(hj~!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM(hj!ubj9)}(h **Context**h]jz)}(hj!h]hContext}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM+hj!ubj9)}(hNo reference, nor lock is required on **page**. If the caller does not hold a reference, this call may race with a folio split, so it should re-check the folio still contains this page after gaining a reference on the folio.h](h&No reference, nor lock is required on }(hj!hhhNhNubjz)}(h**page**h]hpage}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubh. If the caller does not hold a reference, this call may race with a folio split, so it should re-check the folio still contains this page after gaining a reference on the folio.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM,hj!ubj9)}(h **Return**h]jz)}(hj!h]hReturn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM1hj!ubj9)}(h#The folio which contains this page.h]h#The folio which contains this page.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM0hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_page (C macro) c.folio_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h folio_pageh]h)}(h folio_pageh]h)}(h folio_pageh]h)}(hj"h]h folio_page}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj "ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj "hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM7ubah}(h]h ]h"]h$]h&]jj juh1hjjhj"hhhj$"hM7ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj$"hM7hj"hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhj"hhhj$"hM7ubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3j="j4j="j5j6j7uh1hhhhjhNhNubj9)}(h``folio_page (folio, n)``h]j?)}(hjC"h]hfolio_page (folio, n)}(hjE"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjA"ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM9hjhhubjU)}(hReturn a page from a folio. h]j9)}(hReturn a page from a folio.h]hReturn a page from a folio.}(hj]"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM7hjY"ubah}(h]h ]h"]h$]h&]uh1jThjk"hM7hjhhubjp)}(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](j9)}(h**Parameters**h]jz)}(hjx"h]h Parameters}(hjz"hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjv"ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM;hjr"ubj)}(hhh](j)}(h``folio`` The folio. h](j)}(h ``folio``h]j?)}(hj"h]hfolio}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM8hj"ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"hM8hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM8hj"ubj)}(h!``n`` The page number to return. h](j)}(h``n``h]j?)}(hj"h]hn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM9hj"ubj)}(hhh]j9)}(hThe page number to return.h]hThe page number to return.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"hM9hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM9hj"ubeh}(h]h ]h"]h$]h&]uh1jhjr"ubj9)}(h**Description**h]jz)}(hj #h]h Description}(hj #hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj #ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM;hjr"ubj9)}(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](jz)}(h**n**h]hn}(hj%#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!#ubhg is relative to the start of the folio. This function does not check that the page number lies within }(hj!#hhhNhNubjz)}(h **folio**h]hfolio}(hj7#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!#ubh9; the caller is presumed to have a reference to the page.}(hj!#hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM:hjr"ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(folio_xor_flags_has_waiters (C function)c.folio_xor_flags_has_waitershNtauh1hhjhhhNhNubh)}(hhh](h)}(hJbool folio_xor_flags_has_waiters (struct folio *folio, unsigned long mask)h]h)}(hIbool folio_xor_flags_has_waiters(struct folio *folio, unsigned long mask)h](j)}(hj)h]hbool}(hjp#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl#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&]uh1jhjl#hhhj}#hMubh)}(hfolio_xor_flags_has_waitersh]h)}(hfolio_xor_flags_has_waitersh]hfolio_xor_flags_has_waiters}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjl#hhhj}#hMubj)}(h)(struct folio *folio, unsigned long mask)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj#hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]h)}(hfolioh]hfolio}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj#modnameN classnameNj\j_)}jb]je)}jXj#sbc.folio_xor_flags_has_waitersasbuh1hhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj2 )}(hj5 h]h*}(hj#hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj#ubh)}(hfolioh]hfolio}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj#ubj)}(hunsigned long maskh](j)}(hunsignedh]hunsigned}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj,$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hlongh]hlong}(hj:$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hjH$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hmaskh]hmask}(hjV$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj#ubeh}(h]h ]h"]h$]h&]jj uh1jhjl#hhhj}#hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjh#hhhj}#hMubah}(h]jc#ah ](jjeh"]h$]h&]jj)jhuh1hhj}#hMhje#hhubj )}(hhh]j9)}(hChange some folio flags.h]hChange some folio flags.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj}$hhubah}(h]h ]h"]h$]h&]uh1jhje#hhhj}#hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j$j4j$j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj$ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj$ubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj$h]hstruct folio *folio}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj$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]j9)}(h The folio.h]h The folio.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj$hMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhj$ubj)}(h>``unsigned long mask`` Bits set in this word will be changed. h](j)}(h``unsigned long mask``h]j?)}(hj$h]hunsigned long mask}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj$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]j9)}(h&Bits set in this word will be changed.h]h&Bits set in this word will be changed.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$ubj9)}(h**Description**h]jz)}(hj5%h]h Description}(hj7%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3%ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj$ubj9)}(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.}(hjK%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj$ubj9)}(h **Return**h]jz)}(hj\%h]hReturn}(hj^%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZ%ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj$ubj9)}(h-Whether there are tasks waiting on the folio.h]h-Whether there are tasks waiting on the folio.}(hjr%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_test_uptodate (C function)c.folio_test_uptodatehNtauh1hhjhhhNhNubh)}(hhh](h)}(h4bool folio_test_uptodate (const struct folio *folio)h]h)}(h3bool folio_test_uptodate(const struct folio *folio)h](j)}(hj)h]hbool}(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]h)}(hfolio_test_uptodateh]hfolio_test_uptodate}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj%hhhj%hMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hj%hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj!)}(hj$h]hstruct}(hj%hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj%ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]h)}(hfolioh]hfolio}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj&modnameN classnameNj\j_)}jb]je)}jXj%sbc.folio_test_uptodateasbuh1hhj%ubj)}(h h]h }(hj6&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj2 )}(hj5 h]h*}(hjD&hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj%ubh)}(hfolioh]hfolio}(hjQ&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj%ubah}(h]h ]h"]h$]h&]jj uh1jhj%hhhj%hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj%hhhj%hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj%hMhj%hhubj )}(hhh]j9)}(hIs this folio up to date?h]hIs this folio up to date?}(hj{&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjx&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j&j4j&j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj&ubah}(h]h ]h"]h$]h&]uh1j8h[/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]j?)}(hj&h]hconst struct folio *folio}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj&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]j9)}(h The folio.h]h The folio.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubj9)}(h**Description**h]jz)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj&ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hj&ubj9)}(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&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_test_large (C function)c.folio_test_largehNtauh1hhjhhhNhNubh)}(hhh](h)}(h1bool folio_test_large (const struct folio *folio)h]h)}(h0bool folio_test_large(const struct folio *folio)h](j)}(hj)h]hbool}(hj<'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8'hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMYubj)}(h h]h }(hjJ'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8'hhhjI'hMYubh)}(hfolio_test_largeh]h)}(hfolio_test_largeh]hfolio_test_large}(hj\'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjX'ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8'hhhjI'hMYubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hjx'hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjt'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt'ubj!)}(hj$h]hstruct}(hj'hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjt'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt'ubh)}(hhh]h)}(hfolioh]hfolio}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj'modnameN classnameNj\j_)}jb]je)}jXj^'sbc.folio_test_largeasbuh1hhjt'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt'ubj2 )}(hj5 h]h*}(hj'hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjt'ubh)}(hfolioh]hfolio}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjt'ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjp'ubah}(h]h ]h"]h$]h&]jj uh1jhj8'hhhjI'hMYubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4'hhhjI'hMYubah}(h]j/'ah ](jjeh"]h$]h&]jj)jhuh1hhjI'hMYhj1'hhubj )}(hhh]j9)}(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&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMYhj(hhubah}(h]h ]h"]h$]h&]uh1jhj1'hhhjI'hMYubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j.(j4j.(j5j6j7uh1hhhhjhNhNubjp)}(hz**Parameters** ``const struct folio *folio`` The folio to test. **Return** True if the folio is larger than one page.h](j9)}(h**Parameters**h]jz)}(hj8(h]h Parameters}(hj:(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6(ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM]hj2(ubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to test. h](j)}(h``const struct folio *folio``h]j?)}(hjW(h]hconst struct folio *folio}(hjY(hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjU(ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMZhjQ(ubj)}(hhh]j9)}(hThe folio to test.h]hThe folio to test.}(hjp(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjl(hMZhjm(ubah}(h]h ]h"]h$]h&]uh1jhjQ(ubeh}(h]h ]h"]h$]h&]uh1jhjl(hMZhjN(ubah}(h]h ]h"]h$]h&]uh1jhj2(ubj9)}(h **Return**h]jz)}(hj(h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj(ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM\hj2(ubj9)}(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&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM\hj2(ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌPageSlab (C function) c.PageSlabhNtauh1hhjhhhNhNubh)}(hhh](h)}(h'bool PageSlab (const struct page *page)h]h)}(h&bool PageSlab(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.hhMubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj(hMubh)}(hPageSlabh]h)}(hPageSlabh]hPageSlab}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj(hhhj(hMubj)}(h(const struct page *page)h]j)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hj)hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj)ubj)}(h h]h }(hj )hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj!)}(hj$h]hstruct}(hj.)hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj)ubj)}(h h]h }(hj;)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hhh]h)}(hpageh]hpage}(hjL)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjI)ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjN)modnameN classnameNj\j_)}jb]je)}jXj(sb c.PageSlabasbuh1hhj)ubj)}(h h]h }(hjl)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2 )}(hj5 h]h*}(hjz)hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj)ubh)}(hpageh]hpage}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj )ubah}(h]h ]h"]h$]h&]jj uh1jhj(hhhj(hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj(hhhj(hMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhj(hMhj(hhubj )}(hhh]j9)}(h3Determine if the page belongs to the slab allocatorh]h3Determine if the page belongs to the slab allocator}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j)j4j)j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``const struct page *page`` The page to test. **Context** Any context. **Return** True for slab pages, false for any other kind of page.h](j9)}(h**Parameters**h]jz)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj)ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM!hj)ubj)}(hhh]j)}(h.``const struct page *page`` The page to test. h](j)}(h``const struct page *page``h]j?)}(hj)h]hconst struct page *page}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj)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]j9)}(hThe page to test.h]hThe page to test.}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubj9)}(h **Context**h]jz)}(hj-*h]hContext}(hj/*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj+*ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hj)ubj9)}(h Any context.h]h Any context.}(hjC*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hj)ubj9)}(h **Return**h]jz)}(hjT*h]hReturn}(hjV*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjR*ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM"hj)ubj9)}(h6True for slab pages, false for any other kind of page.h]h6True for slab pages, false for any other kind of page.}(hjj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM!hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌPageHuge (C function) c.PageHugehNtauh1hhjhhhNhNubh)}(hhh](h)}(h'bool PageHuge (const struct page *page)h]h)}(h&bool PageHuge(const struct page *page)h](j)}(hj)h]hbool}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM9ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj*hM9ubh)}(hPageHugeh]h)}(hPageHugeh]hPageHuge}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj*hhhj*hM9ubj)}(h(const struct page *page)h]j)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hj*hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj!)}(hj$h]hstruct}(hj*hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]h)}(hpageh]hpage}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj +ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj+modnameN classnameNj\j_)}jb]je)}jXj*sb c.PageHugeasbuh1hhj*ubj)}(h h]h }(hj.+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj2 )}(hj5 h]h*}(hj<+hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj*ubh)}(hpageh]hpage}(hjI+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj*ubah}(h]h ]h"]h$]h&]jj uh1jhj*hhhj*hM9ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj*hhhj*hM9ubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhj*hM9hj*hhubj )}(hhh]j9)}(h*Determine if the page belongs to hugetlbfsh]h*Determine if the page belongs to hugetlbfs}(hjs+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM9hjp+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hM9ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j+j4j+j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj+ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM=hj+ubj)}(hhh]j)}(h.``const struct page *page`` The page to test. h](j)}(h``const struct page *page``h]j?)}(hj+h]hconst struct page *page}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj+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]j9)}(hThe page to test.h]hThe page to test.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+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+ubj9)}(h **Context**h]jz)}(hj+h]hContext}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj+ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM<hj+ubj9)}(h Any context.h]h Any context.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM<hj+ubj9)}(h **Return**h]jz)}(hj,h]hReturn}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM>hj+ubj9)}(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&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM=hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!page_has_movable_ops (C function)c.page_has_movable_opshNtauh1hhjhhhNhNubh)}(hhh](h)}(h3bool page_has_movable_ops (const struct page *page)h]h)}(h2bool page_has_movable_ops(const struct page *page)h](j)}(hj)h]hbool}(hj[,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW,hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM~ubj)}(h h]h }(hji,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW,hhhjh,hM~ubh)}(hpage_has_movable_opsh]h)}(hpage_has_movable_opsh]hpage_has_movable_ops}(hj{,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjw,ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjW,hhhjh,hM~ubj)}(h(const struct page *page)h]j)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hj,hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj!)}(hj$h]hstruct}(hj,hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubh)}(hhh]h)}(hpageh]hpage}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj,modnameN classnameNj\j_)}jb]je)}jXj},sbc.page_has_movable_opsasbuh1hhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2 )}(hj5 h]h*}(hj,hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj,ubh)}(hpageh]hpage}(hj -hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,ubah}(h]h ]h"]h$]h&]jj uh1jhjW,hhhjh,hM~ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjS,hhhjh,hM~ubah}(h]jN,ah ](jjeh"]h$]h&]jj)jhuh1hhjh,hM~hjP,hhubj )}(hhh]j9)}(htest for a movable_ops pageh]htest for a movable_ops page}(hj5-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM~hj2-hhubah}(h]h ]h"]h$]h&]uh1jhjP,hhhjh,hM~ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jM-j4jM-j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjW-h]h Parameters}(hjY-hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjU-ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjQ-ubj)}(hhh]j)}(h.``const struct page *page`` The page to test. h](j)}(h``const struct page *page``h]j?)}(hjv-h]hconst struct page *page}(hjx-hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjt-ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjp-ubj)}(hhh]j9)}(hThe page to test.h]hThe page to test.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjp-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjm-ubah}(h]h ]h"]h$]h&]uh1jhjQ-ubj9)}(h**Description**h]jz)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj-ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjQ-ubj9)}(hSTest whether this is a movable_ops page. Such pages will stay that way until freed.h]hSTest whether this is a movable_ops page. Such pages will stay that way until freed.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjQ-ubj9)}(h.ubj)}(h h]h }(hjO.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>.ubj!)}(hj$h]hstruct}(hj].hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj>.ubj)}(h h]h }(hjj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>.ubh)}(hhh]h)}(hfolioh]hfolio}(hj{.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjx.ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj}.modnameN classnameNj\j_)}jb]je)}jXj(.sbc.folio_has_privateasbuh1hhj>.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>.ubj2 )}(hj5 h]h*}(hj.hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj>.ubh)}(hfolioh]hfolio}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>.ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:.ubah}(h]h ]h"]h$]h&]jj uh1jhj.hhhj.hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj-hhhj.hMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj.hMhj-hhubj )}(hhh]j9)}(h$Determine if folio has private stuffh]h$Determine if folio has private stuff}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj.hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj.hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j.j4j.j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``const struct folio *folio`` The folio to be checked **Description** Determine if a folio has private stuff, indicating that release routines should be invoked upon it.h](j9)}(h**Parameters**h]jz)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj.ubj)}(hhh]j)}(h6``const struct folio *folio`` The folio to be checked h](j)}(h``const struct folio *folio``h]j?)}(hj!/h]hconst struct folio *folio}(hj#/hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/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]j9)}(hThe folio to be checkedh]hThe folio to be checked}(hj:/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6/hMhj7/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj6/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj.ubj9)}(h**Description**h]jz)}(hj\/h]h Description}(hj^/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZ/ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj.ubj9)}(hcDetermine if a folio has private stuff, indicating that release routines should be invoked upon it.h]hcDetermine if a folio has private stuff, indicating that release routines should be invoked upon it.}(hjr/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)fault_flag_allow_retry_first (C function)c.fault_flag_allow_retry_firsthNtauh1hhjhhhNhNubh)}(hhh](h)}(h9bool fault_flag_allow_retry_first (enum fault_flag flags)h]h)}(h8bool fault_flag_allow_retry_first(enum fault_flag flags)h](j)}(hj)h]hbool}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj/hMubh)}(hfault_flag_allow_retry_firsth]h)}(hfault_flag_allow_retry_firsth]hfault_flag_allow_retry_first}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj/hhhj/hMubj)}(h(enum fault_flag flags)h]j)}(henum fault_flag flagsh](j!)}(hj5h]henum}(hj/hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]h)}(h fault_flagh]h fault_flag}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj/modnameN classnameNj\j_)}jb]je)}jXj/sbc.fault_flag_allow_retry_firstasbuh1hhj/ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hflagsh]hflags}(hj)0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/ubah}(h]h ]h"]h$]h&]jj uh1jhj/hhhj/hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj/hhhj/hMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhj/hMhj/hhubj )}(hhh]j9)}(h check ALLOW_RETRY the first timeh]h check ALLOW_RETRY the first time}(hjS0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjP0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jk0j4jk0j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``enum fault_flag flags`` Fault flags. **Description** This is mostly used for places where we want to try to avoid taking the mmap_lock for too long a time when waiting for another condition to change, in which case we can try to be polite to release the mmap_lock in the first round to avoid potential starvation of other processes that would also want the mmap_lock. **Return** true if the page fault allows retry and this is the first attempt of the fault handling; false otherwise.h](j9)}(h**Parameters**h]jz)}(hju0h]h Parameters}(hjw0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjs0ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjo0ubj)}(hhh]j)}(h'``enum fault_flag flags`` Fault flags. h](j)}(h``enum fault_flag flags``h]j?)}(hj0h]henum fault_flag flags}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj0ubj)}(hhh]j9)}(h Fault flags.h]h Fault flags.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjo0ubj9)}(h**Description**h]jz)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjo0ubj9)}(hX:This is mostly used for places where we want to try to avoid taking the mmap_lock for too long a time when waiting for another condition to change, in which case we can try to be polite to release the mmap_lock in the first round to avoid potential starvation of other processes that would also want the mmap_lock.h]hX:This is mostly used for places where we want to try to avoid taking the mmap_lock for too long a time when waiting for another condition to change, in which case we can try to be polite to release the mmap_lock in the first round to avoid potential starvation of other processes that would also want the mmap_lock.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjo0ubj9)}(h **Return**h]jz)}(hj0h]hReturn}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjo0ubj9)}(hitrue if the page fault allows retry and this is the first attempt of the fault handling; false otherwise.h]hitrue if the page fault allows retry and this is the first attempt of the fault handling; false otherwise.}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjo0ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_order (C function) c.folio_orderhNtauh1hhjhhhNhNubh)}(hhh](h)}(h4unsigned int folio_order (const struct folio *folio)h]h)}(h3unsigned int folio_order(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hj;1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj71hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjJ1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj71hhhjI1hMubj)}(hinth]hint}(hjX1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj71hhhjI1hMubj)}(h h]h }(hjf1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj71hhhjI1hMubh)}(h folio_orderh]h)}(h folio_orderh]h folio_order}(hjx1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjt1ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj71hhhjI1hMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hj1hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj!)}(hj$h]hstruct}(hj1hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]h)}(hfolioh]hfolio}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]je)}jXjz1sb c.folio_orderasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2 )}(hj5 h]h*}(hj1hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj1ubh)}(hfolioh]hfolio}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj1ubah}(h]h ]h"]h$]h&]jj uh1jhj71hhhjI1hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj31hhhjI1hMubah}(h]j.1ah ](jjeh"]h$]h&]jj)jhuh1hhjI1hMhj01hhubj )}(hhh]j9)}(h The allocation order of a folio.h]h The allocation order of a folio.}(hj22hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj/2hhubah}(h]h ]h"]h$]h&]uh1jhj01hhhjI1hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jJ2j4jJ2j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjT2h]h Parameters}(hjV2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjR2ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjN2ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hjs2h]hconst struct folio *folio}(hju2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjq2ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjm2ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjm2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjj2ubah}(h]h ]h"]h$]h&]uh1jhjN2ubj9)}(h**Description**h]jz)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjN2ubj9)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjN2ubj9)}(h **Return**h]jz)}(hj2h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjN2ubj9)}(hThe order of the folio.h]hThe order of the folio.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjN2ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_reset_order (C function)c.folio_reset_orderhNtauh1hhjhhhNhNubh)}(hhh](h)}(h,void folio_reset_order (struct folio *folio)h]h)}(h+void folio_reset_order(struct folio *folio)h](j)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj)3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhj(3hMubh)}(hfolio_reset_orderh]h)}(hfolio_reset_orderh]hfolio_reset_order}(hj;3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj73ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj3hhhj(3hMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjW3hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjS3ubj)}(h h]h }(hjd3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS3ubh)}(hhh]h)}(hfolioh]hfolio}(hju3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjr3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjw3modnameN classnameNj\j_)}jb]je)}jXj=3sbc.folio_reset_orderasbuh1hhjS3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS3ubj2 )}(hj5 h]h*}(hj3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjS3ubh)}(hfolioh]hfolio}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjS3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjO3ubah}(h]h ]h"]h$]h&]jj uh1jhj3hhhj(3hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj3hhhj(3hMubah}(h]j 3ah ](jjeh"]h$]h&]jj)jhuh1hhj(3hMhj3hhubj )}(hhh]j9)}(h+Reset the folio order and derived _nr_pagesh]h+Reset the folio order and derived _nr_pages}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj3hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj(3hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j3j4j3j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj3ubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj4h]hstruct folio *folio}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj4ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj44hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj04hMhj14ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj04hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj3ubj9)}(h**Description**h]jz)}(hjV4h]h Description}(hjX4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjT4ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj3ubj9)}(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.}(hjl4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mapcount (C function)c.folio_mapcounthNtauh1hhjhhhNhNubh)}(hhh](h)}(h.int folio_mapcount (const struct folio *folio)h]h)}(h-int folio_mapcount(const struct folio *folio)h](j)}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM^ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj4hM^ubh)}(hfolio_mapcounth]h)}(hfolio_mapcounth]hfolio_mapcount}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj4hhhj4hM^ubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hj4hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj!)}(hj$h]hstruct}(hj4hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]h)}(hfolioh]hfolio}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj5modnameN classnameNj\j_)}jb]je)}jXj4sbc.folio_mapcountasbuh1hhj4ubj)}(h h]h }(hj15hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2 )}(hj5 h]h*}(hj?5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4ubh)}(hfolioh]hfolio}(hjL5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubah}(h]h ]h"]h$]h&]jj uh1jhj4hhhj4hM^ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4hhhj4hM^ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhj4hM^hj4hhubj )}(hhh]j9)}(h!Number of mappings of this folio.h]h!Number of mappings of this folio.}(hjv5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM^hjs5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hM^ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j5j4j5j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMbhj5ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hj5h]hconst struct folio *folio}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM_hj5ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5hM_hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM_hj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubj9)}(h**Description**h]jz)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMahj5ubj9)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM`hj5ubj9)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMdhj5ubj9)}(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.}(hj&6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMghj5ubj9)}(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.}(hj56hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMkhj5ubj9)}(h **Return**h]jz)}(hjF6h]hReturn}(hjH6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjD6ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMnhj5ubj9)}(h)The number of times this folio is mapped.h]h)The number of times this folio is mapped.}(hj\6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMohj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mapped (C function)c.folio_mappedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h-bool folio_mapped (const struct folio *folio)h]h)}(h,bool folio_mapped(const struct folio *folio)h](j)}(hj)h]hbool}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMubh)}(h folio_mappedh]h)}(h folio_mappedh]h folio_mapped}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj6hhhj6hMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hj6hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj!)}(hj$h]hstruct}(hj6hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]h)}(hfolioh]hfolio}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj7modnameN classnameNj\j_)}jb]je)}jXj6sbc.folio_mappedasbuh1hhj6ubj)}(h h]h }(hj 7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2 )}(hj5 h]h*}(hj.7hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj6ubh)}(hfolioh]hfolio}(hj;7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubah}(h]h ]h"]h$]h&]jj uh1jhj6hhhj6hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj6hhhj6hMubah}(h]j~6ah ](jjeh"]h$]h&]jj)jhuh1hhj6hMhj6hhubj )}(hhh]j9)}(h$Is this folio mapped into userspace?h]h$Is this folio mapped into userspace?}(hje7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjb7hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j}7j4j}7j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``const struct folio *folio`` The folio. **Return** True if any page in this folio is referenced by user page tables.h](j9)}(h**Parameters**h]jz)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj7ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hj7h]hconst struct folio *folio}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj7ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubj9)}(h **Return**h]jz)}(hj7h]hReturn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj7ubj9)}(hATrue if any page in this folio is referenced by user page tables.h]hATrue if any page in this folio is referenced by user page tables.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌthp_order (C function) c.thp_orderhNtauh1hhjhhhNhNubh)}(hhh](h)}(h*unsigned int thp_order (struct page *page)h]h)}(h)unsigned int thp_order(struct page *page)h](j)}(hunsignedh]hunsigned}(hj&8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"8hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj58hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"8hhhj48hMubj)}(hinth]hint}(hjC8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"8hhhj48hMubj)}(h h]h }(hjQ8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"8hhhj48hMubh)}(h thp_orderh]h)}(h thp_orderh]h thp_order}(hjc8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_8ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj"8hhhj48hMubj)}(h(struct page *page)h]j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj8hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj{8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{8ubh)}(hhh]h)}(hpageh]hpage}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]je)}jXje8sb c.thp_orderasbuh1hhj{8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{8ubj2 )}(hj5 h]h*}(hj8hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj{8ubh)}(hpageh]hpage}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjw8ubah}(h]h ]h"]h$]h&]jj uh1jhj"8hhhj48hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj8hhhj48hMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj48hMhj8hhubj )}(hhh]j9)}(h!Order of a transparent huge page.h]h!Order of a transparent huge page.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj48hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j9j4j9j5j6j7uh1hhhhjhNhNubjp)}(hM**Parameters** ``struct page *page`` Head page of a transparent huge page.h](j9)}(h**Parameters**h]jz)}(hj$9h]h Parameters}(hj&9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"9ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj9ubj)}(hhh]j)}(h;``struct page *page`` Head page of a transparent huge page.h](j)}(h``struct page *page``h]j?)}(hjC9h]hstruct page *page}(hjE9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjA9ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj=9ubj)}(hhh]j9)}(h%Head page of a transparent huge page.h]h%Head page of a transparent huge page.}(hj\9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjY9ubah}(h]h ]h"]h$]h&]uh1jhj=9ubeh}(h]h ]h"]h$]h&]uh1jhjX9hMhj:9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌthp_size (C function) c.thp_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h*unsigned long thp_size (struct page *page)h]h)}(h)unsigned long thp_size(struct page *page)h](j)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMubj)}(hlongh]hlong}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hMubh)}(hthp_sizeh]h)}(hthp_sizeh]hthp_size}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj9hhhj9hMubj)}(h(struct page *page)h]j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj9hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj9ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]h)}(hpageh]hpage}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]je)}jXj9sb c.thp_sizeasbuh1hhj9ubj)}(h h]h }(hj4:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2 )}(hj5 h]h*}(hjB:hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj9ubh)}(hpageh]hpage}(hjO:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubah}(h]h ]h"]h$]h&]jj uh1jhj9hhhj9hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj9hhhj9hMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hMhj9hhubj )}(hhh]j9)}(h Size of a transparent huge page.h]h Size of a transparent huge page.}(hjy:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjv:hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j:j4j:j5j6j7uh1hhhhjhNhNubjp)}(hx**Parameters** ``struct page *page`` Head page of a transparent huge page. **Return** Number of bytes in this page.h](j9)}(h**Parameters**h]jz)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj:ubj)}(hhh]j)}(h<``struct page *page`` Head page of a transparent huge page. h](j)}(h``struct page *page``h]j?)}(hj:h]hstruct page *page}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj:ubj)}(hhh]j9)}(h%Head page of a transparent huge page.h]h%Head page of a transparent huge page.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubj9)}(h **Return**h]jz)}(hj:h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj:ubj9)}(hNumber of bytes in this page.h]hNumber of bytes in this page.}(hj ;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_get (C function) c.folio_gethNtauh1hhjhhhNhNubh)}(hhh](h)}(h$void folio_get (struct folio *folio)h]h)}(h#void folio_get(struct folio *folio)h](j)}(hvoidh]hvoid}(hj:;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6;hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjI;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6;hhhjH;hM ubh)}(h folio_geth]h)}(h folio_geth]h folio_get}(hj[;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjW;ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj6;hhhjH;hM ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjw;hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjs;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs;ubh)}(hhh]h)}(hfolioh]hfolio}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;modnameN classnameNj\j_)}jb]je)}jXj];sb c.folio_getasbuh1hhjs;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs;ubj2 )}(hj5 h]h*}(hj;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjs;ubh)}(hfolioh]hfolio}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjs;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjo;ubah}(h]h ]h"]h$]h&]jj uh1jhj6;hhhjH;hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj2;hhhjH;hM ubah}(h]j-;ah ](jjeh"]h$]h&]jj)jhuh1hhjH;hM hj/;hhubj )}(hhh]j9)}(h)Increment the reference count on a folio.h]h)Increment the reference count on a folio.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj;hhubah}(h]h ]h"]h$]h&]uh1jhj/;hhhjH;hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j<j4j<j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct folio *folio`` The folio. **Context** May be called in any context, as long as you know that you have a refcount on the folio. If you do not already have one, folio_try_get() may be the right interface for you to use.h](j9)}(h**Parameters**h]jz)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj<ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM$hj<ubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj;<h]hstruct folio *folio}(hj=<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9<ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM!hj5<ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjT<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjP<hM!hjQ<ubah}(h]h ]h"]h$]h&]uh1jhj5<ubeh}(h]h ]h"]h$]h&]uh1jhjP<hM!hj2<ubah}(h]h ]h"]h$]h&]uh1jhj<ubj9)}(h **Context**h]jz)}(hjv<h]hContext}(hjx<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjt<ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM#hj<ubj9)}(hMay be called in any context, as long as you know that you have a refcount on the folio. If you do not already have one, folio_try_get() may be the right interface for you to use.h]hMay be called in any context, as long as you know that you have a refcount on the folio. If you do not already have one, folio_try_get() may be the right interface for you to use.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM#hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_put (C function) c.folio_puthNtauh1hhjhhhNhNubh)}(hhh](h)}(h$void folio_put (struct folio *folio)h]h)}(h#void folio_put(struct folio *folio)h](j)}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMAubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhj<hMAubh)}(h folio_puth]h)}(h folio_puth]h folio_put}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj<hhhj<hMAubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj<hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj<ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]h)}(hfolioh]hfolio}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj=modnameN classnameNj\j_)}jb]je)}jXj<sb c.folio_putasbuh1hhj<ubj)}(h h]h }(hj6=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2 )}(hj5 h]h*}(hjD=hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj<ubh)}(hfolioh]hfolio}(hjQ=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj<ubah}(h]h ]h"]h$]h&]jj uh1jhj<hhhj<hMAubeh}(h]h ]h"]h$]h&]jj juh1hjjhj<hhhj<hMAubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMAhj<hhubj )}(hhh]j9)}(h)Decrement the reference count on a folio.h]h)Decrement the reference count on a folio.}(hj{=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMAhjx=hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj<hMAubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j=j4j=j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct folio *folio`` The folio. **Description** If the folio's reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put() unless you can be sure that it wasn't the last reference. **Context** May be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.h](j9)}(h**Parameters**h]jz)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj=ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMEhj=ubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj=h]hstruct folio *folio}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj=ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMBhj=ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj=hMBhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMBhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubj9)}(h**Description**h]jz)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj=ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMDhj=ubj9)}(hXIf the folio's reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put() unless you can be sure that it wasn't the last reference.h]hXIf the folio’s reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put() unless you can be sure that it wasn’t the last reference.}(hj >hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMChj=ubj9)}(h **Context**h]jz)}(hj>h]hContext}(hj >hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj>ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMIhj=ubj9)}(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.}(hj4>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMJhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_put_refs (C function)c.folio_put_refshNtauh1hhjhhhNhNubh)}(hhh](h)}(h3void folio_put_refs (struct folio *folio, int refs)h]h)}(h2void folio_put_refs(struct folio *folio, int refs)h](j)}(hvoidh]hvoid}(hjc>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_>hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMTubj)}(h h]h }(hjr>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_>hhhjq>hMTubh)}(hfolio_put_refsh]h)}(hfolio_put_refsh]hfolio_put_refs}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj_>hhhjq>hMTubj)}(h(struct folio *folio, int refs)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj>hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]h)}(hfolioh]hfolio}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj>modnameN classnameNj\j_)}jb]je)}jXj>sbc.folio_put_refsasbuh1hhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2 )}(hj5 h]h*}(hj>hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj>ubh)}(hfolioh]hfolio}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj>ubj)}(hint refsh](j)}(hinth]hint}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(h h]h }(hj ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hrefsh]hrefs}(hj.?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj>ubeh}(h]h ]h"]h$]h&]jj uh1jhj_>hhhjq>hMTubeh}(h]h ]h"]h$]h&]jj juh1hjjhj[>hhhjq>hMTubah}(h]jV>ah ](jjeh"]h$]h&]jj)jhuh1hhjq>hMThjX>hhubj )}(hhh]j9)}(h&Reduce the reference count on a folio.h]h&Reduce the reference count on a folio.}(hjX?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMThjU?hhubah}(h]h ]h"]h$]h&]uh1jhjX>hhhjq>hMTubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jp?j4jp?j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjz?h]h Parameters}(hj|?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjx?ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMXhjt?ubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj?h]hstruct folio *folio}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj?ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMUhj?ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj?hMUhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMUhj?ubj)}(hF``int refs`` The amount to subtract from the folio's reference count. h](j)}(h ``int refs``h]j?)}(hj?h]hint refs}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj?ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMVhj?ubj)}(hhh]j9)}(h8The amount to subtract from the folio's reference count.h]h:The amount to subtract from the folio’s reference count.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj?hMVhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMVhj?ubeh}(h]h ]h"]h$]h&]uh1jhjt?ubj9)}(h**Description**h]jz)}(hj @h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj @ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMXhjt?ubj9)}(hX"If the folio's reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put_refs() unless you can be sure that these weren't the last references.h]hX&If the folio’s reference count reaches zero, the memory will be released back to the page allocator and may be used by another allocation immediately. Do not access the memory or the struct folio after calling folio_put_refs() unless you can be sure that these weren’t the last references.}(hj#@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMWhjt?ubj9)}(h **Context**h]jz)}(hj4@h]hContext}(hj6@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2@ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM]hjt?ubj9)}(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.}(hjJ@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM^hjt?ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolios_put (C function) c.folios_puthNtauh1hhjhhhNhNubh)}(hhh](h)}(h,void folios_put (struct folio_batch *folios)h]h)}(h+void folios_put(struct folio_batch *folios)h](j)}(hvoidh]hvoid}(hjy@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju@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&]uh1jhju@hhhj@hM}ubh)}(h folios_puth]h)}(h folios_puth]h folios_put}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ](jjeh"]h$]h&]jj uh1hhju@hhhj@hM}ubj)}(h(struct folio_batch *folios)h]j)}(hstruct folio_batch *foliosh](j!)}(hj$h]hstruct}(hj@hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]h)}(h folio_batchh]h folio_batch}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj@modnameN classnameNj\j_)}jb]je)}jXj@sb c.folios_putasbuh1hhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2 )}(hj5 h]h*}(hjAhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj@ubh)}(hfoliosh]hfolios}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj@ubah}(h]h ]h"]h$]h&]jj uh1jhju@hhhj@hM}ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjq@hhhj@hM}ubah}(h]jl@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hM}hjn@hhubj )}(hhh]j9)}(h4Decrement the reference count on an array of folios.h]h4Decrement the reference count on an array of folios.}(hj9AhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM}hj6Ahhubah}(h]h ]h"]h$]h&]uh1jhjn@hhhj@hM}ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jQAj4jQAj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj[Ah]h Parameters}(hj]AhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYAubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjUAubj)}(hhh]j)}(h+``struct folio_batch *folios`` The folios. h](j)}(h``struct folio_batch *folios``h]j?)}(hjzAh]hstruct folio_batch *folios}(hj|AhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxAubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM~hjtAubj)}(hhh]j9)}(h The folios.h]h The folios.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjAhM~hjAubah}(h]h ]h"]h$]h&]uh1jhjtAubeh}(h]h ]h"]h$]h&]uh1jhjAhM~hjqAubah}(h]h ]h"]h$]h&]uh1jhjUAubj9)}(h**Description**h]jz)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjUAubj9)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjUAubj9)}(h **Context**h]jz)}(hjAh]hContext}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjUAubj9)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjUAubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_pfn (C function) c.folio_pfnhNtauh1hhjhhhNhNubh)}(hhh](h)}(h3unsigned long folio_pfn (const struct folio *folio)h]h)}(h2unsigned long folio_pfn(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hj!BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj0BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhj/BhMubj)}(hlongh]hlong}(hj>BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhj/BhMubj)}(h h]h }(hjLBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhj/BhMubh)}(h folio_pfnh]h)}(h folio_pfnh]h folio_pfn}(hj^BhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZBubah}(h]h ](jjeh"]h$]h&]jj uh1hhjBhhhj/BhMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hjzBhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjvBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvBubj!)}(hj$h]hstruct}(hjBhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjvBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvBubh)}(hhh]h)}(hfolioh]hfolio}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjBmodnameN classnameNj\j_)}jb]je)}jXj`Bsb c.folio_pfnasbuh1hhjvBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvBubj2 )}(hj5 h]h*}(hjBhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjvBubh)}(hfolioh]hfolio}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvBubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjrBubah}(h]h ]h"]h$]h&]jj uh1jhjBhhhj/BhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjBhhhj/BhMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhj/BhMhjBhhubj )}(hhh]j9)}(h(Return the Page Frame Number of a folio.h]h(Return the Page Frame Number of a folio.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj/BhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j0Cj4j0Cj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj:Ch]h Parameters}(hjhjWCubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjSCubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjrChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnChMhjoCubah}(h]h ]h"]h$]h&]uh1jhjSCubeh}(h]h ]h"]h$]h&]uh1jhjnChMhjPCubah}(h]h ]h"]h$]h&]uh1jhj4Cubj9)}(h**Description**h]jz)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj4Cubj9)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj4Cubj9)}(h **Return**h]jz)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj4Cubj9)}(h5The Page Frame Number of the first page in the folio.h]h5The Page Frame Number of the first page in the folio.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj4Cubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mk_pte (C function)c.folio_mk_ptehNtauh1hhjhhhNhNubh)}(hhh](h)}(h9pte_t folio_mk_pte (struct folio *folio, pgprot_t pgprot)h]h)}(h8pte_t folio_mk_pte(struct folio *folio, pgprot_t pgprot)h](h)}(hhh]h)}(hpte_th]hpte_t}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjDmodnameN classnameNj\j_)}jb]je)}jX folio_mk_ptesbc.folio_mk_pteasbuh1hhjChhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj%DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhj$DhMubh)}(h folio_mk_pteh]h)}(hj!Dh]h folio_mk_pte}(hj7DhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3Dubah}(h]h ](jjeh"]h$]h&]jj uh1hhjChhhj$DhMubj)}(h&(struct folio *folio, pgprot_t pgprot)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjRDhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjNDubj)}(h h]h }(hj_DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNDubh)}(hhh]h)}(hfolioh]hfolio}(hjpDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmDubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjrDmodnameN classnameNj\j_)}jb]jDc.folio_mk_pteasbuh1hhjNDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNDubj2 )}(hj5 h]h*}(hjDhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjNDubh)}(hfolioh]hfolio}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjJDubj)}(hpgprot_t pgproth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjDmodnameN classnameNj\j_)}jb]jDc.folio_mk_pteasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hpgproth]hpgprot}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjJDubeh}(h]h ]h"]h$]h&]jj uh1jhjChhhj$DhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjChhhj$DhMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhj$DhMhjChhubj )}(hhh]j9)}(hCreate a PTE for this folioh]hCreate a PTE for this folio}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjEhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj$DhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j3Ej4j3Ej5j6j7uh1hhhhjhNhNubjp)}(hX9**Parameters** ``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](j9)}(h**Parameters**h]jz)}(hj=Eh]h Parameters}(hj?EhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj;Eubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj7Eubj)}(hhh](j)}(h6``struct folio *folio`` The folio to create a PTE for h](j)}(h``struct folio *folio``h]j?)}(hj\Eh]hstruct folio *folio}(hj^EhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjZEubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjVEubj)}(hhh]j9)}(hThe folio to create a PTE forh]hThe folio to create a PTE for}(hjuEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjqEhMhjrEubah}(h]h ]h"]h$]h&]uh1jhjVEubeh}(h]h ]h"]h$]h&]uh1jhjqEhMhjSEubj)}(h4``pgprot_t pgprot`` The page protection bits to use h](j)}(h``pgprot_t pgprot``h]j?)}(hjEh]hpgprot_t pgprot}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjEubj)}(hhh]j9)}(hThe page protection bits to useh]hThe page protection bits to use}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjSEubeh}(h]h ]h"]h$]h&]uh1jhj7Eubj9)}(h**Description**h]jz)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj7Eubj9)}(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().}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj7Eubj9)}(h **Return**h]jz)}(hjEh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj7Eubj9)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping this folio.}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj7Eubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mk_pmd (C function)c.folio_mk_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(h9pmd_t folio_mk_pmd (struct folio *folio, pgprot_t pgprot)h]h)}(h8pmd_t folio_mk_pmd(struct folio *folio, pgprot_t pgprot)h](h)}(hhh]h)}(hpmd_th]hpmd_t}(hj?FhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ah"]h$]h&]uh1j1 hjFubh)}(hfolioh]hfolio}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubj)}(hpgprot_t pgproth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjGmodnameN classnameNj\j_)}jb]j[Fc.folio_mk_pmdasbuh1hhjFubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hpgproth]hpgprot}(hj-GhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubeh}(h]h ]h"]h$]h&]jj uh1jhj8Fhhhj`FhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4Fhhhj`FhMubah}(h]j/Fah ](jjeh"]h$]h&]jj)jhuh1hhj`FhMhj1Fhhubj )}(hhh]j9)}(hCreate a PMD for this folioh]hCreate a PMD for this folio}(hjWGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjTGhhubah}(h]h ]h"]h$]h&]uh1jhj1Fhhhj`FhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3joGj4joGj5j6j7uh1hhhhjhNhNubjp)}(hX;**Parameters** ``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](j9)}(h**Parameters**h]jz)}(hjyGh]h Parameters}(hj{GhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwGubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjsGubj)}(hhh](j)}(h6``struct folio *folio`` The folio to create a PMD for h](j)}(h``struct folio *folio``h]j?)}(hjGh]hstruct folio *folio}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjGubj)}(hhh]j9)}(hThe folio to create a PMD forh]hThe folio to create a PMD for}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubj)}(h4``pgprot_t pgprot`` The page protection bits to use h](j)}(h``pgprot_t pgprot``h]j?)}(hjGh]hpgprot_t pgprot}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjGubj)}(hhh]j9)}(hThe page protection bits to useh]hThe page protection bits to use}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubeh}(h]h ]h"]h$]h&]uh1jhjsGubj9)}(h**Description**h]jz)}(hj Hh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj Hubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjsGubj9)}(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().}(hj"HhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjsGubj9)}(h **Return**h]jz)}(hj3Hh]hReturn}(hj5HhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1Hubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjsGubj9)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping this folio.}(hjIHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjsGubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mk_pud (C function)c.folio_mk_pudhNtauh1hhjhhhNhNubh)}(hhh](h)}(h9pud_t folio_mk_pud (struct folio *folio, pgprot_t pgprot)h]h)}(h8pud_t folio_mk_pud(struct folio *folio, pgprot_t pgprot)h](h)}(hhh]h)}(hpud_th]hpud_t}(hj{HhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxHubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj}HmodnameN classnameNj\j_)}jb]je)}jX folio_mk_pudsbc.folio_mk_pudasbuh1hhjtHhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM"ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtHhhhjHhM"ubh)}(h folio_mk_pudh]h)}(hjHh]h folio_mk_pud}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubah}(h]h ](jjeh"]h$]h&]jj uh1hhjtHhhhjHhM"ubj)}(h&(struct folio *folio, pgprot_t pgprot)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjHhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]h)}(hfolioh]hfolio}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjHmodnameN classnameNj\j_)}jb]jHc.folio_mk_pudasbuh1hhjHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjHubh)}(hfolioh]hfolio}(hj!IhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjHubj)}(hpgprot_t pgproth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hj=IhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:Iubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj?ImodnameN classnameNj\j_)}jb]jHc.folio_mk_pudasbuh1hhj6Iubj)}(h h]h }(hj[IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Iubh)}(hpgproth]hpgprot}(hjiIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6Iubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjHubeh}(h]h ]h"]h$]h&]jj uh1jhjtHhhhjHhM"ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjpHhhhjHhM"ubah}(h]jkHah ](jjeh"]h$]h&]jj)jhuh1hhjHhM"hjmHhhubj )}(hhh]j9)}(hCreate a PUD for this folioh]hCreate a PUD for this folio}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM"hjIhhubah}(h]h ]h"]h$]h&]uh1jhjmHhhhjHhM"ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jIj4jIj5j6j7uh1hhhhjhNhNubjp)}(hX;**Parameters** ``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](j9)}(h**Parameters**h]jz)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjIubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM&hjIubj)}(hhh](j)}(h6``struct folio *folio`` The folio to create a PUD for h](j)}(h``struct folio *folio``h]j?)}(hjIh]hstruct folio *folio}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM#hjIubj)}(hhh]j9)}(hThe folio to create a PUD forh]hThe folio to create a PUD for}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhM#hjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhM#hjIubj)}(h4``pgprot_t pgprot`` The page protection bits to use h](j)}(h``pgprot_t pgprot``h]j?)}(hj Jh]hpgprot_t pgprot}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj Jubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM$hjJubj)}(hhh]j9)}(hThe page protection bits to useh]hThe page protection bits to use}(hj&JhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"JhM$hj#Jubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhj"JhM$hjIubeh}(h]h ]h"]h$]h&]uh1jhjIubj9)}(h**Description**h]jz)}(hjHJh]h Description}(hjJJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFJubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM&hjIubj9)}(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().}(hj^JhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM%hjIubj9)}(h **Return**h]jz)}(hjoJh]hReturn}(hjqJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjmJubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM(hjIubj9)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping this folio.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM)hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#folio_maybe_dma_pinned (C function)c.folio_maybe_dma_pinnedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h1bool folio_maybe_dma_pinned (struct folio *folio)h]h)}(h0bool folio_maybe_dma_pinned(struct folio *folio)h](j)}(hj)h]hbool}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM;ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhjJhM;ubh)}(hfolio_maybe_dma_pinnedh]h)}(hfolio_maybe_dma_pinnedh]hfolio_maybe_dma_pinned}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubah}(h]h ](jjeh"]h$]h&]jj uh1hhjJhhhjJhM;ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjJhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]h)}(hfolioh]hfolio}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Kubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjKmodnameN classnameNj\j_)}jb]je)}jXjJsbc.folio_maybe_dma_pinnedasbuh1hhjJubj)}(h h]h }(hj.KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2 )}(hj5 h]h*}(hj ah"]h$]h&]uh1j1 hjJubh)}(hfolioh]hfolio}(hjIKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjJubah}(h]h ]h"]h$]h&]jj uh1jhjJhhhjJhM;ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjJhhhjJhM;ubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjJhM;hjJhhubj )}(hhh]j9)}(h(Report if a folio may be pinned for DMA.h]h(Report if a folio may be pinned for DMA.}(hjsKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM;hjpKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhM;ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jKj4jKj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM?hjKubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjKh]hstruct folio *folio}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM<hjKubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjKhM<hjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhM<hjKubah}(h]h ]h"]h$]h&]uh1jhjKubj9)}(h**Description**h]jz)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM>hjKubj9)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM=hjKubj9)}(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”.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM@hjKubj9)}(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.}(hj#LhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMEhjKubj9)}(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.}(hj2LhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMIhjKubj9)}(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.}(hjALhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMMhjKubj9)}(h **Return**h]jz)}(hjRLh]hReturn}(hjTLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjPLubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMOhjKubj9)}(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.}(hjhLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMPhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌis_zero_page (C function)c.is_zero_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h+bool is_zero_page (const struct page *page)h]h)}(h*bool is_zero_page(const struct page *page)h](j)}(hj)h]hbool}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMvubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhMvubh)}(h is_zero_pageh]h)}(h is_zero_pageh]h is_zero_page}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ](jjeh"]h$]h&]jj uh1hhjLhhhjLhMvubj)}(h(const struct page *page)h]j)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hjLhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj!)}(hj$h]hstruct}(hjLhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]h)}(hpageh]hpage}(hj MhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Mubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjMmodnameN classnameNj\j_)}jb]je)}jXjLsbc.is_zero_pageasbuh1hhjLubj)}(h h]h }(hj,MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2 )}(hj5 h]h*}(hj:MhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjLubh)}(hpageh]hpage}(hjGMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjLubah}(h]h ]h"]h$]h&]jj uh1jhjLhhhjLhMvubeh}(h]h ]h"]h$]h&]jj juh1hjjhjLhhhjLhMvubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjLhMvhjLhhubj )}(hhh]j9)}(hQuery if a page is a zero pageh]hQuery if a page is a zero page}(hjqMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMvhjnMhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjLhMvubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jMj4jMj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``const struct page *page`` The page to query **Description** This returns true if **page** is one of the permanent zero pages.h](j9)}(h**Parameters**h]jz)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMzhjMubj)}(hhh]j)}(h.``const struct page *page`` The page to query h](j)}(h``const struct page *page``h]j?)}(hjMh]hconst struct page *page}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMwhjMubj)}(hhh]j9)}(hThe page to queryh]hThe page to query}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMhMwhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMwhjMubah}(h]h ]h"]h$]h&]uh1jhjMubj9)}(h**Description**h]jz)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMyhjMubj9)}(hAThis returns true if **page** is one of the permanent zero pages.h](hThis returns true if }(hjNhhhNhNubjz)}(h**page**h]hpage}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubh$ is one of the permanent zero pages.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMxhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌis_zero_folio (C function)c.is_zero_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(h.bool is_zero_folio (const struct folio *folio)h]h)}(h-bool is_zero_folio(const struct folio *folio)h](j)}(hj)h]hbool}(hjDNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@NhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjRNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@NhhhjQNhMubh)}(h is_zero_folioh]h)}(h is_zero_folioh]h is_zero_folio}(hjdNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`Nubah}(h]h ](jjeh"]h$]h&]jj uh1hhj@NhhhjQNhMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hjNhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|Nubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Nubj!)}(hj$h]hstruct}(hjNhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|Nubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Nubh)}(hhh]h)}(hfolioh]hfolio}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjNmodnameN classnameNj\j_)}jb]je)}jXjfNsbc.is_zero_folioasbuh1hhj|Nubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Nubj2 )}(hj5 h]h*}(hjNhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|Nubh)}(hfolioh]hfolio}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|Nubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjxNubah}(h]h ]h"]h$]h&]jj uh1jhj@NhhhjQNhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjOubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj:Oubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to query h](j)}(h``const struct folio *folio``h]j?)}(hj_Oh]hconst struct folio *folio}(hjaOhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj]Oubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjYOubj)}(hhh]j9)}(hThe folio to queryh]hThe folio to query}(hjxOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjtOhMhjuOubah}(h]h ]h"]h$]h&]uh1jhjYOubeh}(h]h ]h"]h$]h&]uh1jhjtOhMhjVOubah}(h]h ]h"]h$]h&]uh1jhj:Oubj9)}(h**Description**h]jz)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj:Oubj9)}(hBThis returns true if **folio** is one of the permanent zero pages.h](hThis returns true if }(hjOhhhNhNubjz)}(h **folio**h]hfolio}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOubh$ is one of the permanent zero pages.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj:Oubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_nr_pages (C function)c.folio_nr_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h/long folio_nr_pages (const struct folio *folio)h]h)}(h.long folio_nr_pages(const struct folio *folio)h](j)}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjOhMubh)}(hfolio_nr_pagesh]h)}(hfolio_nr_pagesh]hfolio_nr_pages}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ](jjeh"]h$]h&]jj uh1hhjOhhhjOhMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hj.PhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj*Pubj)}(h h]h }(hj;PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Pubj!)}(hj$h]hstruct}(hjIPhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj*Pubj)}(h h]h }(hjVPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Pubh)}(hhh]h)}(hfolioh]hfolio}(hjgPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdPubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjiPmodnameN classnameNj\j_)}jb]je)}jXjPsbc.folio_nr_pagesasbuh1hhj*Pubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Pubj2 )}(hj5 h]h*}(hjPhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj*Pubh)}(hfolioh]hfolio}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*Pubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj&Pubah}(h]h ]h"]h$]h&]jj uh1jhjOhhhjOhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjOhhhjOhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjOhMhjOhhubj )}(hhh]j9)}(h!The number of pages in the folio.h]h!The number of pages in the folio.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjOhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jPj4jPj5j6j7uh1hhhhjhNhNubjp)}(h`**Parameters** ``const struct folio *folio`` The folio. **Return** A positive power of two.h](j9)}(h**Parameters**h]jz)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjPubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjPubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hj Qh]hconst struct folio *folio}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj Qubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjQubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj&QhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"QhMhj#Qubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhj"QhMhjQubah}(h]h ]h"]h$]h&]uh1jhjPubj9)}(h **Return**h]jz)}(hjHQh]hReturn}(hjJQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFQubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjPubj9)}(hA positive power of two.h]hA positive power of two.}(hj^QhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_next (C function) c.folio_nexthNtauh1hhjhhhNhNubh)}(hhh](h)}(h/struct folio * folio_next (struct folio *folio)h]h)}(h-struct folio *folio_next(struct folio *folio)h](j!)}(hj$h]hstruct}(hjQhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjQhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjQhMubh)}(hhh]h)}(hfolioh]hfolio}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjQmodnameN classnameNj\j_)}jb]je)}jX folio_nextsb c.folio_nextasbuh1hhjQhhhjQhMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjQhMubj2 )}(hj5 h]h*}(hjQhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjQhhhjQhMubh)}(h folio_nexth]h)}(hjQh]h folio_next}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubah}(h]h ](jjeh"]h$]h&]jj uh1hhjQhhhjQhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjRhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]h)}(hfolioh]hfolio}(hj%RhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"Rubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj'RmodnameN classnameNj\j_)}jb]jQ c.folio_nextasbuh1hhjRubj)}(h h]h }(hjCRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2 )}(hj5 h]h*}(hjQRhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjRubh)}(hfolioh]hfolio}(hj^RhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQubah}(h]h ]h"]h$]h&]jj uh1jhjQhhhjQhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjQhhhjQhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhjQhhubj )}(hhh]j9)}(h Move to the next physical folio.h]h Move to the next physical folio.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjQhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jRj4jRj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjRubj)}(hhh]j)}(h@``struct folio *folio`` The folio we're currently operating on. h](j)}(h``struct folio *folio``h]j?)}(hjRh]hstruct folio *folio}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjRubj)}(hhh]j9)}(h'The folio we're currently operating on.h]h)The folio we’re currently operating on.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjRubj9)}(h**Description**h]jz)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjRubj9)}(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 }(hjShhhNhNubh)}(h":c:type:`struct bio_vec `h]j?)}(hj$Sh]hstruct bio_vec}(hj&ShhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hj"Subah}(h]h ]h"]h$]h&]refdocj1 refdomainj-reftypetype refexplicitrefwarnj\j7j:bio_vecuh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjSubh), 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 }(hjShhhNhNubj?)}(h ``page++``h]hpage++}(hjFShhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjSubh.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjAShMhjRubj9)}(h **Context**h]jz)}(hj`Sh]hContext}(hjbShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj^Subah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjRubj9)}(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.}(hjvShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjRubj9)}(h **Return**h]jz)}(hjSh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjRubj9)}(hThe next struct folio.h]hThe next struct folio.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_shift (C function) c.folio_shifthNtauh1hhjhhhNhNubh)}(hhh](h)}(h4unsigned int folio_shift (const struct folio *folio)h]h)}(h3unsigned int folio_shift(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjShMubj)}(hinth]hint}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjShMubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjShMubh)}(h folio_shifth]h)}(h folio_shifth]h folio_shift}(hj ThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubah}(h]h ](jjeh"]h$]h&]jj uh1hhjShhhjShMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hj%ThhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj!Tubj)}(h h]h }(hj2ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Tubj!)}(hj$h]hstruct}(hj@ThhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj!Tubj)}(h h]h }(hjMThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Tubh)}(hhh]h)}(hfolioh]hfolio}(hj^ThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[Tubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj`TmodnameN classnameNj\j_)}jb]je)}jXj Tsb c.folio_shiftasbuh1hhj!Tubj)}(h h]h }(hj~ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Tubj2 )}(hj5 h]h*}(hjThhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj!Tubh)}(hfolioh]hfolio}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!Tubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjTubah}(h]h ]h"]h$]h&]jj uh1jhjShhhjShMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjShhhjShMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhjShMhjShhubj )}(hhh]j9)}(h/The size of the memory described by this folio.h]h/The size of the memory described by this folio.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjThhubah}(h]h ]h"]h$]h&]uh1jhjShhhjShMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jTj4jTj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjTubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjTubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hjUh]hconst struct folio *folio}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjTubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjUhMhjUubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubj9)}(h**Description**h]jz)}(hj?Uh]h Description}(hjAUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj=Uubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjTubj9)}(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().}(hjUUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjTubj9)}(h **Context**h]jz)}(hjfUh]hContext}(hjhUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjdUubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjTubj9)}(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|UhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjTubj9)}(h **Return**h]jz)}(hjUh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjTubj9)}(h/The base-2 logarithm of the size of this folio.h]h/The base-2 logarithm of the size of this folio.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_size (C function) c.folio_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h-size_t folio_size (const struct folio *folio)h]h)}(h,size_t folio_size(const struct folio *folio)h](h)}(hhh]h)}(hsize_th]hsize_t}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjUmodnameN classnameNj\j_)}jb]je)}jX folio_sizesb c.folio_sizeasbuh1hhjUhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhjUhM ubh)}(h folio_sizeh]h)}(hjUh]h folio_size}(hj VhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubah}(h]h ](jjeh"]h$]h&]jj uh1hhjUhhhjUhM ubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hj$VhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj Vubj)}(h h]h }(hj1VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Vubj!)}(hj$h]hstruct}(hj?VhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj Vubj)}(h h]h }(hjLVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Vubh)}(hhh]h)}(hfolioh]hfolio}(hj]VhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZVubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_VmodnameN classnameNj\j_)}jb]jU c.folio_sizeasbuh1hhj Vubj)}(h h]h }(hj{VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Vubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj Vubh)}(hfolioh]hfolio}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Vubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjVubah}(h]h ]h"]h$]h&]jj uh1jhjUhhhjUhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjUhhhjUhM ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhM hjUhhubj )}(hhh]j9)}(hThe number of bytes in a folio.h]hThe number of bytes in a folio.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jVj4jVj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjVubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hjWh]hconst struct folio *folio}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjVubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhM hjWubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjWhM hjVubah}(h]h ]h"]h$]h&]uh1jhjVubj9)}(h **Context**h]jz)}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:Wubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjVubj9)}(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.}(hjRWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjVubj9)}(h **Return**h]jz)}(hjcWh]hReturn}(hjeWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaWubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjVubj9)}(h"The number of bytes in this folio.h]h"The number of bytes in this folio.}(hjyWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&folio_maybe_mapped_shared (C function)c.folio_maybe_mapped_sharedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h4bool folio_maybe_mapped_shared (struct folio *folio)h]h)}(h3bool folio_maybe_mapped_shared(struct folio *folio)h](j)}(hj)h]hbool}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhjWhMubh)}(hfolio_maybe_mapped_sharedh]h)}(hfolio_maybe_mapped_sharedh]hfolio_maybe_mapped_shared}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ](jjeh"]h$]h&]jj uh1hhjWhhhjWhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjWhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]h)}(hfolioh]hfolio}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjXmodnameN classnameNj\j_)}jb]je)}jXjWsbc.folio_maybe_mapped_sharedasbuh1hhjWubj)}(h h]h }(hj"XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2 )}(hj5 h]h*}(hj0XhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjWubh)}(hfolioh]hfolio}(hj=XhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjWubah}(h]h ]h"]h$]h&]jj uh1jhjWhhhjWhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjWhhhjWhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhjWhhubj )}(hhh]j9)}(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}(hjgXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjdXhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jXj4jXj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjXh]hstruct folio *folio}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjXubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubj9)}(h**Description**h]jz)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubj9)}(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”).}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubj9)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjXubj9)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM$hjXubj)}(hhh]j)}(hXFor other folios, the result can be fuzzy: #. For partially-mappable large folios (THP), the return value can wrongly indicate "mapped shared" (false positive) if a folio was mapped by more than two MMs at one point in time. #. For pagecache folios (including hugetlb), the return value can wrongly indicate "mapped shared" (false positive) when two VMAs in the same MM cover the same file range. h](j)}(h*For other folios, the result can be fuzzy:h]h*For other folios, the result can be fuzzy:}(hj-YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM/hj)Yubj)}(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]j9)}(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.}(hjFYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM*hjBYubah}(h]h ]h"]h$]h&]uh1j+hj?Yubj+)}(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]j9)}(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.}(hj_YhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM-hj[Yubah}(h]h ]h"]h$]h&]uh1j+hj?Yubeh}(h]h ]h"]h$]h&]j0,j1,j2,hj3,j4,uh1j+hj ah"]h$]h&]uh1j1 hjZubh)}(hfolioh]hfolio}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjZubah}(h]h ]h"]h$]h&]jj uh1jhj\ZhhhjnZhMYubeh}(h]h ]h"]h$]h&]jj juh1hjjhjXZhhhjnZhMYubah}(h]jSZah ](jjeh"]h$]h&]jj)jhuh1hhjnZhMYhjUZhhubj )}(hhh]j9)}(h%calculate the expected folio refcounth]h%calculate the expected folio refcount}(hj;[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMYhj8[hhubah}(h]h ]h"]h$]h&]uh1jhjUZhhhjnZhMYubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jS[j4jS[j5j6j7uh1hhhhjhNhNubjp)}(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. Returns the expected folio refcount.h](j9)}(h**Parameters**h]jz)}(hj][h]h Parameters}(hj_[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[[ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM]hjW[ubj)}(hhh]j)}(h(``const struct folio *folio`` the folio h](j)}(h``const struct folio *folio``h]j?)}(hj|[h]hconst struct folio *folio}(hj~[hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjz[ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMZhjv[ubj)}(hhh]j9)}(h the folioh]h the folio}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hMZhj[ubah}(h]h ]h"]h$]h&]uh1jhjv[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMZhjs[ubah}(h]h ]h"]h$]h&]uh1jhjW[ubj9)}(h**Description**h]jz)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM\hjW[ubj9)}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM[hjW[ubj9)}(hDoes currently not consider references from the LRU cache. If the folio was isolated from the LRU (which is the case during migration or split), the LRU cache does not apply.h]hDoes currently not consider references from the LRU cache. If the folio was isolated from the LRU (which is the case during migration or split), the LRU cache does not apply.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM`hjW[ubj9)}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMdhjW[ubj9)}(hCalling this function on a mapped folio will not result in a stable result, because nothing stops additional page table mappings from coming (e.g., fork()) or going (e.g., munmap()).h]hCalling this function on a mapped folio will not result in a stable result, because nothing stops additional page table mappings from coming (e.g., fork()) or going (e.g., munmap()).}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMghjW[ubj9)}(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.}(hj \hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMkhjW[ubj9)}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMohjW[ubj9)}(hhThe caller must add any reference (e.g., from folio_try_get()) it might be holding itself to the result.h]hhThe caller must add any reference (e.g., from folio_try_get()) it might be holding itself to the result.}(hj'\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMshjW[ubj9)}(h$Returns the expected folio refcount.h]h$Returns the expected folio refcount.}(hj6\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMvhjW[ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpagetable_alloc (C function)c.pagetable_allochNtauh1hhjhhhNhNubh)}(hhh](h)}(h?struct ptdesc * pagetable_alloc (gfp_t gfp, unsigned int order)h]h)}(h=struct ptdesc *pagetable_alloc(gfp_t gfp, unsigned int order)h](j!)}(hj$h]hstruct}(hje\hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hja\hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM6 ubj)}(h h]h }(hjs\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja\hhhjr\hM6 ubh)}(hhh]h)}(hptdesch]hptdesc}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj\modnameN classnameNj\j_)}jb]je)}jXpagetable_allocsbc.pagetable_allocasbuh1hhja\hhhjr\hM6 ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja\hhhjr\hM6 ubj2 )}(hj5 h]h*}(hj\hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hja\hhhjr\hM6 ubh)}(hpagetable_alloch]h)}(hj\h]hpagetable_alloc}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ](jjeh"]h$]h&]jj uh1hhja\hhhjr\hM6 ubj)}(h(gfp_t gfp, unsigned int order)h](j)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj\modnameN classnameNj\j_)}jb]j\c.pagetable_allocasbuh1hhj\ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hgfph]hgfp}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubj)}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hj']hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#]ubj)}(h h]h }(hj5]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#]ubj)}(hinth]hint}(hjC]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#]ubj)}(h h]h }(hjQ]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#]ubh)}(horderh]horder}(hj_]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#]ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubeh}(h]h ]h"]h$]h&]jj uh1jhja\hhhjr\hM6 ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj]\hhhjr\hM6 ubah}(h]jX\ah ](jjeh"]h$]h&]jj)jhuh1hhjr\hM6 hjZ\hhubj )}(hhh]j9)}(hAllocate pagetablesh]hAllocate pagetables}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM6 hj]hhubah}(h]h ]h"]h$]h&]uh1jhjZ\hhhjr\hM6 ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j]j4j]j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj]ubah}(h]h ]h"]h$]h&]uh1j8hS/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]j?)}(hj]h]h gfp_t gfp}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM7 hj]ubj)}(hhh]j9)}(h GFP flagsh]h GFP flags}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj]hM7 hj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hM7 hj]ubj)}(h/``unsigned int order`` desired pagetable order h](j)}(h``unsigned int order``h]j?)}(hj^h]hunsigned int order}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj^ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM8 hj]ubj)}(hhh]j9)}(hdesired pagetable orderh]hdesired pagetable order}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^hM8 hj^ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj^hM8 hj]ubeh}(h]h ]h"]h$]h&]uh1jhj]ubj9)}(h**Description**h]jz)}(hj>^h]h Description}(hj@^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj<^ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM: hj]ubj9)}(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.}(hjT^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9 hj]ubj9)}(h **Return**h]jz)}(hje^h]hReturn}(hjg^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjc^ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM< hj]ubj9)}(h0The ptdesc describing the allocated page tables.h]h0The ptdesc describing the allocated page tables.}(hj{^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM= hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpagetable_free (C function)c.pagetable_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h'void pagetable_free (struct ptdesc *pt)h]h)}(h&void pagetable_free(struct ptdesc *pt)h](j)}(hvoidh]hvoid}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMH ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj^hMH ubh)}(hpagetable_freeh]h)}(hpagetable_freeh]hpagetable_free}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj^hhhj^hMH ubj)}(h(struct ptdesc *pt)h]j)}(hstruct ptdesc *pth](j!)}(hj$h]hstruct}(hj^hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]h)}(hptdesch]hptdesc}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_modnameN classnameNj\j_)}jb]je)}jXj^sbc.pagetable_freeasbuh1hhj^ubj)}(h h]h }(hj%_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2 )}(hj5 h]h*}(hj3_hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj^ubh)}(hpth]hpt}(hj@_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj^ubah}(h]h ]h"]h$]h&]jj uh1jhj^hhhj^hMH ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj^hhhj^hMH ubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhj^hMH hj^hhubj )}(hhh]j9)}(hFree pagetablesh]hFree pagetables}(hjj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMH hjg_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hMH ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j_j4j_j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhML hj_ubj)}(hhh]j)}(h0``struct ptdesc *pt`` The page table descriptor h](j)}(h``struct ptdesc *pt``h]j?)}(hj_h]hstruct ptdesc *pt}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMI hj_ubj)}(hhh]j9)}(hThe page table descriptorh]hThe page table descriptor}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_hMI hj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMI hj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubj9)}(h**Description**h]jz)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMK hj_ubj9)}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMJ hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvma_lookup (C function) c.vma_lookuphNtauh1hhjhhhNhNubh)}(hhh](h)}(hMstruct vm_area_struct * vma_lookup (struct mm_struct *mm, unsigned long addr)h]h)}(hKstruct vm_area_struct *vma_lookup(struct mm_struct *mm, unsigned long addr)h](j!)}(hj$h]hstruct}(hj+`hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj'`hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM_ ubj)}(h h]h }(hj9`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'`hhhj8`hM_ ubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjJ`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjG`ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjL`modnameN classnameNj\j_)}jb]je)}jX vma_lookupsb c.vma_lookupasbuh1hhj'`hhhj8`hM_ ubj)}(h h]h }(hjk`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'`hhhj8`hM_ ubj2 )}(hj5 h]h*}(hjy`hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj'`hhhj8`hM_ ubh)}(h vma_lookuph]h)}(hjh`h]h vma_lookup}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj'`hhhj8`hM_ ubj)}(h*(struct mm_struct *mm, unsigned long addr)h](j)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hj`hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]h)}(h mm_structh]h mm_struct}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj`modnameN classnameNj\j_)}jb]jf` c.vma_lookupasbuh1hhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj2 )}(hj5 h]h*}(hj`hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj`ubh)}(hmmh]hmm}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hj#ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hlongh]hlong}(hj1ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(h h]h }(hj?ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(haddrh]haddr}(hjMahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubeh}(h]h ]h"]h$]h&]jj uh1jhj'`hhhj8`hM_ ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj#`hhhj8`hM_ ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj8`hM_ hj `hhubj )}(hhh]j9)}(h Find a VMA at a specific addressh]h Find a VMA at a specific address}(hjwahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM_ hjtahhubah}(h]h ]h"]h$]h&]uh1jhj `hhhj8`hM_ ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jaj4jaj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMc hjaubj)}(hhh](j)}(h4``struct mm_struct *mm`` The process address space. h](j)}(h``struct mm_struct *mm``h]j?)}(hjah]hstruct mm_struct *mm}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM` hjaubj)}(hhh]j9)}(hThe process address space.h]hThe process address space.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjahM` hjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahM` hjaubj)}(h)``unsigned long addr`` The user address. h](j)}(h``unsigned long addr``h]j?)}(hjah]hunsigned long addr}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMa hjaubj)}(hhh]j9)}(hThe user address.h]hThe user address.}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhMa hjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjbhMa hjaubeh}(h]h ]h"]h$]h&]uh1jhjaubj9)}(h **Return**h]jz)}(hj,bh]hReturn}(hj.bhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*bubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMc hjaubj9)}(hhjBbubh otherwise.}(hjBbhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMc hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ vma_is_special_huge (C function)c.vma_is_special_hugehNtauh1hhjhhhNhNubh)}(hhh](h)}(h;bool vma_is_special_huge (const struct vm_area_struct *vma)h]h)}(h:bool vma_is_special_huge(const struct vm_area_struct *vma)h](j)}(hj)h]hbool}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhMubh)}(hvma_is_special_hugeh]h)}(hvma_is_special_hugeh]hvma_is_special_huge}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ](jjeh"]h$]h&]jj uh1hhjbhhhjbhMubj)}(h"(const struct vm_area_struct *vma)h]j)}(h const struct vm_area_struct *vmah](j!)}(hjeh]hconst}(hjbhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj!)}(hj$h]hstruct}(hjbhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbmodnameN classnameNj\j_)}jb]je)}jXjbsbc.vma_is_special_hugeasbuh1hhjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2 )}(hj5 h]h*}(hj&chhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjbubh)}(hvmah]hvma}(hj3chhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubah}(h]h ]h"]h$]h&]jj uh1jhjbhhhjbhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj{bhhhjbhMubah}(h]jvbah ](jjeh"]h$]h&]jj)jhuh1hhjbhMhjxbhhubj )}(hhh]j9)}(h4Are transhuge page-table entries considered special?h]h4Are transhuge page-table entries considered special?}(hj]chhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjZchhubah}(h]h ]h"]h$]h&]uh1jhjxbhhhjbhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jucj4jucj5j6j7uh1hhhhjhNhNubjp)}(hXF**Parameters** ``const struct vm_area_struct *vma`` Pointer to the struct vm_area_struct to consider **Description** Whether transhuge page-table entries are considered "special" following the definition in vm_normal_page(). **Return** true if transhuge page-table entries should be considered special, false otherwise.h](j9)}(h**Parameters**h]jz)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}cubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjycubj)}(hhh]j)}(hV``const struct vm_area_struct *vma`` Pointer to the struct vm_area_struct to consider h](j)}(h$``const struct vm_area_struct *vma``h]j?)}(hjch]h const struct vm_area_struct *vma}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjcubj)}(hhh]j9)}(h0Pointer to the struct vm_area_struct to considerh]h0Pointer to the struct vm_area_struct to consider}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjycubj9)}(h**Description**h]jz)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjycubj9)}(hkWhether transhuge page-table entries are considered "special" following the definition in vm_normal_page().h]hoWhether transhuge page-table entries are considered “special” following the definition in vm_normal_page().}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjycubj9)}(h **Return**h]jz)}(hjdh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjycubj9)}(hStrue if transhuge page-table entries should be considered special, false otherwise.h]hStrue if transhuge page-table entries should be considered special, false otherwise.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjycubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_ref_count (C function)c.folio_ref_counthNtauh1hhjhhhNhNubh)}(hhh](h)}(h/int folio_ref_count (const struct folio *folio)h]h)}(h.int folio_ref_count(const struct folio *folio)h](j)}(hinth]hint}(hjEdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAdhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKGubj)}(h h]h }(hjTdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAdhhhjSdhKGubh)}(hfolio_ref_counth]h)}(hfolio_ref_counth]hfolio_ref_count}(hjfdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbdubah}(h]h ](jjeh"]h$]h&]jj uh1hhjAdhhhjSdhKGubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hjdhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj~dubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~dubj!)}(hj$h]hstruct}(hjdhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj~dubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~dubh)}(hhh]h)}(hfolioh]hfolio}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjdmodnameN classnameNj\j_)}jb]je)}jXjhdsbc.folio_ref_countasbuh1hhj~dubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~dubj2 )}(hj5 h]h*}(hjdhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj~dubh)}(hfolioh]hfolio}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~dubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzdubah}(h]h ]h"]h$]h&]jj uh1jhjAdhhhjSdhKGubeh}(h]h ]h"]h$]h&]jj juh1hjjhj=dhhhjSdhKGubah}(h]j8dah ](jjeh"]h$]h&]jj)jhuh1hhjSdhKGhj:dhhubj )}(hhh]j9)}(h"The reference count on this folio.h]h"The reference count on this folio.}(hj ehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKGhjehhubah}(h]h ]h"]h$]h&]uh1jhj:dhhhjSdhKGubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j8ej4j8ej5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjBeh]h Parameters}(hjDehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@eubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKKhjhj_eubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKHhj[eubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjzehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjvehKHhjweubah}(h]h ]h"]h$]h&]uh1jhj[eubeh}(h]h ]h"]h$]h&]uh1jhjvehKHhjXeubah}(h]h ]h"]h$]h&]uh1jhj ah"]h$]h&]uh1j1 hjfubh)}(hfolioh]hfolio}(hj7ghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjfubah}(h]h ]h"]h$]h&]jj uh1jhjfhhhjfhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjfhhhjfhKubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjfhKhjfhhubj )}(hhh]j9)}(h,Attempt to increase the refcount on a folio.h]h,Attempt to increase the refcount on a folio.}(hjaghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhj^ghhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjfhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jygj4jygj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjgubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhMhj}gubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjgh]hstruct folio *folio}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjgubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghKhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghKhjgubah}(h]h ]h"]h$]h&]uh1jhj}gubj9)}(h**Description**h]jz)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjgubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhj}gubj9)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhj}gubj9)}(h **Return**h]jz)}(hjhh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhMhj}gubj9)}(h9True if the reference count was successfully incremented.h]h9True if the reference count was successfully incremented.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhMhj}gubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌis_highmem (C function) c.is_highmemhNtauh1hhjhhhNhNubh)}(hhh](h)}(h"int is_highmem (struct zone *zone)h]h)}(h!int is_highmem(struct zone *zone)h](j)}(hinth]hint}(hjIhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMSubj)}(h h]h }(hjXhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhhjWhhMSubh)}(h is_highmemh]h)}(h is_highmemh]h is_highmem}(hjjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfhubah}(h]h ](jjeh"]h$]h&]jj uh1hhjEhhhhjWhhMSubj)}(h(struct zone *zone)h]j)}(hstruct zone *zoneh](j!)}(hj$h]hstruct}(hjhhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]h)}(hzoneh]hzone}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]je)}jXjlhsb c.is_highmemasbuh1hhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2 )}(hj5 h]h*}(hjhhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhubh)}(hzoneh]hzone}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~hubah}(h]h ]h"]h$]h&]jj uh1jhjEhhhhjWhhMSubeh}(h]h ]h"]h$]h&]jj juh1hjjhjAhhhhjWhhMSubah}(h]jhhhubj )}(hhh]j9)}(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.}(hj ihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMShjihhubah}(h]h ]h"]h$]h&]uh1jhj>hhhhjWhhMSubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j!ij4j!ij5j6j7uh1hhhhjhNhNubjp)}(hv**Parameters** ``struct zone *zone`` pointer to struct zone variable **Return** 1 for a highmem zone, 0 otherwiseh](j9)}(h**Parameters**h]jz)}(hj+ih]h Parameters}(hj-ihhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj)iubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMWhj%iubj)}(hhh]j)}(h6``struct zone *zone`` pointer to struct zone variable h](j)}(h``struct zone *zone``h]j?)}(hjJih]hstruct zone *zone}(hjLihhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMVhjDiubj)}(hhh]j9)}(hpointer to struct zone variableh]hpointer to struct zone variable}(hjcihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_ihMVhj`iubah}(h]h ]h"]h$]h&]uh1jhjDiubeh}(h]h ]h"]h$]h&]uh1jhj_ihMVhjAiubah}(h]h ]h"]h$]h&]uh1jhj%iubj9)}(h **Return**h]jz)}(hjih]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMXhj%iubj9)}(h!1 for a highmem zone, 0 otherwiseh]h!1 for a highmem zone, 0 otherwise}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMWhj%iubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfor_each_online_pgdat (C macro)c.for_each_online_pgdathNtauh1hhjhhhNhNubh)}(hhh](h)}(hfor_each_online_pgdath]h)}(hfor_each_online_pgdath]h)}(hfor_each_online_pgdath]h)}(hjih]hfor_each_online_pgdat}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ](jjeh"]h$]h&]jj uh1hhjihhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM{ubah}(h]h ]h"]h$]h&]jj juh1hjjhjihhhjihM{ubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihM{hjihhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjihhhjihM{ubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jij4jij5j6j7uh1hhhhjhNhNubj9)}(h!``for_each_online_pgdat (pgdat)``h]j?)}(hjjh]hfor_each_online_pgdat (pgdat)}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM}hjhhubjU)}(h.helper macro to iterate over all online nodes h]j9)}(h-helper macro to iterate over all online nodesh]h-helper macro to iterate over all online nodes}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM{hjjubah}(h]h ]h"]h$]h&]uh1jThj(jhM{hjhhubjp)}(h;**Parameters** ``pgdat`` pointer to a pg_data_t variableh](j9)}(h**Parameters**h]jz)}(hj5jh]h Parameters}(hj7jhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3jubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj/jubj)}(hhh]j)}(h)``pgdat`` pointer to a pg_data_t variableh](j)}(h ``pgdat``h]j?)}(hjTjh]hpgdat}(hjVjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjNjubj)}(hhh]j9)}(hpointer to a pg_data_t variableh]hpointer to a pg_data_t variable}(hjmjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM|hjjjubah}(h]h ]h"]h$]h&]uh1jhjNjubeh}(h]h ]h"]h$]h&]uh1jhjijhMhjKjubah}(h]h ]h"]h$]h&]uh1jhj/jubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfor_each_zone (C macro)c.for_each_zonehNtauh1hhjhhhNhNubh)}(hhh](h)}(h for_each_zoneh]h)}(h for_each_zoneh]h)}(h for_each_zoneh]h)}(hjjh]h for_each_zone}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubah}(h]h ]h"]h$]h&]jj juh1hjjhjjhhhjjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jjj4jjj5j6j7uh1hhhhjhNhNubj9)}(h``for_each_zone (zone)``h]j?)}(hjjh]hfor_each_zone (zone)}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjhhubjU)}(h.helper macro to iterate over all memory zones h]j9)}(h-helper macro to iterate over all memory zonesh]h-helper macro to iterate over all memory zones}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjjubah}(h]h ]h"]h$]h&]uh1jThj khMhjhhubjp)}(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](j9)}(h**Parameters**h]jz)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjkubj)}(hhh]j)}(h)``zone`` pointer to struct zone variable h](j)}(h``zone``h]j?)}(hj8kh]hzone}(hj:khhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6kubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj2kubj)}(hhh]j9)}(hpointer to struct zone variableh]hpointer to struct zone variable}(hjQkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMkhMhjNkubah}(h]h ]h"]h$]h&]uh1jhj2kubeh}(h]h ]h"]h$]h&]uh1jhjMkhMhj/kubah}(h]h ]h"]h$]h&]uh1jhjkubj9)}(h**Description**h]jz)}(hjskh]h Description}(hjukhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqkubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjkubj9)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ next_zones_zonelist (C function)c.next_zones_zonelisthNtauh1hhjhhhNhNubh)}(hhh](h)}(hkstruct zoneref * next_zones_zonelist (struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h]h)}(histruct zoneref *next_zones_zonelist(struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j!)}(hj$h]hstruct}(hjkhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjkhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhjkhMubh)}(hhh]h)}(hzonerefh]hzoneref}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjkmodnameN classnameNj\j_)}jb]je)}jXnext_zones_zonelistsbc.next_zones_zonelistasbuh1hhjkhhhjkhMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhjkhMubj2 )}(hj5 h]h*}(hjlhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjkhhhjkhMubh)}(hnext_zones_zonelisth]h)}(hjkh]hnext_zones_zonelist}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ](jjeh"]h$]h&]jj uh1hhjkhhhjkhMubj)}(hF(struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j)}(hstruct zoneref *zh](j!)}(hj$h]hstruct}(hj2lhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj.lubj)}(h h]h }(hj?lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.lubh)}(hhh]h)}(hzonerefh]hzoneref}(hjPlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMlubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjRlmodnameN classnameNj\j_)}jb]jkc.next_zones_zonelistasbuh1hhj.lubj)}(h h]h }(hjnlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.lubj2 )}(hj5 h]h*}(hj|lhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj.lubh)}(hzh]hz}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.lubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj*lubj)}(henum zone_type highest_zoneidxh](j!)}(hj5h]henum}(hjlhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]h)}(h zone_typeh]h zone_type}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjlmodnameN classnameNj\j_)}jb]jkc.next_zones_zonelistasbuh1hhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhighest_zoneidxh]hhighest_zoneidx}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj*lubj)}(hnodemask_t *nodesh](h)}(hhh]h)}(h nodemask_th]h nodemask_t}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj mmodnameN classnameNj\j_)}jb]jkc.next_zones_zonelistasbuh1hhjmubj)}(h h]h }(hj&mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2 )}(hj5 h]h*}(hj4mhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjmubh)}(hnodesh]hnodes}(hjAmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj*lubeh}(h]h ]h"]h$]h&]jj uh1jhjkhhhjkhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjkhhhjkhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjkhMhjkhhubj )}(hhh]j9)}(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}(hjkmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjhmhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjkhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jmj4jmj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjmubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjmubj)}(hhh](j)}(hI``struct zoneref *z`` The cursor used as a starting point for the search h](j)}(h``struct zoneref *z``h]j?)}(hjmh]hstruct zoneref *z}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjmubj)}(hhh]j9)}(h2The cursor used as a starting point for the searchh]h2The cursor used as a starting point for the search}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubj)}(hP``enum zone_type highest_zoneidx`` The zone index of the highest zone to return h](j)}(h"``enum zone_type highest_zoneidx``h]j?)}(hjmh]henum zone_type highest_zoneidx}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjmubj)}(hhh]j9)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubj)}(hG``nodemask_t *nodes`` An optional nodemask to filter the zonelist with h](j)}(h``nodemask_t *nodes``h]j?)}(hjnh]hnodemask_t *nodes}(hj nhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjnubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjnubj)}(hhh]j9)}(h0An optional nodemask to filter the zonelist withh]h0An optional nodemask to filter the zonelist with}(hj7nhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj3nhMhj4nubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhj3nhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjmubj9)}(h**Description**h]jz)}(hjYnh]h Description}(hj[nhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjWnubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjmubj9)}(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.}(hjonhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjmubj9)}(h **Return**h]jz)}(hjnh]hReturn}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~nubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjmubj9)}(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}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!first_zones_zonelist (C function)c.first_zones_zonelisthNtauh1hhjhhhNhNubh)}(hhh](h)}(htstruct zoneref * first_zones_zonelist (struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h]h)}(hrstruct zoneref *first_zones_zonelist(struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j!)}(hj$h]hstruct}(hjnhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjnhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhMubh)}(hhh]h)}(hzonerefh]hzoneref}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjnmodnameN classnameNj\j_)}jb]je)}jXfirst_zones_zonelistsbc.first_zones_zonelistasbuh1hhjnhhhjnhMubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhMubj2 )}(hj5 h]h*}(hjohhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjnhhhjnhMubh)}(hfirst_zones_zonelisth]h)}(hjoh]hfirst_zones_zonelist}(hj$ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj oubah}(h]h ](jjeh"]h$]h&]jj uh1hhjnhhhjnhMubj)}(hN(struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j)}(hstruct zonelist *zonelisth](j!)}(hj$h]hstruct}(hj?ohhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj;oubj)}(h h]h }(hjLohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;oubh)}(hhh]h)}(hzonelisth]hzonelist}(hj]ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_omodnameN classnameNj\j_)}jb]joc.first_zones_zonelistasbuh1hhj;oubj)}(h h]h }(hj{ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;oubj2 )}(hj5 h]h*}(hjohhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj;oubh)}(hzonelisth]hzonelist}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;oubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7oubj)}(henum zone_type highest_zoneidxh](j!)}(hj5h]henum}(hjohhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]h)}(h zone_typeh]h zone_type}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjomodnameN classnameNj\j_)}jb]joc.first_zones_zonelistasbuh1hhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhighest_zoneidxh]hhighest_zoneidx}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7oubj)}(hnodemask_t *nodesh](h)}(hhh]h)}(h nodemask_th]h nodemask_t}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjpmodnameN classnameNj\j_)}jb]joc.first_zones_zonelistasbuh1hhjpubj)}(h h]h }(hj3phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2 )}(hj5 h]h*}(hjAphhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjpubh)}(hnodesh]hnodes}(hjNphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7oubeh}(h]h ]h"]h$]h&]jj uh1jhjnhhhjnhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjnhhhjnhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjnhMhjnhhubj )}(hhh]j9)}(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}(hjxphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjuphhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jpj4jpj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjpubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjpubj)}(hhh](j)}(hI``struct zonelist *zonelist`` The zonelist to search for a suitable zone h](j)}(h``struct zonelist *zonelist``h]j?)}(hjph]hstruct zonelist *zonelist}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjpubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjpubj)}(hhh]j9)}(h*The zonelist to search for a suitable zoneh]h*The zonelist to search for a suitable zone}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhjpubj)}(hP``enum zone_type highest_zoneidx`` The zone index of the highest zone to return h](j)}(h"``enum zone_type highest_zoneidx``h]j?)}(hjph]henum zone_type highest_zoneidx}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjpubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjpubj)}(hhh]j9)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjpubj)}(hG``nodemask_t *nodes`` An optional nodemask to filter the zonelist with h](j)}(h``nodemask_t *nodes``h]j?)}(hj+qh]hnodemask_t *nodes}(hj-qhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj)qubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj%qubj)}(hhh]j9)}(h0An optional nodemask to filter the zonelist withh]h0An optional nodemask to filter the zonelist with}(hjDqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@qhMhjAqubah}(h]h ]h"]h$]h&]uh1jhj%qubeh}(h]h ]h"]h$]h&]uh1jhj@qhMhjpubeh}(h]h ]h"]h$]h&]uh1jhjpubj9)}(h**Description**h]jz)}(hjfqh]h Description}(hjhqhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjdqubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjpubj9)}(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.}(hj|qhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjpubj9)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjpubj9)}(h **Return**h]jz)}(hjqh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjpubj9)}(h1Zoneref pointer for the first suitable zone foundh]h1Zoneref pointer for the first suitable zone found}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)for_each_zone_zonelist_nodemask (C macro)!c.for_each_zone_zonelist_nodemaskhNtauh1hhjhhhNhNubh)}(hhh](h)}(hfor_each_zone_zonelist_nodemaskh]h)}(hfor_each_zone_zonelist_nodemaskh]h)}(hfor_each_zone_zonelist_nodemaskh]h)}(hjqh]hfor_each_zone_zonelist_nodemask}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ](jjeh"]h$]h&]jj uh1hhjqhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubah}(h]h ]h"]h$]h&]jj juh1hjjhjqhhhjqhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjqhMhjqhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjqhMubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jrj4jrj5j6j7uh1hhhhjhNhNubj9)}(hG``for_each_zone_zonelist_nodemask (zone, z, zlist, highidx, nodemask)``h]j?)}(hjrh]hCfor_each_zone_zonelist_nodemask (zone, z, zlist, highidx, nodemask)}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjhhubjU)}(hlhelper macro to iterate over valid zones in a zonelist at or below a given zone index and within a nodemask h]j9)}(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}(hj1rhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj-rubah}(h]h ]h"]h$]h&]uh1jThj?rhMhjhhubjp)}(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](j9)}(h**Parameters**h]jz)}(hjLrh]h Parameters}(hjNrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJrubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjFrubj)}(hhh](j)}(h*``zone`` The current zone in the iterator h](j)}(h``zone``h]j?)}(hjkrh]hzone}(hjmrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjirubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjerubj)}(hhh]j9)}(h The current zone in the iteratorh]h The current zone in the iterator}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjerubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjbrubj)}(hD``z`` The current pointer within zonelist->_zonerefs being iterated h](j)}(h``z``h]j?)}(hjrh]hz}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjrubj)}(hhh]j9)}(h=The current pointer within zonelist->_zonerefs being iteratedh]h=The current pointer within zonelist->_zonerefs being iterated}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjbrubj)}(h&``zlist`` The zonelist being iterated h](j)}(h ``zlist``h]j?)}(hjrh]hzlist}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjrubj)}(hhh]j9)}(hThe zonelist being iteratedh]hThe zonelist being iterated}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjbrubj)}(h9``highidx`` The zone index of the highest zone to return h](j)}(h ``highidx``h]j?)}(hjsh]hhighidx}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjsubj)}(hhh]j9)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hj/shhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+shMhj,subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj+shMhjbrubj)}(h/``nodemask`` Nodemask allowed by the allocator h](j)}(h ``nodemask``h]j?)}(hjOsh]hnodemask}(hjQshhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjIsubj)}(hhh]j9)}(h!Nodemask allowed by the allocatorh]h!Nodemask allowed by the allocator}(hjhshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjdshMhjesubah}(h]h ]h"]h$]h&]uh1jhjIsubeh}(h]h ]h"]h$]h&]uh1jhjdshMhjbrubeh}(h]h ]h"]h$]h&]uh1jhjFrubj9)}(h**Description**h]jz)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjsubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjFrubj9)}(hbThis iterator iterates though all zones at or below a given zone index and within a given nodemaskh]hbThis iterator iterates though all zones at or below a given zone index and within a given nodemask}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjFrubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ for_each_zone_zonelist (C macro)c.for_each_zone_zonelisthNtauh1hhjhhhNhNubh)}(hhh](h)}(hfor_each_zone_zonelisth]h)}(hfor_each_zone_zonelisth]h)}(hfor_each_zone_zonelisth]h)}(hjsh]hfor_each_zone_zonelist}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ](jjeh"]h$]h&]jj uh1hhjshhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubah}(h]h ]h"]h$]h&]jj juh1hjjhjshhhjshMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjshMhjshhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjshhhjshMubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jsj4jsj5j6j7uh1hhhhjhNhNubj9)}(h4``for_each_zone_zonelist (zone, z, zlist, highidx)``h]j?)}(hjth]h0for_each_zone_zonelist (zone, z, zlist, highidx)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjtubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjhhubjU)}(hVhelper macro to iterate over valid zones in a zonelist at or below a given zone index h]j9)}(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}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjtubah}(h]h ]h"]h$]h&]uh1jThj-thMhjhhubjp)}(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](j9)}(h**Parameters**h]jz)}(hj:th]h Parameters}(hjhjWtubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjStubj)}(hhh]j9)}(h The current zone in the iteratorh]h The current zone in the iterator}(hjrthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnthMhjotubah}(h]h ]h"]h$]h&]uh1jhjStubeh}(h]h ]h"]h$]h&]uh1jhjnthMhjPtubj)}(h@``z`` The current pointer within zonelist->zones being iterated h](j)}(h``z``h]j?)}(hjth]hz}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjtubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjtubj)}(hhh]j9)}(h9The current pointer within zonelist->zones being iteratedh]h9The current pointer within zonelist->zones being iterated}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjPtubj)}(h&``zlist`` The zonelist being iterated h](j)}(h ``zlist``h]j?)}(hjth]hzlist}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjtubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjtubj)}(hhh]j9)}(hThe zonelist being iteratedh]hThe zonelist being iterated}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMhjPtubj)}(h9``highidx`` The zone index of the highest zone to return h](j)}(h ``highidx``h]j?)}(hjuh]hhighidx}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjuubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjtubj)}(hhh]j9)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjPtubeh}(h]h ]h"]h$]h&]uh1jhj4tubj9)}(h**Description**h]jz)}(hj?uh]h Description}(hjAuhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj=uubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj4tubj9)}(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.}(hjUuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj4tubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpfn_valid (C function) c.pfn_validhNtauh1hhjhhhNhNubh)}(hhh](h)}(h!int pfn_valid (unsigned long pfn)h]h)}(h int pfn_valid(unsigned long pfn)h](j)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMWubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjuhMWubh)}(h pfn_validh]h)}(h pfn_validh]h pfn_valid}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ](jjeh"]h$]h&]jj uh1hhjuhhhjuhMWubj)}(h(unsigned long pfn)h]j)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hpfnh]hpfn}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjuubah}(h]h ]h"]h$]h&]jj uh1jhjuhhhjuhMWubeh}(h]h ]h"]h$]h&]jj juh1hjjhj|uhhhjuhMWubah}(h]jwuah ](jjeh"]h$]h&]jj)jhuh1hhjuhMWhjyuhhubj )}(hhh]j9)}(h4check if there is a valid memory map entry for a PFNh]h4check if there is a valid memory map entry for a PFN}(hj#vhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMWhj vhhubah}(h]h ]h"]h$]h&]uh1jhjyuhhhjuhMWubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j;vj4j;vj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjEvh]h Parameters}(hjGvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCvubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM[hj?vubj)}(hhh]j)}(h5``unsigned long pfn`` the page frame number to check h](j)}(h``unsigned long pfn``h]j?)}(hjdvh]hunsigned long pfn}(hjfvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMXhj^vubj)}(hhh]j9)}(hthe page frame number to checkh]hthe page frame number to check}(hj}vhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjyvhMXhjzvubah}(h]h ]h"]h$]h&]uh1jhj^vubeh}(h]h ]h"]h$]h&]uh1jhjyvhMXhj[vubah}(h]h ]h"]h$]h&]uh1jhj?vubj9)}(h**Description**h]jz)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMZhj?vubj9)}(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 }(hjvhhhNhNubjz)}(h**pfn**h]hpfn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubhl. Note, that availability of the memory map entry does not imply that there is actual usable memory at that }(hjvhhhNhNubjz)}(h**pfn**h]hpfn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubhA. The struct page may represent a hole or an unusable page frame.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMYhj?vubj9)}(h **Return**h]jz)}(hjvh]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM^hj?vubj9)}(h71 for PFNs that have memory map entries and 0 otherwiseh]h71 for PFNs that have memory map entries and 0 otherwise}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM_hj?vubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mapping (C function)c.folio_mappinghNtauh1hhjhhhNhNubh)}(hhh](h)}(h:struct address_space * folio_mapping (struct folio *folio)h]h)}(h8struct address_space *folio_mapping(struct folio *folio)h](j!)}(hj$h]hstruct}(hj/whhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj+whhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMubj)}(h h]h }(hj=whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+whhhj ah"]h$]h&]uh1j1 hj+whhhj ah"]h$]h&]uh1j1 hjwubh)}(hfolioh]hfolio}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjwubah}(h]h ]h"]h$]h&]jj uh1jhj+whhhjhjixubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjexubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjexubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjbxubah}(h]h ]h"]h$]h&]uh1jhjFxubj9)}(h**Description**h]jz)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjFxubj9)}(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).}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjFxubj9)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjFxubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__anon_vma_prepare (C function)c.__anon_vma_preparehNtauh1hhjhhhNhNubh)}(hhh](h)}(h3int __anon_vma_prepare (struct vm_area_struct *vma)h]h)}(h2int __anon_vma_prepare(struct vm_area_struct *vma)h](j)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKubj)}(h h]h }(hj yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjyhKubh)}(h__anon_vma_prepareh]h)}(h__anon_vma_prepareh]h__anon_vma_prepare}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ](jjeh"]h$]h&]jj uh1hhjxhhhjyhKubj)}(h(struct vm_area_struct *vma)h]j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hj7yhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj3yubj)}(h h]h }(hjDyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3yubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjUyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRyubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjWymodnameN classnameNj\j_)}jb]je)}jXjysbc.__anon_vma_prepareasbuh1hhj3yubj)}(h h]h }(hjuyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3yubj2 )}(hj5 h]h*}(hjyhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj3yubh)}(hvmah]hvma}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3yubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/yubah}(h]h ]h"]h$]h&]jj uh1jhjxhhhjyhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjxhhhjyhKubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjyhKhjxhhubj )}(hhh]j9)}(h%attach an anon_vma to a memory regionh]h%attach an anon_vma to a memory region}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjyhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjyhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jyj4jyj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjyubj)}(hhh]j)}(h=``struct vm_area_struct *vma`` the memory region in question h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjyh]hstruct vm_area_struct *vma}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjyubj)}(hhh]j9)}(hthe memory region in questionh]hthe memory region in question}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjzhKhjzubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjzhKhjyubah}(h]h ]h"]h$]h&]uh1jhjyubj9)}(h**Description**h]jz)}(hj6zh]h Description}(hj8zhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4zubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjyubj9)}(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.}(hjLzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjyubj9)}(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.}(hj[zhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjyubj9)}(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).}(hjjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjyubj9)}(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.}(hjyzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ page_address_in_vma (C function)c.page_address_in_vmahNtauh1hhjhhhNhNubh)}(hhh](h)}(hxunsigned long page_address_in_vma (const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h]h)}(hwunsigned long page_address_in_vma(const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h](j)}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhMubj)}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhMubh)}(hpage_address_in_vmah]h)}(hpage_address_in_vmah]hpage_address_in_vma}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ](jjeh"]h$]h&]jj uh1hhjzhhhjzhMubj)}(hV(const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h](j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hj{hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjzubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj!)}(hj$h]hstruct}(hj{hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjzubj)}(h h]h }(hj){hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hhh]h)}(hfolioh]hfolio}(hj:{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj<{modnameN classnameNj\j_)}jb]je)}jXjzsbc.page_address_in_vmaasbuh1hhjzubj)}(h h]h }(hjZ{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj2 )}(hj5 h]h*}(hjh{hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjzubh)}(hfolioh]hfolio}(hju{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubj)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hj{hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj!)}(hj$h]hstruct}(hj{hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]h)}(hpageh]hpage}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{modnameN classnameNj\j_)}jb]jV{c.page_address_in_vmaasbuh1hhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj2 )}(hj5 h]h*}(hj{hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj{ubh)}(hpageh]hpage}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubj)}(h const struct vm_area_struct *vmah](j!)}(hjeh]hconst}(hj|hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|ubj)}(h h]h }(hj&|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj!)}(hj$h]hstruct}(hj4|hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|ubj)}(h h]h }(hjA|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjR|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjO|ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjT|modnameN classnameNj\j_)}jb]jV{c.page_address_in_vmaasbuh1hhj|ubj)}(h h]h }(hjp|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2 )}(hj5 h]h*}(hj~|hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|ubh)}(hvmah]hvma}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubeh}(h]h ]h"]h$]h&]jj uh1jhjzhhhjzhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjzhhhjzhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjzhhubj )}(hhh]j9)}(h*The virtual address of a page in this VMA.h]h*The virtual address of a page in this VMA.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j|j4j|j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj|ubj)}(hhh](j)}(h=``const struct folio *folio`` The folio containing the page. h](j)}(h``const struct folio *folio``h]j?)}(hj|h]hconst struct folio *folio}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj|ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj|ubj)}(hhh]j9)}(hThe folio containing the page.h]hThe folio containing the page.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj }hMhj }ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj }hMhj|ubj)}(h7``const struct page *page`` The page within the folio. h](j)}(h``const struct page *page``h]j?)}(hj/}h]hconst struct page *page}(hj1}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj-}ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj)}ubj)}(hhh]j9)}(hThe page within the folio.h]hThe page within the folio.}(hjH}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjD}hMhjE}ubah}(h]h ]h"]h$]h&]uh1jhj)}ubeh}(h]h ]h"]h$]h&]uh1jhjD}hMhj|ubj)}(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]j?)}(hjh}h]h const struct vm_area_struct *vma}(hjj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjf}ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjb}ubj)}(hhh]j9)}(h'The VMA we need to know the address in.h]h'The VMA we need to know the address in.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj}}hMhj~}ubah}(h]h ]h"]h$]h&]uh1jhjb}ubeh}(h]h ]h"]h$]h&]uh1jhj}}hMhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|ubj9)}(h**Description**h]jz)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj|ubj9)}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj|ubj9)}(h **Context**h]jz)}(hj}h]hContext}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj|ubj9)}(hCaller should hold a reference to the folio. Caller should hold a lock (eg the i_mmap_lock or the mmap_lock) which keeps the VMA from being altered.h]hCaller should hold a reference to the folio. Caller should hold a lock (eg the i_mmap_lock or the mmap_lock) which keeps the VMA from being altered.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj|ubj9)}(h **Return**h]jz)}(hj}h]hReturn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj|ubj9)}(h:The virtual address corresponding to this page in the VMA.h]h:The virtual address corresponding to this page in the VMA.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_referenced (C function)c.folio_referencedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hiint folio_referenced (struct folio *folio, int is_locked, struct mem_cgroup *memcg, vm_flags_t *vm_flags)h]h)}(hhint folio_referenced(struct folio *folio, int is_locked, struct mem_cgroup *memcg, vm_flags_t *vm_flags)h](j)}(hinth]hint}(hj6~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2~hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjE~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2~hhhjD~hMubh)}(hfolio_referencedh]h)}(hfolio_referencedh]hfolio_referenced}(hjW~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjS~ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj2~hhhjD~hMubj)}(hT(struct folio *folio, int is_locked, struct mem_cgroup *memcg, vm_flags_t *vm_flags)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjs~hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjo~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo~ubh)}(hhh]h)}(hfolioh]hfolio}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]je)}jXjY~sbc.folio_referencedasbuh1hhjo~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo~ubj2 )}(hj5 h]h*}(hj~hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjo~ubh)}(hfolioh]hfolio}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjo~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjk~ubj)}(h int is_lockedh](j)}(hinth]hint}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(h is_lockedh]h is_locked}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjk~ubj)}(hstruct mem_cgroup *memcgh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]j~c.folio_referencedasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjdhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmemcgh]hmemcg}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjk~ubj)}(hvm_flags_t *vm_flagsh](h)}(hhh]h)}(h vm_flags_th]h vm_flags_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j~c.folio_referencedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvm_flagsh]hvm_flags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjk~ubeh}(h]h ]h"]h$]h&]jj uh1jhj2~hhhjD~hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj.~hhhjD~hMubah}(h]j)~ah ](jjeh"]h$]h&]jj)jhuh1hhjD~hMhj+~hhubj )}(hhh]j9)}(h!Test if the folio was referenced.h]h!Test if the folio was referenced.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj+~hhhjD~hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubj)}(hhh](j)}(h+``struct folio *folio`` The folio to test. h](j)}(h``struct folio *folio``h]j?)}(hj1h]hstruct folio *folio}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj+ubj)}(hhh]j9)}(hThe folio to test.h]hThe folio to test.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj(ubj)}(h2``int is_locked`` Caller holds lock on the folio. h](j)}(h``int is_locked``h]j?)}(hjjh]h int is_locked}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjhubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjdubj)}(hhh]j9)}(hCaller holds lock on the folio.h]hCaller holds lock on the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhj(ubj)}(h2``struct mem_cgroup *memcg`` target memory cgroup h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hjh]hstruct mem_cgroup *memcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(htarget memory cgrouph]htarget memory cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj(ubj)}(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]j?)}(hj܀h]hvm_flags_t *vm_flags}(hjހhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjڀubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjրubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjրubeh}(h]h ]h"]h$]h&]uh1jhjhMhj(ubeh}(h]h ]h"]h$]h&]uh1jhj ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubj9)}(hh]hReturn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj<ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubj9)}(htThe number of mappings which referenced the folio. Return -1 if the function bailed out due to rmap lock contention.h]htThe number of mappings which referenced the folio. Return -1 if the function bailed out due to rmap lock contention.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$mapping_wrprotect_range (C function)c.mapping_wrprotect_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(huint mapping_wrprotect_range (struct address_space *mapping, pgoff_t pgoff, unsigned long pfn, unsigned long nr_pages)h]h)}(htint mapping_wrprotect_range(struct address_space *mapping, pgoff_t pgoff, unsigned long pfn, unsigned long nr_pages)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmapping_wrprotect_rangeh]h)}(hmapping_wrprotect_rangeh]hmapping_wrprotect_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hY(struct address_space *mapping, pgoff_t pgoff, unsigned long pfn, unsigned long nr_pages)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj́hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjށhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjہubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.mapping_wrprotect_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t pgoffh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj7modnameN classnameNj\j_)}jb]jc.mapping_wrprotect_rangeasbuh1hhj.ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hpgoffh]hpgoff}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long pfnh](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&]uh1jhjvubh)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hj˂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǂubj)}(h h]h }(hjقhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǂubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǂubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǂubh)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjǂubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj{hhhjhMubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjxhhubj )}(hhh]j9)}(h0Write-protect all mappings in a specified range.h]h0Write-protect all mappings in a specified range.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj*hhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jEj4jEj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct address_space *mapping`` The mapping whose reverse mapping should be traversed. ``pgoff_t pgoff`` The page offset at which **pfn** is mapped within **mapping**. ``unsigned long pfn`` The PFN of the page mapped in **mapping** at **pgoff**. ``unsigned long nr_pages`` The number of physically contiguous base pages spanned. **Description** Traverses the reverse mapping, finding all VMAs which contain a shared mapping of the pages in the specified range in **mapping**, and write-protects them (that is, updates the page tables to mark the mappings read-only such that a write protection fault arises when the mappings are written to). The **pfn** value need not refer to a folio, but rather can reference a kernel allocation which is mapped into userland. We therefore do not require that the page maps to a folio with a valid mapping or index field, rather the caller specifies these in **mapping** and **pgoff**. **Return** the number of write-protected PTEs, or an error.h](j9)}(h**Parameters**h]jz)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjIubj)}(hhh](j)}(hY``struct address_space *mapping`` The mapping whose reverse mapping should be traversed. h](j)}(h!``struct address_space *mapping``h]j?)}(hjnh]hstruct address_space *mapping}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjlubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjhubj)}(hhh]j9)}(h6The mapping whose reverse mapping should be traversed.h]h6The mapping whose reverse mapping should be traversed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(hQ``pgoff_t pgoff`` The page offset at which **pfn** is mapped within **mapping**. h](j)}(h``pgoff_t pgoff``h]j?)}(hjh]h pgoff_t pgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(h>The page offset at which **pfn** is mapped within **mapping**.h](hThe page offset at which }(hjhhhNhNubjz)}(h**pfn**h]hpfn}(hjȃhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is mapped within }(hjhhhNhNubjz)}(h **mapping**h]hmapping}(hjڃhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(hN``unsigned long pfn`` The PFN of the page mapped in **mapping** at **pgoff**. h](j)}(h``unsigned long pfn``h]j?)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(h7The PFN of the page mapped in **mapping** at **pgoff**.h](hThe PFN of the page mapped in }(hjhhhNhNubjz)}(h **mapping**h]hmapping}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh at }(hjhhhNhNubjz)}(h **pgoff**h]hpgoff}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(hS``unsigned long nr_pages`` The number of physically contiguous base pages spanned. h](j)}(h``unsigned long nr_pages``h]j?)}(hjah]hunsigned long nr_pages}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj[ubj)}(hhh]j9)}(h7The number of physically contiguous base pages spanned.h]h7The number of physically contiguous base pages spanned.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjeubeh}(h]h ]h"]h$]h&]uh1jhjIubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjIubj9)}(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 }(hjhhhNhNubjz)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh, 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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjIubj9)}(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 }(hjӄhhhNhNubjz)}(h**pfn**h]hpfn}(hjۄhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjӄubh 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 }(hjӄhhhNhNubjz)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjӄubh and }(hjӄhhhNhNubjz)}(h **pgoff**h]hpgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjӄubh.}(hjӄhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjIubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjIubj9)}(h0the number of write-protected PTEs, or an error.h]h0the number of write-protected PTEs, or an error.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpfn_mkclean_range (C function)c.pfn_mkclean_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hlint pfn_mkclean_range (unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff, struct vm_area_struct *vma)h]h)}(hkint pfn_mkclean_range(unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff, struct vm_area_struct *vma)h](j)}(hinth]hint}(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 }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjmhMubh)}(hpfn_mkclean_rangeh]h)}(hpfn_mkclean_rangeh]hpfn_mkclean_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj[hhhjmhMubj)}(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 }(hjƅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hpfnh]hpfn}(hjԅhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnr_pagesh]hnr_pages}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t pgoffh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjCmodnameN classnameNj\j_)}jb]je)}jXjsbc.pfn_mkclean_rangeasbuh1hhj:ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hpgoffh]hpgoff}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j]c.pfn_mkclean_rangeasbuh1hhjubj)}(h h]h }(hjĆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj҆hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hj߆hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj[hhhjmhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjWhhhjmhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjmhMhjThhubj )}(hhh]j9)}(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 [}(hj hhhNhNubjz)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh, }(hj hhhNhNubjz)}(h**pfn**h]hpfn}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh + }(hj hhhNhNubjz)}(h **nr_pages**h]hnr_pages}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh) at the specific offset (}(hj hhhNhNubjz)}(h **pgoff**h]hpgoff}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh ) within the }(hj hhhNhNubjz)}(h**vma**h]hvma}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh[ of shared mappings. And since clean PTEs should also be readonly, write protects them too.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j{j4j{j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/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]j?)}(hjh]hunsigned long pfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(h start pfn.h]h start pfn.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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]j?)}(hj݇h]hunsigned long nr_pages}(hj߇hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjۇubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjׇubj)}(hhh]j9)}(hhj&ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj"ubj)}(hhh]j9)}(h)page offset that the **pfn** mapped with.h](hpage offset that the }(hjAhhhNhNubjz)}(h**pfn**h]hpfn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubh mapped with.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubj)}(h?``struct vm_area_struct *vma`` vma that **pfn** mapped within. h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjsh]hstruct vm_area_struct *vma}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjqubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjmubj)}(hhh]j9)}(hvma that **pfn** mapped within.h](h vma that }(hjhhhNhNubjz)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh mapped within.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjˆhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj9)}(h4Returns the number of cleaned PTEs (including PMDs).h]h4Returns the number of cleaned PTEs (including PMDs).}(hjֈhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!folio_move_anon_rmap (C function)c.folio_move_anon_rmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hKvoid folio_move_anon_rmap (struct folio *folio, struct vm_area_struct *vma)h]h)}(hJvoid folio_move_anon_rmap(struct folio *folio, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM*ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM*ubh)}(hfolio_move_anon_rmaph]h)}(hfolio_move_anon_rmaph]hfolio_move_anon_rmap}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM*ubj)}(h1(struct folio *folio, struct vm_area_struct *vma)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjBhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]h)}(hfolioh]hfolio}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbmodnameN classnameNj\j_)}jb]je)}jXj(sbc.folio_move_anon_rmapasbuh1hhj>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj>ubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hj҉hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjωubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjԉmodnameN classnameNj\j_)}jb]j|c.folio_move_anon_rmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM*ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM*ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM*hjhhubj )}(hhh]j9)}(hmove a folio to our anon_vmah]hmove a folio to our anon_vma}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM*hj2hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM*ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jMj4jMj5j6j7uh1hhhhjhNhNubjp)}(hXn**Parameters** ``struct folio *folio`` The folio to move to our anon_vma ``struct vm_area_struct *vma`` The vma the folio belongs to **Description** When a folio belongs exclusively to one process after a COW event, that folio can be moved into the anon_vma that belongs to just that process, so the rmap code will not search the parent or sibling processes.h](j9)}(h**Parameters**h]jz)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM.hjQubj)}(hhh](j)}(h:``struct folio *folio`` The folio to move to our anon_vma h](j)}(h``struct folio *folio``h]j?)}(hjvh]hstruct folio *folio}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjtubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM+hjpubj)}(hhh]j9)}(h!The folio to move to our anon_vmah]h!The folio to move to our anon_vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjmubj)}(h<``struct vm_area_struct *vma`` The vma the folio belongs to h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM,hjubj)}(hhh]j9)}(hThe vma the folio belongs toh]hThe vma the folio belongs to}(hjȊhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjĊhM,hjŊubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjĊhM,hjmubeh}(h]h ]h"]h$]h&]uh1jhjQubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM.hjQubj9)}(hWhen a folio belongs exclusively to one process after a COW event, that folio can be moved into the anon_vma that belongs to just that process, so the rmap code will not search the parent or sibling processes.h]hWhen a folio belongs exclusively to one process after a COW event, that folio can be moved into the anon_vma that belongs to just that process, so the rmap code will not search the parent or sibling processes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM-hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__folio_set_anon (C function)c.__folio_set_anonhNtauh1hhjhhhNhNubh)}(hhh](h)}(hnvoid __folio_set_anon (struct folio *folio, struct vm_area_struct *vma, unsigned long address, bool exclusive)h]h)}(hmvoid __folio_set_anon(struct folio *folio, struct vm_area_struct *vma, unsigned long address, bool exclusive)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.chMCubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj=hMCubh)}(h__folio_set_anonh]h)}(h__folio_set_anonh]h__folio_set_anon}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ](jjeh"]h$]h&]jj uh1hhj+hhhj=hMCubj)}(hX(struct folio *folio, struct vm_area_struct *vma, unsigned long address, bool exclusive)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjlhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjRsbc.__folio_set_anonasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhubh)}(hfolioh]hfolio}(hjŋhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjދhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjڋubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڋubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.__folio_set_anonasbuh1hhjڋubj)}(h h]h }(hjhh1hNhNubah}(h]h ]jah"]h$]h&]uh1jhjڋubj2 )}(hj5 h]h*}(hj(hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjڋubh)}(hvmah]hvma}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjڋubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hlongh]hlong}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(hbool exclusiveh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h exclusiveh]h exclusive}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubeh}(h]h ]h"]h$]h&]jj uh1jhj+hhhj=hMCubeh}(h]h ]h"]h$]h&]jj juh1hjjhj'hhhj=hMCubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj=hMChj$hhubj )}(hhh]j9)}(h'set up a new anonymous rmap for a folioh]h'set up a new anonymous rmap for a folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMChjhhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj=hMCubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct folio *folio`` The folio to set up the new anonymous rmap for. ``struct vm_area_struct *vma`` VM area to add the folio to. ``unsigned long address`` User virtual address of the mapping ``bool exclusive`` Whether the folio is exclusive to the process.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMGhjubj)}(hhh](j)}(hH``struct folio *folio`` The folio to set up the new anonymous rmap for. h](j)}(h``struct folio *folio``h]j?)}(hj%h]hstruct folio *folio}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj#ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMDhjubj)}(hhh]j9)}(h/The folio to set up the new anonymous rmap for.h]h/The folio to set up the new anonymous rmap for.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj:hMDhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMDhjubj)}(h<``struct vm_area_struct *vma`` VM area to add the folio to. h](j)}(h``struct vm_area_struct *vma``h]j?)}(hj^h]hstruct vm_area_struct *vma}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj\ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMEhjXubj)}(hhh]j9)}(hVM area to add the folio to.h]hVM area to add the folio to.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjshMEhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMEhjubj)}(h>``unsigned long address`` User virtual address of the mapping h](j)}(h``unsigned long address``h]j?)}(hjh]hunsigned long address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMFhjubj)}(hhh]j9)}(h#User virtual address of the mappingh]h#User virtual address of the mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjubj)}(hA``bool exclusive`` Whether the folio is exclusive to the process.h](j)}(h``bool exclusive``h]j?)}(hjЍh]hbool exclusive}(hjҍhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj΍ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMHhjʍubj)}(hhh]j9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMGhjubah}(h]h ]h"]h$]h&]uh1jhjʍubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__page_check_anon_rmap (C function)c.__page_check_anon_rmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid __page_check_anon_rmap (const struct folio *folio, const struct page *page, struct vm_area_struct *vma, unsigned long address)h]h)}(hvoid __page_check_anon_rmap(const struct folio *folio, const struct page *page, struct vm_area_struct *vma, unsigned long address)h](j)}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMcubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj8hMcubh)}(h__page_check_anon_rmaph]h)}(h__page_check_anon_rmaph]h__page_check_anon_rmap}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubah}(h]h ](jjeh"]h$]h&]jj uh1hhj&hhhj8hMcubj)}(hg(const struct folio *folio, const struct page *page, struct vm_area_struct *vma, unsigned long address)h](j)}(hconst struct folio *folioh](j!)}(hjeh]hconst}(hjghhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjMsbc.__page_check_anon_rmapasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2 )}(hj5 h]h*}(hjΎhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjcubh)}(hfolioh]hfolio}(hjێhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj_ubj)}(hconst struct page *pageh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj/modnameN classnameNj\j_)}jb]jc.__page_check_anon_rmapasbuh1hhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjYhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj_ubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.__page_check_anon_rmapasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj2 )}(hj5 h]h*}(hjɏhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj{ubh)}(hvmah]hvma}(hj֏hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj_ubj)}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddressh]haddress}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj_ubeh}(h]h ]h"]h$]h&]jj uh1jhj&hhhj8hMcubeh}(h]h ]h"]h$]h&]jj juh1hjjhj"hhhj8hMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj8hMchjhhubj )}(hhh]j9)}(h$sanity check anonymous rmap additionh]h$sanity check anonymous rmap addition}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMchjNhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj8hMcubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jij4jij5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMghjmubj)}(hhh](j)}(h=``const struct folio *folio`` The folio containing **page**. h](j)}(h``const struct folio *folio``h]j?)}(hjh]hconst struct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMdhjubj)}(hhh]j9)}(hThe folio containing **page**.h](hThe folio containing }(hjhhhNhNubjz)}(h**page**h]hpage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubj)}(h=``const struct page *page`` the page to check the mapping of h](j)}(h``const struct page *page``h]j?)}(hjݐh]hconst struct page *page}(hjߐhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjېubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMehjאubj)}(hhh]j9)}(h the page to check the mapping ofh]h the page to check the mapping of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMehjubah}(h]h ]h"]h$]h&]uh1jhjאubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubj)}(hI``struct vm_area_struct *vma`` the vm area in which the mapping is added h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMfhjubj)}(hhh]j9)}(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&]uh1j8hj+hMfhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMfhjubj)}(h9``unsigned long address`` the user virtual address mappedh](j)}(h``unsigned long address``h]j?)}(hjOh]hunsigned long address}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhhjIubj)}(hhh]j9)}(hthe user virtual address mappedh]hthe user virtual address mapped}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMghjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhhjubeh}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%folio_add_anon_rmap_ptes (C function)c.folio_add_anon_rmap_pteshNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid folio_add_anon_rmap_ptes (struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h]h)}(hvoid folio_add_anon_rmap_ptes(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hvoidh]hvoid}(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_anon_rmap_ptesh]h)}(hfolio_add_anon_rmap_ptesh]hfolio_add_anon_rmap_ptes}(hjʑhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjƑubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(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](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj̑sbc.folio_add_anon_rmap_ptesasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj2hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjޑubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjXhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]h)}(hpageh]hpage}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjxmodnameN classnameNj\j_)}jb]j c.folio_add_anon_rmap_ptesasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjޑ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Ēubh)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjĒubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjޑubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j c.folio_add_anon_rmap_ptesasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjGhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjޑubj)}(hunsigned long addressh](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&]uh1jhjiubh)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjޑubj)}(h rmap_t flagsh](h)}(hhh]h)}(hrmap_th]hrmap_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjÓmodnameN classnameNj\j_)}jb]j c.folio_add_anon_rmap_ptesasbuh1hhjubj)}(h h]h }(hjߓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjޑubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j/j4j/j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj3ubj)}(hhh](j)}(h9``struct folio *folio`` The folio to add the mappings to h](j)}(h``struct folio *folio``h]j?)}(hjXh]hstruct folio *folio}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjRubj)}(hhh]j9)}(h The folio to add the mappings toh]h The folio to add the mappings to}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(hThe first page to addh]hThe first page to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(h:``int nr_pages`` The number of pages which will be mapped h](j)}(h``int nr_pages``h]j?)}(hjʔh]h int nr_pages}(hj̔hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjȔubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjĔubj)}(hhh]j9)}(h(The number of pages which will be mappedh]h(The number of pages which will be mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjߔhMhjubah}(h]h ]h"]h$]h&]uh1jhjĔubeh}(h]h ]h"]h$]h&]uh1jhjߔhMhjOubj)}(hK``struct vm_area_struct *vma`` The vm area in which the mappings are added h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(h+The vm area in which the mappings are addedh]h+The vm area in which the mappings are added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(hL``unsigned long address`` The user virtual address of the first page to map h](j)}(h``unsigned long address``h]j?)}(hj<h]hunsigned long address}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj6ubj)}(hhh]j9)}(h1The user virtual address of the first page to maph]h1The user virtual address of the first page to map}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjOubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]j?)}(hjuh]h rmap_t flags}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjoubj)}(hhh]j9)}(hThe rmap flagsh]hThe rmap flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj3ubj9)}(hIThe page range of folio is defined by [first_page, first_page + nr_pages)h]hIThe page range of folio is defined by [first_page, first_page + nr_pages)}(hjƕhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj3ubj9)}(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).}(hjՕhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$folio_add_anon_rmap_pmd (C function)c.folio_add_anon_rmap_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid folio_add_anon_rmap_pmd (struct folio *folio, struct page *page, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h]h)}(hvoid folio_add_anon_rmap_pmd(struct folio *folio, struct page *page, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hvoidh]hvoid}(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_anon_rmap_pmdh]h)}(hfolio_add_anon_rmap_pmdh]hfolio_add_anon_rmap_pmd}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hi(struct folio *folio, struct page *page, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]h)}(hfolioh]hfolio}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]je)}jXj'sbc.folio_add_anon_rmap_pmdasbuh1hhj=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj=ubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjіhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjΖubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjӖmodnameN classnameNj\j_)}jb]j{c.folio_add_anon_rmap_pmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hj#hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjCmodnameN classnameNj\j_)}jb]j{c.folio_add_anon_rmap_pmdasbuh1hhjubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjmhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(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&]uh1jhjubh)}(haddressh]haddress}(hj˗hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(h rmap_t flagsh](h)}(hhh]h)}(hrmap_th]hrmap_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j{c.folio_add_anon_rmap_pmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h2add a PMD mapping to a page range of an anon folioh]h2add a PMD mapping to a page range of an anon folio}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jUj4jUj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj]ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjYubj)}(hhh](j)}(h8``struct folio *folio`` The folio to add the mapping to h](j)}(h``struct folio *folio``h]j?)}(hj~h]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj|ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjxubj)}(hhh]j9)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(hThe first page to addh]hThe first page to add}(hjИhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj̘hMhj͘ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̘hMhjuubj)}(hI``struct vm_area_struct *vma`` The vm area in which the mapping is added h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(hL``unsigned long address`` The user virtual address of the first page to map h](j)}(h``unsigned long address``h]j?)}(hj)h]hunsigned long address}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj'ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj#ubj)}(hhh]j9)}(h1The user virtual address of the first page to maph]h1The user virtual address of the first page to map}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjuubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]j?)}(hjbh]h rmap_t flags}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj`ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj\ubj)}(hhh]j9)}(hThe rmap flagsh]hThe rmap flags}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjYubj9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjYubj9)}(hThe caller needs to hold the page table lock, and the page must be locked in the anon_vma case: to serialize mapping,index checking after setting.h]hThe caller needs to hold the page table lock, and the page must be locked in the anon_vma case: to serialize mapping,index checking after setting.}(hj™hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$folio_add_new_anon_rmap (C function)c.folio_add_new_anon_rmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hsvoid folio_add_new_anon_rmap (struct folio *folio, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h]h)}(hrvoid folio_add_new_anon_rmap(struct folio *folio, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hvoidh]hvoid}(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_new_anon_rmaph]h)}(hfolio_add_new_anon_rmaph]hfolio_add_new_anon_rmap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hV(struct folio *folio, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj.hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj*ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]h)}(hfolioh]hfolio}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjNmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_add_new_anon_rmapasbuh1hhj*ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj2 )}(hj5 h]h*}(hjzhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj*ubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj&ubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jhc.folio_add_new_anon_rmapasbuh1hhjubj)}(h h]h }(hjܚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj&ubj)}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(haddressh]haddress}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj&ubj)}(h rmap_t flagsh](h)}(hhh]h)}(hrmap_th]hrmap_t}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjfmodnameN classnameNj\j_)}jb]jhc.folio_add_new_anon_rmapasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj&ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h%Add mapping to a new anonymous folio.h]h%Add mapping to a new anonymous folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jқj4jқj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjܛh]h Parameters}(hjޛhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjڛubah}(h]h ]h"]h$]h&]uh1j8hJ/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 mapping to. h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(h The folio to add the mapping to.h]h The folio to add the mapping to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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]j?)}(hj4h]hstruct vm_area_struct *vma}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj.ubj)}(hhh]j9)}(h)the vm area in which the mapping is addedh]h)the vm area in which the mapping is added}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubj)}(h:``unsigned long address`` the user virtual address mapped h](j)}(h``unsigned long address``h]j?)}(hjmh]hunsigned long address}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjgubj)}(hhh]j9)}(hthe user virtual address mappedh]hthe user virtual address mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]j?)}(hjh]h rmap_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(hThe rmap flagsh]hThe rmap flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj֛ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjߜubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj֛ubj9)}(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 }(hjhhhNhNubjK)}(h*new*h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjubh 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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hj֛ubj9)}(h7If the folio is pmd-mappable, it is accounted as a THP.h]h7If the folio is pmd-mappable, it is accounted as a THP.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj֛ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%folio_add_file_rmap_ptes (C function)c.folio_add_file_rmap_pteshNtauh1hhjhhhNhNubh)}(hhh](h)}(hpvoid folio_add_file_rmap_ptes (struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h]h)}(hovoid folio_add_file_rmap_ptes(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM]ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhM]ubh)}(hfolio_add_file_rmap_ptesh]h)}(hfolio_add_file_rmap_ptesh]hfolio_add_file_rmap_ptes}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ](jjeh"]h$]h&]jj uh1hhjChhhjUhM]ubj)}(hR(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjjsbc.folio_add_file_rmap_ptesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjНhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjݝhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.folio_add_file_rmap_ptesasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj@hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(h int nr_pagesh](j)}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.folio_add_file_rmap_ptesasbuh1hhjubj)}(h h]h }(hjמhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubeh}(h]h ]h"]h$]h&]jj uh1jhjChhhjUhM]ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj?hhhjUhM]ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhM]hj<hhubj )}(hhh]j9)}(h+add PTE mappings to a page range of a folioh]h+add PTE mappings to a page range of a folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM]hjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhM]ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j4j4j4j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj<ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMahj8ubj)}(hhh](j)}(h9``struct folio *folio`` The folio to add the mappings to h](j)}(h``struct folio *folio``h]j?)}(hj]h]hstruct folio *folio}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj[ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM^hjWubj)}(hhh]j9)}(h The folio to add the mappings toh]h The folio to add the mappings to}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjrhM^hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM^hjTubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM_hjubj)}(hhh]j9)}(hThe first page to addh]hThe first page to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjTubj)}(hD``int nr_pages`` The number of pages that will be mapped using PTEs h](j)}(h``int nr_pages``h]j?)}(hjϟh]h int nr_pages}(hjџhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj͟ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM`hjɟubj)}(hhh]j9)}(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&]uh1j8hjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjɟubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjTubj)}(hK``struct vm_area_struct *vma`` The vm area in which the mappings are added h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMahjubj)}(hhh]j9)}(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&]uh1j8hjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubj9)}(h**Description**h]jz)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMchj8ubj9)}(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)}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMbhj8ubj9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMdhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$folio_add_file_rmap_pmd (C function)c.folio_add_file_rmap_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(havoid folio_add_file_rmap_pmd (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h`void folio_add_file_rmap_pmd(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMnubh)}(hfolio_add_file_rmap_pmdh]h)}(hfolio_add_file_rmap_pmdh]hfolio_add_file_rmap_pmd}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMnubj)}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjԠhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjРubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjРubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_add_file_rmap_pmdasbuh1hhjРubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjРubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjРubh)}(hfolioh]hfolio}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjРubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj̠ubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjFhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]h)}(hpageh]hpage}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjfmodnameN classnameNj\j_)}jb]jc.folio_add_file_rmap_pmdasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjBubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj̠ubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjáhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjԡhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjѡubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj֡modnameN classnameNj\j_)}jb]jc.folio_add_file_rmap_pmdasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj̠ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMnubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMnubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMnhjhhubj )}(hhh]j9)}(h,add a PMD mapping to a page range of a folioh]h,add a PMD mapping to a page range of a folio}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMnhj4hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMnubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jOj4jOj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjWubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMrhjSubj)}(hhh](j)}(h8``struct folio *folio`` The folio to add the mapping to h](j)}(h``struct folio *folio``h]j?)}(hjxh]hstruct folio *folio}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMohjrubj)}(hhh]j9)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMohjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMohjoubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMphjubj)}(hhh]j9)}(hThe first page to addh]hThe first page to add}(hjʢhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjƢhMphjǢubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƢhMphjoubj)}(hI``struct vm_area_struct *vma`` The vm area in which the mapping is added h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMqhjubj)}(hhh]j9)}(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&]uh1j8hjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjoubeh}(h]h ]h"]h$]h&]uh1jhjSubj9)}(h**Description**h]jz)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMshjSubj9)}(hEThe page range of the folio is defined by [page, page + HPAGE_PMD_NR)h]hEThe page range of the folio is defined by [page, page + HPAGE_PMD_NR)}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.c hMrhjSubj9)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMthjSubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$folio_add_file_rmap_pud (C function)c.folio_add_file_rmap_pudhNtauh1hhjhhhNhNubh)}(hhh](h)}(havoid folio_add_file_rmap_pud (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h`void folio_add_file_rmap_pud(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhMubh)}(hfolio_add_file_rmap_pudh]h)}(hfolio_add_file_rmap_pudh]hfolio_add_file_rmap_pud}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjuhhhjhMubj)}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjãhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjԣhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjѣubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj֣modnameN classnameNj\j_)}jb]je)}jXjsbc.folio_add_file_rmap_pudasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj(hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]h)}(hpageh]hpage}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjHmodnameN classnameNj\j_)}jb]jc.folio_add_file_rmap_pudasbuh1hhj$ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2 )}(hj5 h]h*}(hjrhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj$ubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.folio_add_file_rmap_pudasbuh1hhjubj)}(h h]h }(hjԤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjuhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjqhhhjhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjnhhubj )}(hhh]j9)}(h,add a PUD mapping to a page range of a folioh]h,add a PUD mapping to a page range of a folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j1j4j1j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj9ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj5ubj)}(hhh](j)}(h8``struct folio *folio`` The folio to add the mapping to h](j)}(h``struct folio *folio``h]j?)}(hjZh]hstruct folio *folio}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjXubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjTubj)}(hhh]j9)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(h,``struct page *page`` The first page to add h](j)}(h``struct page *page``h]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(hThe first page to addh]hThe first page to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubj)}(hI``struct vm_area_struct *vma`` The vm area in which the mapping is added h](j)}(h``struct vm_area_struct *vma``h]j?)}(hj̥h]hstruct vm_area_struct *vma}(hjΥhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjʥubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjƥubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjƥubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubj9)}(h**Description**h]jz)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj5ubj9)}(hEThe page range of the folio is defined by [page, page + HPAGE_PUD_NR)h]hEThe page range of the folio is defined by [page, page + HPAGE_PUD_NR)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj5ubj9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#folio_remove_rmap_ptes (C function)c.folio_remove_rmap_pteshNtauh1hhjhhhNhNubh)}(hhh](h)}(hnvoid folio_remove_rmap_ptes (struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h]h)}(hmvoid folio_remove_rmap_ptes(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhjihMubh)}(hfolio_remove_rmap_ptesh]h)}(hfolio_remove_rmap_ptesh]hfolio_remove_rmap_ptes}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubah}(h]h ](jjeh"]h$]h&]jj uh1hhjWhhhjihMubj)}(hR(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj~sbc.folio_remove_rmap_ptesasbuh1hhjubj)}(h h]h }(hj֦hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj*modnameN classnameNj\j_)}jb]jҦc.folio_remove_rmap_ptesasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjThhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int nr_pagesh](j)}(hinth]hint}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjͧhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjʧubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjϧmodnameN classnameNj\j_)}jb]jҦc.folio_remove_rmap_ptesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjWhhhjihMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjShhhjihMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjihMhjPhhubj )}(hhh]j9)}(h0remove PTE mappings from a page range of a folioh]h0remove PTE mappings from a page range of a folio}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjihMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jHj4jHj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjPubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjLubj)}(hhh](j)}(h>``struct folio *folio`` The folio to remove the mappings from h](j)}(h``struct folio *folio``h]j?)}(hjqh]hstruct folio *folio}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjoubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjkubj)}(hhh]j9)}(h%The folio to remove the mappings fromh]h%The folio to remove the mappings from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(h/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(hThe first page to removeh]hThe first page to remove}(hjèhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(hK``int nr_pages`` The number of pages that will be removed from the mapping h](j)}(h``int nr_pages``h]j?)}(hjh]h int nr_pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjݨubj)}(hhh]j9)}(h9The number of pages that will be removed from the mappingh]h9The number of pages that will be removed from the mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjݨubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(hO``struct vm_area_struct *vma`` The vm area from which the mappings are removed h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(h/The vm area from which the mappings are removedh]h/The vm area from which the mappings are removed}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjhubeh}(h]h ]h"]h$]h&]uh1jhjLubj9)}(h**Description**h]jz)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjLubj9)}(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)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjLubj9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"folio_remove_rmap_pmd (C function)c.folio_remove_rmap_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(h_void folio_remove_rmap_pmd (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h^void folio_remove_rmap_pmd(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(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_pmdh]h)}(hfolio_remove_rmap_pmdh]hfolio_remove_rmap_pmd}(hj̩hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjȩubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjΩsbc.folio_remove_rmap_pmdasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj4hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjZhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]h)}(hpageh]hpage}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjzmodnameN classnameNj\j_)}jb]j"c.folio_remove_rmap_pmdasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjVubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjʪhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjƪubj)}(h h]h }(hjתhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƪubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j"c.folio_remove_rmap_pmdasbuh1hhjƪubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƪubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjƪubh)}(hvmah]hvma}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjƪubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h1remove a PMD mapping from a page range of a folioh]h1remove a PMD mapping from a page range of a folio}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jcj4jcj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjgubj)}(hhh](j)}(h=``struct folio *folio`` The folio to remove the mapping from h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(h$The folio to remove the mapping fromh]h$The folio to remove the mapping from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]j?)}(hjūh]hstruct page *page}(hjǫhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjëubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(hThe first page to removeh]hThe first page to remove}(hjޫhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjګhMhj۫ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjګhMhjubj)}(hM``struct vm_area_struct *vma`` The vm area from which the mapping is removed h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjgubj9)}(h**Description**h]jz)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjgubj9)}(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)}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjgubj9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"folio_remove_rmap_pud (C function)c.folio_remove_rmap_pudhNtauh1hhjhhhNhNubh)}(hhh](h)}(h_void folio_remove_rmap_pud (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h^void folio_remove_rmap_pud(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM$ubh)}(hfolio_remove_rmap_pudh]h)}(hfolio_remove_rmap_pudh]hfolio_remove_rmap_pud}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM$ubj)}(hD(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjʬhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjƬubj)}(h h]h }(hj׬hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƬubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_remove_rmap_pudasbuh1hhjƬubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƬubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjƬubh)}(hfolioh]hfolio}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjƬubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj¬ubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj<hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]h)}(hpageh]hpage}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj\modnameN classnameNj\j_)}jb]jc.folio_remove_rmap_pudasbuh1hhj8ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj8ubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj¬ubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjʭhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjǭubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj̭modnameN classnameNj\j_)}jb]jc.folio_remove_rmap_pudasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj¬ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM$ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM$hjhhubj )}(hhh]j9)}(h1remove a PUD mapping from a page range of a folioh]h1remove a PUD mapping from a page range of a folio}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM$hj*hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jEj4jEj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM(hjIubj)}(hhh](j)}(h=``struct folio *folio`` The folio to remove the mapping from h](j)}(h``struct folio *folio``h]j?)}(hjnh]hstruct folio *folio}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjlubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM%hjhubj)}(hhh]j9)}(h$The folio to remove the mapping fromh]h$The folio to remove the mapping from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjeubj)}(h/``struct page *page`` The first page to remove h](j)}(h``struct page *page``h]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM&hjubj)}(hhh]j9)}(hThe first page to removeh]hThe first page to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjeubj)}(hM``struct vm_area_struct *vma`` The vm area from which the mapping is removed h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjޮubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM'hjڮubj)}(hhh]j9)}(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&]uh1j8hjhM'hjubah}(h]h ]h"]h$]h&]uh1jhjڮubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjeubeh}(h]h ]h"]h$]h&]uh1jhjIubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM)hjIubj9)}(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)}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM(hjIubj9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM*hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtry_to_unmap (C function)c.try_to_unmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void try_to_unmap (struct folio *folio, enum ttu_flags flags)h]h)}(h ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum ttu_flags flagsh](j!)}(hj5h]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h ttu_flagsh]h ttu_flags}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj>modnameN classnameNj\j_)}jb]jc.try_to_unmapasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjkhhhj}hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjghhhj}hMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj}hMhjdhhubj )}(hhh]j9)}(h1Try to remove all page table mappings to a folio.h]h1Try to remove all page table mappings to a folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj}hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hXs**Parameters** ``struct folio *folio`` The folio to unmap. ``enum ttu_flags flags`` action and flags **Description** Tries to remove all the page table entries which are mapping this folio. It is the caller's responsibility to check if the folio is still mapped if needed (use TTU_SYNC to prevent accounting races). **Context** Caller must hold the folio lock.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh](j)}(h,``struct folio *folio`` The folio to unmap. h](j)}(h``struct folio *folio``h]j?)}(hjӰh]hstruct folio *folio}(hjհhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjѰubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjͰubj)}(hhh]j9)}(hThe folio to unmap.h]hThe folio to unmap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjͰubeh}(h]h ]h"]h$]h&]uh1jhjhMhjʰubj)}(h*``enum ttu_flags flags`` action and flags h](j)}(h``enum ttu_flags flags``h]j?)}(hj h]henum ttu_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj)}(hhh]j9)}(haction and flagsh]haction and flags}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjʰubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj9)}(hTries to remove all the page table entries which are mapping this folio. It is the caller's responsibility to check if the folio is still mapped if needed (use TTU_SYNC to prevent accounting races).h]hTries to remove all the page table entries which are mapping this folio. It is the caller’s responsibility to check if the folio is still mapped if needed (use TTU_SYNC to prevent accounting races).}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj9)}(h **Context**h]jz)}(hjnh]hContext}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj9)}(h Caller must hold the folio lock.h]h Caller must hold the folio lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtry_to_migrate (C function)c.try_to_migratehNtauh1hhjhhhNhNubh)}(hhh](h)}(h?void try_to_migrate (struct folio *folio, enum ttu_flags flags)h]h)}(h>void try_to_migrate(struct folio *folio, enum ttu_flags flags)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM ubj)}(h h]h }(hj±hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(htry_to_migrateh]h)}(htry_to_migrateh]htry_to_migrate}(hjԱhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjбubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(h+(struct folio *folio, enum ttu_flags flags)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjֱsbc.try_to_migrateasbuh1hhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj<hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum ttu_flags flagsh](j!)}(hj5h]henum}(hjbhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]h)}(h ttu_flagsh]h ttu_flags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j*c.try_to_migrateasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(h8try to replace all page table mappings with swap entriesh]h8try to replace all page table mappings with swap entries}(hjֲhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjӲhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/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]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubj)}(hhh]j9)}(h+the folio to replace page table entries forh]h+the folio to replace page table entries for}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj,hM hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hM hjubj)}(h*``enum ttu_flags flags`` action and flags h](j)}(h``enum ttu_flags flags``h]j?)}(hjPh]henum ttu_flags flags}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjJubj)}(hhh]j9)}(haction and flagsh]haction and flags}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehM hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubj9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"make_device_exclusive (C function)c.make_device_exclusivehNtauh1hhjhhhNhNubh)}(hhh](h)}(hrstruct page * make_device_exclusive (struct mm_struct *mm, unsigned long addr, void *owner, struct folio **foliop)h]h)}(hpstruct page *make_device_exclusive(struct mm_struct *mm, unsigned long addr, void *owner, struct folio **foliop)h](j!)}(hj$h]hstruct}(hjгhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj̳hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMB ubj)}(h h]h }(hj޳hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̳hhhjݳhMB ubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXmake_device_exclusivesbc.make_device_exclusiveasbuh1hhj̳hhhjݳhMB ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̳hhhjݳhMB ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj̳hhhjݳhMB ubh)}(hmake_device_exclusiveh]h)}(hj h]hmake_device_exclusive}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj̳hhhjݳhMB ubj)}(hN(struct mm_struct *mm, unsigned long addr, void *owner, struct folio **foliop)h](j)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hjJhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]h)}(h mm_structh]h mm_struct}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjjmodnameN classnameNj\j_)}jb]j c.make_device_exclusiveasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjFubh)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubj)}(h void *ownerh](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj'hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hownerh]howner}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubj)}(hstruct folio **folioph](j!)}(hj$h]hstruct}(hjMhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]h)}(hfolioh]hfolio}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmmodnameN classnameNj\j_)}jb]j c.make_device_exclusiveasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjIubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjIubh)}(hfolioph]hfoliop}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubeh}(h]h ]h"]h$]h&]jj uh1jhj̳hhhjݳhMB ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjȳhhhjݳhMB ubah}(h]jóah ](jjeh"]h$]h&]jj)jhuh1hhjݳhMB hjųhhubj )}(hhh]j9)}(h)Mark a page for exclusive use by a deviceh]h)Mark a page for exclusive use by a device}(hj۵hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMB hjصhhubah}(h]h ]h"]h$]h&]uh1jhjųhhhjݳhMB ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMF hjubj)}(hhh](j)}(h@``struct mm_struct *mm`` mm_struct of associated target process h](j)}(h``struct mm_struct *mm``h]j?)}(hjh]hstruct mm_struct *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMC hjubj)}(hhh]j9)}(h&mm_struct of associated target processh]h&mm_struct of associated target process}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hMC hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMC hjubj)}(hO``unsigned long addr`` the virtual address to mark for exclusive device access h](j)}(h``unsigned long addr``h]j?)}(hjUh]hunsigned long addr}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjSubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMD hjOubj)}(hhh]j9)}(h7the virtual address to mark for exclusive device accessh]h7the virtual address to mark for exclusive device access}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhMD hjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMD hjubj)}(hQ``void *owner`` passed to MMU_NOTIFY_EXCLUSIVE range notifier to allow filtering h](j)}(h``void *owner``h]j?)}(hjh]h void *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chME hjubj)}(hhh]j9)}(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&]uh1j8hjhME hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhME hjubj)}(hH``struct folio **foliop`` folio pointer will be stored here on success. h](j)}(h``struct folio **foliop``h]j?)}(hjǶh]hstruct folio **foliop}(hjɶhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjŶubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMF hjubj)}(hhh]j9)}(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&]uh1j8hjܶhMF hjݶubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܶhMF hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMH hjubj9)}(hXThis function looks up the page mapped at the given address, grabs a folio reference, locks the folio and replaces the PTE with special device-exclusive PFN swap entry, preventing access through the process page tables. The function will return with the folio locked and referenced.h]hXThis function looks up the page mapped at the given address, grabs a folio reference, locks the folio and replaces the PTE with special device-exclusive PFN swap entry, preventing access through the process page tables. The function will return with the folio locked and referenced.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMG hjubj9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chML hjubj9)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMO hjubj9)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMT hjubj9)}(h **Notes**h]jz)}(hjVh]hNotes}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjTubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMY hjubjU)}(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]j9)}(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 }(hjwhhhNhNubjz)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwubh.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMZ hjsubah}(h]h ]h"]h$]h&]uh1j+hjpubj+)}(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]j9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM] hjubah}(h]h ]h"]h$]h&]uh1j+hjpubj+)}(hdevice-exclusive entries are considered "clean" and "old" by core-mm. Device drivers must update the folio state when informed by MMU notifiers. h]j9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM` hjubah}(h]h ]h"]h$]h&]uh1j+hjpubeh}(h]h ]h"]h$]h&]j0,j1,j2,hj3,j4,uh1j+hjlubah}(h]h ]h"]h$]h&]uh1jThjhMZ hjubj9)}(h **Return**h]jz)}(hj޷h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjܷubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMd hjubj9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMe hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__rmap_walk_file (C function)c.__rmap_walk_filehNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid __rmap_walk_file (struct folio *folio, struct address_space *mapping, pgoff_t pgoff_start, unsigned long nr_pages, struct rmap_walk_control *rwc, bool locked)h]h)}(hvoid __rmap_walk_file(struct folio *folio, struct address_space *mapping, pgoff_t pgoff_start, unsigned long nr_pages, struct rmap_walk_control *rwc, bool locked)h](j)}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM% ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj1hM% ubh)}(h__rmap_walk_fileh]h)}(h__rmap_walk_fileh]h__rmap_walk_file}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj1hM% 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](j!)}(hj$h]hstructi}(hj`hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]h)}(hfolioh]hfolio}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjFsbc.__rmap_walk_fileasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj\ubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjXubj)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjҸhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjθubj)}(h h]h }(hj߸hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjθubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.__rmap_walk_fileasbuh1hhjθubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjθubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjθubh)}(hmappingh]hmapping}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjθubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjXubj)}(hpgoff_t pgoff_starth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjGmodnameN classnameNj\j_)}jb]jc.__rmap_walk_fileasbuh1hhj>ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(h pgoff_starth]h pgoff_start}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjXubj)}(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&]uh1jhjubh)}(hnr_pagesh]hnr_pages}(hj¹hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjXubj)}(hstruct rmap_walk_control *rwch](j!)}(hj$h]hstruct}(hj۹hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj׹ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׹ubh)}(hhh]h)}(hrmap_walk_controlh]hrmap_walk_control}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.__rmap_walk_fileasbuh1hhj׹ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׹ubj2 )}(hj5 h]h*}(hj%hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj׹ubh)}(hrwch]hrwc}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj׹ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjXubj)}(h bool lockedh](j)}(hj)h]hbool}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(hlockedh]hlocked}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjXubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj1hM% ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj1hM% ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hM% hjhhubj )}(hhh]j9)}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM% hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hM% ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/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]j?)}(hjѺh]hstruct folio *folio}(hjӺhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjϺubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM* hj˺ubj)}(hhh]j9)}(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 }(hjhhhNhNubjz)}(h**rwc**h]hrwc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhE will be configured such as to be able to look up mappings correctly.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM( hjubah}(h]h ]h"]h$]h&]uh1jhj˺ubeh}(h]h ]h"]h$]h&]uh1jhjhM* hjȺubj)}(h``struct address_space *mapping`` The page cache object whose mapping VMAs we intend to traverse. If **folio** is non-NULL, this should be equal to folio_mapping(folio). h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM- hjubj)}(hhh]j9)}(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 }(hj6hhhNhNubjz)}(h **folio**h]hfolio}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6ubh; is non-NULL, this should be equal to folio_mapping(folio).}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM+ hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hM- hjȺubj)}(h``pgoff_t pgoff_start`` The offset within **mapping** of the page which we are looking up. If **folio** is non-NULL, this should be equal to folio_pgoff(folio). h](j)}(h``pgoff_t pgoff_start``h]j?)}(hjih]hpgoff_t pgoff_start}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM0 hjcubj)}(hhh]j9)}(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 }(hjhhhNhNubjz)}(h **mapping**h]hmapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh) of the page which we are looking up. If }(hjhhhNhNubjz)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh9 is non-NULL, this should be equal to folio_pgoff(folio).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM. hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM0 hjȺubj)}(h``unsigned long nr_pages`` The number of pages mapped by the mapping. If **folio** is non-NULL, this should be equal to folio_nr_pages(folio). h](j)}(h``unsigned long nr_pages``h]j?)}(hjǻh]hunsigned long nr_pages}(hjɻhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjŻubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM2 hjubj)}(hhh]j9)}(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 }(hjhhhNhNubjz)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh< is non-NULL, this should be equal to folio_nr_pages(folio).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM1 hjݻubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܻhM2 hjȺubj)}(hw``struct rmap_walk_control *rwc`` The reverse mapping walk control object describing how the traversal should proceed. h](j)}(h!``struct rmap_walk_control *rwc``h]j?)}(hjh]hstruct rmap_walk_control *rwc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM4 hj ubj)}(hhh]j9)}(hTThe reverse mapping walk control object describing how the traversal should proceed.h]hTThe reverse mapping walk control object describing how the traversal should proceed.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM3 hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hM4 hjȺubj)}(hO``bool locked`` Is the **mapping** already locked? If not, we acquire the lock.h](j)}(h``bool locked``h]j?)}(hjMh]h bool locked}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjKubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM5 hjGubj)}(hhh]j9)}(h?Is the **mapping** already locked? If not, we acquire the lock.h](hIs the }(hjfhhhNhNubjz)}(h **mapping**h]hmapping}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjfubh- already locked? If not, we acquire the lock.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjbhM5 hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM5 hjȺubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%isolate_movable_ops_page (C function)c.isolate_movable_ops_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hFbool isolate_movable_ops_page (struct page *page, isolate_mode_t mode)h]h)}(hEbool isolate_movable_ops_page(struct page *page, isolate_mode_t mode)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKNubj)}(h h]h }(hjƼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjżhKNubh)}(hisolate_movable_ops_pageh]h)}(hisolate_movable_ops_pageh]hisolate_movable_ops_page}(hjؼhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjԼubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjżhKNubj)}(h((struct page *page, isolate_mode_t mode)h](j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjڼsbc.isolate_movable_ops_pageasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj@hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hisolate_mode_t modeh](h)}(hhh]h)}(hisolate_mode_th]hisolate_mode_t}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjkmodnameN classnameNj\j_)}jb]j.c.isolate_movable_ops_pageasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjżhKNubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjżhKNubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjżhKNhjhhubj )}(hhh]j9)}(h(isolate a movable_ops page for migrationh]h(isolate a movable_ops page for migration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKNhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjżhKNubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j׽j4j׽j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj߽ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKRhj۽ubj)}(hhh](j)}(h ``struct page *page`` The page. h](j)}(h``struct page *page``h]j?)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKOhjubj)}(hhh]j9)}(h The page.h]h The page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjubj)}(h,``isolate_mode_t mode`` The isolation mode. h](j)}(h``isolate_mode_t mode``h]j?)}(hj9h]hisolate_mode_t mode}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKPhj3ubj)}(hhh]j9)}(hThe isolation mode.h]hThe isolation mode.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjNhKPhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKPhjubeh}(h]h ]h"]h$]h&]uh1jhj۽ubj9)}(h**Description**h]jz)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKRhj۽ubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKQhj۽ubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKUhj۽ubj9)}(h5Returns true if isolation succeeded, otherwise false.h]h5Returns true if isolation succeeded, otherwise false.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKXhj۽ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%putback_movable_ops_page (C function)c.putback_movable_ops_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h1void putback_movable_ops_page (struct page *page)h]h)}(h0void putback_movable_ops_page(struct page *page)h](j)}(hvoidh]hvoid}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӾhhhjhKubh)}(hputback_movable_ops_pageh]h)}(hputback_movable_ops_pageh]hputback_movable_ops_page}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjӾhhhjhKubj)}(h(struct page *page)h]j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4modnameN classnameNj\j_)}jb]je)}jXjsbc.putback_movable_ops_pageasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj`hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubah}(h]h ]h"]h$]h&]jj uh1jhjӾhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjϾhhhjhKubah}(h]jʾah ](jjeh"]h$]h&]jj)jhuh1hhjhKhj̾hhubj )}(hhh]j9)}(h$putback an isolated movable_ops pageh]h$putback an isolated movable_ops page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj̾hhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj)}(hhh]j)}(h)``struct page *page`` The isolated page. h](j)}(h``struct page *page``h]j?)}(hjؿh]hstruct page *page}(hjڿhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjֿubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjҿubj)}(hhh]j9)}(hThe isolated page.h]hThe isolated page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjҿubeh}(h]h ]h"]h$]h&]uh1jhjhKhjϿubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj9)}(h%Putback an isolated movable_ops page.h]h%Putback an isolated movable_ops page.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj9)}(h9After the page was putback, it might get freed instantly.h]h9After the page was putback, it might get freed instantly.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%migrate_movable_ops_page (C function)c.migrate_movable_ops_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hYint migrate_movable_ops_page (struct page *dst, struct page *src, enum migrate_mode mode)h]h)}(hXint migrate_movable_ops_page(struct page *dst, struct page *src, enum migrate_mode mode)h](j)}(hinth]hint}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjuhKubh)}(hmigrate_movable_ops_pageh]h)}(hmigrate_movable_ops_pageh]hmigrate_movable_ops_page}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjchhhjuhKubj)}(h<(struct page *dst, struct page *src, enum migrate_mode mode)h](j)}(hstruct page *dsth](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.migrate_movable_ops_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct page *srch](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6modnameN classnameNj\j_)}jb]jc.migrate_movable_ops_pageasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj`hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsrch]hsrc}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum migrate_mode modeh](j!)}(hj5h]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h migrate_modeh]h migrate_mode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.migrate_movable_ops_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjchhhjuhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj_hhhjuhKubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhKhj\hhubj )}(hhh]j9)}(h$migrate an isolated movable_ops pageh]h$migrate an isolated movable_ops page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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 MIGRATEPAGE_SUCCESS on success, otherwise a negative error code.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj)}(hhh](j)}(h+``struct page *dst`` The destination page. h](j)}(h``struct page *dst``h]j?)}(hj;h]hstruct page *dst}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj5ubj)}(hhh]j9)}(hThe destination page.h]hThe destination page.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhKhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhj2ubj)}(h&``struct page *src`` The source page. h](j)}(h``struct page *src``h]j?)}(hjth]hstruct page *src}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjnubj)}(hhh]j9)}(hThe source page.h]hThe source page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhKhj2ubj)}(h/``enum migrate_mode mode`` The migration mode. h](j)}(h``enum migrate_mode mode``h]j?)}(hjh]henum migrate_mode mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj)}(hhh]j9)}(hThe migration mode.h]hThe migration mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj2ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj9)}(h%Migrate an isolated movable_ops page.h]h%Migrate an isolated movable_ops page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj9)}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj9)}(hIf migration fails, the ownership stays unmodified and the src page remains isolated: migration may be retried later or the page can be putback.h]hIf migration fails, the ownership stays unmodified and the src page remains isolated: migration may be retried later or the page can be putback.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj9)}(hX TODO: migration core will treat both pages as folios and lock them before this call to unlock them after this call. Further, the folio refcounts on src and dst are also released by migration core. These pages will not be folios in the future, so that must be reworked.h]hX TODO: migration core will treat both pages as folios and lock them before this call to unlock them after this call. Further, the folio refcounts on src and dst are also released by migration core. These pages will not be folios in the future, so that must be reworked.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj9)}(hHReturns MIGRATEPAGE_SUCCESS on success, otherwise a negative error code.h]hHReturns MIGRATEPAGE_SUCCESS on success, otherwise a negative error code.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmigrate_folio (C function)c.migrate_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hoint migrate_folio (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h]h)}(hnint migrate_folio(struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhMMubh)}(h migrate_folioh]h)}(h migrate_folioh]h migrate_folio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjthhhjhMMubj)}(h](struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.migrate_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct folio *dsth](j!)}(hj$h]hstruct}(hj'hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj#ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]h)}(hfolioh]hfolio}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjGmodnameN classnameNj\j_)}jb]jc.migrate_folioasbuh1hhj#ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj2 )}(hj5 h]h*}(hjqhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj#ubh)}(hdsth]hdst}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct folio *srch](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.migrate_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum migrate_mode modeh](j!)}(hj5h]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h migrate_modeh]h migrate_mode}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj'modnameN classnameNj\j_)}jb]jc.migrate_folioasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hmodeh]hmode}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjthhhjhMMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjphhhjhMMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjhMMhjmhhubj )}(hhh]j9)}(hSimple folio migration.h]hSimple folio migration.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjhMMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMQhjubj)}(hhh](j)}(hJ``struct address_space *mapping`` The address_space containing the folio. h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMNhjubj)}(hhh]j9)}(h'The address_space containing the folio.h]h'The address_space containing the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubj)}(h8``struct folio *dst`` The folio to migrate the data to. h](j)}(h``struct folio *dst``h]j?)}(hjh]hstruct folio *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMOhjubj)}(hhh]j9)}(h!The folio to migrate the data to.h]h!The folio to migrate the data to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMOhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMOhjubj)}(h=``struct folio *src`` The folio containing the current data. h](j)}(h``struct folio *src``h]j?)}(hj.h]hstruct folio *src}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj,ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMPhj(ubj)}(hhh]j9)}(h&The folio containing the current data.h]h&The folio containing the current data.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjChMPhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMPhjubj)}(h4``enum migrate_mode mode`` How to migrate the page. h](j)}(h``enum migrate_mode mode``h]j?)}(hjgh]henum migrate_mode mode}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMQhjaubj)}(hhh]j9)}(hHow to migrate the page.h]hHow to migrate the page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|hMQhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMQhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMShjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMRhjubj9)}(h&Folios are locked upon entry and exit.h]h&Folios are locked upon entry and exit.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMUhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!buffer_migrate_folio (C function)c.buffer_migrate_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hvint buffer_migrate_folio (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h]h)}(huint buffer_migrate_folio(struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hbuffer_migrate_folioh]h)}(hbuffer_migrate_folioh]hbuffer_migrate_folio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h](struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj3hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjSmodnameN classnameNj\j_)}jb]je)}jXjsbc.buffer_migrate_folioasbuh1hhj/ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj/ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj+ubj)}(hstruct folio *dsth](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jmc.buffer_migrate_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj+ubj)}(hstruct folio *srch](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj5modnameN classnameNj\j_)}jb]jmc.buffer_migrate_folioasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj_hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsrch]hsrc}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj+ubj)}(henum migrate_mode modeh](j!)}(hj5h]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h migrate_modeh]h migrate_mode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jmc.buffer_migrate_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj+ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h+Migration function for folios with buffers.h]h+Migration function for folios with buffers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj)}(hhh](j)}(hH``struct address_space *mapping`` The address space containing **src**. h](j)}(h!``struct address_space *mapping``h]j?)}(hj:h]hstruct address_space *mapping}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj4ubj)}(hhh]j9)}(h%The address space containing **src**.h](hThe address space containing }(hjShhhNhNubjz)}(h**src**h]hsrc}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSubh.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjOhMhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj1ubj)}(h/``struct folio *dst`` The folio to migrate to. h](j)}(h``struct folio *dst``h]j?)}(hjh]hstruct folio *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj)}(hhh]j9)}(hThe folio to migrate to.h]hThe folio to migrate to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj1ubj)}(h1``struct folio *src`` The folio to migrate from. h](j)}(h``struct folio *src``h]j?)}(hjh]hstruct folio *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj)}(hhh]j9)}(hThe folio to migrate from.h]hThe folio to migrate from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj1ubj)}(h5``enum migrate_mode mode`` How to migrate the folio. h](j)}(h``enum migrate_mode mode``h]j?)}(hjh]henum migrate_mode mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj)}(hhh]j9)}(hHow to migrate the folio.h]hHow to migrate the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj1ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj9)}(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 }(hjHhhhNhNubjz)}(h**src**h]hsrc}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubh 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.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj9)}(h **Return**h]jz)}(hjkh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj9)}(h,0 on success or a negative errno on failure.h]h,0 on success or a negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(buffer_migrate_folio_norefs (C function)c.buffer_migrate_folio_norefshNtauh1hhjhhhNhNubh)}(hhh](h)}(h}int buffer_migrate_folio_norefs (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h]h)}(h|int buffer_migrate_folio_norefs(struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hbuffer_migrate_folio_norefsh]h)}(hbuffer_migrate_folio_norefsh]hbuffer_migrate_folio_norefs}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h](struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjsbc.buffer_migrate_folio_norefsasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj9hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct folio *dsth](j!)}(hj$h]hstruct}(hj_hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hhh]h)}(hfolioh]hfolio}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j'c.buffer_migrate_folio_norefsasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj[ubh)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct folio *srch](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j'c.buffer_migrate_folio_norefsasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsrch]hsrc}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum migrate_mode modeh](j!)}(hj5h]henum}(hj?hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj;ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]h)}(h migrate_modeh]h migrate_mode}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_modnameN classnameNj\j_)}jb]j'c.buffer_migrate_folio_norefsasbuh1hhj;ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h+Migration function for folios with buffers.h]h+Migration function for folios with buffers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj)}(hhh](j)}(hH``struct address_space *mapping`` The address space containing **src**. h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj)}(hhh]j9)}(h%The address space containing **src**.h](hThe address space containing }(hj hhhNhNubjz)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h/``struct folio *dst`` The folio to migrate to. h](j)}(h``struct folio *dst``h]j?)}(hj?h]hstruct folio *dst}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj=ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj9ubj)}(hhh]j9)}(hThe folio to migrate to.h]hThe folio to migrate to.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubj)}(h1``struct folio *src`` The folio to migrate from. h](j)}(h``struct folio *src``h]j?)}(hjxh]hstruct folio *src}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjrubj)}(hhh]j9)}(hThe folio to migrate from.h]hThe folio to migrate from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``enum migrate_mode mode`` How to migrate the folio. h](j)}(h``enum migrate_mode mode``h]j?)}(hjh]henum migrate_mode mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj)}(hhh]j9)}(hHow to migrate the folio.h]hHow to migrate the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj9)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj9)}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdo_mmap (C function) c.do_mmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hunsigned long do_mmap (struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, vm_flags_t vm_flags, unsigned long pgoff, unsigned long *populate, struct list_head *uf)h]h)}(hunsigned long do_mmap(struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, vm_flags_t vm_flags, unsigned long pgoff, unsigned long *populate, struct list_head *uf)h](j)}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjfhMubj)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjfhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjfhMubh)}(hdo_mmaph]h)}(hdo_mmaph]hdo_mmap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjThhhjfhMubj)}(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](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsb c.do_mmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long proth](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&]uh1jhjubh)}(hproth]hprot}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hvm_flags_t vm_flagsh](h)}(hhh]h)}(h vm_flags_th]h vm_flags_t}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjlmodnameN classnameNj\j_)}jb]j c.do_mmapasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hvm_flagsh]hvm_flags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long pgoffh](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&]uh1jhjubh)}(hpgoffh]hpgoff}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long *populateh](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&]uh1jhjubj2 )}(hj5 h]h*}(hj8hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpopulateh]hpopulate}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct list_head *ufh](j!)}(hj$h]hstruct}(hj^hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]h)}(h list_headh]h list_head}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]j c.do_mmapasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZubh)}(hufh]huf}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjThhhjfhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjPhhhjfhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjMhhubj )}(hhh]j9)}(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 }(hjhhhNhNubjz)}(h**len**h]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh with protection bits }(hjhhhNhNubjz)}(h**prot**h]hprot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh , mmap flags }(hjhhhNhNubjz)}(h **flags**h]hflags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhP (from which VMA flags will be inferred), and any additional VMA flags to apply }(hjhhhNhNubjz)}(h **vm_flags**h]hvm_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhA. If this is a file-backed mapping then the file is specified in }(hjhhhNhNubjz)}(h**file**h]hfile}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh# and page offset into the file via }(hjhhhNhNubjz)}(h **pgoff**h]hpgoff}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jcj4jcj5j6j7uh1hhhhjhNhNubjp)}(hX# **Parameters** ``struct file *file`` An optional struct file pointer describing the file which is to be mapped, if a file-backed mapping. ``unsigned long addr`` If non-zero, hints at (or if **flags** has MAP_FIXED set, specifies) the address at which to perform this mapping. See mmap (2) for details. Must be page-aligned. ``unsigned long len`` The length of the mapping. Will be page-aligned and must be at least 1 page in size. ``unsigned long prot`` Protection bits describing access required to the mapping. See mmap (2) for details. ``unsigned long flags`` Flags specifying how the mapping should be performed, see mmap (2) for details. ``vm_flags_t vm_flags`` VMA flags which should be set by default, or 0 otherwise. ``unsigned long pgoff`` Page offset into the **file** if file-backed, should be 0 otherwise. ``unsigned long *populate`` A pointer to a value which will be set to 0 if no population of the range is required, or the number of bytes to populate if it is. Must be non-NULL. See mmap (2) for details as to under what circumstances population of the range occurs. ``struct list_head *uf`` An optional pointer to a list head to track userfaultfd unmap events should unmapping events arise. If provided, it is up to the caller to manage this. **Description** This function does not perform security checks on the file and assumes, if **uf** is non-NULL, the caller has provided a list head to track unmap events for userfaultfd **uf**. It also simply indicates whether memory population is required by setting **populate**, which must be non-NULL, expecting the caller to actually perform this task itself if appropriate. This function will invoke architecture-specific (and if provided and relevant, file system-specific) logic to determine the most appropriate unmapped area in which to place the mapping if not MAP_FIXED. Callers which require userland mmap() behaviour should invoke vm_mmap(), which is also exported for module use. Those which require this behaviour less security checks, userfaultfd and populate behaviour, and who handle the mmap write lock themselves, should call this function. Note that the returned address may reside within a merged VMA if an appropriate merge were to take place, so it doesn't necessarily specify the start of a VMA, rather only the start of a valid mapped range of length **len** bytes, rounded down to the nearest page size. The caller must write-lock current->mm->mmap_lock. **Return** Either an error, or the address at which the requested mapping has been performed.h](j9)}(h**Parameters**h]jz)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjgubj)}(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]j?)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM7hjubj)}(hhh]j9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj)}(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]j?)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM:hjubj)}(hhh]j9)}(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 }(hjhhhNhNubjz)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh| has MAP_FIXED set, specifies) the address at which to perform this mapping. See mmap (2) for details. Must be page-aligned.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubj)}(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]j?)}(hjh]hunsigned long len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM<hj ubj)}(hhh]j9)}(hTThe length of the mapping. Will be page-aligned and must be at least 1 page in size.h]hTThe length of the mapping. Will be page-aligned and must be at least 1 page in size.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM;hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM<hjubj)}(hl``unsigned long prot`` Protection bits describing access required to the mapping. See mmap (2) for details. h](j)}(h``unsigned long prot``h]j?)}(hjLh]hunsigned long prot}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM>hjFubj)}(hhh]j9)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM=hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM>hjubj)}(hh``unsigned long flags`` Flags specifying how the mapping should be performed, see mmap (2) for details. h](j)}(h``unsigned long flags``h]j?)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM@hjubj)}(hhh]j9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjubj)}(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]j?)}(hjh]hvm_flags_t vm_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMAhjubj)}(hhh]j9)}(h9VMA flags which should be set by default, or 0 otherwise.h]h9VMA flags which should be set by default, or 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjubj)}(h]``unsigned long pgoff`` Page offset into the **file** if file-backed, should be 0 otherwise. h](j)}(h``unsigned long pgoff``h]j?)}(hjh]hunsigned long pgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMBhjubj)}(hhh]j9)}(hDPage offset into the **file** if file-backed, should be 0 otherwise.h](hPage offset into the }(hjhhhNhNubjz)}(h**file**h]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh' if file-backed, should be 0 otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjubj)}(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]j?)}(hjDh]hunsigned long *populate}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMFhj>ubj)}(hhh]j9)}(hA pointer to a value which will be set to 0 if no population of the range is required, or the number of bytes to populate if it is. Must be non-NULL. See mmap (2) for details as to under what circumstances population of the range occurs.h]hA pointer to a value which will be set to 0 if no population of the range is required, or the number of bytes to populate if it is. Must be non-NULL. See mmap (2) for details as to under what circumstances population of the range occurs.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMChjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMFhjubj)}(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]j?)}(hj~h]hstruct list_head *uf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj|ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMIhjxubj)}(hhh]j9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMGhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubeh}(h]h ]h"]h$]h&]uh1jhjgubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMKhjgubj9)}(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 }(hjhhhNhNubjz)}(h**uf**h]huf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhX is non-NULL, the caller has provided a list head to track unmap events for userfaultfd }(hjhhhNhNubjz)}(h**uf**h]huf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjgubj9)}(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 }(hjhhhNhNubjz)}(h **populate**h]hpopulate}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhc, which must be non-NULL, expecting the caller to actually perform this task itself if appropriate.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjgubj9)}(hThis function will invoke architecture-specific (and if provided and relevant, file system-specific) logic to determine the most appropriate unmapped area in which to place the mapping if not MAP_FIXED.h]hThis function will invoke architecture-specific (and if provided and relevant, file system-specific) logic to determine the most appropriate unmapped area in which to place the mapping if not MAP_FIXED.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjgubj9)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM#hjgubj9)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM&hjgubj9)}(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 }(hjQhhhNhNubjz)}(h**len**h]hlen}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQubh. bytes, rounded down to the nearest page size.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM*hjgubj9)}(h2The caller must write-lock current->mm->mmap_lock.h]h2The caller must write-lock current->mm->mmap_lock.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM/hjgubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM1hjgubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMKhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"find_vma_intersection (C function)c.find_vma_intersectionhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvstruct vm_area_struct * find_vma_intersection (struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr)h]h)}(htstruct vm_area_struct *find_vma_intersection(struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMmubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXfind_vma_intersectionsbc.find_vma_intersectionasbuh1hhjhhhjhMmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMmubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMmubh)}(hfind_vma_intersectionh]h)}(hjh]hfind_vma_intersection}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMmubj)}(hH(struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr)h](j)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hjBhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]h)}(h mm_structh]h mm_struct}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbmodnameN classnameNj\j_)}jb]jc.find_vma_intersectionasbuh1hhj>ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj>ubh)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubj)}(hunsigned long start_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&]uh1jhjubh)}(h start_addrh]h start_addr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubj)}(hunsigned long end_addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hend_addrh]hend_addr}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMmubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMmhjhhubj )}(hhh]j9)}(h3Look up the first VMA which intersects the intervalh]h3Look up the first VMA which intersects the interval}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMmhjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMmubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j}j4j}j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMqhjubj)}(hhh](j)}(h4``struct mm_struct *mm`` The process address space. h](j)}(h``struct mm_struct *mm``h]j?)}(hjh]hstruct mm_struct *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMnhjubj)}(hhh]j9)}(hThe process address space.h]hThe process address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubj)}(h?``unsigned long start_addr`` The inclusive start user address. h](j)}(h``unsigned long start_addr``h]j?)}(hjh]hunsigned long start_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMohjubj)}(hhh]j9)}(h!The inclusive start user address.h]h!The inclusive start user address.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubj)}(h;``unsigned long end_addr`` The exclusive end user address. h](j)}(h``unsigned long end_addr``h]j?)}(hjh]hunsigned long end_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMphjubj)}(hhh]j9)}(hThe exclusive end user address.h]hThe exclusive end user address.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj-hMphj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMphjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Return**h]jz)}(hjSh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMrhjubj9)}(h\The first VMA within the provided range, ``NULL`` otherwise. Assumes start_addr < end_addr.h](h)The first VMA within the provided range, }(hjihhhNhNubj?)}(h``NULL``h]hNULL}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiubh+ otherwise. Assumes start_addr < end_addr.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMrhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfind_vma (C function) c.find_vmahNtauh1hhjhhhNhNubh)}(hhh](h)}(hKstruct vm_area_struct * find_vma (struct mm_struct *mm, unsigned long addr)h]h)}(hIstruct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXfind_vmasb c.find_vmaasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(hfind_vmah]h)}(hjh]hfind_vma}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h*(struct mm_struct *mm, unsigned long addr)h](j)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hj$hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(h mm_structh]h mm_struct}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjDmodnameN classnameNj\j_)}jb]j c.find_vmaasbuh1hhj ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hjnhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hmmh]hmm}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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&]uh1jhjubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h2Find the VMA for a given address, or the next VMA.h]h2Find the VMA for a given address, or the next VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjubj)}(hhh](j)}(h0``struct mm_struct *mm`` The mm_struct to check h](j)}(h``struct mm_struct *mm``h]j?)}(hj7h]hstruct mm_struct *mm}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj1ubj)}(hhh]j9)}(hThe mm_struct to checkh]hThe mm_struct to check}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj.ubj)}(h#``unsigned long addr`` The address h](j)}(h``unsigned long addr``h]j?)}(hjph]hunsigned long addr}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjnubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjjubj)}(hhh]j9)}(h The addressh]h The address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjubj9)}(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 }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh( in the case of no VMA at addr or above.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfind_vma_prev (C function)c.find_vma_prevhNtauh1hhjhhhNhNubh)}(hhh](h)}(hostruct vm_area_struct * find_vma_prev (struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)h]h)}(hmstruct vm_area_struct *find_vma_prev(struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj#modnameN classnameNj\j_)}jb]je)}jX find_vma_prevsbc.find_vma_prevasbuh1hhjhhhjhMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjPhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(h find_vma_prevh]h)}(hj?h]h find_vma_prev}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hI(struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)h](j)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hj|hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]h)}(h mm_structh]h mm_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j=c.find_vma_prevasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxubh)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubj)}(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&]uh1jhjubh)}(haddrh]haddr}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubj)}(hstruct vm_area_struct **pprevh](j!)}(hj$h]hstruct}(hj=hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj]modnameN classnameNj\j_)}jb]j=c.find_vma_prevasbuh1hhj9ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj9ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj9ubh)}(hpprevh]hpprev}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(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 }(hjhhhNhNubj?)}(h ``pprev``h]hpprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh to the previous VMA, if any.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjubj)}(hhh](j)}(h0``struct mm_struct *mm`` The mm_struct to check h](j)}(h``struct mm_struct *mm``h]j?)}(hjh]hstruct mm_struct *mm}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjubj)}(hhh]j9)}(hThe mm_struct to checkh]hThe mm_struct to check}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(h#``unsigned long addr`` The address h](j)}(h``unsigned long addr``h]j?)}(hjWh]hunsigned long addr}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjQubj)}(hhh]j9)}(h The addressh]h The address}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubj)}(hI``struct vm_area_struct **pprev`` The pointer to set to the previous VMA h](j)}(h!``struct vm_area_struct **pprev``h]j?)}(hjh]hstruct vm_area_struct **pprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjubj)}(hhh]j9)}(h&The pointer to set to the previous VMAh]h&The pointer to set to the previous VMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjubj9)}(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 }(hjhhhNhNubjz)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh, or the next vma. May return }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh( in the case of no vma at addr or above.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_alloc (C function)c.kmemleak_allochNtauh1hhjhhhNhNubh)}(hhh](h)}(hRvoid __ref kmemleak_alloc (const void *ptr, size_t size, int min_count, gfp_t gfp)h]h)}(hQvoid __ref kmemleak_alloc(const void *ptr, size_t size, int min_count, gfp_t gfp)h](j)}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM'ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhjihM'ubh__ref}(hjWhhhNhNubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhjihM'ubh)}(hkmemleak_alloch]h)}(hkmemleak_alloch]hkmemleak_alloc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjWhhhjihM'ubj)}(h8(const void *ptr, size_t size, int min_count, gfp_t gfp)h](j)}(hconst void *ptrh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjsbc.kmemleak_allocasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int min_counth](j)}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(h min_counth]h min_count}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j&c.kmemleak_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjWhhhjihM'ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjShhhjihM'ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjihM'hjPhhubj )}(hhh]j9)}(h!register a newly allocated objecth]h!register a newly allocated object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM'hjhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjihM'ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM+hjubj)}(hhh](j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]j?)}(hj h]hconst void *ptr}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM(hjubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5hM(hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM(hjubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]j?)}(hjYh]h size_t size}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM)hjSubj)}(hhh]j9)}(hsize of the objecth]hsize of the object}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnhM)hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM)hjubj)}(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]j?)}(hjh]h int min_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM.hjubj)}(hhh]j9)}(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 }(hjhhhNhNubjz)}(h **min_count**h]h min_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh7 is found, the object is reported as a memory leak. If }(hjhhhNhNubjz)}(h **min_count**h]h min_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh2 is 0, the object is never reported as a leak. If }(hjhhhNhNubjz)}(h **min_count**h]h min_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhF is -1, the object is ignored (not scanned and not reported as a leak)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubj)}(hL``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]j?)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM/hjubj)}(hhh]j9)}(h=kmalloc() flags used for kmemleak internal memory allocationsh]h=kmalloc() flags used for kmemleak internal memory allocations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj;ubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM1hjubj9)}(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.).}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"kmemleak_alloc_percpu (C function)c.kmemleak_alloc_percpuhNtauh1hhjhhhNhNubh)}(hhh](h)}(hSvoid __ref kmemleak_alloc_percpu (const void __percpu *ptr, size_t size, gfp_t gfp)h]h)}(hRvoid __ref kmemleak_alloc_percpu(const void __percpu *ptr, size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhM?ubh__ref}(hj~hhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhM?ubh)}(hkmemleak_alloc_percpuh]h)}(hkmemleak_alloc_percpuh]hkmemleak_alloc_percpu}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj~hhhjhM?ubj)}(h2(const void __percpu *ptr, size_t size, gfp_t gfp)h](j)}(hconst void __percpu *ptrh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh__percpu}(hjhhhNhNubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjEmodnameN classnameNj\j_)}jb]je)}jXjsbc.kmemleak_alloc_percpuasbuh1hhj<ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hsizeh]hsize}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j_c.kmemleak_alloc_percpuasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj~hhhjhM?ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjzhhhjhM?ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhM?hjwhhubj )}(hhh]j9)}(h*register a newly allocated __percpu objecth]h*register a newly allocated __percpu object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM?hjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhM?ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMChjubj)}(hhh](j)}(hI``const void __percpu *ptr`` __percpu pointer to beginning of the object h](j)}(h``const void __percpu *ptr``h]j?)}(hj$h]hconst void __percpu *ptr}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM@hjubj)}(hhh]j9)}(h+__percpu pointer to beginning of the objecth]h+__percpu pointer to beginning of the object}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj9hM@hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hM@hjubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]j?)}(hj]h]h size_t size}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj[ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMAhjWubj)}(hhh]j9)}(hsize of the objecth]hsize of the object}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjrhMAhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMAhjubj)}(hB``gfp_t gfp`` flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]j?)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMBhjubj)}(hhh]j9)}(h3flags used for kmemleak internal memory allocationsh]h3flags used for kmemleak internal memory allocations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMDhjubj9)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMChjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_vmalloc (C function)c.kmemleak_vmallochNtauh1hhjhhhNhNubh)}(hhh](h)}(hRvoid __ref kmemleak_vmalloc (const struct vm_struct *area, size_t size, gfp_t gfp)h]h)}(hQvoid __ref kmemleak_vmalloc(const struct vm_struct *area, size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMRubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj$hMRubh__ref}(hjhhhNhNubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj$hMRubh)}(hkmemleak_vmalloch]h)}(hkmemleak_vmalloch]hkmemleak_vmalloc}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj$hMRubj)}(h6(const struct vm_struct *area, size_t size, gfp_t gfp)h](j)}(hconst struct vm_struct *areah](j!)}(hjeh]hconst}(hjehhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]h)}(h vm_structh]h vm_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjKsbc.kmemleak_vmallocasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjaubh)}(hareah]harea}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj]ubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.kmemleak_vmallocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj]ubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj?modnameN classnameNj\j_)}jb]jc.kmemleak_vmallocasbuh1hhj6ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hgfph]hgfp}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj]ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj$hMRubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj$hMRubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj$hMRhj hhubj )}(hhh]j9)}(h"register a newly vmalloc'ed objecth]h$register a newly vmalloc’ed object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMRhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hMRubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMVhjubj)}(hhh](j)}(h6``const struct vm_struct *area`` pointer to vm_struct h](j)}(h ``const struct vm_struct *area``h]j?)}(hjh]hconst struct vm_struct *area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMShjubj)}(hhh]j9)}(hpointer to vm_structh]hpointer to vm_struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]j?)}(hj h]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMThjubj)}(hhh]j9)}(hsize of the objecth]hsize of the object}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"hMThj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMThjubj)}(hN``gfp_t gfp`` __vmalloc() flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]j?)}(hjFh]h gfp_t gfp}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMUhj@ubj)}(hhh]j9)}(h?__vmalloc() flags used for kmemleak internal memory allocationsh]h?__vmalloc() flags used for kmemleak internal memory allocations}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hMUhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMUhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMWhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMVhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_free (C function)c.kmemleak_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h*void __ref kmemleak_free (const void *ptr)h]h)}(h)void __ref kmemleak_free(const void *ptr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMkubh__ref}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMkubh)}(h kmemleak_freeh]h)}(h kmemleak_freeh]h kmemleak_free}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMkubj)}(h(const void *ptr)h]j)}(hconst void *ptrh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjLhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMkubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMkhjhhubj )}(hhh]j9)}(h)unregister a previously registered objecth]h)unregister a previously registered object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMkhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMkubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMohjubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]j?)}(hjh]hconst void *ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMlhjubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMlhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMlhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMnhjubj9)}(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.).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMmhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_free_part (C function)c.kmemleak_free_parthNtauh1hhjhhhNhNubh)}(hhh](h)}(h ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjysbc.kmemleak_free_partasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj@hhhjRhM{ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj<hhhjRhM{ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhM{hj9hhubj )}(hhh]j9)}(h3partially unregister a previously registered objecth]h3partially unregister a previously registered object}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM{hjHhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhM{ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jcj4jcj5j6j7uh1hhhhjhNhNubjp)}(hX5**Parameters** ``const void *ptr`` pointer to the beginning or inside the object. This also represents the start of the range to be freed ``size_t size`` size to be unregistered **Description** This function is called when only a part of a memory block is freed (usually from the bootmem allocator).h](j9)}(h**Parameters**h]jz)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjgubj)}(hhh](j)}(h{``const void *ptr`` pointer to the beginning or inside the object. This also represents the start of the range to be freed h](j)}(h``const void *ptr``h]j?)}(hjh]hconst void *ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM}hjubj)}(hhh]j9)}(hfpointer to the beginning or inside the object. This also represents the start of the range to be freedh]hfpointer to the beginning or inside the object. This also represents the start of the range to be freed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM|hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjubj)}(h(``size_t size`` size to be unregistered h](j)}(h``size_t size``h]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM~hjubj)}(hhh]j9)}(hsize to be unregisteredh]hsize to be unregistered}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjubeh}(h]h ]h"]h$]h&]uh1jhjgubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjgubj9)}(hiThis function is called when only a part of a memory block is freed (usually from the bootmem allocator).h]hiThis function is called when only a part of a memory block is freed (usually from the bootmem allocator).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!kmemleak_free_percpu (C function)c.kmemleak_free_percpuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h:void __ref kmemleak_free_percpu (const void __percpu *ptr)h]h)}(h9void __ref kmemleak_free_percpu(const void __percpu *ptr)h](j)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjThMubh__ref}(hjBhhhNhNubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjThMubh)}(hkmemleak_free_percpuh]h)}(hkmemleak_free_percpuh]hkmemleak_free_percpu}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ](jjeh"]h$]h&]jj uh1hhjBhhhjThMubj)}(h(const void __percpu *ptr)h]j)}(hconst void __percpu *ptrh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh__percpu}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjBhhhjThMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj>hhhjThMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhjThMhj;hhubj )}(hhh]j9)}(h2unregister a previously registered __percpu objecth]h2unregister a previously registered __percpu object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j-j4j-j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``const void __percpu *ptr`` __percpu pointer to beginning of the object **Description** This function is called from the kernel percpu allocator when an object (memory block) is freed (free_percpu).h](j9)}(h**Parameters**h]jz)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj1ubj)}(hhh]j)}(hI``const void __percpu *ptr`` __percpu pointer to beginning of the object h](j)}(h``const void __percpu *ptr``h]j?)}(hjVh]hconst void __percpu *ptr}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjTubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjPubj)}(hhh]j9)}(h+__percpu pointer to beginning of the objecth]h+__percpu pointer to beginning of the object}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhMhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj1ubj9)}(hnThis function is called from the kernel percpu allocator when an object (memory block) is freed (free_percpu).h]hnThis function is called from the kernel percpu allocator when an object (memory block) is freed (free_percpu).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"kmemleak_update_trace (C function)c.kmemleak_update_tracehNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void __ref kmemleak_update_trace (const void *ptr)h]h)}(h1void __ref kmemleak_update_trace(const void *ptr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh__ref}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hkmemleak_update_traceh]h)}(hkmemleak_update_traceh]hkmemleak_update_trace}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(const void *ptr)h]j)}(hconst void *ptrh](j!)}(hjeh]hconst}(hj%hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2 )}(hj5 h]h*}(hj\hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj!ubh)}(hptrh]hptr}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h$update object allocation stack traceh]h$update object allocation stack trace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** Override the object allocation stack trace for cases where the actual allocation place is not always useful.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]j?)}(hjh]hconst void *ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj9)}(hlOverride the object allocation stack trace for cases where the actual allocation place is not always useful.h]hlOverride the object allocation stack trace for cases where the actual allocation place is not always useful.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_not_leak (C function)c.kmemleak_not_leakhNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void __ref kmemleak_not_leak (const void *ptr)h]h)}(h-void __ref kmemleak_not_leak(const void *ptr)h](j)}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjbhMubh__ref}(hjPhhhNhNubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjbhMubh)}(hkmemleak_not_leakh]h)}(hkmemleak_not_leakh]hkmemleak_not_leak}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjPhhhjbhMubj)}(h(const void *ptr)h]j)}(hconst void *ptrh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjPhhhjbhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjLhhhjbhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhMhjIhhubj )}(hhh]j9)}(h*mark an allocated object as false positiveh]h*mark an allocated object as false positive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j)j4j)j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** Calling this function on an object will cause the memory block to no longer be reported as leak and always be scanned.h](j9)}(h**Parameters**h]jz)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1ubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj-ubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]j?)}(hjRh]hconst void *ptr}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjLubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj-ubj9)}(hvCalling this function on an object will cause the memory block to no longer be reported as leak and always be scanned.h]hvCalling this function on an object will cause the memory block to no longer be reported as leak and always be scanned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$kmemleak_transient_leak (C function)c.kmemleak_transient_leakhNtauh1hhjhhhNhNubh)}(hhh](h)}(h4void __ref kmemleak_transient_leak (const void *ptr)h]h)}(h3void __ref kmemleak_transient_leak(const void *ptr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh__ref}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hkmemleak_transient_leakh]h)}(hkmemleak_transient_leakh]hkmemleak_transient_leak}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(const void *ptr)h]j)}(hconst void *ptrh](j!)}(hjeh]hconst}(hj!hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjXhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h4mark an allocated object as transient false positiveh]h4mark an allocated object as transient false positive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hX:**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** Calling this function on an object will cause the memory block to not be reported as a leak temporarily. This may happen, for example, if the object is part of a singly linked list and the ->next reference to it is changed.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]j?)}(hjh]hconst void *ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj9)}(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!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#kmemleak_ignore_percpu (C function)c.kmemleak_ignore_percpuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjLhhhj^hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjHhhhj^hMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhj^hMhjEhhubj )}(hhh]j9)}(h?similar to kmemleak_ignore but taking a percpu address argumenth]h?similar to kmemleak_ignore but taking a percpu address argument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj^hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j7j4j7j5j6j7uh1hhhhjhNhNubjp)}(hK**Parameters** ``const void __percpu *ptr`` percpu address of the objecth](j9)}(h**Parameters**h]jz)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj;ubj)}(hhh]j)}(h9``const void __percpu *ptr`` percpu address of the objecth](j)}(h``const void __percpu *ptr``h]j?)}(hj`h]hconst void __percpu *ptr}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj^ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjZubj)}(hhh]j9)}(hpercpu address of the objecth]hpercpu address of the object}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_ignore (C function)c.kmemleak_ignorehNtauh1hhjhhhNhNubh)}(hhh](h)}(h,void __ref kmemleak_ignore (const void *ptr)h]h)}(h+void __ref kmemleak_ignore(const void *ptr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh__ref}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hkmemleak_ignoreh]h)}(hkmemleak_ignoreh]hkmemleak_ignore}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(const void *ptr)h]j)}(hconst void *ptrh](j!)}(hjeh]hconst}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj@hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hignore an allocated objecth]hignore an allocated object}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjthhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hXh**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** Calling this function on an object will cause the memory block to be ignored (not scanned and not reported as a leak). This is usually done when it is known that the corresponding block is not a leak and does not contain any references to other allocated memory blocks.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]j?)}(hjh]hconst void *ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj9)}(hX Calling this function on an object will cause the memory block to be ignored (not scanned and not reported as a leak). This is usually done when it is known that the corresponding block is not a leak and does not contain any references to other allocated memory blocks.h]hX Calling this function on an object will cause the memory block to be ignored (not scanned and not reported as a leak). This is usually done when it is known that the corresponding block is not a leak and does not contain any references to other allocated memory blocks.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_scan_area (C function)c.kmemleak_scan_areahNtauh1hhjhhhNhNubh)}(hhh](h)}(hGvoid __ref kmemleak_scan_area (const void *ptr, size_t size, gfp_t gfp)h]h)}(hFvoid __ref kmemleak_scan_area(const void *ptr, size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjFhMubh__ref}(hj4hhhNhNubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjFhMubh)}(hkmemleak_scan_areah]h)}(hkmemleak_scan_areah]hkmemleak_scan_area}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubah}(h]h ](jjeh"]h$]h&]jj uh1hhj4hhhjFhMubj)}(h)(const void *ptr, size_t size, gfp_t gfp)h](j)}(hconst void *ptrh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjmsbc.kmemleak_scan_areaasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3modnameN classnameNj\j_)}jb]jc.kmemleak_scan_areaasbuh1hhj*ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hgfph]hgfp}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj4hhhjFhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj0hhhjFhMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhj-hhubj )}(hhh]j9)}(h4limit the range to be scanned in an allocated objecth]h4limit the range to be scanned in an allocated object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjFhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``const void *ptr`` pointer to beginning or inside the object. This also represents the start of the scan area ``size_t size`` size of the scan area ``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocations **Description** This function is used when it is known that only certain parts of an object contain references to other objects. Kmemleak will only scan these areas reducing the number false negatives.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh](j)}(ho``const void *ptr`` pointer to beginning or inside the object. This also represents the start of the scan area h](j)}(h``const void *ptr``h]j?)}(hjh]hconst void *ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh]j9)}(hZpointer to beginning or inside the object. This also represents the start of the scan areah]hZpointer to beginning or inside the object. This also represents the start of the scan area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``size_t size`` size of the scan area h](j)}(h``size_t size``h]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh]j9)}(hsize of the scan areah]hsize of the scan area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hL``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]j?)}(hj;h]h gfp_t gfp}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj5ubj)}(hhh]j9)}(h=kmalloc() flags used for kmemleak internal memory allocationsh]h=kmalloc() flags used for kmemleak internal memory allocations}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjvh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj9)}(hThis function is used when it is known that only certain parts of an object contain references to other objects. Kmemleak will only scan these areas reducing the number false negatives.h]hThis function is used when it is known that only certain parts of an object contain references to other objects. Kmemleak will only scan these areas reducing the number false negatives.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_no_scan (C function)c.kmemleak_no_scanhNtauh1hhjhhhNhNubh)}(hhh](h)}(h-void __ref kmemleak_no_scan (const void *ptr)h]h)}(h,void __ref kmemleak_no_scan(const void *ptr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh__ref}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hkmemleak_no_scanh]h)}(hkmemleak_no_scanh]hkmemleak_no_scan}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(const void *ptr)h]j)}(hconst void *ptrh](j!)}(hjeh]hconst}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjAhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hdo not scan an allocated objecth]hdo not scan an allocated object}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjuhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hXY**Parameters** ``const void *ptr`` pointer to beginning of the object **Description** This function notifies kmemleak not to scan the given memory block. Useful in situations where it is known that the given object does not contain any references to other objects. Kmemleak will not scan such objects reducing the number of false negatives.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh]j)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]j?)}(hjh]hconst void *ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubj9)}(hThis function notifies kmemleak not to scan the given memory block. Useful in situations where it is known that the given object does not contain any references to other objects. Kmemleak will not scan such objects reducing the number of false negatives.h]hThis function notifies kmemleak not to scan the given memory block. Useful in situations where it is known that the given object does not contain any references to other objects. Kmemleak will not scan such objects reducing the number of false negatives.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ kmemleak_alloc_phys (C function)c.kmemleak_alloc_physhNtauh1hhjhhhNhNubh)}(hhh](h)}(hIvoid __ref kmemleak_alloc_phys (phys_addr_t phys, size_t size, gfp_t gfp)h]h)}(hHvoid __ref kmemleak_alloc_phys(phys_addr_t phys, size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM(ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhjGhM(ubh__ref}(hj5hhhNhNubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhjGhM(ubh)}(hkmemleak_alloc_physh]h)}(hkmemleak_alloc_physh]hkmemleak_alloc_phys}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ](jjeh"]h$]h&]jj uh1hhj5hhhjGhM(ubj)}(h*(phys_addr_t phys, size_t size, gfp_t gfp)h](j)}(hphys_addr_t physh](h)}(hhh]h)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjnsbc.kmemleak_alloc_physasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hphysh]hphys}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.kmemleak_alloc_physasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.kmemleak_alloc_physasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfph]hgfp}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj5hhhjGhM(ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj1hhhjGhM(ubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhM(hj.hhubj )}(hhh]j9)}(h@similar to kmemleak_alloc but taking a physical address argumenth]h@similar to kmemleak_alloc but taking a physical address argument}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM(hjphhubah}(h]h ]h"]h$]h&]uh1jhj.hhhjGhM(ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``phys_addr_t phys`` physical address of the object ``size_t size`` size of the object ``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocationsh](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM,hjubj)}(hhh](j)}(h4``phys_addr_t phys`` physical address of the object h](j)}(h``phys_addr_t phys``h]j?)}(hjh]hphys_addr_t phys}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM*hjubj)}(hhh]j9)}(hphysical address of the objecth]hphysical address of the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM+hjubj)}(hhh]j9)}(hsize of the objecth]hsize of the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubj)}(hK``gfp_t gfp`` kmalloc() flags used for kmemleak internal memory allocationsh](j)}(h ``gfp_t gfp``h]j?)}(hj&h]h gfp_t gfp}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj$ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM-hj ubj)}(hhh]j9)}(h=kmalloc() flags used for kmemleak internal memory allocationsh]h=kmalloc() flags used for kmemleak internal memory allocations}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM,hj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM-hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$kmemleak_free_part_phys (C function)c.kmemleak_free_part_physhNtauh1hhjhhhNhNubh)}(hhh](h)}(hBvoid __ref kmemleak_free_part_phys (phys_addr_t phys, size_t size)h]h)}(hAvoid __ref kmemleak_free_part_phys(phys_addr_t phys, size_t size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM<ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhM<ubh__ref}(hj|hhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhM<ubh)}(hkmemleak_free_part_physh]h)}(hkmemleak_free_part_physh]hkmemleak_free_part_phys}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj|hhhjhM<ubj)}(h(phys_addr_t phys, size_t size)h](j)}(hphys_addr_t physh](h)}(hhh]h)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.kmemleak_free_part_physasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hphysh]hphys}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.kmemleak_free_part_physasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj|hhhjhM<ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjxhhhjhM<ubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhM<hjuhhubj )}(hhh]j9)}(hDsimilar to kmemleak_free_part but taking a physical address argumenth]hDsimilar to kmemleak_free_part but taking a physical address argument}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM<hjohhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhM<ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``phys_addr_t phys`` physical address if the beginning or inside an object. This also represents the start of the range to be freed ``size_t size`` size to be unregisteredh](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM@hjubj)}(hhh](j)}(h``phys_addr_t phys`` physical address if the beginning or inside an object. This also represents the start of the range to be freed h](j)}(h``phys_addr_t phys``h]j?)}(hjh]hphys_addr_t phys}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM?hjubj)}(hhh]j9)}(hnphysical address if the beginning or inside an object. This also represents the start of the range to be freedh]hnphysical address if the beginning or inside an object. This also represents the start of the range to be freed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjubj)}(h'``size_t size`` size to be unregisteredh](j)}(h``size_t size``h]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMAhjubj)}(hhh]j9)}(hsize to be unregisteredh]hsize to be unregistered}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!kmemleak_ignore_phys (C function)c.kmemleak_ignore_physhNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void __ref kmemleak_ignore_phys (phys_addr_t phys)h]h)}(h1void __ref kmemleak_ignore_phys(phys_addr_t phys)h](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMLubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhMLubh__ref}(hjChhhNhNubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhMLubh)}(hkmemleak_ignore_physh]h)}(hkmemleak_ignore_physh]hkmemleak_ignore_phys}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubah}(h]h ](jjeh"]h$]h&]jj uh1hhjChhhjUhMLubj)}(h(phys_addr_t phys)h]j)}(hphys_addr_t physh](h)}(hhh]h)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj|sbc.kmemleak_ignore_physasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hphysh]hphys}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjChhhjUhMLubeh}(h]h ]h"]h$]h&]jj juh1hjjhj?hhhjUhMLubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhMLhj<hhubj )}(hhh]j9)}(hAsimilar to kmemleak_ignore but taking a physical address argumenth]hAsimilar to kmemleak_ignore but taking a physical address argument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMLhjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhMLubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhNhNubjp)}(hE**Parameters** ``phys_addr_t phys`` physical address of the objecth](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMPhj ubj)}(hhh]j)}(h3``phys_addr_t phys`` physical address of the objecth](j)}(h``phys_addr_t phys``h]j?)}(hj2h]hphys_addr_t phys}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMRhj,ubj)}(hhh]j9)}(hphysical address of the objecth]hphysical address of the object}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMNhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMRhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubhcomment)}(h'#kernel-doc:: mm/hmm.c (build warnings)h]h'#kernel-doc:: mm/hmm.c (build warnings)}hjusbah}(h]h ]h"]h$]h&]jj uh1jshjhhhhhKuubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ devm_memremap_pages (C function)c.devm_memremap_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hJvoid * devm_memremap_pages (struct device *dev, struct dev_pagemap *pgmap)h]h)}(hHvoid *devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chM`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM`ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhM`ubh)}(hdevm_memremap_pagesh]h)}(hdevm_memremap_pagesh]hdevm_memremap_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM`ubj)}(h/(struct device *dev, struct dev_pagemap *pgmap)h](j)}(hstruct device *devh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.devm_memremap_pagesasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj2hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hdevh]hdev}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct dev_pagemap *pgmaph](j!)}(hj$h]hstruct}(hjXhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]h)}(h dev_pagemaph]h dev_pagemap}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjxmodnameN classnameNj\j_)}jb]j c.devm_memremap_pagesasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubh)}(hpgmaph]hpgmap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM`ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM`ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM`hjhhubj )}(hhh]j9)}(h7remap and provide memmap backing for the given resourceh]h7remap and provide memmap backing for the given resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chM`hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM`ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct device *dev`` hosting device for **res** ``struct dev_pagemap *pgmap`` pointer to a struct dev_pagemap **Notes** 1/ At a minimum the range and type members of **pgmap** must be initialized by the caller before passing it to this function 2/ The altmap field may optionally be initialized, in which case PGMAP_ALTMAP_VALID must be set in pgmap->flags. 3/ The ref field may optionally be provided, in which pgmap->ref must be 'live' on entry and will be killed and reaped at devm_memremap_pages_release() time, or if this routine fails. 4/ range is expected to be a host memory range that could feasibly be treated as a "System RAM" range, i.e. not a device mmio range, but this is not enforced.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMdhjubj)}(hhh](j)}(h2``struct device *dev`` hosting device for **res** h](j)}(h``struct device *dev``h]j?)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMahjubj)}(hhh]j9)}(hhosting device for **res**h](hhosting device for }(hj3hhhNhNubjz)}(h**res**h]hres}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubeh}(h]h ]h"]h$]h&]uh1j8hj/hMahj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMahjubj)}(h>``struct dev_pagemap *pgmap`` pointer to a struct dev_pagemap h](j)}(h``struct dev_pagemap *pgmap``h]j?)}(hjah]hstruct dev_pagemap *pgmap}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMbhj[ubj)}(hhh]j9)}(hpointer to a struct dev_pagemaph]hpointer to a struct dev_pagemap}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjvhMbhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMbhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Notes**h]jz)}(hjh]hNotes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMdhjubj)}(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 }(hjhhhNhNubjz)}(h **pgmap**h]hpgmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh must be initialized}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMehjubj)}(hhh]j9)}(h0by the caller before passing it to this functionh]h0by the caller before passing it to this function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhhjubj)}(hhh]j9)}(h/PGMAP_ALTMAP_VALID must be set in pgmap->flags.h]h/PGMAP_ALTMAP_VALID must be set in pgmap->flags.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhhjubj)}(h3/ The ref field may optionally be provided, in which pgmap->ref must be 'live' on entry and will be killed and reaped at devm_memremap_pages_release() time, or if this routine fails. h](j)}(hH3/ The ref field may optionally be provided, in which pgmap->ref must beh]hH3/ The ref field may optionally be provided, in which pgmap->ref must be}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMlhj'ubj)}(hhh]j9)}(hn'live' on entry and will be killed and reaped at devm_memremap_pages_release() time, or if this routine fails.h]hr‘live’ on entry and will be killed and reaped at devm_memremap_pages_release() time, or if this routine fails.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMkhj:ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj9hMlhjubj)}(h4/ range is expected to be a host memory range that could feasibly be treated as a "System RAM" range, i.e. not a device mmio range, but this is not enforced.h](j)}(hE4/ range is expected to be a host memory range that could feasibly beh]hE4/ range is expected to be a host memory range that could feasibly be}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMohjXubj)}(hhh]j9)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhMohjkubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjjhMohjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌget_dev_pagemap (C function)c.get_dev_pagemaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hSstruct dev_pagemap * get_dev_pagemap (unsigned long pfn, struct dev_pagemap *pgmap)h]h)}(hQstruct dev_pagemap *get_dev_pagemap(unsigned long pfn, struct dev_pagemap *pgmap)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]h)}(h dev_pagemaph]h dev_pagemap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXget_dev_pagemapsbc.get_dev_pagemapasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(hget_dev_pagemaph]h)}(hjh]hget_dev_pagemap}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h.(unsigned long pfn, struct dev_pagemap *pgmap)h](j)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hpfnh]hpfn}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hstruct dev_pagemap *pgmaph](j!)}(hj$h]hstruct}(hjyhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hhh]h)}(h dev_pagemaph]h dev_pagemap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.get_dev_pagemapasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjuubh)}(hpgmaph]hpgmap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h8take a new live reference on the dev_pagemap for **pfn**h](h1take a new live reference on the dev_pagemap for }(hjhhhNhNubjz)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubeh}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhNhNubjp)}(hXS**Parameters** ``unsigned long pfn`` page frame number to lookup page_map ``struct dev_pagemap *pgmap`` optional known pgmap that already has a reference **Description** If **pgmap** is non-NULL and covers **pfn** it will be returned as-is. If **pgmap** is non-NULL but does not cover **pfn** the reference to it will be released.h](j9)}(h**Parameters**h]jz)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj(ubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhj$ubj)}(hhh](j)}(h;``unsigned long pfn`` page frame number to lookup page_map h](j)}(h``unsigned long pfn``h]j?)}(hjIh]hunsigned long pfn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjCubj)}(hhh]j9)}(h$page frame number to lookup page_maph]h$page frame number to lookup page_map}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj@ubj)}(hP``struct dev_pagemap *pgmap`` optional known pgmap that already has a reference h](j)}(h``struct dev_pagemap *pgmap``h]j?)}(hjh]hstruct dev_pagemap *pgmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhj|ubj)}(hhh]j9)}(h1optional known pgmap that already has a referenceh]h1optional known pgmap that already has a reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj@ubeh}(h]h ]h"]h$]h&]uh1jhj$ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhj$ubj9)}(hIf **pgmap** is non-NULL and covers **pfn** it will be returned as-is. If **pgmap** is non-NULL but does not cover **pfn** the reference to it will be released.h](hIf }(hjhhhNhNubjz)}(h **pgmap**h]hpgmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is non-NULL and covers }(hjhhhNhNubjz)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh it will be returned as-is. If }(hjhhhNhNubjz)}(h **pgmap**h]hpgmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is non-NULL but does not cover }(hjhhhNhNubjz)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh& the reference to it will be released.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ vma_kernel_pagesize (C function)c.vma_kernel_pagesizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h>unsigned 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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjXhMubj)}(hlongh]hlong}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjXhMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjXhMubh)}(hvma_kernel_pagesizeh]h)}(hvma_kernel_pagesizeh]hvma_kernel_pagesize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjFhhhjXhMubj)}(h(struct vm_area_struct *vma)h]j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.vma_kernel_pagesizeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjFhhhjXhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjBhhhjXhMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjXhMhj?hhubj )}(hhh]j9)}(h#Page size granularity for this VMA.h]h#Page size granularity for this VMA.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj#hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j>j4j>j5j6j7uh1hhhhjhNhNubjp)}(hX **Parameters** ``struct vm_area_struct *vma`` The user mapping. **Description** Folios in this VMA will be aligned to, and at least the size of the number of bytes returned by this function. **Return** The default size of the folios allocated when backing a VMA.h](j9)}(h**Parameters**h]jz)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjBubj)}(hhh]j)}(h1``struct vm_area_struct *vma`` The user mapping. h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjgh]hstruct vm_area_struct *vma}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjaubj)}(hhh]j9)}(hThe user mapping.h]hThe user mapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjBubj9)}(hnFolios in this VMA will be aligned to, and at least the size of the number of bytes returned by this function.h]hnFolios in this VMA will be aligned to, and at least the size of the number of bytes returned by this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjBubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chM hjBubj9)}(h ah"]h$]h&]uh1j1 hjFubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubj)}(hstruct list_head *listh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.folio_isolate_hugetlbasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubeh}(h]h ]h"]h$]h&]jj uh1jhj hhhjhMEubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMEhjhhubj )}(hhh]j9)}(h)try to isolate an allocated hugetlb folioh]h)try to isolate an allocated hugetlb folio}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMEhj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMEubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jUj4jUj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj]ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMIhjYubj)}(hhh](j)}(h-``struct folio *folio`` the folio to isolate h](j)}(h``struct folio *folio``h]j?)}(hj~h]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj|ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMFhjxubj)}(hhh]j9)}(hthe folio to isolateh]hthe folio to isolate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjuubj)}(hC``struct list_head *list`` the list to add the folio to on success h](j)}(h``struct list_head *list``h]j?)}(hjh]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMGhjubj)}(hhh]j9)}(h'the list to add the folio to on successh]h'the list to add the folio to on success}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjuubeh}(h]h ]h"]h$]h&]uh1jhjYubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMIhjYubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMHhjYubj9)}(hpIsolation will fail if **folio** is not an allocated hugetlb folio, or if it is already isolated/non-migratable.h](hIsolation will fail if }(hjhhhNhNubjz)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhP is not an allocated hugetlb folio, or if it is already isolated/non-migratable.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMLhjYubj9)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMOhjYubj9)}(h **Return**h]jz)}(hjIh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMRhjYubj9)}(h*True if isolation worked, otherwise False.h]h*True if isolation worked, otherwise False.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMShjYubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"folio_putback_hugetlb (C function)c.folio_putback_hugetlbhNtauh1hhjhhhNhNubh)}(hhh](h)}(h0void folio_putback_hugetlb (struct folio *folio)h]h)}(h/void folio_putback_hugetlb(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_putback_hugetlbh]h)}(hfolio_putback_hugetlbh]hfolio_putback_hugetlb}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_putback_hugetlbasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hunisolate a hugetlb folioh]hunisolate a hugetlb folio}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jfj4jfj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjjubj)}(hhh]j)}(h3``struct folio *folio`` the isolated hugetlb folio h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjubj)}(hhh]j9)}(hthe isolated hugetlb folioh]hthe isolated hugetlb folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjjubj9)}(hRWill drop the additional folio reference obtained through folio_isolate_hugetlb().h]hRWill drop the additional folio reference obtained through folio_isolate_hugetlb().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_mark_accessed (C function)c.folio_mark_accessedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void folio_mark_accessed (struct folio *folio)h]h)}(h-void folio_mark_accessed(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj,hMubh)}(hfolio_mark_accessedh]h)}(hfolio_mark_accessedh]hfolio_mark_accessed}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj,hMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj[hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]h)}(hfolioh]hfolio}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{modnameN classnameNj\j_)}jb]je)}jXjAsbc.folio_mark_accessedasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjWubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjSubah}(h]h ]h"]h$]h&]jj uh1jhjhhhj,hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj,hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hMhjhhubj )}(hhh]j9)}(h%Mark a folio as having seen activity.h]h%Mark a folio as having seen activity.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj)}(hhh]j)}(h+``struct folio *folio`` The folio to mark. h](j)}(h``struct folio *folio``h]j?)}(hj h]hstruct folio *folio}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubj)}(hhh]j9)}(hThe folio to mark.h]hThe folio to mark.}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4 hMhj5 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj4 hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjZ h]h Description}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjX ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj9)}(h inactive,referencedh]j9)}(hj h]h6inactive,unreferenced -> inactive,referenced}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubah}(h]h ]h"]h$]h&]uh1j+hj ubj+)}(h6inactive,referenced -> active,unreferencedh]j9)}(hj h]h6inactive,referenced -> active,unreferenced}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubah}(h]h ]h"]h$]h&]uh1j+hj ubj+)}(h5active,unreferenced -> active,referenced h]j9)}(h4active,unreferenced -> active,referencedh]h4active,unreferenced -> active,referenced}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubah}(h]h ]h"]h$]h&]uh1j+hj ubeh}(h]h ]h"]h$]h&]jj5 uh1jݪhj hMhjubj9)}(hWhen a newly allocated folio is not yet visible, so safe for non-atomic ops, __folio_set_referenced() may be substituted for folio_mark_accessed().h]hWhen a newly allocated folio is not yet visible, so safe for non-atomic ops, __folio_set_referenced() may be substituted for folio_mark_accessed().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_add_lru (C function)c.folio_add_lruhNtauh1hhjhhhNhNubh)}(hhh](h)}(h(void folio_add_lru (struct folio *folio)h]h)}(h'void folio_add_lru(struct folio *folio)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubh)}(h folio_add_lruh]h)}(h folio_add_lruh]h folio_add_lru}(hj! hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj hMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj= hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj9 ubj)}(h h]h }(hjJ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9 ubh)}(hhh]h)}(hfolioh]hfolio}(hj[ hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjX ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj] modnameN classnameNj\j_)}jb]je)}jXj# sbc.folio_add_lruasbuh1hhj9 ubj)}(h h]h }(hj{ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9 ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj9 ubh)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9 ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5 ubah}(h]h ]h"]h$]h&]jj uh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj )}(hhh]j9)}(hAdd a folio to an LRU list.h]hAdd a folio to an LRU list.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhNhNubjp)}(hXz**Parameters** ``struct folio *folio`` The folio to be added to the LRU. **Description** Queue the folio for addition to the LRU. The decision on whether to add the page to the [in]active [file|anon] list is deferred until the folio_batch is drained. This gives a chance for the caller of folio_add_lru() have the folio added to the active list using folio_mark_accessed().h](j9)}(h**Parameters**h]jz)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubj)}(hhh]j)}(h:``struct folio *folio`` The folio to be added to the LRU. h](j)}(h``struct folio *folio``h]j?)}(hj h]hstruct folio *folio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubj)}(hhh]j9)}(h!The folio to be added to the LRU.h]h!The folio to be added to the LRU.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj9)}(h**Description**h]jz)}(hj< h]h Description}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj: ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubj9)}(hXQueue the folio for addition to the LRU. The decision on whether to add the page to the [in]active [file|anon] list is deferred until the folio_batch is drained. This gives a chance for the caller of folio_add_lru() have the folio added to the active list using folio_mark_accessed().h]hXQueue the folio for addition to the LRU. The decision on whether to add the page to the [in]active [file|anon] list is deferred until the folio_batch is drained. This gives a chance for the caller of folio_add_lru() have the folio added to the active list using folio_mark_accessed().}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_add_lru_vma (C function)c.folio_add_lru_vmahNtauh1hhjhhhNhNubh)}(hhh](h)}(hHvoid folio_add_lru_vma (struct folio *folio, struct vm_area_struct *vma)h]h)}(hGvoid folio_add_lru_vma(struct folio *folio, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj} hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj} hhhj hMubh)}(hfolio_add_lru_vmah]h)}(hfolio_add_lru_vmah]hfolio_add_lru_vma}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj} hhhj hMubj)}(h1(struct folio *folio, struct vm_area_struct *vma)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXj sbc.folio_add_lru_vmaasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hj0 hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj, ubj)}(h h]h }(hj= hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj, ubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjN hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjK ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjP modnameN classnameNj\j_)}jb]j c.folio_add_lru_vmaasbuh1hhj, ubj)}(h h]h }(hjl hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj, ubj2 )}(hj5 h]h*}(hjz hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj, ubh)}(hvmah]hvma}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj, ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhj} hhhj hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjy hhhj hMubah}(h]jt ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjv hhubj )}(hhh]j9)}(h3Add a folio to the appropate LRU list for this VMA.h]h3Add a folio to the appropate LRU list for this VMA.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjv hhhj hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubj)}(hhh](j)}(h:``struct folio *folio`` The folio to be added to the LRU. h](j)}(h``struct folio *folio``h]j?)}(hj h]hstruct folio *folio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubj)}(hhh]j9)}(h!The folio to be added to the LRU.h]h!The folio to be added to the LRU.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(hA``struct vm_area_struct *vma`` VMA in which the folio is mapped. h](j)}(h``struct vm_area_struct *vma``h]j?)}(hj+ h]hstruct vm_area_struct *vma}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj) ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj% ubj)}(hhh]j9)}(h!VMA in which the folio is mapped.h]h!VMA in which the folio is mapped.}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@ hMhjA ubah}(h]h ]h"]h$]h&]uh1jhj% ubeh}(h]h ]h"]h$]h&]uh1jhj@ hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj9)}(h**Description**h]jz)}(hjf h]h Description}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjd ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubj9)}(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, }(hj| hhhNhNubjz)}(h **folio**h]hfolio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj| ubh\ is added to the unevictable list. Otherwise, it is treated the same way as folio_add_lru().}(hj| hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"deactivate_file_folio (C function)c.deactivate_file_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(h0void deactivate_file_folio (struct folio *folio)h]h)}(h/void deactivate_file_folio(struct folio *folio)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubh)}(hdeactivate_file_folioh]h)}(hdeactivate_file_folioh]hdeactivate_file_folio}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj hMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj sbc.deactivate_file_folioasbuh1hhj ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hjFhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hfolioh]hfolio}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubah}(h]h ]h"]h$]h&]jj uh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj )}(hhh]j9)}(hDeactivate a file folio.h]hDeactivate a file folio.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjzhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj)}(hhh]j)}(h-``struct folio *folio`` Folio to deactivate. h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj)}(hhh]j9)}(hFolio to deactivate.h]hFolio to deactivate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj9)}(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 }(hjhhhNhNubjz)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubht is a good reclaim candidate, for example if its invalidation fails due to the folio being dirty or under writeback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj9)}(h **Context**h]jz)}(hj2h]hContext}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj9)}(h&Caller holds a reference on the folio.h]h&Caller holds a reference on the folio.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_mark_lazyfree (C function)c.folio_mark_lazyfreehNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void folio_mark_lazyfree (struct folio *folio)h]h)}(h-void folio_mark_lazyfree(struct folio *folio)h](j)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjhMubh)}(hfolio_mark_lazyfreeh]h)}(hfolio_mark_lazyfreeh]hfolio_mark_lazyfree}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjshhhjhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_mark_lazyfreeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjshhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjohhhjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjlhhubj )}(hhh]j9)}(hmake an anon folio lazyfreeh]hmake an anon folio lazyfree}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jOj4jOj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjWubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjSubj)}(hhh]j)}(h,``struct folio *folio`` folio to deactivate h](j)}(h``struct folio *folio``h]j?)}(hjxh]hstruct folio *folio}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjrubj)}(hhh]j9)}(hfolio to deactivateh]hfolio to deactivate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjSubj9)}(hufolio_mark_lazyfree() moves **folio** to the inactive file list. This is done to accelerate the reclaim of **folio**.h](hfolio_mark_lazyfree() moves }(hjhhhNhNubjz)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhF to the inactive file list. This is done to accelerate the reclaim of }(hjhhhNhNubjz)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolios_put_refs (C function)c.folios_put_refshNtauh1hhjhhhNhNubh)}(hhh](h)}(hEvoid folios_put_refs (struct folio_batch *folios, unsigned int *refs)h]h)}(hDvoid folios_put_refs(struct folio_batch *folios, unsigned int *refs)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hMubh)}(hfolios_put_refsh]h)}(hfolios_put_refsh]hfolios_put_refs}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj*hMubj)}(h0(struct folio_batch *folios, unsigned int *refs)h](j)}(hstruct folio_batch *foliosh](j!)}(hj$h]hstruct}(hjYhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hhh]h)}(h folio_batchh]h folio_batch}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjymodnameN classnameNj\j_)}jb]je)}jXj?sbc.folios_put_refsasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjUubh)}(hfoliosh]hfolios}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQubj)}(hunsigned int *refsh](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&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hrefsh]hrefs}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj*hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj*hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hMhjhhubj )}(hhh]j9)}(h0Reduce the reference count on a batch of folios.h]h0Reduce the reference count on a batch of folios.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jRj4jRj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hJ/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]j?)}(hj{h]hstruct folio_batch *folios}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjuubj)}(hhh]j9)}(h The folios.h]h The folios.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(hG``unsigned int *refs`` The number of refs to subtract from each folio. h](j)}(h``unsigned int *refs``h]j?)}(hjh]hunsigned int *refs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj)}(hhh]j9)}(h/The number of refs to subtract from each folio.h]h/The number of refs to subtract from each folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubeh}(h]h ]h"]h$]h&]uh1jhjVubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVubj9)}(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 }(hjhhhNhNubjz)}(h**refs**h]hrefs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh3 is NULL, we subtract one from each folio refcount.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVubj9)}(h **Context**h]jz)}(hj(h]hContext}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj&ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVubj9)}(hoMay be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.h]hoMay be called in process or interrupt context, but not in NMI context. May be called while holding a spinlock.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelease_pages (C function)c.release_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void release_pages (release_pages_arg arg, int nr)h]h)}(h1void release_pages(release_pages_arg arg, int nr)h](j)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hMubh)}(h release_pagesh]h)}(h release_pagesh]h release_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjihhhj{hMubj)}(h(release_pages_arg arg, int nr)h](j)}(hrelease_pages_arg argh](h)}(hhh]h)}(hrelease_pages_argh]hrelease_pages_arg}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.release_pagesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hargh]harg}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint nrh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjihhhj{hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjehhhj{hMubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj{hMhjbhhubj )}(hhh]j9)}(hbatched put_page()h]hbatched put_page()}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj{hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jRj4jRj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVubj)}(hhh](j)}(h4``release_pages_arg arg`` array of pages to release h](j)}(h``release_pages_arg arg``h]j?)}(hj{h]hrelease_pages_arg arg}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjuubj)}(hhh]j9)}(harray of pages to releaseh]harray of pages to release}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(h``int nr`` number of pages h](j)}(h ``int nr``h]j?)}(hjh]hint nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj)}(hhh]j9)}(hnumber of pagesh]hnumber of pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubeh}(h]h ]h"]h$]h&]uh1jhjVubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVubj9)}(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 }(hjhhhNhNubjz)}(h**arg**h]harg}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh@. If it fell to zero, remove the page from the LRU and free it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVubj9)}(hNote that the argument can be an array of pages, encoded pages, or folio pointers. We ignore any encoded bits, and turn any of them into just a folio that gets free'd.h]hNote that the argument can be an array of pages, encoded pages, or folio pointers. We ignore any encoded bits, and turn any of them into just a folio that gets free’d.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,folio_batch_remove_exceptionals (C function)!c.folio_batch_remove_exceptionalshNtauh1hhjhhhNhNubh)}(hhh](h)}(hAvoid folio_batch_remove_exceptionals (struct folio_batch *fbatch)h]h)}(h@void folio_batch_remove_exceptionals(struct folio_batch *fbatch)h](j)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM&ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjchM&ubh)}(hfolio_batch_remove_exceptionalsh]h)}(hfolio_batch_remove_exceptionalsh]hfolio_batch_remove_exceptionals}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubah}(h]h ](jjeh"]h$]h&]jj uh1hhjQhhhjchM&ubj)}(h(struct folio_batch *fbatch)h]j)}(hstruct folio_batch *fbatchh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h folio_batchh]h folio_batch}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjxsb!c.folio_batch_remove_exceptionalsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfbatchh]hfbatch}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjQhhhjchM&ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjMhhhjchM&ubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjchM&hjJhhubj )}(hhh]j9)}(hPrune non-folios from a batch.h]hPrune non-folios from a batch.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM&hjhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjchM&ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j-j4j-j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM*hj1ubj)}(hhh]j)}(h2``struct folio_batch *fbatch`` The batch to prune h](j)}(h``struct folio_batch *fbatch``h]j?)}(hjVh]hstruct folio_batch *fbatch}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjTubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM'hjPubj)}(hhh]j9)}(hThe batch to pruneh]hThe batch to prune}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhM'hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM'hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM)hj1ubj9)}(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 }(hjhhhNhNubjz)}(h **fbatch**h]hfbatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhS without leaving holes, so that it can be passed on to folio-only batch operations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM(hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"zpool_register_driver (C function)c.zpool_register_driverhNtauh1hhjhhhNhNubh)}(hhh](h)}(h8void zpool_register_driver (struct zpool_driver *driver)h]h)}(h7void zpool_register_driver(struct zpool_driver *driver)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hzpool_register_driverh]h)}(hzpool_register_driverh]hzpool_register_driver}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(h(struct zpool_driver *driver)h]j)}(hstruct zpool_driver *driverh](j!)}(hj$h]hstruct}(hj%hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]h)}(h zpool_driverh]h zpool_driver}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjEmodnameN classnameNj\j_)}jb]je)}jXj sbc.zpool_register_driverasbuh1hhj!ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2 )}(hj5 h]h*}(hjqhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj!ubh)}(hdriverh]hdriver}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(h register a zpool implementation.h]h register a zpool implementation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hD**Parameters** ``struct zpool_driver *driver`` driver to registerh](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chK"hjubj)}(hhh]j)}(h2``struct zpool_driver *driver`` driver to registerh](j)}(h``struct zpool_driver *driver``h]j?)}(hjh]hstruct zpool_driver *driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chK$hjubj)}(hhh]j9)}(hdriver to registerh]hdriver to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$zpool_unregister_driver (C function)c.zpool_unregister_driverhNtauh1hhjhhhNhNubh)}(hhh](h)}(h9int zpool_unregister_driver (struct zpool_driver *driver)h]h)}(h8int zpool_unregister_driver(struct zpool_driver *driver)h](j)}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chK+ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhK+ubh)}(hzpool_unregister_driverh]h)}(hzpool_unregister_driverh]hzpool_unregister_driver}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj?hhhjQhK+ubj)}(h(struct zpool_driver *driver)h]j)}(hstruct zpool_driver *driverh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]h)}(h zpool_driverh]h zpool_driver}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjfsbc.zpool_unregister_driverasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|ubh)}(hdriverh]hdriver}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjxubah}(h]h ]h"]h$]h&]jj uh1jhj?hhhjQhK+ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj;hhhjQhK+ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhK+hj8hhubj )}(hhh]j9)}(h"unregister a zpool implementation.h]h"unregister a zpool implementation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chK+hjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhK+ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hXn**Parameters** ``struct zpool_driver *driver`` driver to unregister. **Description** Module usage counting is used to prevent using a driver while/after unloading, so if this is called from module exit function, this should never fail; if called from other than the module exit function, and this returns failure, the driver is in use and must remain available.h](j9)}(h**Parameters**h]jz)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chK/hjubj)}(hhh]j)}(h6``struct zpool_driver *driver`` driver to unregister. h](j)}(h``struct zpool_driver *driver``h]j?)}(hjDh]hstruct zpool_driver *driver}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chK,hj>ubj)}(hhh]j9)}(hdriver to unregister.h]hdriver to unregister.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjYhK,hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhK,hj;ubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chK.hjubj9)}(hXModule usage counting is used to prevent using a driver while/after unloading, so if this is called from module exit function, this should never fail; if called from other than the module exit function, and this returns failure, the driver is in use and must remain available.h]hXModule usage counting is used to prevent using a driver while/after unloading, so if this is called from module exit function, this should never fail; if called from other than the module exit function, and this returns failure, the driver is in use and must remain available.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chK-hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌzpool_has_pool (C function)c.zpool_has_poolhNtauh1hhjhhhNhNubh)}(hhh](h)}(h bool zpool_has_pool (char *type)h]h)}(hbool zpool_has_pool(char *type)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKaubh)}(hzpool_has_poolh]h)}(hzpool_has_poolh]hzpool_has_pool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKaubj)}(h (char *type)h]j)}(h char *typeh](j)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(htypeh]htype}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKaubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKaubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKahjhhubj )}(hhh]j9)}(h%Check if the pool driver is availableh]h%Check if the pool driver is available}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKahjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKaubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jkj4jkj5j6j7uh1hhhhjhNhNubjp)}(hX***Parameters** ``char *type`` The type of the zpool to check (e.g. zsmalloc) **Description** This checks if the **type** pool driver is available. This will try to load the requested module, if needed, but there is no guarantee the module will still be loaded and available immediately after calling. If this returns true, the caller should assume the pool is available, but must be prepared to handle the **zpool_create_pool\(\)** returning failure. However if this returns false, the caller should assume the requested pool type is not available; either the requested pool type module does not exist, or could not be loaded, and calling **zpool_create_pool\(\)** with the pool type will fail. The **type** string must be null-terminated. **Return** true if **type** pool is available, false if noth](j9)}(h**Parameters**h]jz)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjsubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKehjoubj)}(hhh]j)}(h>``char *type`` The type of the zpool to check (e.g. zsmalloc) h](j)}(h``char *type``h]j?)}(hjh]h char *type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKbhjubj)}(hhh]j9)}(h.The type of the zpool to check (e.g. zsmalloc)h]h.The type of the zpool to check (e.g. zsmalloc)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKbhjubah}(h]h ]h"]h$]h&]uh1jhjoubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKdhjoubj9)}(hX\This checks if the **type** pool driver is available. This will try to load the requested module, if needed, but there is no guarantee the module will still be loaded and available immediately after calling. If this returns true, the caller should assume the pool is available, but must be prepared to handle the **zpool_create_pool\(\)** returning failure. However if this returns false, the caller should assume the requested pool type is not available; either the requested pool type module does not exist, or could not be loaded, and calling **zpool_create_pool\(\)** with the pool type will fail.h](hThis checks if the }(hjhhhNhNubjz)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhX  pool driver is available. This will try to load the requested module, if needed, but there is no guarantee the module will still be loaded and available immediately after calling. If this returns true, the caller should assume the pool is available, but must be prepared to handle the }(hjhhhNhNubjz)}(h**zpool_create_pool\(\)**h]hzpool_create_pool()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh returning failure. However if this returns false, the caller should assume the requested pool type is not available; either the requested pool type module does not exist, or could not be loaded, and calling }(hjhhhNhNubjz)}(h**zpool_create_pool\(\)**h]hzpool_create_pool()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh with the pool type will fail.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKchjoubj9)}(h,The **type** string must be null-terminated.h](hThe }(hj*hhhNhNubjz)}(h**type**h]htype}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubh string must be null-terminated.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKmhjoubj9)}(h **Return**h]jz)}(hjMh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKohjoubj9)}(h0true if **type** pool is available, false if noth](htrue if }(hjchhhNhNubjz)}(h**type**h]htype}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubh pool is available, false if not}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKphjoubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌzpool_create_pool (C function)c.zpool_create_poolhNtauh1hhjhhhNhNubh)}(hhh](h)}(hPstruct zpool * zpool_create_pool (const char *type, const char *name, gfp_t gfp)h]h)}(hNstruct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]h)}(hzpoolh]hzpool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXzpool_create_poolsbc.zpool_create_poolasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhKubh)}(hzpool_create_poolh]h)}(hjh]hzpool_create_pool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(h/(const char *type, const char *name, gfp_t gfp)h](j)}(hconst char *typeh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjUhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(htypeh]htype}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hconst char *nameh](j!)}(hjeh]hconst}(hj{hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjwubh)}(hnameh]hname}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.zpool_create_poolasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(hCreate a new zpoolh]hCreate a new zpool}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhj.hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jIj4jIj5j6j7uh1hhhhjhNhNubjp)}(hXb**Parameters** ``const char *type`` The type of the zpool to create (e.g. zsmalloc) ``const char *name`` The name of the zpool (e.g. zram0, zswap) ``gfp_t gfp`` The GFP flags to use when allocating the pool. **Description** This creates a new zpool of the specified type. The gfp flags will be used when allocating memory, if the implementation supports it. If the ops param is NULL, then the created zpool will not be evictable. Implementations must guarantee this to be thread-safe. The **type** and **name** strings must be null-terminated. **Return** New zpool on success, NULL on failure.h](j9)}(h**Parameters**h]jz)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjMubj)}(hhh](j)}(hE``const char *type`` The type of the zpool to create (e.g. zsmalloc) h](j)}(h``const char *type``h]j?)}(hjrh]hconst char *type}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjpubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjlubj)}(hhh]j9)}(h/The type of the zpool to create (e.g. zsmalloc)h]h/The type of the zpool to create (e.g. zsmalloc)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(h?``const char *name`` The name of the zpool (e.g. zram0, zswap) h](j)}(h``const char *name``h]j?)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjubj)}(hhh]j9)}(h)The name of the zpool (e.g. zram0, zswap)h]h)The name of the zpool (e.g. zram0, zswap)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(h=``gfp_t gfp`` The GFP flags to use when allocating the pool. h](j)}(h ``gfp_t gfp``h]j?)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjubj)}(hhh]j9)}(h.The GFP flags to use when allocating the pool.h]h.The GFP flags to use when allocating the pool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubeh}(h]h ]h"]h$]h&]uh1jhjMubj9)}(h**Description**h]jz)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjMubj9)}(hThis creates a new zpool of the specified type. The gfp flags will be used when allocating memory, if the implementation supports it. If the ops param is NULL, then the created zpool will not be evictable.h]hThis creates a new zpool of the specified type. The gfp flags will be used when allocating memory, if the implementation supports it. If the ops param is NULL, then the created zpool will not be evictable.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjMubj9)}(h6Implementations must guarantee this to be thread-safe.h]h6Implementations must guarantee this to be thread-safe.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjMubj9)}(h:The **type** and **name** strings must be null-terminated.h](hThe }(hjShhhNhNubjz)}(h**type**h]htype}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSubh and }(hjShhhNhNubjz)}(h**name**h]hname}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSubh! strings must be null-terminated.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjMubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjMubj9)}(h&New zpool on success, NULL on failure.h]h&New zpool on success, NULL on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌzpool_destroy_pool (C function)c.zpool_destroy_poolhNtauh1hhjhhhNhNubh)}(hhh](h)}(h-void zpool_destroy_pool (struct zpool *zpool)h]h)}(h,void zpool_destroy_pool(struct zpool *zpool)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hzpool_destroy_poolh]h)}(hzpool_destroy_poolh]hzpool_destroy_pool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(h(struct zpool *zpool)h]j)}(hstruct zpool *zpoolh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hzpoolh]hzpool}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj*modnameN classnameNj\j_)}jb]je)}jXjsbc.zpool_destroy_poolasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hzpoolh]hzpool}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(hDestroy a zpoolh]hDestroy a zpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hXU**Parameters** ``struct zpool *zpool`` The zpool to destroy. **Description** Implementations must guarantee this to be thread-safe, however only when destroying different pools. The same pool should only be destroyed once, and should not be used after it is destroyed. This destroys an existing zpool. The zpool should not be in use.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjubj)}(hhh]j)}(h.``struct zpool *zpool`` The zpool to destroy. h](j)}(h``struct zpool *zpool``h]j?)}(hjh]hstruct zpool *zpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjubj)}(hhh]j9)}(hThe zpool to destroy.h]hThe zpool to destroy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjubj9)}(hImplementations must guarantee this to be thread-safe, however only when destroying different pools. The same pool should only be destroyed once, and should not be used after it is destroyed.h]hImplementations must guarantee this to be thread-safe, however only when destroying different pools. The same pool should only be destroyed once, and should not be used after it is destroyed.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjubj9)}(hAThis destroys an existing zpool. The zpool should not be in use.h]hAThis destroys an existing zpool. The zpool should not be in use.}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌzpool_get_type (C function)c.zpool_get_typehNtauh1hhjhhhNhNubh)}(hhh](h)}(h1const char * zpool_get_type (struct zpool *zpool)h]h)}(h/const char *zpool_get_type(struct zpool *zpool)h](j!)}(hjeh]hconst}(hj] hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjY hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKubj)}(h h]h }(hjk hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY hhhjj hKubj)}(hcharh]hchar}(hjy hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY hhhjj hKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY hhhjj hKubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjY hhhjj hKubh)}(hzpool_get_typeh]h)}(hzpool_get_typeh]hzpool_get_type}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjY hhhjj hKubj)}(h(struct zpool *zpool)h]j)}(hstruct zpool *zpoolh](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(hzpoolh]hzpool}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXj sbc.zpool_get_typeasbuh1hhj ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hj!hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hzpoolh]hzpool}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubah}(h]h ]h"]h$]h&]jj uh1jhjY hhhjj hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjU hhhjj hKubah}(h]jP ah ](jjeh"]h$]h&]jj)jhuh1hhjj hKhjR hhubj )}(hhh]j9)}(hGet the type of the zpoolh]hGet the type of the zpool}(hjE!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjB!hhubah}(h]h ]h"]h$]h&]uh1jhjR hhhjj hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j]!j4j]!j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct zpool *zpool`` The zpool to check **Description** This returns the type of the pool. Implementations must guarantee this to be thread-safe. **Return** The type of zpool.h](j9)}(h**Parameters**h]jz)}(hjg!h]h Parameters}(hji!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhje!ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhja!ubj)}(hhh]j)}(h+``struct zpool *zpool`` The zpool to check h](j)}(h``struct zpool *zpool``h]j?)}(hj!h]hstruct zpool *zpool}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj!ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhj!ubj)}(hhh]j9)}(hThe zpool to checkh]hThe zpool to check}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!hKhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hKhj}!ubah}(h]h ]h"]h$]h&]uh1jhja!ubj9)}(h**Description**h]jz)}(hj!h]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhja!ubj9)}(h"This returns the type of the pool.h]h"This returns the type of the pool.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhja!ubj9)}(h6Implementations must guarantee this to be thread-safe.h]h6Implementations must guarantee this to be thread-safe.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhja!ubj9)}(h **Return**h]jz)}(hj!h]hReturn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhja!ubj9)}(hThe type of zpool.h]hThe type of zpool.}(hj "hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhja!ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌzpool_malloc (C function)c.zpool_mallochNtauh1hhjhhhNhNubh)}(hhh](h)}(hdint zpool_malloc (struct zpool *zpool, size_t size, gfp_t gfp, unsigned long *handle, const int nid)h]h)}(hcint zpool_malloc(struct zpool *zpool, size_t size, gfp_t gfp, unsigned long *handle, const int nid)h](j)}(hinth]hint}(hj<"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8"hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKubj)}(h h]h }(hjK"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8"hhhjJ"hKubh)}(h zpool_malloch]h)}(h zpool_malloch]h zpool_malloc}(hj]"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjY"ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8"hhhjJ"hKubj)}(hS(struct zpool *zpool, size_t size, gfp_t gfp, unsigned long *handle, const int nid)h](j)}(hstruct zpool *zpoolh](j!)}(hj$h]hstruct}(hjy"hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hju"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju"ubh)}(hhh]h)}(hzpoolh]hzpool}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj"modnameN classnameNj\j_)}jb]je)}jXj_"sbc.zpool_mallocasbuh1hhju"ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju"ubj2 )}(hj5 h]h*}(hj"hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hju"ubh)}(hzpoolh]hzpool}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhju"ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjq"ubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj"modnameN classnameNj\j_)}jb]j"c.zpool_mallocasbuh1hhj"ubj)}(h h]h }(hj #hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hsizeh]hsize}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjq"ubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj6#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3#ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8#modnameN classnameNj\j_)}jb]j"c.zpool_mallocasbuh1hhj/#ubj)}(h h]h }(hjT#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/#ubh)}(hgfph]hgfp}(hjb#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/#ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjq"ubj)}(hunsigned long *handleh](j)}(hunsignedh]hunsigned}(hj{#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw#ubj)}(hlongh]hlong}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw#ubj2 )}(hj5 h]h*}(hj#hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjw#ubh)}(hhandleh]hhandle}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjw#ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjq"ubj)}(h const int nidh](j!)}(hjeh]hconst}(hj#hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj#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#ubh)}(hnidh]hnid}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjq"ubeh}(h]h ]h"]h$]h&]jj uh1jhj8"hhhjJ"hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4"hhhjJ"hKubah}(h]j/"ah ](jjeh"]h$]h&]jj)jhuh1hhjJ"hKhj1"hhubj )}(hhh]j9)}(hAllocate memoryh]hAllocate memory}(hj:$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhj7$hhubah}(h]h ]h"]h$]h&]uh1jhj1"hhhjJ"hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jR$j4jR$j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct zpool *zpool`` The zpool to allocate from. ``size_t size`` The amount of memory to allocate. ``gfp_t gfp`` The GFP flags to use when allocating memory. ``unsigned long *handle`` Pointer to the handle to set ``const int nid`` The preferred node id. **Description** This allocates the requested amount of memory from the pool. The gfp flags will be used when allocating memory, if the implementation supports it. The provided **handle** will be set to the allocated object handle. The allocation will prefer the NUMA node specified by **nid**. Implementations must guarantee this to be thread-safe. **Return** 0 on success, negative value on error.h](j9)}(h**Parameters**h]jz)}(hj\$h]h Parameters}(hj^$hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZ$ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjV$ubj)}(hhh](j)}(h4``struct zpool *zpool`` The zpool to allocate from. h](j)}(h``struct zpool *zpool``h]j?)}(hj{$h]hstruct zpool *zpool}(hj}$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjy$ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhju$ubj)}(hhh]j9)}(hThe zpool to allocate from.h]hThe zpool to allocate from.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj$hKhj$ubah}(h]h ]h"]h$]h&]uh1jhju$ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjr$ubj)}(h2``size_t size`` The amount of memory to allocate. h](j)}(h``size_t size``h]j?)}(hj$h]h size_t size}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj$ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhj$ubj)}(hhh]j9)}(h!The amount of memory to allocate.h]h!The amount of memory to allocate.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj$hKhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjr$ubj)}(h;``gfp_t gfp`` The GFP flags to use when allocating memory. h](j)}(h ``gfp_t gfp``h]j?)}(hj$h]h gfp_t gfp}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj$ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhj$ubj)}(hhh]j9)}(h,The GFP flags to use when allocating memory.h]h,The GFP flags to use when allocating memory.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjr$ubj)}(h7``unsigned long *handle`` Pointer to the handle to set h](j)}(h``unsigned long *handle``h]j?)}(hj&%h]hunsigned long *handle}(hj(%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj$%ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhj %ubj)}(hhh]j9)}(hPointer to the handle to seth]hPointer to the handle to set}(hj?%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj;%hKhj<%ubah}(h]h ]h"]h$]h&]uh1jhj %ubeh}(h]h ]h"]h$]h&]uh1jhj;%hKhjr$ubj)}(h)``const int nid`` The preferred node id. h](j)}(h``const int nid``h]j?)}(hj_%h]h const int nid}(hja%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj]%ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjY%ubj)}(hhh]j9)}(hThe preferred node id.h]hThe preferred node id.}(hjx%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjt%hKhju%ubah}(h]h ]h"]h$]h&]uh1jhjY%ubeh}(h]h ]h"]h$]h&]uh1jhjt%hKhjr$ubeh}(h]h ]h"]h$]h&]uh1jhjV$ubj9)}(h**Description**h]jz)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjV$ubj9)}(hXThis allocates the requested amount of memory from the pool. The gfp flags will be used when allocating memory, if the implementation supports it. The provided **handle** will be set to the allocated object handle. The allocation will prefer the NUMA node specified by **nid**.h](hThis allocates the requested amount of memory from the pool. The gfp flags will be used when allocating memory, if the implementation supports it. The provided }(hj%hhhNhNubjz)}(h **handle**h]hhandle}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%ubhc will be set to the allocated object handle. The allocation will prefer the NUMA node specified by }(hj%hhhNhNubjz)}(h**nid**h]hnid}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%ubh.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjV$ubj9)}(h6Implementations must guarantee this to be thread-safe.h]h6Implementations must guarantee this to be thread-safe.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjV$ubj9)}(h **Return**h]jz)}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjV$ubj9)}(h&0 on success, negative value on error.h]h&0 on success, negative value on error.}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjV$ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌzpool_free (C function) c.zpool_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h;void zpool_free (struct zpool *zpool, unsigned long handle)h]h)}(h:void zpool_free(struct zpool *zpool, unsigned long handle)h](j)}(hvoidh]hvoid}(hj9&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5&hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKubj)}(h h]h }(hjH&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5&hhhjG&hKubh)}(h zpool_freeh]h)}(h zpool_freeh]h zpool_free}(hjZ&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjV&ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj5&hhhjG&hKubj)}(h+(struct zpool *zpool, unsigned long handle)h](j)}(hstruct zpool *zpoolh](j!)}(hj$h]hstruct}(hjv&hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjr&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr&ubh)}(hhh]h)}(hzpoolh]hzpool}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj&modnameN classnameNj\j_)}jb]je)}jXj\&sb c.zpool_freeasbuh1hhjr&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr&ubj2 )}(hj5 h]h*}(hj&hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjr&ubh)}(hzpoolh]hzpool}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjr&ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjn&ubj)}(hunsigned long handleh](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&ubh)}(hhandleh]hhandle}(hj 'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjn&ubeh}(h]h ]h"]h$]h&]jj uh1jhj5&hhhjG&hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj1&hhhjG&hKubah}(h]j,&ah ](jjeh"]h$]h&]jj)jhuh1hhjG&hKhj.&hhubj )}(hhh]j9)}(h Free previously allocated memoryh]h Free previously allocated memory}(hjJ'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjG'hhubah}(h]h ]h"]h$]h&]uh1jhj.&hhhjG&hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jb'j4jb'j5j6j7uh1hhhhjhNhNubjp)}(hX **Parameters** ``struct zpool *zpool`` The zpool that allocated the memory. ``unsigned long handle`` The handle to the memory to free. **Description** This frees previously allocated memory. This does not guarantee that the pool will actually free memory, only that the memory in the pool will become available for use by the pool. Implementations must guarantee this to be thread-safe, however only when freeing different handles. The same handle should only be freed once, and should not be used after freeing.h](j9)}(h**Parameters**h]jz)}(hjl'h]h Parameters}(hjn'hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjj'ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjf'ubj)}(hhh](j)}(h=``struct zpool *zpool`` The zpool that allocated the memory. h](j)}(h``struct zpool *zpool``h]j?)}(hj'h]hstruct zpool *zpool}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj'ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhj'ubj)}(hhh]j9)}(h$The zpool that allocated the memory.h]h$The zpool that allocated the memory.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj'hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhj'ubj)}(h;``unsigned long handle`` The handle to the memory to free. h](j)}(h``unsigned long handle``h]j?)}(hj'h]hunsigned long handle}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj'ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhj'ubj)}(hhh]j9)}(h!The handle to the memory to free.h]h!The handle to the memory to free.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj'hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhj'ubeh}(h]h ]h"]h$]h&]uh1jhjf'ubj9)}(h**Description**h]jz)}(hj'h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj'ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjf'ubj9)}(hThis frees previously allocated memory. This does not guarantee that the pool will actually free memory, only that the memory in the pool will become available for use by the pool.h]hThis frees previously allocated memory. This does not guarantee that the pool will actually free memory, only that the memory in the pool will become available for use by the pool.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjf'ubj9)}(hImplementations must guarantee this to be thread-safe, however only when freeing different handles. The same handle should only be freed once, and should not be used after freeing.h]hImplementations must guarantee this to be thread-safe, however only when freeing different handles. The same handle should only be freed once, and should not be used after freeing.}(hj$(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chKhjf'ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!zpool_obj_read_begin (C function)c.zpool_obj_read_beginhNtauh1hhjhhhNhNubh)}(hhh](h)}(hYvoid * zpool_obj_read_begin (struct zpool *zpool, unsigned long handle, void *local_copy)h]h)}(hWvoid *zpool_obj_read_begin(struct zpool *zpool, unsigned long handle, void *local_copy)h](j)}(hvoidh]hvoid}(hjS(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO(hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM ubj)}(h h]h }(hjb(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO(hhhja(hM ubj2 )}(hj5 h]h*}(hjp(hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjO(hhhja(hM ubh)}(hzpool_obj_read_beginh]h)}(hzpool_obj_read_beginh]hzpool_obj_read_begin}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}(ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjO(hhhja(hM ubj)}(h=(struct zpool *zpool, unsigned long handle, void *local_copy)h](j)}(hstruct zpool *zpoolh](j!)}(hj$h]hstruct}(hj(hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(hhh]h)}(hzpoolh]hzpool}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj(modnameN classnameNj\j_)}jb]je)}jXj(sbc.zpool_obj_read_beginasbuh1hhj(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj2 )}(hj5 h]h*}(hj(hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj(ubh)}(hzpoolh]hzpool}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj(ubj)}(hunsigned long handleh](j)}(hunsignedh]hunsigned}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj )ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj )ubj)}(hlongh]hlong}(hj+)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj )ubj)}(h h]h }(hj9)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj )ubh)}(hhandleh]hhandle}(hjG)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj )ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj(ubj)}(hvoid *local_copyh](j)}(hvoidh]hvoid}(hj`)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\)ubj)}(h h]h }(hjn)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\)ubj2 )}(hj5 h]h*}(hj|)hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj\)ubh)}(h local_copyh]h local_copy}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\)ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj(ubeh}(h]h ]h"]h$]h&]jj uh1jhjO(hhhja(hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjK(hhhja(hM ubah}(h]jF(ah ](jjeh"]h$]h&]jj)jhuh1hhja(hM hjH(hhubj )}(hhh]j9)}(h1Start reading from a previously allocated handle.h]h1Start reading from a previously allocated handle.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM hj)hhubah}(h]h ]h"]h$]h&]uh1jhjH(hhhja(hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j)j4j)j5j6j7uh1hhhhjhNhNubjp)}(hXR**Parameters** ``struct zpool *zpool`` The zpool that the handle was allocated from ``unsigned long handle`` The handle to read from ``void *local_copy`` A local buffer to use if needed. **Description** This starts a read operation of a previously allocated handle. The passed **local_copy** buffer may be used if needed by copying the memory into. zpool_obj_read_end() MUST be called after the read is completed to undo any actions taken (e.g. release locks). **Return** A pointer to the handle memory to be read, if **local_copy** is used, the returned pointer is **local_copy**.h](j9)}(h**Parameters**h]jz)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj)ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chMhj)ubj)}(hhh](j)}(hE``struct zpool *zpool`` The zpool that the handle was allocated from h](j)}(h``struct zpool *zpool``h]j?)}(hj)h]hstruct zpool *zpool}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj)ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM hj)ubj)}(hhh]j9)}(h,The zpool that the handle was allocated fromh]h,The zpool that the handle was allocated from}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj *hM hj *ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj *hM hj)ubj)}(h1``unsigned long handle`` The handle to read from h](j)}(h``unsigned long handle``h]j?)}(hj-*h]hunsigned long handle}(hj/*hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj+*ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM hj'*ubj)}(hhh]j9)}(hThe handle to read fromh]hThe handle to read from}(hjF*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjB*hM hjC*ubah}(h]h ]h"]h$]h&]uh1jhj'*ubeh}(h]h ]h"]h$]h&]uh1jhjB*hM hj)ubj)}(h6``void *local_copy`` A local buffer to use if needed. h](j)}(h``void *local_copy``h]j?)}(hjf*h]hvoid *local_copy}(hjh*hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjd*ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chMhj`*ubj)}(hhh]j9)}(h A local buffer to use if needed.h]h A local buffer to use if needed.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj{*hMhj|*ubah}(h]h ]h"]h$]h&]uh1jhj`*ubeh}(h]h ]h"]h$]h&]uh1jhj{*hMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)ubj9)}(h**Description**h]jz)}(hj*h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chMhj)ubj9)}(hXThis starts a read operation of a previously allocated handle. The passed **local_copy** buffer may be used if needed by copying the memory into. zpool_obj_read_end() MUST be called after the read is completed to undo any actions taken (e.g. release locks).h](hJThis starts a read operation of a previously allocated handle. The passed }(hj*hhhNhNubjz)}(h**local_copy**h]h local_copy}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubh buffer may be used if needed by copying the memory into. zpool_obj_read_end() MUST be called after the read is completed to undo any actions taken (e.g. release locks).}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chMhj)ubj9)}(h **Return**h]jz)}(hj*h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chMhj)ubj9)}(hmA pointer to the handle memory to be read, if **local_copy** is used, the returned pointer is **local_copy**.h](h.A pointer to the handle memory to be read, if }(hj*hhhNhNubjz)}(h**local_copy**h]h local_copy}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubh" is used, the returned pointer is }(hj*hhhNhNubjz)}(h**local_copy**h]h local_copy}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubh.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌzpool_obj_read_end (C function)c.zpool_obj_read_endhNtauh1hhjhhhNhNubh)}(hhh](h)}(hUvoid zpool_obj_read_end (struct zpool *zpool, unsigned long handle, void *handle_mem)h]h)}(hTvoid zpool_obj_read_end(struct zpool *zpool, unsigned long handle, void *handle_mem)h](j)}(hvoidh]hvoid}(hjC+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?+hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chMubj)}(h h]h }(hjR+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?+hhhjQ+hMubh)}(hzpool_obj_read_endh]h)}(hzpool_obj_read_endh]hzpool_obj_read_end}(hjd+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`+ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj?+hhhjQ+hMubj)}(h=(struct zpool *zpool, unsigned long handle, void *handle_mem)h](j)}(hstruct zpool *zpoolh](j!)}(hj$h]hstruct}(hj+hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|+ubh)}(hhh]h)}(hzpoolh]hzpool}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj+modnameN classnameNj\j_)}jb]je)}jXjf+sbc.zpool_obj_read_endasbuh1hhj|+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|+ubj2 )}(hj5 h]h*}(hj+hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|+ubh)}(hzpoolh]hzpool}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|+ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjx+ubj)}(hunsigned long handleh](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+ubh)}(hhandleh]hhandle}(hj*,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjx+ubj)}(hvoid *handle_memh](j)}(hvoidh]hvoid}(hjC,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?,ubj)}(h h]h }(hjQ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?,ubj2 )}(hj5 h]h*}(hj_,hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj?,ubh)}(h handle_memh]h handle_mem}(hjl,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?,ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjx+ubeh}(h]h ]h"]h$]h&]jj uh1jhj?+hhhjQ+hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj;+hhhjQ+hMubah}(h]j6+ah ](jjeh"]h$]h&]jj)jhuh1hhjQ+hMhj8+hhubj )}(hhh]j9)}(h2Finish reading from a previously allocated handle.h]h2Finish reading from a previously allocated handle.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jhj8+hhhjQ+hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j,j4j,j5j6j7uh1hhhhjhNhNubjp)}(hX+**Parameters** ``struct zpool *zpool`` The zpool that the handle was allocated from ``unsigned long handle`` The handle to read from ``void *handle_mem`` The pointer returned by zpool_obj_read_begin() **Description** Finishes a read operation previously started by zpool_obj_read_begin().h](j9)}(h**Parameters**h]jz)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM#hj,ubj)}(hhh](j)}(hE``struct zpool *zpool`` The zpool that the handle was allocated from h](j)}(h``struct zpool *zpool``h]j?)}(hj,h]hstruct zpool *zpool}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj,ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM hj,ubj)}(hhh]j9)}(h,The zpool that the handle was allocated fromh]h,The zpool that the handle was allocated from}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj,hM hj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hM hj,ubj)}(h1``unsigned long handle`` The handle to read from h](j)}(h``unsigned long handle``h]j?)}(hj-h]hunsigned long handle}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj-ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM!hj -ubj)}(hhh]j9)}(hThe handle to read fromh]hThe handle to read from}(hj)-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%-hM!hj&-ubah}(h]h ]h"]h$]h&]uh1jhj -ubeh}(h]h ]h"]h$]h&]uh1jhj%-hM!hj,ubj)}(hD``void *handle_mem`` The pointer returned by zpool_obj_read_begin() h](j)}(h``void *handle_mem``h]j?)}(hjI-h]hvoid *handle_mem}(hjK-hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjG-ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM"hjC-ubj)}(hhh]j9)}(h.The pointer returned by zpool_obj_read_begin()h]h.The pointer returned by zpool_obj_read_begin()}(hjb-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^-hM"hj_-ubah}(h]h ]h"]h$]h&]uh1jhjC-ubeh}(h]h ]h"]h$]h&]uh1jhj^-hM"hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,ubj9)}(h**Description**h]jz)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj-ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM$hj,ubj9)}(hGFinishes a read operation previously started by zpool_obj_read_begin().h]hGFinishes a read operation previously started by zpool_obj_read_begin().}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM#hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌzpool_obj_write (C function)c.zpool_obj_writehNtauh1hhjhhhNhNubh)}(hhh](h)}(hbvoid zpool_obj_write (struct zpool *zpool, unsigned long handle, void *handle_mem, size_t mem_len)h]h)}(havoid zpool_obj_write(struct zpool *zpool, unsigned long handle, void *handle_mem, size_t mem_len)h](j)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj-hM-ubh)}(hzpool_obj_writeh]h)}(hzpool_obj_writeh]hzpool_obj_write}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj-hhhj-hM-ubj)}(hM(struct zpool *zpool, unsigned long handle, void *handle_mem, size_t mem_len)h](j)}(hstruct zpool *zpoolh](j!)}(hj$h]hstruct}(hj.hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hhh]h)}(hzpoolh]hzpool}(hj$.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!.ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj&.modnameN classnameNj\j_)}jb]je)}jXj-sbc.zpool_obj_writeasbuh1hhj.ubj)}(h h]h }(hjD.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2 )}(hj5 h]h*}(hjR.hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj.ubh)}(hzpoolh]hzpool}(hj_.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubj)}(hunsigned long handleh](j)}(hunsignedh]hunsigned}(hjx.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt.ubj)}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt.ubh)}(hhandleh]hhandle}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjt.ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubj)}(hvoid *handle_memh](j)}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2 )}(hj5 h]h*}(hj.hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj.ubh)}(h handle_memh]h handle_mem}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubj)}(hsize_t mem_lenh](h)}(hhh]h)}(hsize_th]hsize_t}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj /ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj/modnameN classnameNj\j_)}jb]j@.c.zpool_obj_writeasbuh1hhj/ubj)}(h h]h }(hj,/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hmem_lenh]hmem_len}(hj:/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubeh}(h]h ]h"]h$]h&]jj uh1jhj-hhhj-hM-ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj-hhhj-hM-ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hM-hj-hhubj )}(hhh]j9)}(h'Write to a previously allocated handle.h]h'Write to a previously allocated handle.}(hjd/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM-hja/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hM-ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j|/j4j|/j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct zpool *zpool`` The zpool that the handle was allocated from ``unsigned long handle`` The handle to read from ``void *handle_mem`` The memory to copy from into the handle. ``size_t mem_len`` The length of memory to be written.h](j9)}(h**Parameters**h]jz)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM1hj/ubj)}(hhh](j)}(hE``struct zpool *zpool`` The zpool that the handle was allocated from h](j)}(h``struct zpool *zpool``h]j?)}(hj/h]hstruct zpool *zpool}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM.hj/ubj)}(hhh]j9)}(h,The zpool that the handle was allocated fromh]h,The zpool that the handle was allocated from}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj/hM.hj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hM.hj/ubj)}(h1``unsigned long handle`` The handle to read from h](j)}(h``unsigned long handle``h]j?)}(hj/h]hunsigned long handle}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM/hj/ubj)}(hhh]j9)}(hThe handle to read fromh]hThe handle to read from}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj/hM/hj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hM/hj/ubj)}(h>``void *handle_mem`` The memory to copy from into the handle. h](j)}(h``void *handle_mem``h]j?)}(hj0h]hvoid *handle_mem}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM0hj0ubj)}(hhh]j9)}(h(The memory to copy from into the handle.h]h(The memory to copy from into the handle.}(hj00hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj,0hM0hj-0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj,0hM0hj/ubj)}(h6``size_t mem_len`` The length of memory to be written.h](j)}(h``size_t mem_len``h]j?)}(hjP0h]hsize_t mem_len}(hjR0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjN0ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM2hjJ0ubj)}(hhh]j9)}(h#The length of memory to be written.h]h#The length of memory to be written.}(hji0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM1hjf0ubah}(h]h ]h"]h$]h&]uh1jhjJ0ubeh}(h]h ]h"]h$]h&]uh1jhje0hM2hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"zpool_get_total_pages (C function)c.zpool_get_total_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h/u64 zpool_get_total_pages (struct zpool *zpool)h]h)}(h.u64 zpool_get_total_pages(struct zpool *zpool)h](h)}(hhh]h)}(hu64h]hu64}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj0modnameN classnameNj\j_)}jb]je)}jXzpool_get_total_pagessbc.zpool_get_total_pagesasbuh1hhj0hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM;ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj0hM;ubh)}(hzpool_get_total_pagesh]h)}(hj0h]hzpool_get_total_pages}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj0hhhj0hM;ubj)}(h(struct zpool *zpool)h]j)}(hstruct zpool *zpoolh](j!)}(hj$h]hstruct}(hj0hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj 1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]h)}(hzpoolh]hzpool}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]j0c.zpool_get_total_pagesasbuh1hhj0ubj)}(h h]h }(hj81hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2 )}(hj5 h]h*}(hjF1hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj0ubh)}(hzpoolh]hzpool}(hjS1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj0ubah}(h]h ]h"]h$]h&]jj uh1jhj0hhhj0hM;ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj0hhhj0hM;ubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hM;hj0hhubj )}(hhh]j9)}(hThe total size of the poolh]hThe total size of the pool}(hj}1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM;hjz1hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hM;ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j1j4j1j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct zpool *zpool`` The zpool to check **Description** This returns the total size in pages of the pool. **Return** Total size of the zpool in pages.h](j9)}(h**Parameters**h]jz)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM?hj1ubj)}(hhh]j)}(h+``struct zpool *zpool`` The zpool to check h](j)}(h``struct zpool *zpool``h]j?)}(hj1h]hstruct zpool *zpool}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM<hj1ubj)}(hhh]j9)}(hThe zpool to checkh]hThe zpool to check}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hM<hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM<hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubj9)}(h**Description**h]jz)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM>hj1ubj9)}(h1This returns the total size in pages of the pool.h]h1This returns the total size in pages of the pool.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM=hj1ubj9)}(h **Return**h]jz)}(hj 2h]hReturn}(hj"2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM?hj1ubj9)}(h!Total size of the zpool in pages.h]h!Total size of the zpool in pages.}(hj62hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/zpool.chM@hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&mem_cgroup_css_from_folio (C function)c.mem_cgroup_css_from_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hLstruct cgroup_subsys_state * mem_cgroup_css_from_folio (struct folio *folio)h]h)}(hJstruct cgroup_subsys_state *mem_cgroup_css_from_folio(struct folio *folio)h](j!)}(hj$h]hstruct}(hje2hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hja2hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chKubj)}(h h]h }(hjs2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja2hhhjr2hKubh)}(hhh]h)}(hcgroup_subsys_stateh]hcgroup_subsys_state}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2modnameN classnameNj\j_)}jb]je)}jXmem_cgroup_css_from_foliosbc.mem_cgroup_css_from_folioasbuh1hhja2hhhjr2hKubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja2hhhjr2hKubj2 )}(hj5 h]h*}(hj2hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hja2hhhjr2hKubh)}(hmem_cgroup_css_from_folioh]h)}(hj2h]hmem_cgroup_css_from_folio}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ](jjeh"]h$]h&]jj uh1hhja2hhhjr2hKubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj2hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]h)}(hfolioh]hfolio}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2modnameN classnameNj\j_)}jb]j2c.mem_cgroup_css_from_folioasbuh1hhj2ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj2 )}(hj5 h]h*}(hj)3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj2ubh)}(hfolioh]hfolio}(hj63hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj2ubah}(h]h ]h"]h$]h&]jj uh1jhja2hhhjr2hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj]2hhhjr2hKubah}(h]jX2ah ](jjeh"]h$]h&]jj)jhuh1hhjr2hKhjZ2hhubj )}(hhh]j9)}(h(css of the memcg associated with a folioh]h(css of the memcg associated with a folio}(hj`3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chKhj]3hhubah}(h]h ]h"]h$]h&]uh1jhjZ2hhhjr2hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jx3j4jx3j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chKhj|3ubj)}(hhh]j)}(h*``struct folio *folio`` folio of interest h](j)}(h``struct folio *folio``h]j?)}(hj3h]hstruct folio *folio}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj3ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chKhj3ubj)}(hhh]j9)}(hfolio of interesth]hfolio of interest}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj3hKhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKhj3ubah}(h]h ]h"]h$]h&]uh1jhj|3ubj9)}(h**Description**h]jz)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chKhj|3ubj9)}(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 }(hj3hhhNhNubjz)}(h **folio**h]hfolio}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubh8 is returned. The returned css remains associated with }(hj3hhhNhNubjz)}(h **folio**h]hfolio}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubh until it is released.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chKhj|3ubj9)}(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.}(hj%4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chKhj|3ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpage_cgroup_ino (C function)c.page_cgroup_inohNtauh1hhjhhhNhNubh)}(hhh](h)}(h)ino_t page_cgroup_ino (struct page *page)h]h)}(h(ino_t page_cgroup_ino(struct page *page)h](h)}(hhh]h)}(hino_th]hino_t}(hjW4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjT4ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjY4modnameN classnameNj\j_)}jb]je)}jXpage_cgroup_inosbc.page_cgroup_inoasbuh1hhjP4hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hjy4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP4hhhjx4hMubh)}(hpage_cgroup_inoh]h)}(hju4h]hpage_cgroup_ino}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjP4hhhjx4hMubj)}(h(struct page *page)h]j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj4hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]h)}(hpageh]hpage}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4modnameN classnameNj\j_)}jb]js4c.page_cgroup_inoasbuh1hhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2 )}(hj5 h]h*}(hj4hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4ubh)}(hpageh]hpage}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubah}(h]h ]h"]h$]h&]jj uh1jhjP4hhhjx4hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjL4hhhjx4hMubah}(h]jG4ah ](jjeh"]h$]h&]jj)jhuh1hhjx4hMhjI4hhubj )}(hhh]j9)}(h5return inode number of the memcg a page is charged toh]h5return inode number of the memcg a page is charged to}(hj'5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj$5hhubah}(h]h ]h"]h$]h&]uh1jhjI4hhhjx4hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j?5j4j?5j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjI5h]h Parameters}(hjK5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjG5ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjC5ubj)}(hhh]j)}(h``struct page *page`` the page h](j)}(h``struct page *page``h]j?)}(hjh5h]hstruct page *page}(hjj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjf5ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjb5ubj)}(hhh]j9)}(hthe pageh]hthe page}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj}5hMhj~5ubah}(h]h ]h"]h$]h&]uh1jhjb5ubeh}(h]h ]h"]h$]h&]uh1jhj}5hMhj_5ubah}(h]h ]h"]h$]h&]uh1jhjC5ubj9)}(h**Description**h]jz)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjC5ubj9)}(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 }(hj5hhhNhNubjz)}(h**page**h]hpage}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubh3 is charged to and return its inode number or 0 if }(hj5hhhNhNubjz)}(h**page**h]hpage}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubh_ is not charged to any cgroup. It is safe to call this function without holding a reference to }(hj5hhhNhNubjz)}(h**page**h]hpage}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjC5ubj9)}(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).}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjC5ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmod_memcg_state (C function)c.mod_memcg_statehNtauh1hhjhhhNhNubh)}(hhh](h)}(hRvoid mod_memcg_state (struct mem_cgroup *memcg, enum memcg_stat_item idx, int val)h]h)}(hQvoid mod_memcg_state(struct mem_cgroup *memcg, enum memcg_stat_item idx, int val)h](j)}(hvoidh]hvoid}(hj-6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)6hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hj<6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)6hhhj;6hMubh)}(hmod_memcg_stateh]h)}(hmod_memcg_stateh]hmod_memcg_state}(hjN6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJ6ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj)6hhhj;6hMubj)}(h=(struct mem_cgroup *memcg, enum memcg_stat_item idx, int val)h](j)}(hstruct mem_cgroup *memcgh](j!)}(hj$h]hstruct}(hjj6hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjf6ubj)}(h h]h }(hjw6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf6ubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6modnameN classnameNj\j_)}jb]je)}jXjP6sbc.mod_memcg_stateasbuh1hhjf6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf6ubj2 )}(hj5 h]h*}(hj6hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjf6ubh)}(hmemcgh]hmemcg}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjf6ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjb6ubj)}(henum memcg_stat_item idxh](j!)}(hj5h]henum}(hj6hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]h)}(hmemcg_stat_itemh]hmemcg_stat_item}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6modnameN classnameNj\j_)}jb]j6c.mod_memcg_stateasbuh1hhj6ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hidxh]hidx}(hj&7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjb6ubj)}(hint valh](j)}(hinth]hint}(hj?7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;7ubj)}(h h]h }(hjM7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;7ubh)}(hvalh]hval}(hj[7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;7ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjb6ubeh}(h]h ]h"]h$]h&]jj uh1jhj)6hhhj;6hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj%6hhhj;6hMubah}(h]j 6ah ](jjeh"]h$]h&]jj)jhuh1hhj;6hMhj"6hhubj )}(hhh]j9)}(hupdate cgroup memory statisticsh]hupdate cgroup memory statistics}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhj"6hhhj;6hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j7j4j7j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj7ubj)}(hhh](j)}(h/``struct mem_cgroup *memcg`` the memory cgroup h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hj7h]hstruct mem_cgroup *memcg}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj7ubj)}(hhh]j9)}(hthe memory cgrouph]hthe memory cgroup}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubj)}(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]j?)}(hj7h]henum memcg_stat_item idx}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj7ubj)}(hhh]j9)}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj7ubj)}(h8``int val`` delta to add to the counter, can be negativeh](j)}(h ``int val``h]j?)}(hj88h]hint val}(hj:8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj68ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj28ubj)}(hhh]j9)}(h,delta to add to the counter, can be negativeh]h,delta to add to the counter, can be negative}(hjQ8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjN8ubah}(h]h ]h"]h$]h&]uh1jhj28ubeh}(h]h ]h"]h$]h&]uh1jhjM8hMhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__mod_lruvec_state (C function)c.__mod_lruvec_statehNtauh1hhjhhhNhNubh)}(hhh](h)}(hQvoid __mod_lruvec_state (struct lruvec *lruvec, enum node_stat_item idx, int val)h]h)}(hPvoid __mod_lruvec_state(struct lruvec *lruvec, enum node_stat_item idx, int val)h](j)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj8hMubh)}(h__mod_lruvec_stateh]h)}(h__mod_lruvec_stateh]h__mod_lruvec_state}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8hhhj8hMubj)}(h9(struct lruvec *lruvec, enum node_stat_item idx, int val)h](j)}(hstruct lruvec *lruvech](j!)}(hj$h]hstruct}(hj8hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]h)}(hlruvech]hlruvec}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]je)}jXj8sbc.__mod_lruvec_stateasbuh1hhj8ubj)}(h h]h }(hj 9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2 )}(hj5 h]h*}(hj9hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj8ubh)}(hlruvech]hlruvec}(hj(9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj8ubj)}(henum node_stat_item idxh](j!)}(hj5h]henum}(hjA9hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj=9ubj)}(h h]h }(hjN9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=9ubh)}(hhh]h)}(hnode_stat_itemh]hnode_stat_item}(hj_9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\9ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetja9modnameN classnameNj\j_)}jb]j 9c.__mod_lruvec_stateasbuh1hhj=9ubj)}(h h]h }(hj}9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=9ubh)}(hidxh]hidx}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj8ubj)}(hint valh](j)}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hvalh]hval}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj8ubeh}(h]h ]h"]h$]h&]jj uh1jhj8hhhj8hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj8hhhj8hMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj8hMhj8hhubj )}(hhh]j9)}(hupdate lruvec memory statisticsh]hupdate lruvec memory statistics}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j:j4j:j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj :h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj :ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj:ubj)}(hhh](j)}(h%``struct lruvec *lruvec`` the lruvec h](j)}(h``struct lruvec *lruvec``h]j?)}(hj+:h]hstruct lruvec *lruvec}(hj-:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj):ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj%:ubj)}(hhh]j9)}(h the lruvech]h the lruvec}(hjD:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@:hMhjA:ubah}(h]h ]h"]h$]h&]uh1jhj%:ubeh}(h]h ]h"]h$]h&]uh1jhj@:hMhj":ubj)}(h*``enum node_stat_item idx`` the stat item h](j)}(h``enum node_stat_item idx``h]j?)}(hjd:h]henum node_stat_item idx}(hjf:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjb:ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj^:ubj)}(hhh]j9)}(h the stat itemh]h the stat item}(hj}:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjy:hMhjz:ubah}(h]h ]h"]h$]h&]uh1jhj^:ubeh}(h]h ]h"]h$]h&]uh1jhjy:hMhj":ubj)}(h9``int val`` delta to add to the counter, can be negative h](j)}(h ``int val``h]j?)}(hj:h]hint val}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj:ubj)}(hhh]j9)}(h,delta to add to the counter, can be negativeh]h,delta to add to the counter, can be negative}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hMhj":ubeh}(h]h ]h"]h$]h&]uh1jhj:ubj9)}(h**Description**h]jz)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj:ubj9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcount_memcg_events (C function)c.count_memcg_eventshNtauh1hhjhhhNhNubh)}(hhh](h)}(h_void count_memcg_events (struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h]h)}(h^void count_memcg_events(struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h](j)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM9ubj)}(h h]h }(hj,;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhj+;hM9ubh)}(hcount_memcg_eventsh]h)}(hcount_memcg_eventsh]hcount_memcg_events}(hj>;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:;ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj;hhhj+;hM9ubj)}(hG(struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h](j)}(hstruct mem_cgroup *memcgh](j!)}(hj$h]hstruct}(hjZ;hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjV;ubj)}(h h]h }(hjg;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV;ubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjx;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhju;ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjz;modnameN classnameNj\j_)}jb]je)}jXj@;sbc.count_memcg_eventsasbuh1hhjV;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV;ubj2 )}(hj5 h]h*}(hj;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjV;ubh)}(hmemcgh]hmemcg}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjV;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjR;ubj)}(henum vm_event_item idxh](j!)}(hj5h]henum}(hj;hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]h)}(h vm_event_itemh]h vm_event_item}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;modnameN classnameNj\j_)}jb]j;c.count_memcg_eventsasbuh1hhj;ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hidxh]hidx}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjR;ubj)}(hunsigned long counth](j)}(hunsignedh]hunsigned}(hj/<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+<ubj)}(h h]h }(hj=<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+<ubj)}(hlongh]hlong}(hjK<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+<ubj)}(h h]h }(hjY<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+<ubh)}(hcounth]hcount}(hjg<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+<ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjR;ubeh}(h]h ]h"]h$]h&]jj uh1jhj;hhhj+;hM9ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj;hhhj+;hM9ubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhj+;hM9hj;hhubj )}(hhh]j9)}(haccount VM events in a cgrouph]haccount VM events in a cgroup}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM9hj<hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj+;hM9ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j<j4j<j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj<ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM=hj<ubj)}(hhh](j)}(h/``struct mem_cgroup *memcg`` the memory cgroup h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hj<h]hstruct mem_cgroup *memcg}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj<ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM:hj<ubj)}(hhh]j9)}(hthe memory cgrouph]hthe memory cgroup}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<hM:hj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM:hj<ubj)}(h*``enum vm_event_item idx`` the event item h](j)}(h``enum vm_event_item idx``h]j?)}(hj =h]henum vm_event_item idx}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj =ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM;hj=ubj)}(hhh]j9)}(hthe event itemh]hthe event item}(hj$=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj =hM;hj!=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj =hM;hj<ubj)}(h:``unsigned long count`` the number of events that occurredh](j)}(h``unsigned long count``h]j?)}(hjD=h]hunsigned long count}(hjF=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjB=ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM=hj>=ubj)}(hhh]j9)}(h"the number of events that occurredh]h"the number of events that occurred}(hj]=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM<hjZ=ubah}(h]h ]h"]h$]h&]uh1jhj>=ubeh}(h]h ]h"]h$]h&]uh1jhjY=hM=hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#get_mem_cgroup_from_mm (C function)c.get_mem_cgroup_from_mmhNtauh1hhjhhhNhNubh)}(hhh](h)}(hAstruct mem_cgroup * get_mem_cgroup_from_mm (struct mm_struct *mm)h]h)}(h?struct mem_cgroup *get_mem_cgroup_from_mm(struct mm_struct *mm)h](j!)}(hj$h]hstruct}(hj=hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj=hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj=modnameN classnameNj\j_)}jb]je)}jXget_mem_cgroup_from_mmsbc.get_mem_cgroup_from_mmasbuh1hhj=hhhj=hMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMubj2 )}(hj5 h]h*}(hj=hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj=hhhj=hMubh)}(hget_mem_cgroup_from_mmh]h)}(hj=h]hget_mem_cgroup_from_mm}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj=hhhj=hMubj)}(h(struct mm_struct *mm)h]j)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hj>hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj>ubj)}(h h]h }(hj%>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]h)}(h mm_structh]h mm_struct}(hj6>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8>modnameN classnameNj\j_)}jb]j=c.get_mem_cgroup_from_mmasbuh1hhj>ubj)}(h h]h }(hjT>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2 )}(hj5 h]h*}(hjb>hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj>ubh)}(hmmh]hmm}(hjo>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj>ubah}(h]h ]h"]h$]h&]jj uh1jhj=hhhj=hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj=hhhj=hMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhj=hMhj=hhubj )}(hhh]j9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j>j4j>j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj>ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj>ubj)}(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]j?)}(hj>h]hstruct mm_struct *mm}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj>ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj>ubj)}(hhh]j9)}(h8mm from which memcg should be extracted. It can be NULL.h]h8mm from which memcg should be extracted. It can be NULL.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubj9)}(h**Description**h]jz)}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj>ubj9)}(hObtain a reference on mm->memcg and returns it if successful. If mm is NULL, then the memcg is chosen as follows: 1) The active memcg, if set. 2) current->mm->memcg, if available 3) root memcg If mem_cgroup is disabled, NULL is returned.h]hObtain a reference on mm->memcg and returns it if successful. If mm is NULL, then the memcg is chosen as follows: 1) The active memcg, if set. 2) current->mm->memcg, if available 3) root memcg If mem_cgroup is disabled, NULL is returned.}(hj+?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(get_mem_cgroup_from_current (C function)c.get_mem_cgroup_from_currenthNtauh1hhjhhhNhNubh)}(hhh](h)}(h6struct mem_cgroup * get_mem_cgroup_from_current (void)h]h)}(h4struct mem_cgroup *get_mem_cgroup_from_current(void)h](j!)}(hj$h]hstruct}(hjZ?hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjV?hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hjh?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV?hhhjg?hMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjy?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjv?ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{?modnameN classnameNj\j_)}jb]je)}jXget_mem_cgroup_from_currentsbc.get_mem_cgroup_from_currentasbuh1hhjV?hhhjg?hMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV?hhhjg?hMubj2 )}(hj5 h]h*}(hj?hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjV?hhhjg?hMubh)}(hget_mem_cgroup_from_currenth]h)}(hj?h]hget_mem_cgroup_from_current}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjV?hhhjg?hMubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]noemphjj uh1jhj?ubah}(h]h ]h"]h$]h&]jj uh1jhjV?hhhjg?hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjR?hhhjg?hMubah}(h]jM?ah ](jjeh"]h$]h&]jj)jhuh1hhjg?hMhjO?hhubj )}(hhh]j9)}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhjO?hhhjg?hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j@j4j@j5j6j7uh1hhhhjhNhNubjp)}(h'**Parameters** ``void`` no argumentsh](j9)}(h**Parameters**h]jz)}(hj @h]h Parameters}(hj"@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj@ubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]j?)}(hj?@h]hvoid}(hjA@hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj=@ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj9@ubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hjX@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chKhjU@ubah}(h]h ]h"]h$]h&]uh1jhj9@ubeh}(h]h ]h"]h$]h&]uh1jhjT@hMhj6@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&get_mem_cgroup_from_folio (C function)c.get_mem_cgroup_from_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hCstruct mem_cgroup * get_mem_cgroup_from_folio (struct folio *folio)h]h)}(hAstruct mem_cgroup *get_mem_cgroup_from_folio(struct folio *folio)h](j!)}(hj$h]hstruct}(hj@hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj@hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhj@hMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj@modnameN classnameNj\j_)}jb]je)}jXget_mem_cgroup_from_foliosbc.get_mem_cgroup_from_folioasbuh1hhj@hhhj@hMubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhj@hMubj2 )}(hj5 h]h*}(hj@hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj@hhhj@hMubh)}(hget_mem_cgroup_from_folioh]h)}(hj@h]hget_mem_cgroup_from_folio}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj@hhhj@hMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjAubj)}(h h]h }(hj AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]h)}(hfolioh]hfolio}(hj1AhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.Aubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3AmodnameN classnameNj\j_)}jb]j@c.get_mem_cgroup_from_folioasbuh1hhjAubj)}(h h]h }(hjOAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2 )}(hj5 h]h*}(hj]AhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjAubh)}(hfolioh]hfolio}(hjjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj Aubah}(h]h ]h"]h$]h&]jj uh1jhj@hhhj@hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj@hhhj@hMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj@hMhj@hhubj )}(hhh]j9)}(h,Obtain a reference on a given folio's memcg.h]h.Obtain a reference on a given folio’s memcg.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jAj4jAj5j6j7uh1hhhhjhNhNubjp)}(hU**Parameters** ``struct folio *folio`` folio from which memcg should be extracted.h](j9)}(h**Parameters**h]jz)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjAubj)}(hhh]j)}(hC``struct folio *folio`` folio from which memcg should be extracted.h](j)}(h``struct folio *folio``h]j?)}(hjAh]hstruct folio *folio}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjAubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjAubj)}(hhh]j9)}(h+folio from which memcg should be extracted.h]h+folio from which memcg should be extracted.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmem_cgroup_iter (C function)c.mem_cgroup_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hstruct mem_cgroup * mem_cgroup_iter (struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h]h)}(hstruct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h](j!)}(hj$h]hstruct}(hj/BhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj+BhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hj=BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Bhhhj ah"]h$]h&]uh1j1 hj+Bhhhj ah"]h$]h&]uh1j1 hjBubh)}(hrooth]hroot}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubj)}(hstruct mem_cgroup *prevh](j!)}(hj$h]hstruct}(hjChhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjCubj)}(h h]h }(hj&ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj7ChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4Cubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj9CmodnameN classnameNj\j_)}jb]jjBc.mem_cgroup_iterasbuh1hhjCubj)}(h h]h }(hjUChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2 )}(hj5 h]h*}(hjcChhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjCubh)}(hprevh]hprev}(hjpChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubj)}(h)struct mem_cgroup_reclaim_cookie *reclaimh](j!)}(hj$h]hstruct}(hjChhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]h)}(hmem_cgroup_reclaim_cookieh]hmem_cgroup_reclaim_cookie}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjCmodnameN classnameNj\j_)}jb]jjBc.mem_cgroup_iterasbuh1hhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2 )}(hj5 h]h*}(hjChhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjCubh)}(hreclaimh]hreclaim}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubeh}(h]h ]h"]h$]h&]jj uh1jhj+BhhhjhjIDubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjEDubj)}(hhh]j9)}(hhierarchy rooth]hhierarchy root}(hjdDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`DhMhjaDubah}(h]h ]h"]h$]h&]uh1jhjEDubeh}(h]h ]h"]h$]h&]uh1jhj`DhMhjBDubj)}(hP``struct mem_cgroup *prev`` previously returned memcg, NULL on first invocation h](j)}(h``struct mem_cgroup *prev``h]j?)}(hjDh]hstruct mem_cgroup *prev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj~Dubj)}(hhh]j9)}(h3previously returned memcg, NULL on first invocationh]h3previously returned memcg, NULL on first invocation}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhj~Dubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjBDubj)}(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]j?)}(hjDh]h)struct mem_cgroup_reclaim_cookie *reclaim}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjDubj)}(hhh]j9)}(h4cookie for shared reclaim walks, NULL for full walksh]h4cookie for shared reclaim walks, NULL for full walks}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjBDubeh}(h]h ]h"]h$]h&]uh1jhj&Dubj9)}(h**Description**h]jz)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj&Dubj9)}(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 }(hjEhhhNhNubjz)}(h**root**h]hroot}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubh, or }(hjEhhhNhNubjz)}(h**root**h]hroot}(hj(EhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubh itself, or }(hjEhhhNhNubj?)}(h``NULL``h]hNULL}(hj:EhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEubh after a full round-trip.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj&Dubj9)}(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 }(hjSEhhhNhNubjz)}(h**prev**h]hprev}(hj[EhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSEubh on subsequent invocations for reference counting, or use mem_cgroup_iter_break() to cancel a hierarchy walk before the round-trip is complete.}(hjSEhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj&Dubj9)}(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 }(hjtEhhhNhNubjz)}(h **reclaim**h]hreclaim}(hj|EhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtEubhe to divide up the memcgs in the hierarchy among all concurrent reclaimers operating on the same node.}(hjtEhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj&Dubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"mem_cgroup_iter_break (C function)c.mem_cgroup_iter_breakhNtauh1hhjhhhNhNubh)}(hhh](h)}(hMvoid mem_cgroup_iter_break (struct mem_cgroup *root, struct mem_cgroup *prev)h]h)}(hLvoid mem_cgroup_iter_break(struct mem_cgroup *root, struct mem_cgroup *prev)h](j)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMAubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjEhMAubh)}(hmem_cgroup_iter_breakh]h)}(hmem_cgroup_iter_breakh]hmem_cgroup_iter_break}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ](jjeh"]h$]h&]jj uh1hhjEhhhjEhMAubj)}(h2(struct mem_cgroup *root, struct mem_cgroup *prev)h](j)}(hstruct mem_cgroup *rooth](j!)}(hj$h]hstruct}(hjEhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Fubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFmodnameN classnameNj\j_)}jb]je)}jXjEsbc.mem_cgroup_iter_breakasbuh1hhjEubj)}(h h]h }(hj0FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2 )}(hj5 h]h*}(hj>FhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjEubh)}(hrooth]hroot}(hjKFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjEubj)}(hstruct mem_cgroup *prevh](j!)}(hj$h]hstruct}(hjdFhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj`Fubj)}(h h]h }(hjqFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Fubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFmodnameN classnameNj\j_)}jb]j,Fc.mem_cgroup_iter_breakasbuh1hhj`Fubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Fubj2 )}(hj5 h]h*}(hjFhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj`Fubh)}(hprevh]hprev}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`Fubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjEubeh}(h]h ]h"]h$]h&]jj uh1jhjEhhhjEhMAubeh}(h]h ]h"]h$]h&]jj juh1hjjhjEhhhjEhMAubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjEhMAhjEhhubj )}(hhh]j9)}(h"abort a hierarchy walk prematurelyh]h"abort a hierarchy walk prematurely}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMAhjFhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMAubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jFj4jFj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct mem_cgroup *root`` hierarchy root ``struct mem_cgroup *prev`` last visited hierarchy member as returned by mem_cgroup_iter()h](j9)}(h**Parameters**h]jz)}(hjGh]h Parameters}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMEhjGubj)}(hhh](j)}(h+``struct mem_cgroup *root`` hierarchy root h](j)}(h``struct mem_cgroup *root``h]j?)}(hj&Gh]hstruct mem_cgroup *root}(hj(GhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj$Gubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMBhj Gubj)}(hhh]j9)}(hhierarchy rooth]hhierarchy root}(hj?GhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj;GhMBhjhj]Gubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMDhjYGubj)}(hhh]j9)}(h>last visited hierarchy member as returned by mem_cgroup_iter()h]h>last visited hierarchy member as returned by mem_cgroup_iter()}(hjxGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMChjuGubah}(h]h ]h"]h$]h&]uh1jhjYGubeh}(h]h ]h"]h$]h&]uh1jhjtGhMDhjGubeh}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"mem_cgroup_scan_tasks (C function)c.mem_cgroup_scan_taskshNtauh1hhjhhhNhNubh)}(hhh](h)}(hivoid mem_cgroup_scan_tasks (struct mem_cgroup *memcg, int (*fn)(struct task_struct *, void *), void *arg)h]h)}(hfvoid mem_cgroup_scan_tasks(struct mem_cgroup *memcg, int (*fn)(struct task_struct*, void*), void *arg)h](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMrubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjGhMrubh)}(hmem_cgroup_scan_tasksh]h)}(hmem_cgroup_scan_tasksh]hmem_cgroup_scan_tasks}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubah}(h]h ](jjeh"]h$]h&]jj uh1hhjGhhhjGhMrubj)}(hL(struct mem_cgroup *memcg, int (*fn)(struct task_struct*, void*), void *arg)h](j)}(hstruct mem_cgroup *memcgh](j!)}(hj$h]hstruct}(hjGhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjGubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjHmodnameN classnameNj\j_)}jb]je)}jXjGsbc.mem_cgroup_scan_tasksasbuh1hhjGubj)}(h h]h }(hj4HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2 )}(hj5 h]h*}(hjBHhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjGubh)}(hmemcgh]hmemcg}(hjOHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjGubj)}(h%int (*fn)(struct task_struct*, void*)h](j)}(hinth]hint}(hjhHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdHubj)}(h h]h }(hjvHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdHubj2 )}(hjk h]h(}(hjHhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdHubj2 )}(hj5 h]h*}(hjHhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdHubh)}(hfnh]hfn}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdHubj2 )}(hj h]h)}(hjHhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdHubj2 )}(hjk h]h(}(hjHhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdHubj!)}(hj$h]hstruct}(hjHhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjdHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdHubh)}(hhh]h)}(h task_structh]h task_struct}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjHmodnameN classnameNj\j_)}jb]j0Hc.mem_cgroup_scan_tasksasbuh1hhjdHubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdHubj2 )}(h,h]h,}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdHubj)}(hvoidh]hvoid}(hj+IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdHubj2 )}(hj5 h]h*}(hj9IhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdHubj2 )}(hj h]h)}(hjFIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdHubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjGubj)}(h void *argh](j)}(hvoidh]hvoid}(hj^IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZIubj)}(h h]h }(hjlIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZIubj2 )}(hj5 h]h*}(hjzIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZIubh)}(hargh]harg}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZIubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjGubeh}(h]h ]h"]h$]h&]jj uh1jhjGhhhjGhMrubeh}(h]h ]h"]h$]h&]jj juh1hjjhjGhhhjGhMrubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjGhMrhjGhhubj )}(hhh]j9)}(h/iterate over tasks of a memory cgroup hierarchyh]h/iterate over tasks of a memory cgroup hierarchy}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMrhjIhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhMrubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jIj4jIj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjIubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMvhjIubj)}(hhh](j)}(h,``struct mem_cgroup *memcg`` hierarchy root h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hjIh]hstruct mem_cgroup *memcg}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMshjIubj)}(hhh]j9)}(hhierarchy rooth]hhierarchy root}(hj JhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjJhMshjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjJhMshjIubj)}(hK``int (*fn)(struct task_struct *, void *)`` function to call for each task h](j)}(h+``int (*fn)(struct task_struct *, void *)``h]j?)}(hj+Jh]h'int (*fn)(struct task_struct *, void *)}(hj-JhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj)Jubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMthj%Jubj)}(hhh]j9)}(hfunction to call for each taskh]hfunction to call for each task}(hjDJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@JhMthjAJubah}(h]h ]h"]h$]h&]uh1jhj%Jubeh}(h]h ]h"]h$]h&]uh1jhj@JhMthjIubj)}(h(``void *arg`` argument passed to **fn** h](j)}(h ``void *arg``h]j?)}(hjdJh]h void *arg}(hjfJhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbJubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMuhj^Jubj)}(hhh]j9)}(hargument passed to **fn**h](hargument passed to }(hj}JhhhNhNubjz)}(h**fn**h]hfn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}Jubeh}(h]h ]h"]h$]h&]uh1j8hjyJhMuhjzJubah}(h]h ]h"]h$]h&]uh1jhj^Jubeh}(h]h ]h"]h$]h&]uh1jhjyJhMuhjIubeh}(h]h ]h"]h$]h&]uh1jhjIubj9)}(h**Description**h]jz)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMwhjIubj9)}(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 }(hjJhhhNhNubjz)}(h **memcg**h]hmemcg}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubh( or to any of its descendants and calls }(hjJhhhNhNubjz)}(h**fn**h]hfn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubh for each task. If }(hjJhhhNhNubjz)}(h**fn**h]hfn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubhz returns a non-zero value, the function breaks the iteration loop. Otherwise, it will iterate over all tasks and return 0.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMvhjIubj9)}(h ah"]h$]h&]uh1j1 hj3KhhhjDKhMubh)}(hfolio_lruvec_lockh]h)}(hjtKh]hfolio_lruvec_lock}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubah}(h]h ](jjeh"]h$]h&]jj uh1hhj3KhhhjDKhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjKhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]h)}(hfolioh]hfolio}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjKmodnameN classnameNj\j_)}jb]jrKc.folio_lruvec_lockasbuh1hhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2 )}(hj5 h]h*}(hjKhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjKubh)}(hfolioh]hfolio}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjKubah}(h]h ]h"]h$]h&]jj uh1jhj3KhhhjDKhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj/KhhhjDKhMubah}(h]j*Kah ](jjeh"]h$]h&]jj)jhuh1hhjDKhMhj,Khhubj )}(hhh]j9)}(hLock the lruvec for a folio.h]hLock the lruvec for a folio.}(hj2LhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj/Lhhubah}(h]h ]h"]h$]h&]uh1jhj,KhhhjDKhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jJLj4jJLj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct folio *folio`` Pointer to the folio. **Description** These functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0) **Return** The lruvec this folio is on with its lock held.h](j9)}(h**Parameters**h]jz)}(hjTLh]h Parameters}(hjVLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRLubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjNLubj)}(hhh]j)}(h.``struct folio *folio`` Pointer to the folio. h](j)}(h``struct folio *folio``h]j?)}(hjsLh]hstruct folio *folio}(hjuLhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjqLubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjmLubj)}(hhh]j9)}(hPointer to the folio.h]hPointer to the folio.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjmLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjjLubah}(h]h ]h"]h$]h&]uh1jhjNLubj9)}(h**Description**h]jz)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjNLubj9)}(hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)h]hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjNLubj9)}(h **Return**h]jz)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjNLubj9)}(h/The lruvec this folio is on with its lock held.h]h/The lruvec this folio is on with its lock held.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjNLubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"folio_lruvec_lock_irq (C function)c.folio_lruvec_lock_irqhNtauh1hhjhhhNhNubh)}(hhh](h)}(h;struct lruvec * folio_lruvec_lock_irq (struct folio *folio)h]h)}(h9struct lruvec *folio_lruvec_lock_irq(struct folio *folio)h](j!)}(hj$h]hstruct}(hjMhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjMhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hj(MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj'MhMubh)}(hhh]h)}(hlruvech]hlruvec}(hj9MhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6Mubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;MmodnameN classnameNj\j_)}jb]je)}jXfolio_lruvec_lock_irqsbc.folio_lruvec_lock_irqasbuh1hhjMhhhj'MhMubj)}(h h]h }(hjZMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj'MhMubj2 )}(hj5 h]h*}(hjhMhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjMhhhj'MhMubh)}(hfolio_lruvec_lock_irqh]h)}(hjWMh]hfolio_lruvec_lock_irq}(hjyMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuMubah}(h]h ](jjeh"]h$]h&]jj uh1hhjMhhhj'MhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjMhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]h)}(hfolioh]hfolio}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjMmodnameN classnameNj\j_)}jb]jUMc.folio_lruvec_lock_irqasbuh1hhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2 )}(hj5 h]h*}(hjMhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjMubh)}(hfolioh]hfolio}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjMubah}(h]h ]h"]h$]h&]jj uh1jhjMhhhj'MhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjMhhhj'MhMubah}(h]j Mah ](jjeh"]h$]h&]jj)jhuh1hhj'MhMhjMhhubj )}(hhh]j9)}(hLock the lruvec for a folio.h]hLock the lruvec for a folio.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhj'MhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j-Nj4j-Nj5j6j7uh1hhhhjhNhNubjp)}(hX2**Parameters** ``struct folio *folio`` Pointer to the folio. **Description** These functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0) **Return** The lruvec this folio is on with its lock held and interrupts disabled.h](j9)}(h**Parameters**h]jz)}(hj7Nh]h Parameters}(hj9NhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5Nubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj1Nubj)}(hhh]j)}(h.``struct folio *folio`` Pointer to the folio. h](j)}(h``struct folio *folio``h]j?)}(hjVNh]hstruct folio *folio}(hjXNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjTNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjPNubj)}(hhh]j9)}(hPointer to the folio.h]hPointer to the folio.}(hjoNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkNhMhjlNubah}(h]h ]h"]h$]h&]uh1jhjPNubeh}(h]h ]h"]h$]h&]uh1jhjkNhMhjMNubah}(h]h ]h"]h$]h&]uh1jhj1Nubj9)}(h**Description**h]jz)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj1Nubj9)}(hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)h]hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj1Nubj9)}(h **Return**h]jz)}(hjNh]hReturn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj1Nubj9)}(hGThe lruvec this folio is on with its lock held and interrupts disabled.h]hGThe lruvec this folio is on with its lock held and interrupts disabled.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj1Nubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&folio_lruvec_lock_irqsave (C function)c.folio_lruvec_lock_irqsavehNtauh1hhjhhhNhNubh)}(hhh](h)}(hUstruct lruvec * folio_lruvec_lock_irqsave (struct folio *folio, unsigned long *flags)h]h)}(hSstruct lruvec *folio_lruvec_lock_irqsave(struct folio *folio, unsigned long *flags)h](j!)}(hj$h]hstruct}(hjNhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjNhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hj OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhj OhMubh)}(hhh]h)}(hlruvech]hlruvec}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjOmodnameN classnameNj\j_)}jb]je)}jXfolio_lruvec_lock_irqsavesbc.folio_lruvec_lock_irqsaveasbuh1hhjNhhhj OhMubj)}(h h]h }(hj=OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhj OhMubj2 )}(hj5 h]h*}(hjKOhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjNhhhj OhMubh)}(hfolio_lruvec_lock_irqsaveh]h)}(hj:Oh]hfolio_lruvec_lock_irqsave}(hj\OhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXOubah}(h]h ](jjeh"]h$]h&]jj uh1hhjNhhhj OhMubj)}(h+(struct folio *folio, unsigned long *flags)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjwOhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjsOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsOubh)}(hhh]h)}(hfolioh]hfolio}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjOmodnameN classnameNj\j_)}jb]j8Oc.folio_lruvec_lock_irqsaveasbuh1hhjsOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsOubj2 )}(hj5 h]h*}(hjOhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjsOubh)}(hfolioh]hfolio}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoOubj)}(hunsigned long *flagsh](j)}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2 )}(hj5 h]h*}(hjPhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjOubh)}(hflagsh]hflags}(hj,PhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoOubeh}(h]h ]h"]h$]h&]jj uh1jhjNhhhj OhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjNhhhj OhMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhj OhMhjNhhubj )}(hhh]j9)}(hLock the lruvec for a folio.h]hLock the lruvec for a folio.}(hjVPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjSPhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhj OhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jnPj4jnPj5j6j7uh1hhhhjhNhNubjp)}(hXh**Parameters** ``struct folio *folio`` Pointer to the folio. ``unsigned long *flags`` Pointer to irqsave flags. **Description** These functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0) **Return** The lruvec this folio is on with its lock held and interrupts disabled.h](j9)}(h**Parameters**h]jz)}(hjxPh]h Parameters}(hjzPhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvPubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjrPubj)}(hhh](j)}(h.``struct folio *folio`` Pointer to the folio. h](j)}(h``struct folio *folio``h]j?)}(hjPh]hstruct folio *folio}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjPubj)}(hhh]j9)}(hPointer to the folio.h]hPointer to the folio.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubj)}(h3``unsigned long *flags`` Pointer to irqsave flags. h](j)}(h``unsigned long *flags``h]j?)}(hjPh]hunsigned long *flags}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjPubj)}(hhh]j9)}(hPointer to irqsave flags.h]hPointer to irqsave flags.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubeh}(h]h ]h"]h$]h&]uh1jhjrPubj9)}(h**Description**h]jz)}(hj Qh]h Description}(hj QhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj Qubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjrPubj9)}(hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)h]hThese functions are safe to use under any of the following conditions: - folio locked - folio_test_lru false - folio frozen (refcount of 0)}(hj!QhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjrPubj9)}(h **Return**h]jz)}(hj2Qh]hReturn}(hj4QhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0Qubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjrPubj9)}(hGThe lruvec this folio is on with its lock held and interrupts disabled.h]hGThe lruvec this folio is on with its lock held and interrupts disabled.}(hjHQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjrPubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'mem_cgroup_update_lru_size (C function)c.mem_cgroup_update_lru_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(havoid mem_cgroup_update_lru_size (struct lruvec *lruvec, enum lru_list lru, int zid, int nr_pages)h]h)}(h`void mem_cgroup_update_lru_size(struct lruvec *lruvec, enum lru_list lru, int zid, int nr_pages)h](j)}(hvoidh]hvoid}(hjwQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsQhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsQhhhjQhMubh)}(hmem_cgroup_update_lru_sizeh]h)}(hmem_cgroup_update_lru_sizeh]hmem_cgroup_update_lru_size}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubah}(h]h ](jjeh"]h$]h&]jj uh1hhjsQhhhjQhMubj)}(hA(struct lruvec *lruvec, enum lru_list lru, int zid, int nr_pages)h](j)}(hstruct lruvec *lruvech](j!)}(hj$h]hstruct}(hjQhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]h)}(hlruvech]hlruvec}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjQmodnameN classnameNj\j_)}jb]je)}jXjQsbc.mem_cgroup_update_lru_sizeasbuh1hhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2 )}(hj5 h]h*}(hjRhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjQubh)}(hlruvech]hlruvec}(hj RhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQubj)}(henum lru_list lruh](j!)}(hj5h]henum}(hj&RhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj"Rubj)}(h h]h }(hj3RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Rubh)}(hhh]h)}(hlru_listh]hlru_list}(hjDRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjARubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFRmodnameN classnameNj\j_)}jb]jQc.mem_cgroup_update_lru_sizeasbuh1hhj"Rubj)}(h h]h }(hjbRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Rubh)}(hlruh]hlru}(hjpRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"Rubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQubj)}(hint zidh](j)}(hinth]hint}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hzidh]hzid}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQubj)}(h int nr_pagesh](j)}(hinth]hint}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hnr_pagesh]hnr_pages}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQubeh}(h]h ]h"]h$]h&]jj uh1jhjsQhhhjQhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjoQhhhjQhMubah}(h]jjQah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhjlQhhubj )}(hhh]j9)}(h*account for adding or removing an lru pageh]h*account for adding or removing an lru page}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjlQhhhjQhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jSj4jSj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct lruvec *lruvec`` mem_cgroup per zone lru vector ``enum lru_list lru`` index of lru list the page is sitting on ``int zid`` zone id of the accounted pages ``int nr_pages`` positive when adding or negative when removing **Description** This function must be called under lru_lock, just before a page is added to or just after a page is removed from an lru list.h](j9)}(h**Parameters**h]jz)}(hj&Sh]h Parameters}(hj(ShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj$Subah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj Subj)}(hhh](j)}(h9``struct lruvec *lruvec`` mem_cgroup per zone lru vector h](j)}(h``struct lruvec *lruvec``h]j?)}(hjESh]hstruct lruvec *lruvec}(hjGShhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCSubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj?Subj)}(hhh]j9)}(hmem_cgroup per zone lru vectorh]hmem_cgroup per zone lru vector}(hj^ShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjZShMhj[Subah}(h]h ]h"]h$]h&]uh1jhj?Subeh}(h]h ]h"]h$]h&]uh1jhjZShMhjhj|Subah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjxSubj)}(hhh]j9)}(h(index of lru list the page is sitting onh]h(index of lru list the page is sitting on}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjShMhjSubah}(h]h ]h"]h$]h&]uh1jhjxSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjhjSubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjSubj)}(hhh]j9)}(hzone id of the accounted pagesh]hzone id of the accounted pages}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjShMhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShMhjhjSubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjSubj)}(hhh]j9)}(h.positive when adding or negative when removingh]h.positive when adding or negative when removing}(hj ThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjThMhj ah"]h$]h&]uh1j1 hjTubh)}(hmemcgh]hmemcg}(hj"UhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjTubah}(h]h ]h"]h$]h&]jj uh1jhjlThhhj~ThMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhThhhj~ThMubah}(h]jcTah ](jjeh"]h$]h&]jj)jhuh1hhj~ThMhjeThhubj )}(hhh]j9)}(h-calculate chargeable space of a memory cgrouph]h-calculate chargeable space of a memory cgroup}(hjLUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjIUhhubah}(h]h ]h"]h$]h&]uh1jhjeThhhj~ThMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jdUj4jdUj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct mem_cgroup *memcg`` the memory cgroup **Description** Returns the maximum amount of memory **mem** can be charged with, in pages.h](j9)}(h**Parameters**h]jz)}(hjnUh]h Parameters}(hjpUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlUubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjhUubj)}(hhh]j)}(h/``struct mem_cgroup *memcg`` the memory cgroup h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hjUh]hstruct mem_cgroup *memcg}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjUubj)}(hhh]j9)}(hthe memory cgrouph]hthe memory cgroup}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjUhMhjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjUubah}(h]h ]h"]h$]h&]uh1jhjhUubj9)}(h**Description**h]jz)}(hjUh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjhUubj9)}(hKReturns the maximum amount of memory **mem** can be charged with, in pages.h](h%Returns the maximum amount of memory }(hjUhhhNhNubjz)}(h**mem**h]hmem}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubh can be charged with, in pages.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjhUubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)mem_cgroup_print_oom_context (C function)c.mem_cgroup_print_oom_contexthNtauh1hhjhhhNhNubh)}(hhh](h)}(hSvoid mem_cgroup_print_oom_context (struct mem_cgroup *memcg, struct task_struct *p)h]h)}(hRvoid mem_cgroup_print_oom_context(struct mem_cgroup *memcg, struct task_struct *p)h](j)}(hvoidh]hvoid}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hj.VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhj-VhMubh)}(hmem_cgroup_print_oom_contexth]h)}(hmem_cgroup_print_oom_contexth]hmem_cgroup_print_oom_context}(hj@VhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ah"]h$]h&]uh1j1 hjXVubh)}(hmemcgh]hmemcg}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXVubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjTVubj)}(hstruct task_struct *ph](j!)}(hj$h]hstruct}(hjVhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]h)}(h task_structh]h task_struct}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjVmodnameN classnameNj\j_)}jb]jVc.mem_cgroup_print_oom_contextasbuh1hhjVubj)}(h h]h }(hj WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2 )}(hj5 h]h*}(hjWhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjVubh)}(hj> h]hp}(hj%WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjTVubeh}(h]h ]h"]h$]h&]jj uh1jhjVhhhj-VhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjVhhhj-VhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhj-VhMhjVhhubj )}(hhh]j9)}(h4Print OOM information relevant to memory controller.h]h4Print OOM information relevant to memory controller.}(hjNWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjKWhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhj-VhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jfWj4jfWj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct mem_cgroup *memcg`` The memory cgroup that went over limit ``struct task_struct *p`` Task that is going to be killed **NOTE** **memcg** and **p**'s mem_cgroup can be different when hierarchy is enabledh](j9)}(h**Parameters**h]jz)}(hjpWh]h Parameters}(hjrWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnWubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjjWubj)}(hhh](j)}(hD``struct mem_cgroup *memcg`` The memory cgroup that went over limit h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hjWh]hstruct mem_cgroup *memcg}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjWubj)}(hhh]j9)}(h&The memory cgroup that went over limith]h&The memory cgroup that went over limit}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjWubj)}(h:``struct task_struct *p`` Task that is going to be killed h](j)}(h``struct task_struct *p``h]j?)}(hjWh]hstruct task_struct *p}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjWubj)}(hhh]j9)}(hTask that is going to be killedh]hTask that is going to be killed}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjWubeh}(h]h ]h"]h$]h&]uh1jhjjWubj9)}(h**NOTE**h]jz)}(hjXh]hNOTE}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjjWubj9)}(hK**memcg** and **p**'s mem_cgroup can be different when hierarchy is enabledh](jz)}(h **memcg**h]hmemcg}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubh and }(hjXhhhNhNubjz)}(h**p**h]hp}(hj/XhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubh:’s mem_cgroup can be different when hierarchy is enabled}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjjWubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)mem_cgroup_print_oom_meminfo (C function)c.mem_cgroup_print_oom_meminfohNtauh1hhjhhhNhNubh)}(hhh](h)}(h ah"]h$]h&]uh1j1 hjXubh)}(hmemcgh]hmemcg}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjXubah}(h]h ]h"]h$]h&]jj uh1jhjdXhhhjvXhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj`XhhhjvXhMubah}(h]j[Xah ](jjeh"]h$]h&]jj)jhuh1hhjvXhMhj]Xhhubj )}(hhh]j9)}(h;Print OOM memory information relevant to memory controller.h]h;Print OOM memory information relevant to memory controller.}(hj(YhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj%Yhhubah}(h]h ]h"]h$]h&]uh1jhj]XhhhjvXhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j@Yj4j@Yj5j6j7uh1hhhhjhNhNubjp)}(hU**Parameters** ``struct mem_cgroup *memcg`` The memory cgroup that went over limith](j9)}(h**Parameters**h]jz)}(hjJYh]h Parameters}(hjLYhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHYubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjDYubj)}(hhh]j)}(hC``struct mem_cgroup *memcg`` The memory cgroup that went over limith](j)}(h``struct mem_cgroup *memcg``h]j?)}(hjiYh]hstruct mem_cgroup *memcg}(hjkYhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgYubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjcYubj)}(hhh]j9)}(h&The memory cgroup that went over limith]h&The memory cgroup that went over limit}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjYubah}(h]h ]h"]h$]h&]uh1jhjcYubeh}(h]h ]h"]h$]h&]uh1jhj~YhMhj`Yubah}(h]h ]h"]h$]h&]uh1jhjDYubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%mem_cgroup_get_oom_group (C function)c.mem_cgroup_get_oom_grouphNtauh1hhjhhhNhNubh)}(hhh](h)}(hhstruct mem_cgroup * mem_cgroup_get_oom_group (struct task_struct *victim, struct mem_cgroup *oom_domain)h]h)}(hfstruct mem_cgroup *mem_cgroup_get_oom_group(struct task_struct *victim, struct mem_cgroup *oom_domain)h](j!)}(hj$h]hstruct}(hjYhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjYhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjYhMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjYmodnameN classnameNj\j_)}jb]je)}jXmem_cgroup_get_oom_groupsbc.mem_cgroup_get_oom_groupasbuh1hhjYhhhjYhMubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjYhMubj2 )}(hj5 h]h*}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjYhhhjYhMubh)}(hmem_cgroup_get_oom_grouph]h)}(hjZh]hmem_cgroup_get_oom_group}(hj"ZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ](jjeh"]h$]h&]jj uh1hhjYhhhjYhMubj)}(h;(struct task_struct *victim, struct mem_cgroup *oom_domain)h](j)}(hstruct task_struct *victimh](j!)}(hj$h]hstruct}(hj=ZhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj9Zubj)}(h h]h }(hjJZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Zubh)}(hhh]h)}(h task_structh]h task_struct}(hj[ZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXZubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj]ZmodnameN classnameNj\j_)}jb]jYc.mem_cgroup_get_oom_groupasbuh1hhj9Zubj)}(h h]h }(hjyZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Zubj2 )}(hj5 h]h*}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj9Zubh)}(hvictimh]hvictim}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9Zubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5Zubj)}(hstruct mem_cgroup *oom_domainh](j!)}(hj$h]hstruct}(hjZhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjZmodnameN classnameNj\j_)}jb]jYc.mem_cgroup_get_oom_groupasbuh1hhjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2 )}(hj5 h]h*}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZubh)}(h oom_domainh]h oom_domain}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5Zubeh}(h]h ]h"]h$]h&]jj uh1jhjYhhhjYhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjYhhhjYhMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjYhMhjYhhubj )}(hhh]j9)}(h)get a memory cgroup to clean up after OOMh]h)get a memory cgroup to clean up after OOM}(hj.[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj+[hhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jF[j4jF[j5j6j7uh1hhhhjhNhNubjp)}(hXz**Parameters** ``struct task_struct *victim`` task to be killed by the OOM killer ``struct mem_cgroup *oom_domain`` memcg in case of memcg OOM, NULL in case of system-wide OOM **Description** Returns a pointer to a memory cgroup, which has to be cleaned up by killing all belonging OOM-killable tasks. Caller has to call mem_cgroup_put() on the returned non-NULL memcg.h](j9)}(h**Parameters**h]jz)}(hjP[h]h Parameters}(hjR[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjN[ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjJ[ubj)}(hhh](j)}(hC``struct task_struct *victim`` task to be killed by the OOM killer h](j)}(h``struct task_struct *victim``h]j?)}(hjo[h]hstruct task_struct *victim}(hjq[hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjm[ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhji[ubj)}(hhh]j9)}(h#task to be killed by the OOM killerh]h#task to be killed by the OOM killer}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hMhj[ubah}(h]h ]h"]h$]h&]uh1jhji[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjf[ubj)}(h^``struct mem_cgroup *oom_domain`` memcg in case of memcg OOM, NULL in case of system-wide OOM h](j)}(h!``struct mem_cgroup *oom_domain``h]j?)}(hj[h]hstruct mem_cgroup *oom_domain}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj[ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj[ubj)}(hhh]j9)}(h;memcg in case of memcg OOM, NULL in case of system-wide OOMh]h;memcg in case of memcg OOM, NULL in case of system-wide OOM}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hMhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjf[ubeh}(h]h ]h"]h$]h&]uh1jhjJ[ubj9)}(h**Description**h]jz)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjJ[ubj9)}(hmReturns a pointer to a memory cgroup, which has to be cleaned up by killing all belonging OOM-killable tasks.h]hmReturns a pointer to a memory cgroup, which has to be cleaned up by killing all belonging OOM-killable tasks.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjJ[ubj9)}(hCCaller has to call mem_cgroup_put() on the returned non-NULL memcg.h]hCCaller has to call mem_cgroup_put() on the returned non-NULL memcg.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjJ[ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌconsume_stock (C function)c.consume_stockhNtauh1hhjhhhNhNubh)}(hhh](h)}(hDbool consume_stock (struct mem_cgroup *memcg, unsigned int nr_pages)h]h)}(hCbool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages)h](j)}(hj)h]hbool}(hj7\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3\hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hjE\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3\hhhjD\hMubh)}(h consume_stockh]h)}(h consume_stockh]h consume_stock}(hjW\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjS\ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj3\hhhjD\hMubj)}(h1(struct mem_cgroup *memcg, unsigned int nr_pages)h](j)}(hstruct mem_cgroup *memcgh](j!)}(hj$h]hstruct}(hjs\hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjo\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo\ubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj\modnameN classnameNj\j_)}jb]je)}jXjY\sbc.consume_stockasbuh1hhjo\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo\ubj2 )}(hj5 h]h*}(hj\hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjo\ubh)}(hmemcgh]hmemcg}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjo\ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjk\ubj)}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hinth]hint}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hnr_pagesh]hnr_pages}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjk\ubeh}(h]h ]h"]h$]h&]jj uh1jhj3\hhhjD\hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj/\hhhjD\hMubah}(h]j*\ah ](jjeh"]h$]h&]jj)jhuh1hhjD\hMhj,\hhubj )}(hhh]j9)}(h*Try to consume stocked charge on this cpu.h]h*Try to consume stocked charge on this cpu.}(hjG]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjD]hhubah}(h]h ]h"]h$]h&]uh1jhj,\hhhjD\hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j_]j4j_]j5j6j7uh1hhhhjhNhNubjp)}(hX|**Parameters** ``struct mem_cgroup *memcg`` memcg to consume from. ``unsigned int nr_pages`` how many pages to charge. **Description** Consume the cached charge if enough nr_pages are present otherwise return failure. Also return failure for charge request larger than MEMCG_CHARGE_BATCH or if the local lock is already taken. returns true if successful, false otherwise.h](j9)}(h**Parameters**h]jz)}(hji]h]h Parameters}(hjk]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjg]ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjc]ubj)}(hhh](j)}(h4``struct mem_cgroup *memcg`` memcg to consume from. h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hj]h]hstruct mem_cgroup *memcg}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj]ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj]ubj)}(hhh]j9)}(hmemcg to consume from.h]hmemcg to consume from.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubj)}(h4``unsigned int nr_pages`` how many pages to charge. h](j)}(h``unsigned int nr_pages``h]j?)}(hj]h]hunsigned int nr_pages}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj]ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj]ubj)}(hhh]j9)}(hhow many pages to charge.h]hhow many pages to charge.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubeh}(h]h ]h"]h$]h&]uh1jhjc]ubj9)}(h**Description**h]jz)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj]ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjc]ubj9)}(hConsume the cached charge if enough nr_pages are present otherwise return failure. Also return failure for charge request larger than MEMCG_CHARGE_BATCH or if the local lock is already taken.h]hConsume the cached charge if enough nr_pages are present otherwise return failure. Also return failure for charge request larger than MEMCG_CHARGE_BATCH or if the local lock is already taken.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjc]ubj9)}(h,returns true if successful, false otherwise.h]h,returns true if successful, false otherwise.}(hj!^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjc]ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%__memcg_kmem_charge_page (C function)c.__memcg_kmem_charge_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hFint __memcg_kmem_charge_page (struct page *page, gfp_t gfp, int order)h]h)}(hEint __memcg_kmem_charge_page(struct page *page, gfp_t gfp, int order)h](j)}(hinth]hint}(hjP^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL^hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM ubj)}(h h]h }(hj_^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL^hhhj^^hM ubh)}(h__memcg_kmem_charge_pageh]h)}(h__memcg_kmem_charge_pageh]h__memcg_kmem_charge_page}(hjq^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjm^ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjL^hhhj^^hM ubj)}(h)(struct page *page, gfp_t gfp, int order)h](j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj^hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]h)}(hpageh]hpage}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj^modnameN classnameNj\j_)}jb]je)}jXjs^sbc.__memcg_kmem_charge_pageasbuh1hhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2 )}(hj5 h]h*}(hj^hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj^ubh)}(hpageh]hpage}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj^ubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_modnameN classnameNj\j_)}jb]j^c.__memcg_kmem_charge_pageasbuh1hhj^ubj)}(h h]h }(hj _hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hgfph]hgfp}(hj._hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj^ubj)}(h int orderh](j)}(hinth]hint}(hjG_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC_ubj)}(h h]h }(hjU_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC_ubh)}(horderh]horder}(hjc_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjC_ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj^ubeh}(h]h ]h"]h$]h&]jj uh1jhjL^hhhj^^hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjH^hhhj^^hM ubah}(h]jC^ah ](jjeh"]h$]h&]jj)jhuh1hhj^^hM hjE^hhubj )}(hhh]j9)}(h/charge a kmem page to the current memory cgrouph]h/charge a kmem page to the current memory cgroup}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj_hhubah}(h]h ]h"]h$]h&]uh1jhjE^hhhj^^hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j_j4j_j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct page *page`` page to charge ``gfp_t gfp`` reclaim mode ``int order`` allocation order **Description** Returns 0 on success, an error code on failure.h](j9)}(h**Parameters**h]jz)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj_ubj)}(hhh](j)}(h%``struct page *page`` page to charge h](j)}(h``struct page *page``h]j?)}(hj_h]hstruct page *page}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj_ubj)}(hhh]j9)}(hpage to chargeh]hpage to charge}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_hM hj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hM hj_ubj)}(h``gfp_t gfp`` reclaim mode h](j)}(h ``gfp_t gfp``h]j?)}(hj`h]h gfp_t gfp}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj`ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj`ubj)}(hhh]j9)}(h reclaim modeh]h reclaim mode}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`hM hj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hM hj_ubj)}(h``int order`` allocation order h](j)}(h ``int order``h]j?)}(hj@`h]h int order}(hjB`hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj>`ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj:`ubj)}(hhh]j9)}(hallocation orderh]hallocation order}(hjY`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjU`hM hjV`ubah}(h]h ]h"]h$]h&]uh1jhj:`ubeh}(h]h ]h"]h$]h&]uh1jhjU`hM hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubj9)}(h**Description**h]jz)}(hj{`h]h Description}(hj}`hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjy`ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj_ubj9)}(h/Returns 0 on success, an error code on failure.h]h/Returns 0 on success, an error code on failure.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'__memcg_kmem_uncharge_page (C function)c.__memcg_kmem_uncharge_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h>void __memcg_kmem_uncharge_page (struct page *page, int order)h]h)}(h=void __memcg_kmem_uncharge_page(struct page *page, int order)h](j)}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM' ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hM' ubh)}(h__memcg_kmem_uncharge_pageh]h)}(h__memcg_kmem_uncharge_pageh]h__memcg_kmem_uncharge_page}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj`hhhj`hM' ubj)}(h(struct page *page, int order)h](j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj`hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj`ubj)}(h h]h }(hj ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]h)}(hpageh]hpage}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]je)}jXj`sbc.__memcg_kmem_uncharge_pageasbuh1hhj`ubj)}(h h]h }(hj;ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj2 )}(hj5 h]h*}(hjIahhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj`ubh)}(hpageh]hpage}(hjVahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubj)}(h int orderh](j)}(hinth]hint}(hjoahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkaubj)}(h h]h }(hj}ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkaubh)}(horderh]horder}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkaubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubeh}(h]h ]h"]h$]h&]jj uh1jhj`hhhj`hM' ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj`hhhj`hM' ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hM' hj`hhubj )}(hhh]j9)}(huncharge a kmem pageh]huncharge a kmem page}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM' hjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hM' ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jaj4jaj5j6j7uh1hhhhjhNhNubjp)}(hZ**Parameters** ``struct page *page`` page to uncharge ``int order`` allocation orderh](j9)}(h**Parameters**h]jz)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM+ hjaubj)}(hhh](j)}(h'``struct page *page`` page to uncharge h](j)}(h``struct page *page``h]j?)}(hjah]hstruct page *page}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM( hjaubj)}(hhh]j9)}(hpage to unchargeh]hpage to uncharge}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj bhM( hj bubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj bhM( hjaubj)}(h``int order`` allocation orderh](j)}(h ``int order``h]j?)}(hj/bh]h int order}(hj1bhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj-bubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM* hj)bubj)}(hhh]j9)}(hallocation orderh]hallocation order}(hjHbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM) hjEbubah}(h]h ]h"]h$]h&]uh1jhj)bubeh}(h]h ]h"]h$]h&]uh1jhjDbhM* hjaubeh}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ mem_cgroup_wb_stats (C function)c.mem_cgroup_wb_statshNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid mem_cgroup_wb_stats (struct bdi_writeback *wb, unsigned long *pfilepages, unsigned long *pheadroom, unsigned long *pdirty, unsigned long *pwriteback)h]h)}(hvoid mem_cgroup_wb_stats(struct bdi_writeback *wb, unsigned long *pfilepages, unsigned long *pheadroom, unsigned long *pdirty, unsigned long *pwriteback)h](j)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhM ubh)}(hmem_cgroup_wb_statsh]h)}(hmem_cgroup_wb_statsh]hmem_cgroup_wb_stats}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ](jjeh"]h$]h&]jj uh1hhjbhhhjbhM ubj)}(h(struct bdi_writeback *wb, unsigned long *pfilepages, unsigned long *pheadroom, unsigned long *pdirty, unsigned long *pwriteback)h](j)}(hstruct bdi_writeback *wbh](j!)}(hj$h]hstruct}(hjbhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]h)}(h bdi_writebackh]h bdi_writeback}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbmodnameN classnameNj\j_)}jb]je)}jXjbsbc.mem_cgroup_wb_statsasbuh1hhjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2 )}(hj5 h]h*}(hjchhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjbubh)}(hwbh]hwb}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubj)}(hunsigned long *pfilepagesh](j)}(hunsignedh]hunsigned}(hj8chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4cubj)}(h h]h }(hjFchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4cubj)}(hlongh]hlong}(hjTchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4cubj)}(h h]h }(hjbchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4cubj2 )}(hj5 h]h*}(hjpchhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4cubh)}(h pfilepagesh]h pfilepages}(hj}chhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4cubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubj)}(hunsigned long *pheadroomh](j)}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hlongh]hlong}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2 )}(hj5 h]h*}(hjchhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjcubh)}(h pheadroomh]h pheadroom}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubj)}(hunsigned long *pdirtyh](j)}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hlongh]hlong}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2 )}(hj5 h]h*}(hj,dhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjcubh)}(hpdirtyh]hpdirty}(hj9dhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubj)}(hunsigned long *pwritebackh](j)}(hunsignedh]hunsigned}(hjRdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNdubj)}(h h]h }(hj`dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNdubj)}(hlongh]hlong}(hjndhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNdubj)}(h h]h }(hj|dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNdubj2 )}(hj5 h]h*}(hjdhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjNdubh)}(h pwritebackh]h pwriteback}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNdubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbubeh}(h]h ]h"]h$]h&]jj uh1jhjbhhhjbhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjbhhhjbhM ubah}(h]j|bah ](jjeh"]h$]h&]jj)jhuh1hhjbhM hj~bhhubj )}(hhh]j9)}(h/retrieve writeback related stats from its memcgh]h/retrieve writeback related stats from its memcg}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjdhhubah}(h]h ]h"]h$]h&]uh1jhj~bhhhjbhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jdj4jdj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjdubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjdubj)}(hhh](j)}(h7``struct bdi_writeback *wb`` bdi_writeback in question h](j)}(h``struct bdi_writeback *wb``h]j?)}(hjeh]hstruct bdi_writeback *wb}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjdubj)}(hhh]j9)}(hbdi_writeback in questionh]hbdi_writeback in question}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehM hjeubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjehM hjdubj)}(hE``unsigned long *pfilepages`` out parameter for number of file pages h](j)}(h``unsigned long *pfilepages``h]j?)}(hj;eh]hunsigned long *pfilepages}(hj=ehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9eubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj5eubj)}(hhh]j9)}(h&out parameter for number of file pagesh]h&out parameter for number of file pages}(hjTehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPehM hjQeubah}(h]h ]h"]h$]h&]uh1jhj5eubeh}(h]h ]h"]h$]h&]uh1jhjPehM hjdubj)}(h^``unsigned long *pheadroom`` out parameter for number of allocatable pages according to memcg h](j)}(h``unsigned long *pheadroom``h]j?)}(hjteh]hunsigned long *pheadroom}(hjvehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjreubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjneubj)}(hhh]j9)}(h@out parameter for number of allocatable pages according to memcgh]h@out parameter for number of allocatable pages according to memcg}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehM hjeubah}(h]h ]h"]h$]h&]uh1jhjneubeh}(h]h ]h"]h$]h&]uh1jhjehM hjdubj)}(hB``unsigned long *pdirty`` out parameter for number of dirty pages h](j)}(h``unsigned long *pdirty``h]j?)}(hjeh]hunsigned long *pdirty}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjeubj)}(hhh]j9)}(h'out parameter for number of dirty pagesh]h'out parameter for number of dirty pages}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehM hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehM hjdubj)}(hP``unsigned long *pwriteback`` out parameter for number of pages under writeback h](j)}(h``unsigned long *pwriteback``h]j?)}(hjeh]hunsigned long *pwriteback}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjeubj)}(hhh]j9)}(h1out parameter for number of pages under writebackh]h1out parameter for number of pages under writeback}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehM hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehM hjdubeh}(h]h ]h"]h$]h&]uh1jhjdubj9)}(h**Description**h]jz)}(hj!fh]h Description}(hj#fhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjfubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjdubj9)}(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 }(hj7fhhhNhNubjz)}(h**wb**h]hwb}(hj?fhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7fubh^’s memcg. File, dirty and writeback are self-explanatory. Headroom is a bit more involved.}(hj7fhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjdubj9)}(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 }(hjXfhhhNhNubjz)}(h***pheadroom**h]h *pheadroom}(hj`fhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXfubh accordingly.}(hjXfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM# hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmem_cgroup_from_id (C function)c.mem_cgroup_from_idhNtauh1hhjhhhNhNubh)}(hhh](h)}(h:struct mem_cgroup * mem_cgroup_from_id (unsigned short id)h]h)}(h8struct mem_cgroup *mem_cgroup_from_id(unsigned short id)h](j!)}(hj$h]hstruct}(hjfhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjfhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjfhMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjfmodnameN classnameNj\j_)}jb]je)}jXmem_cgroup_from_idsbc.mem_cgroup_from_idasbuh1hhjfhhhjfhMubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjfhMubj2 )}(hj5 h]h*}(hjfhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjfhhhjfhMubh)}(hmem_cgroup_from_idh]h)}(hjfh]hmem_cgroup_from_id}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubah}(h]h ](jjeh"]h$]h&]jj uh1hhjfhhhjfhMubj)}(h(unsigned short id)h]j)}(hunsigned short idh](j)}(hunsignedh]hunsigned}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hj!ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hshorth]hshort}(hj/ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(h h]h }(hj=ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hidh]hid}(hjKghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj gubah}(h]h ]h"]h$]h&]jj uh1jhjfhhhjfhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjfhhhjfhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjfhhubj )}(hhh]j9)}(hlook up a memcg from a memcg idh]hlook up a memcg from a memcg id}(hjughhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjrghhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjfhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jgj4jgj5j6j7uh1hhhhjhNhNubjp)}(hs**Parameters** ``unsigned short id`` the memcg id to look up **Description** Caller must hold rcu_read_lock().h](j9)}(h**Parameters**h]jz)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjgubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjgubj)}(hhh]j)}(h.``unsigned short id`` the memcg id to look up h](j)}(h``unsigned short id``h]j?)}(hjgh]hunsigned short id}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjgubj)}(hhh]j9)}(hthe memcg id to look uph]hthe memcg id to look up}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubj9)}(h**Description**h]jz)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjgubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjgubj9)}(h!Caller must hold rcu_read_lock().h]h!Caller must hold rcu_read_lock().}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!mem_cgroup_css_reset (C function)c.mem_cgroup_css_resethNtauh1hhjhhhNhNubh)}(hhh](h)}(h;void mem_cgroup_css_reset (struct cgroup_subsys_state *css)h]h)}(h:void mem_cgroup_css_reset(struct cgroup_subsys_state *css)h](j)}(hvoidh]hvoid}(hj6hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM_ubj)}(h h]h }(hjEhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhhjDhhM_ubh)}(hmem_cgroup_css_reseth]h)}(hmem_cgroup_css_reseth]hmem_cgroup_css_reset}(hjWhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjShubah}(h]h ](jjeh"]h$]h&]jj uh1hhj2hhhhjDhhM_ubj)}(h!(struct cgroup_subsys_state *css)h]j)}(hstruct cgroup_subsys_state *cssh](j!)}(hj$h]hstruct}(hjshhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjohubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohubh)}(hhh]h)}(hcgroup_subsys_stateh]hcgroup_subsys_state}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]je)}jXjYhsbc.mem_cgroup_css_resetasbuh1hhjohubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohubj2 )}(hj5 h]h*}(hjhhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjohubh)}(hcssh]hcss}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjohubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjkhubah}(h]h ]h"]h$]h&]jj uh1jhj2hhhhjDhhM_ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj.hhhhjDhhM_ubah}(h]j)hah ](jjeh"]h$]h&]jj)jhuh1hhjDhhM_hj+hhhubj )}(hhh]j9)}(h reset the states of a mem_cgrouph]h reset the states of a mem_cgroup}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM_hjhhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhhjDhhM_ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jij4jij5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMchjiubj)}(hhh]j)}(h3``struct cgroup_subsys_state *css`` the target css h](j)}(h#``struct cgroup_subsys_state *css``h]j?)}(hj7ih]hstruct cgroup_subsys_state *css}(hj9ihhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5iubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM`hj1iubj)}(hhh]j9)}(hthe target cssh]hthe target css}(hjPihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLihM`hjMiubah}(h]h ]h"]h$]h&]uh1jhj1iubeh}(h]h ]h"]h$]h&]uh1jhjLihM`hj.iubah}(h]h ]h"]h$]h&]uh1jhjiubj9)}(h**Description**h]jz)}(hjrih]h Description}(hjtihhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjpiubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMbhjiubj9)}(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 }(hjihhhNhNubjz)}(h**css**h]hcss}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiubh. 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.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMahjiubj9)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMghjiubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,mem_cgroup_calculate_protection (C function)!c.mem_cgroup_calculate_protectionhNtauh1hhjhhhNhNubh)}(hhh](h)}(hXvoid mem_cgroup_calculate_protection (struct mem_cgroup *root, struct mem_cgroup *memcg)h]h)}(hWvoid mem_cgroup_calculate_protection(struct mem_cgroup *root, struct mem_cgroup *memcg)h](j)}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMCubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjihMCubh)}(hmem_cgroup_calculate_protectionh]h)}(hmem_cgroup_calculate_protectionh]hmem_cgroup_calculate_protection}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ](jjeh"]h$]h&]jj uh1hhjihhhjihMCubj)}(h3(struct mem_cgroup *root, struct mem_cgroup *memcg)h](j)}(hstruct mem_cgroup *rooth](j!)}(hj$h]hstruct}(hjjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjjubj)}(h h]h }(hj"jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj3jhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0jubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj5jmodnameN classnameNj\j_)}jb]je)}jXjisb!c.mem_cgroup_calculate_protectionasbuh1hhjjubj)}(h h]h }(hjSjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2 )}(hj5 h]h*}(hjajhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjjubh)}(hrooth]hroot}(hjnjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj jubj)}(hstruct mem_cgroup *memcgh](j!)}(hj$h]hstruct}(hjjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjjmodnameN classnameNj\j_)}jb]jOj!c.mem_cgroup_calculate_protectionasbuh1hhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2 )}(hj5 h]h*}(hjjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjjubh)}(hmemcgh]hmemcg}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj jubeh}(h]h ]h"]h$]h&]jj uh1jhjihhhjihMCubeh}(h]h ]h"]h$]h&]jj juh1hjjhjihhhjihMCubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihMChjihhubj )}(hhh]j9)}(h2check if memory consumption is in the normal rangeh]h2check if memory consumption is in the normal range}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMChjkhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihMCubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j kj4j kj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj*kh]h Parameters}(hj,khhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj(kubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMGhj$kubj)}(hhh](j)}(hK``struct mem_cgroup *root`` the top ancestor of the sub-tree being checked h](j)}(h``struct mem_cgroup *root``h]j?)}(hjIkh]hstruct mem_cgroup *root}(hjKkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGkubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMDhjCkubj)}(hhh]j9)}(h.the top ancestor of the sub-tree being checkedh]h.the top ancestor of the sub-tree being checked}(hjbkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^khMDhj_kubah}(h]h ]h"]h$]h&]uh1jhjCkubeh}(h]h ]h"]h$]h&]uh1jhj^khMDhj@kubj)}(h8``struct mem_cgroup *memcg`` the memory cgroup to check h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hjkh]hstruct mem_cgroup *memcg}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMEhj|kubj)}(hhh]j9)}(hthe memory cgroup to checkh]hthe memory cgroup to check}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhMEhjkubah}(h]h ]h"]h$]h&]uh1jhj|kubeh}(h]h ]h"]h$]h&]uh1jhjkhMEhj@kubeh}(h]h ]h"]h$]h&]uh1jhj$kubj9)}(h**Description**h]jz)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMGhj$kubj)}(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}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMFhjkubj)}(hhh]j9)}(h7of a top-down tree iteration, not for isolated queries.h]h7of a top-down tree iteration, not for isolated queries.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMGhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMFhjkubah}(h]h ]h"]h$]h&]uh1jhj$kubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&mem_cgroup_charge_hugetlb (C function)c.mem_cgroup_charge_hugetlbhNtauh1hhjhhhNhNubh)}(hhh](h)}(h>int mem_cgroup_charge_hugetlb (struct folio *folio, gfp_t gfp)h]h)}(h=int mem_cgroup_charge_hugetlb(struct folio *folio, gfp_t gfp)h](j)}(hinth]hint}(hj-lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)lhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMvubj)}(h h]h }(hj ah"]h$]h&]uh1j1 hjflubh)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjflubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjblubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjlmodnameN classnameNj\j_)}jb]jlc.mem_cgroup_charge_hugetlbasbuh1hhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hgfph]hgfp}(hj mhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjblubeh}(h]h ]h"]h$]h&]jj uh1jhj)lhhhj;lhMvubeh}(h]h ]h"]h$]h&]jj juh1hjjhj%lhhhj;lhMvubah}(h]j lah ](jjeh"]h$]h&]jj)jhuh1hhj;lhMvhj"lhhubj )}(hhh]j9)}(h$charge the memcg for a hugetlb folioh]h$charge the memcg for a hugetlb folio}(hj5mhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMvhj2mhhubah}(h]h ]h"]h$]h&]uh1jhj"lhhhj;lhMvubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jMmj4jMmj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjWmh]h Parameters}(hjYmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUmubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMzhjQmubj)}(hhh](j)}(h,``struct folio *folio`` folio being charged h](j)}(h``struct folio *folio``h]j?)}(hjvmh]hstruct folio *folio}(hjxmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjtmubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMwhjpmubj)}(hhh]j9)}(hfolio being chargedh]hfolio being charged}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhMwhjmubah}(h]h ]h"]h$]h&]uh1jhjpmubeh}(h]h ]h"]h$]h&]uh1jhjmhMwhjmmubj)}(h``gfp_t gfp`` reclaim mode h](j)}(h ``gfp_t gfp``h]j?)}(hjmh]h gfp_t gfp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMxhjmubj)}(hhh]j9)}(h reclaim modeh]h reclaim mode}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhMxhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMxhjmmubeh}(h]h ]h"]h$]h&]uh1jhjQmubj9)}(h**Description**h]jz)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjmubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMzhjQmubj9)}(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).}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMyhjQmubj9)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM}hjQmubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+mem_cgroup_swapin_charge_folio (C function) c.mem_cgroup_swapin_charge_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hlint mem_cgroup_swapin_charge_folio (struct folio *folio, 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}(hj>nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:nhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hjMnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:nhhhjLnhMubh)}(hmem_cgroup_swapin_charge_folioh]h)}(hmem_cgroup_swapin_charge_folioh]hmem_cgroup_swapin_charge_folio}(hj_nhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[nubah}(h]h ](jjeh"]h$]h&]jj uh1hhj:nhhhjLnhMubj)}(hI(struct folio *folio, struct mm_struct *mm, gfp_t gfp, swp_entry_t entry)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj{nhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjwnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwnubh)}(hhh]h)}(hfolioh]hfolio}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjnmodnameN classnameNj\j_)}jb]je)}jXjansb c.mem_cgroup_swapin_charge_folioasbuh1hhjwnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwnubj2 )}(hj5 h]h*}(hjnhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjwnubh)}(hfolioh]hfolio}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjsnubj)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hjnhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]h)}(h mm_structh]h mm_struct}(hj ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj omodnameN classnameNj\j_)}jb]jn c.mem_cgroup_swapin_charge_folioasbuh1hhjnubj)}(h h]h }(hj)ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2 )}(hj5 h]h*}(hj7ohhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjnubh)}(hmmh]hmm}(hjDohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjsnubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj`ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]oubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbomodnameN classnameNj\j_)}jb]jn c.mem_cgroup_swapin_charge_folioasbuh1hhjYoubj)}(h h]h }(hj~ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYoubh)}(hgfph]hgfp}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYoubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjsnubj)}(hswp_entry_t entryh](h)}(hhh]h)}(h swp_entry_th]h swp_entry_t}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjomodnameN classnameNj\j_)}jb]jn c.mem_cgroup_swapin_charge_folioasbuh1hhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hentryh]hentry}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjsnubeh}(h]h ]h"]h$]h&]jj uh1jhj:nhhhjLnhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj6nhhhjLnhMubah}(h]j1nah ](jjeh"]h$]h&]jj)jhuh1hhjLnhMhj3nhhubj )}(hhh]j9)}(h*Charge a newly allocated folio for swapin.h]h*Charge a newly allocated folio for swapin.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjohhubah}(h]h ]h"]h$]h&]uh1jhj3nhhhjLnhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jpj4jpj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj ph]h Parameters}(hj"phhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjpubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjpubj)}(hhh](j)}(h)``struct folio *folio`` folio to charge. h](j)}(h``struct folio *folio``h]j?)}(hj?ph]hstruct folio *folio}(hjAphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj=pubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj9pubj)}(hhh]j9)}(hfolio to charge.h]hfolio to charge.}(hjXphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjTphMhjUpubah}(h]h ]h"]h$]h&]uh1jhj9pubeh}(h]h ]h"]h$]h&]uh1jhjTphMhj6pubj)}(h2``struct mm_struct *mm`` mm context of the victim h](j)}(h``struct mm_struct *mm``h]j?)}(hjxph]hstruct mm_struct *mm}(hjzphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvpubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjrpubj)}(hhh]j9)}(hmm context of the victimh]hmm context of the victim}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjrpubeh}(h]h ]h"]h$]h&]uh1jhjphMhj6pubj)}(h``gfp_t gfp`` reclaim mode h](j)}(h ``gfp_t gfp``h]j?)}(hjph]h gfp_t gfp}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjpubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjpubj)}(hhh]j9)}(h reclaim modeh]h reclaim mode}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhj6pubj)}(hB``swp_entry_t entry`` swap entry for which the folio is allocated h](j)}(h``swp_entry_t entry``h]j?)}(hjph]hswp_entry_t entry}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjpubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjpubj)}(hhh]j9)}(h+swap entry for which the folio is allocatedh]h+swap entry for which the folio is allocated}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhj6pubeh}(h]h ]h"]h$]h&]uh1jhjpubj9)}(h**Description**h]jz)}(hj%qh]h Description}(hj'qhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#qubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjpubj9)}(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.}(hj;qhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjpubj9)}(h;Returns 0 on success. Otherwise, an error code is returned.h]h;Returns 0 on success. Otherwise, an error code is returned.}(hjJqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%mem_cgroup_replace_folio (C function)c.mem_cgroup_replace_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hDvoid mem_cgroup_replace_folio (struct folio *old, struct folio *new)h]h)}(hCvoid mem_cgroup_replace_folio(struct folio *old, struct folio *new)h](j)}(hvoidh]hvoid}(hjyqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuqhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM.ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuqhhhjqhM.ubh)}(hmem_cgroup_replace_folioh]h)}(hmem_cgroup_replace_folioh]hmem_cgroup_replace_folio}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ](jjeh"]h$]h&]jj uh1hhjuqhhhjqhM.ubj)}(h&(struct folio *old, struct folio *new)h](j)}(hstruct folio *oldh](j!)}(hj$h]hstruct}(hjqhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]h)}(hfolioh]hfolio}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjqmodnameN classnameNj\j_)}jb]je)}jXjqsbc.mem_cgroup_replace_folioasbuh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2 )}(hj5 h]h*}(hjrhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjqubh)}(holdh]hold}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjqubj)}(hstruct folio *newh](j!)}(hj$h]hstruct}(hj(rhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj$rubj)}(h h]h }(hj5rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$rubh)}(hhh]h)}(hfolioh]hfolio}(hjFrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCrubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjHrmodnameN classnameNj\j_)}jb]jqc.mem_cgroup_replace_folioasbuh1hhj$rubj)}(h h]h }(hjdrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$rubj2 )}(hj5 h]h*}(hjrrhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj$rubh)}(hnewh]hnew}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$rubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjqubeh}(h]h ]h"]h$]h&]jj uh1jhjuqhhhjqhM.ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjqqhhhjqhM.ubah}(h]jlqah ](jjeh"]h$]h&]jj)jhuh1hhjqhM.hjnqhhubj )}(hhh]j9)}(hCharge a folio's replacement.h]hCharge a folio’s replacement.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM.hjrhhubah}(h]h ]h"]h$]h&]uh1jhjnqhhhjqhM.ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jrj4jrj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM2hjrubj)}(hhh](j)}(h3``struct folio *old`` Currently circulating folio. h](j)}(h``struct folio *old``h]j?)}(hjrh]hstruct folio *old}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM/hjrubj)}(hhh]j9)}(hCurrently circulating folio.h]hCurrently circulating folio.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjrhM/hjsubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhM/hjrubj)}(h)``struct folio *new`` Replacement folio. h](j)}(h``struct folio *new``h]j?)}(hj#sh]hstruct folio *new}(hj%shhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj!subah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM0hjsubj)}(hhh]j9)}(hReplacement folio.h]hReplacement folio.}(hjmapping** must be set up.h](hBoth folios must be locked, }(hjshhhNhNubjz)}(h**new->mapping**h]h new->mapping}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjsubh must be set up.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM4hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmem_cgroup_migrate (C function)c.mem_cgroup_migratehNtauh1hhjhhhNhNubh)}(hhh](h)}(h>void mem_cgroup_migrate (struct folio *old, struct folio *new)h]h)}(h=void mem_cgroup_migrate(struct folio *old, struct folio *new)h](j)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMZubj)}(h h]h }(hj thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjthMZubh)}(hmem_cgroup_migrateh]h)}(hmem_cgroup_migrateh]hmem_cgroup_migrate}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ](jjeh"]h$]h&]jj uh1hhjshhhjthMZubj)}(h&(struct folio *old, struct folio *new)h](j)}(hstruct folio *oldh](j!)}(hj$h]hstruct}(hj7thhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj3tubj)}(h h]h }(hjDthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3tubh)}(hhh]h)}(hfolioh]hfolio}(hjUthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRtubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjWtmodnameN classnameNj\j_)}jb]je)}jXjtsbc.mem_cgroup_migrateasbuh1hhj3tubj)}(h h]h }(hjuthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3tubj2 )}(hj5 h]h*}(hjthhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj3tubh)}(holdh]hold}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3tubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/tubj)}(hstruct folio *newh](j!)}(hj$h]hstruct}(hjthhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]h)}(hfolioh]hfolio}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjtmodnameN classnameNj\j_)}jb]jqtc.mem_cgroup_migrateasbuh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj2 )}(hj5 h]h*}(hjthhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjtubh)}(hnewh]hnew}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/tubeh}(h]h ]h"]h$]h&]jj uh1jhjshhhjthMZubeh}(h]h ]h"]h$]h&]jj juh1hjjhjshhhjthMZubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjthMZhjshhubj )}(hhh]j9)}(h6Transfer the memcg data from the old to the new folio.h]h6Transfer the memcg data from the old to the new folio.}(hj*uhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMZhj'uhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjthMZubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jBuj4jBuj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjLuh]h Parameters}(hjNuhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJuubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM^hjFuubj)}(hhh](j)}(h3``struct folio *old`` Currently circulating folio. h](j)}(h``struct folio *old``h]j?)}(hjkuh]hstruct folio *old}(hjmuhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiuubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM[hjeuubj)}(hhh]j9)}(hCurrently circulating folio.h]hCurrently circulating folio.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjuhM[hjuubah}(h]h ]h"]h$]h&]uh1jhjeuubeh}(h]h ]h"]h$]h&]uh1jhjuhM[hjbuubj)}(h)``struct folio *new`` Replacement folio. h](j)}(h``struct folio *new``h]j?)}(hjuh]hstruct folio *new}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjuubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM\hjuubj)}(hhh]j9)}(hReplacement folio.h]hReplacement folio.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjuhM\hjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhM\hjbuubeh}(h]h ]h"]h$]h&]uh1jhjFuubj9)}(h**Description**h]jz)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjuubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM^hjFuubj9)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM]hjFuubj9)}(hmapping** must be set up.h](hBoth folios must be locked, }(hjvhhhNhNubjz)}(h**new->mapping**h]h new->mapping}(hj vhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubh must be set up.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMahjFuubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$mem_cgroup_charge_skmem (C function)c.mem_cgroup_charge_skmemhNtauh1hhjhhhNhNubh)}(hhh](h)}(h^bool mem_cgroup_charge_skmem (struct mem_cgroup *memcg, unsigned int nr_pages, gfp_t gfp_mask)h]h)}(h]bool mem_cgroup_charge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages, gfp_t gfp_mask)h](j)}(hj)h]hbool}(hjEvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hjSvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAvhhhjRvhMubh)}(hmem_cgroup_charge_skmemh]h)}(hmem_cgroup_charge_skmemh]hmem_cgroup_charge_skmem}(hjevhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjavubah}(h]h ](jjeh"]h$]h&]jj uh1hhjAvhhhjRvhMubj)}(hA(struct mem_cgroup *memcg, unsigned int nr_pages, gfp_t gfp_mask)h](j)}(hstruct mem_cgroup *memcgh](j!)}(hj$h]hstruct}(hjvhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj}vubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}vubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjvmodnameN classnameNj\j_)}jb]je)}jXjgvsbc.mem_cgroup_charge_skmemasbuh1hhj}vubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}vubj2 )}(hj5 h]h*}(hjvhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj}vubh)}(hmemcgh]hmemcg}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}vubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjyvubj)}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hnr_pagesh]hnr_pages}(hj+whhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjyvubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjGwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDwubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjIwmodnameN classnameNj\j_)}jb]jvc.mem_cgroup_charge_skmemasbuh1hhj@wubj)}(h h]h }(hjewhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@wubh)}(hgfp_maskh]hgfp_mask}(hjswhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@wubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjyvubeh}(h]h ]h"]h$]h&]jj uh1jhjAvhhhjRvhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj=vhhhjRvhMubah}(h]j8vah ](jjeh"]h$]h&]jj)jhuh1hhjRvhMhj:vhhubj )}(hhh]j9)}(hcharge socket memoryh]hcharge socket memory}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhj:vhhhjRvhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jwj4jwj5j6j7uh1hhhhjhNhNubjp)}(hX.**Parameters** ``struct mem_cgroup *memcg`` 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](j9)}(h**Parameters**h]jz)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjwubj)}(hhh](j)}(h-``struct mem_cgroup *memcg`` memcg to charge h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hjwh]hstruct mem_cgroup *memcg}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjwubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjwubj)}(hhh]j9)}(hmemcg to chargeh]hmemcg to charge}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjwhMhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjwubj)}(h4``unsigned int nr_pages`` number of pages to charge h](j)}(h``unsigned int nr_pages``h]j?)}(hjxh]hunsigned int nr_pages}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjxubj)}(hhh]j9)}(hnumber of pages to chargeh]hnumber of pages to charge}(hj0xhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj,xhMhj-xubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhj,xhMhjwubj)}(h ``gfp_t gfp_mask`` reclaim mode h](j)}(h``gfp_t gfp_mask``h]j?)}(hjPxh]hgfp_t gfp_mask}(hjRxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNxubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjJxubj)}(hhh]j9)}(h reclaim modeh]h reclaim mode}(hjixhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjexhMhjfxubah}(h]h ]h"]h$]h&]uh1jhjJxubeh}(h]h ]h"]h$]h&]uh1jhjexhMhjwubeh}(h]h ]h"]h$]h&]uh1jhjwubj9)}(h**Description**h]jz)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjwubj9)}(hCharges **nr_pages** to **memcg**. Returns ``true`` if the charge fit within **memcg**'s configured limit, ``false`` if it doesn't.h](hCharges }(hjxhhhNhNubjz)}(h **nr_pages**h]hnr_pages}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubh to }(hjxhhhNhNubjz)}(h **memcg**h]hmemcg}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubh . Returns }(hjxhhhNhNubj?)}(h``true``h]htrue}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxubh if the charge fit within }(hjxhhhNhNubjz)}(h **memcg**h]hmemcg}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubh’s configured limit, }(hjxhhhNhNubj?)}(h ``false``h]hfalse}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxubh if it doesn’t.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&mem_cgroup_uncharge_skmem (C function)c.mem_cgroup_uncharge_skmemhNtauh1hhjhhhNhNubh)}(hhh](h)}(hPvoid mem_cgroup_uncharge_skmem (struct mem_cgroup *memcg, unsigned int nr_pages)h]h)}(hOvoid mem_cgroup_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages)h](j)}(hvoidh]hvoid}(hj*yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&yhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hj9yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&yhhhj8yhMubh)}(hmem_cgroup_uncharge_skmemh]h)}(hmem_cgroup_uncharge_skmemh]hmem_cgroup_uncharge_skmem}(hjKyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGyubah}(h]h ](jjeh"]h$]h&]jj uh1hhj&yhhhj8yhMubj)}(h1(struct mem_cgroup *memcg, unsigned int nr_pages)h](j)}(hstruct mem_cgroup *memcgh](j!)}(hj$h]hstruct}(hjgyhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjcyubj)}(h h]h }(hjtyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcyubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjymodnameN classnameNj\j_)}jb]je)}jXjMysbc.mem_cgroup_uncharge_skmemasbuh1hhjcyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcyubj2 )}(hj5 h]h*}(hjyhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjcyubh)}(hmemcgh]hmemcg}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcyubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj_yubj)}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hinth]hint}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hnr_pagesh]hnr_pages}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj_yubeh}(h]h ]h"]h$]h&]jj uh1jhj&yhhhj8yhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj"yhhhj8yhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhj8yhMhjyhhubj )}(hhh]j9)}(huncharge socket memoryh]huncharge socket memory}(hj;zhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj8zhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhj8yhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jSzj4jSzj5j6j7uh1hhhhjhNhNubjp)}(hy**Parameters** ``struct mem_cgroup *memcg`` memcg to uncharge ``unsigned int nr_pages`` number of pages to unchargeh](j9)}(h**Parameters**h]jz)}(hj]zh]h Parameters}(hj_zhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[zubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjWzubj)}(hhh](j)}(h/``struct mem_cgroup *memcg`` memcg to uncharge h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hj|zh]hstruct mem_cgroup *memcg}(hj~zhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjzzubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjvzubj)}(hhh]j9)}(hmemcg to unchargeh]hmemcg to uncharge}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjzhMhjzubah}(h]h ]h"]h$]h&]uh1jhjvzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjszubj)}(h5``unsigned int nr_pages`` number of pages to unchargeh](j)}(h``unsigned int nr_pages``h]j?)}(hjzh]hunsigned int nr_pages}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjzubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjzubj)}(hhh]j9)}(hnumber of pages to unchargeh]hnumber of pages to uncharge}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjszubeh}(h]h ]h"]h$]h&]uh1jhjWzubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)__mem_cgroup_try_charge_swap (C function)c.__mem_cgroup_try_charge_swaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hIint __mem_cgroup_try_charge_swap (struct folio *folio, swp_entry_t entry)h]h)}(hHint __mem_cgroup_try_charge_swap(struct folio *folio, swp_entry_t entry)h](j)}(hinth]hint}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj {hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj {hhhj{hMubh)}(h__mem_cgroup_try_charge_swaph]h)}(h__mem_cgroup_try_charge_swaph]h__mem_cgroup_try_charge_swap}(hj0{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,{ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj {hhhj{hMubj)}(h((struct folio *folio, swp_entry_t entry)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjL{hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjH{ubj)}(h h]h }(hjY{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH{ubh)}(hhh]h)}(hfolioh]hfolio}(hjj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjg{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjl{modnameN classnameNj\j_)}jb]je)}jXj2{sbc.__mem_cgroup_try_charge_swapasbuh1hhjH{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH{ubj2 )}(hj5 h]h*}(hj{hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjH{ubh)}(hfolioh]hfolio}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjH{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjD{ubj)}(hswp_entry_t entryh](h)}(hhh]h)}(h swp_entry_th]h swp_entry_t}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{modnameN classnameNj\j_)}jb]j{c.__mem_cgroup_try_charge_swapasbuh1hhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hentryh]hentry}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjD{ubeh}(h]h ]h"]h$]h&]jj uh1jhj {hhhj{hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj{hhhj{hMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj{hMhj{hhubj )}(hhh]j9)}(h#try charging swap space for a folioh]h#try charging swap space for a folio}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj{hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j/|j4j/|j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj9|h]h Parameters}(hj;|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7|ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj3|ubj)}(hhh](j)}(h2``struct folio *folio`` folio being added to swap h](j)}(h``struct folio *folio``h]j?)}(hjX|h]hstruct folio *folio}(hjZ|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjV|ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hjR|ubj)}(hhh]j9)}(hfolio being added to swaph]hfolio being added to swap}(hjq|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjm|hM hjn|ubah}(h]h ]h"]h$]h&]uh1jhjR|ubeh}(h]h ]h"]h$]h&]uh1jhjm|hM hjO|ubj)}(h+``swp_entry_t entry`` swap entry to charge h](j)}(h``swp_entry_t entry``h]j?)}(hj|h]hswp_entry_t entry}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj|ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj|ubj)}(hhh]j9)}(hswap entry to chargeh]hswap entry to charge}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|hM hj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hM hjO|ubeh}(h]h ]h"]h$]h&]uh1jhj3|ubj9)}(h**Description**h]jz)}(hj|h]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj3|ubj9)}(h@Try to charge **folio**'s memcg for the swap space at **entry**.h](hTry to charge }(hj|hhhNhNubjz)}(h **folio**h]hfolio}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubh!’s memcg for the swap space at }(hj|hhhNhNubjz)}(h **entry**h]hentry}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubh.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj3|ubj9)}(h)Returns 0 on success, -ENOMEM on failure.h]h)Returns 0 on success, -ENOMEM on failure.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM hj3|ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]-h}(h]h ]h"]h$]h&]entries](hՌ'__mem_cgroup_uncharge_swap (C function)c.__mem_cgroup_uncharge_swaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hJvoid __mem_cgroup_uncharge_swap (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}(hjD}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@}hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM9ubj)}(h h]h }(hjS}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@}hhhjR}hM9ubh)}(h__mem_cgroup_uncharge_swaph]h)}(h__mem_cgroup_uncharge_swaph]h__mem_cgroup_uncharge_swap}(hje}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhja}ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj@}hhhjR}hM9ubj)}(h*(swp_entry_t entry, unsigned int nr_pages)h](j)}(hswp_entry_t entryh](h)}(hhh]h)}(h swp_entry_th]h swp_entry_t}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj}modnameN classnameNj\j_)}jb]je)}jXjg}sbc.__mem_cgroup_uncharge_swapasbuh1hhj}}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}}ubh)}(hentryh]hentry}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}}ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjy}ubj)}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubh)}(hnr_pagesh]hnr_pages}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjy}ubeh}(h]h ]h"]h$]h&]jj uh1jhj@}hhhjR}hM9ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj<}hhhjR}hM9ubah}(h]j7}ah ](jjeh"]h$]h&]jj)jhuh1hhjR}hM9hj9}hhubj )}(hhh]j9)}(huncharge swap spaceh]huncharge swap space}(hj-~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM9hj*~hhubah}(h]h ]h"]h$]h&]uh1jhj9}hhhjR}hM9ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jE~j4jE~j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``swp_entry_t entry`` swap entry to uncharge ``unsigned int nr_pages`` the amount of swap space to unchargeh](j9)}(h**Parameters**h]jz)}(hjO~h]h Parameters}(hjQ~hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjM~ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM=hjI~ubj)}(hhh](j)}(h-``swp_entry_t entry`` swap entry to uncharge h](j)}(h``swp_entry_t entry``h]j?)}(hjn~h]hswp_entry_t entry}(hjp~hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjl~ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM:hjh~ubj)}(hhh]j9)}(hswap entry to unchargeh]hswap entry to uncharge}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj~hM:hj~ubah}(h]h ]h"]h$]h&]uh1jhjh~ubeh}(h]h ]h"]h$]h&]uh1jhj~hM:hje~ubj)}(h>``unsigned int nr_pages`` the amount of swap space to unchargeh](j)}(h``unsigned int nr_pages``h]j?)}(hj~h]hunsigned int nr_pages}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj~ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM<hj~ubj)}(hhh]j9)}(h$the amount of swap space to unchargeh]h$the amount of swap space to uncharge}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM;hj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hM<hje~ubeh}(h]h ]h"]h$]h&]uh1jhjI~ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!obj_cgroup_may_zswap (C function)c.obj_cgroup_may_zswaphNtauh1hhjhhhNhNubh)}(hhh](h)}(h4bool obj_cgroup_may_zswap (struct obj_cgroup *objcg)h]h)}(h3bool obj_cgroup_may_zswap(struct obj_cgroup *objcg)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhMubh)}(hobj_cgroup_may_zswaph]h)}(hobj_cgroup_may_zswaph]hobj_cgroup_may_zswap}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj~hhhjhMubj)}(h(struct obj_cgroup *objcg)h]j)}(hstruct obj_cgroup *objcgh](j!)}(hj$h]hstruct}(hj=hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]h)}(h obj_cgrouph]h obj_cgroup}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj]modnameN classnameNj\j_)}jb]je)}jXj#sbc.obj_cgroup_may_zswapasbuh1hhj9ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj9ubh)}(hobjcgh]hobjcg}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5ubah}(h]h ]h"]h$]h&]jj uh1jhj~hhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj~hhhjhMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj~hhubj )}(hhh]j9)}(hcheck if this cgroup can zswaph]hcheck if this cgroup can zswap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjubj)}(hhh]j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]j?)}(hjh]hstruct obj_cgroup *objcg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjubj)}(hhh]j9)}(hthe object cgrouph]hthe object cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjubj9)}(h7Check if the hierarchical zswap limit has been reached.h]h7Check if the hierarchical zswap limit has been reached.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjubj9)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$obj_cgroup_charge_zswap (C function)c.obj_cgroup_charge_zswaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hDvoid obj_cgroup_charge_zswap (struct obj_cgroup *objcg, size_t size)h]h)}(hCvoid obj_cgroup_charge_zswap(struct obj_cgroup *objcg, size_t size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM,ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM,ubh)}(hobj_cgroup_charge_zswaph]h)}(hobj_cgroup_charge_zswaph]hobj_cgroup_charge_zswap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM,ubj)}(h'(struct obj_cgroup *objcg, size_t size)h](j)}(hstruct obj_cgroup *objcgh](j!)}(hj$h]hstruct}(hj̀hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjɀubj)}(h h]h }(hjڀhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɀubh)}(hhh]h)}(h obj_cgrouph]h obj_cgroup}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.obj_cgroup_charge_zswapasbuh1hhjɀubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɀubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjɀubh)}(hobjcgh]hobjcg}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjɀubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjŀubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjDmodnameN classnameNj\j_)}jb]jc.obj_cgroup_charge_zswapasbuh1hhj;ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hsizeh]hsize}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjŀubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM,ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM,ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM,hjhhubj )}(hhh]j9)}(h!charge compression backend memoryh]h!charge compression backend memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM,hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM,ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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 zwap for this cgroup to go ahead.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM0hjubj)}(hhh](j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]j?)}(hjفh]hstruct obj_cgroup *objcg}(hjہhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjׁubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM-hjӁubj)}(hhh]j9)}(hthe object cgrouph]hthe object cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjӁubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjЁubj)}(h*``size_t size`` size of compressed object h](j)}(h``size_t size``h]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM.hj ubj)}(hhh]j9)}(hsize of compressed objecth]hsize of compressed object}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj'hM.hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM.hjЁubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM0hjubj9)}(hxThis forces the charge after obj_cgroup_may_zswap() allowed compression and storage in zwap for this cgroup to go ahead.h]hxThis forces the charge after obj_cgroup_may_zswap() allowed compression and storage in zwap for this cgroup to go ahead.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&obj_cgroup_uncharge_zswap (C function)c.obj_cgroup_uncharge_zswaphNtauh1hhjhhhNhNubh)}(hhh](h)}(hFvoid obj_cgroup_uncharge_zswap (struct obj_cgroup *objcg, size_t size)h]h)}(hEvoid obj_cgroup_uncharge_zswap(struct obj_cgroup *objcg, size_t size)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMHubh)}(hobj_cgroup_uncharge_zswaph]h)}(hobj_cgroup_uncharge_zswaph]hobj_cgroup_uncharge_zswap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMHubj)}(h'(struct obj_cgroup *objcg, size_t size)h](j)}(hstruct obj_cgroup *objcgh](j!)}(hj$h]hstruct}(hjςhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj˂ubj)}(h h]h }(hj܂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˂ubh)}(hhh]h)}(h obj_cgrouph]h obj_cgroup}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.obj_cgroup_uncharge_zswapasbuh1hhj˂ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˂ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj˂ubh)}(hobjcgh]hobjcg}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj˂ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjǂubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFmodnameN classnameNj\j_)}jb]j c.obj_cgroup_uncharge_zswapasbuh1hhj=ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hsizeh]hsize}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjǂubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMHubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMHubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMHhjhhubj )}(hhh]j9)}(h#uncharge compression backend memoryh]h#uncharge compression backend memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMHhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMHubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct obj_cgroup *objcg`` the object cgroup ``size_t size`` size of compressed object **Description** Uncharges zswap memory on page in.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMLhjubj)}(hhh](j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]j?)}(hjۃh]hstruct obj_cgroup *objcg}(hj݃hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjكubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMIhjՃubj)}(hhh]j9)}(hthe object cgrouph]hthe object cgroup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjՃubeh}(h]h ]h"]h$]h&]uh1jhjhMIhj҃ubj)}(h*``size_t size`` size of compressed object h](j)}(h``size_t size``h]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMJhjubj)}(hhh]j9)}(hsize of compressed objecth]hsize of compressed object}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj)hMJhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMJhj҃ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMLhjubj9)}(h"Uncharges zswap memory on page in.h]h"Uncharges zswap memory on page in.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:122: ./mm/memcontrol.chMKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubjt)}(h0#kernel-doc:: mm/memory-tiers.c (build warnings)h]h0#kernel-doc:: mm/memory-tiers.c (build warnings)}hj{sbah}(h]h ]h"]h$]h&]jj uh1jshjhhhhhK{ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌshmem_recalc_inode (C function)c.shmem_recalc_inodehNtauh1hhjhhhNhNubh)}(hhh](h)}(hIbool shmem_recalc_inode (struct inode *inode, long alloced, long swapped)h]h)}(hHbool shmem_recalc_inode(struct inode *inode, long alloced, long swapped)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hshmem_recalc_inodeh]h)}(hshmem_recalc_inodeh]hshmem_recalc_inode}(hj„hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h1(struct inode *inode, long alloced, long swapped)h](j)}(hstruct inode *inodeh](j!)}(hj$h]hstruct}(hjބhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjڄubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڄubh)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjĄsbc.shmem_recalc_inodeasbuh1hhjڄubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڄubj2 )}(hj5 h]h*}(hj*hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjڄubh)}(hinodeh]hinode}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjڄubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjքubj)}(h long allocedh](j)}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hallocedh]halloced}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjքubj)}(h long swappedh](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hswappedh]hswapped}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjքubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h'recalculate the block usage of an inodeh]h'recalculate the block usage of an inode}(hj˅hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjȅhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjubj)}(hhh](j)}(h(``struct inode *inode`` inode to recalc h](j)}(h``struct inode *inode``h]j?)}(hj h]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjubj)}(hhh]j9)}(hinode to recalch]hinode to recalc}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(hB``long alloced`` the change in number of pages allocated to inode h](j)}(h``long alloced``h]j?)}(hjEh]h long alloced}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhj?ubj)}(hhh]j9)}(h0the change in number of pages allocated to inodeh]h0the change in number of pages allocated to inode}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjubj)}(hB``long swapped`` the change in number of pages swapped from inode h](j)}(h``long swapped``h]j?)}(hj~h]h long swapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj|ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjxubj)}(hhh]j9)}(h0the change in number of pages swapped from inodeh]h0the change in number of pages swapped from inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjubj9)}(h`We have to calculate the free blocks since the mm can drop undirtied hole pages behind our back.h]h`We have to calculate the free blocks since the mm can drop undirtied hole pages behind our back.}(hjφhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjubj9)}(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)}(hjކhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&shmem_mapping_size_orders (C function)c.shmem_mapping_size_ordershNtauh1hhjhhhNhNubh)}(hhh](h)}(hgunsigned int shmem_mapping_size_orders (struct address_space *mapping, pgoff_t index, loff_t write_end)h]h)}(hfunsigned int shmem_mapping_size_orders(struct address_space *mapping, pgoff_t index, loff_t write_end)h](j)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMAubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjBhMAubj)}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjBhMAubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjBhMAubh)}(hshmem_mapping_size_ordersh]h)}(hshmem_mapping_size_ordersh]hshmem_mapping_size_orders}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubah}(h]h ](jjeh"]h$]h&]jj uh1hhj0hhhjBhMAubj)}(h@(struct address_space *mapping, pgoff_t index, loff_t write_end)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjssbc.shmem_mapping_size_ordersasbuh1hhjubj)}(h h]h }(hjˇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjهhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jLJc.shmem_mapping_size_ordersasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hindexh]hindex}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hloff_t write_endh](h)}(hhh]h)}(hloff_th]hloff_t}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjLmodnameN classnameNj\j_)}jb]jLJc.shmem_mapping_size_ordersasbuh1hhjCubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(h write_endh]h write_end}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj0hhhjBhMAubeh}(h]h ]h"]h$]h&]jj juh1hjjhj,hhhjBhMAubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjBhMAhj)hhubj )}(hhh]j9)}(h3Get allowable folio orders for the given file size.h]h3Get allowable folio orders for the given file size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMAhjhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMAubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct address_space *mapping`` Target address_space. ``pgoff_t index`` The page index. ``loff_t write_end`` end of a write, could extend inode size. **Description** This returns huge orders for folios (when supported) based on the file size which the mapping currently allows at the given index. The index is relevant due to alignment considerations the mapping might have. The returned order may be less than the size passed. **Return** The orders.h](j9)}(h**Parameters**h]jz)}(hjˆh]h Parameters}(hjĈhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMEhjubj)}(hhh](j)}(h8``struct address_space *mapping`` Target address_space. h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj߈ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMBhjۈubj)}(hhh]j9)}(hTarget address_space.h]hTarget address_space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMBhjubah}(h]h ]h"]h$]h&]uh1jhjۈubeh}(h]h ]h"]h$]h&]uh1jhjhMBhj؈ubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]j?)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMChjubj)}(hhh]j9)}(hThe page index.h]hThe page index.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj/hMChj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMChj؈ubj)}(h>``loff_t write_end`` end of a write, could extend inode size. h](j)}(h``loff_t write_end``h]j?)}(hjSh]hloff_t write_end}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMDhjMubj)}(hhh]j9)}(h(end of a write, could extend inode size.h]h(end of a write, could extend inode size.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhhMDhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMDhj؈ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMFhjubj9)}(hXThis returns huge orders for folios (when supported) based on the file size which the mapping currently allows at the given index. The index is relevant due to alignment considerations the mapping might have. The returned order may be less than the size passed.h]hXThis returns huge orders for folios (when supported) based on the file size which the mapping currently allows at the given index. The index is relevant due to alignment considerations the mapping might have. The returned order may be less than the size passed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMEhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMJhjubj9)}(h The orders.h]h The orders.}(hjˉhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌshmem_writeout (C function)c.shmem_writeouthNtauh1hhjhhhNhNubh)}(hhh](h)}(h_int shmem_writeout (struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h]h)}(h^int shmem_writeout(struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM%ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM%ubh)}(hshmem_writeouth]h)}(hshmem_writeouth]hshmem_writeout}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM%ubj)}(hL(struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj7hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]h)}(hfolioh]hfolio}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjWmodnameN classnameNj\j_)}jb]je)}jXjsbc.shmem_writeoutasbuh1hhj3ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj3ubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/ubj)}(hstruct swap_iocb **plugh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h swap_iocbh]h swap_iocb}(hjNJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjĊubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjɊmodnameN classnameNj\j_)}jb]jqc.shmem_writeoutasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hplugh]hplug}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/ubj)}(hstruct list_head *folio_listh](j!)}(hj$h]hstruct}(hj&hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]h)}(h list_headh]h list_head}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFmodnameN classnameNj\j_)}jb]jqc.shmem_writeoutasbuh1hhj"ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj2 )}(hj5 h]h*}(hjphhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj"ubh)}(h folio_listh]h folio_list}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM%ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM%ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM%hjhhubj )}(hhh]j9)}(hWrite the folio to swaph]hWrite the folio to swap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM%hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM%ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjɋh]h Parameters}(hjˋhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM)hjËubj)}(hhh](j)}(h+``struct folio *folio`` The folio to write h](j)}(h``struct folio *folio``h]j?)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM&hjubj)}(hhh]j9)}(hThe folio to writeh]hThe folio to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjߋubj)}(h&``struct swap_iocb **plug`` swap plug h](j)}(h``struct swap_iocb **plug``h]j?)}(hj!h]hstruct swap_iocb **plug}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM'hjubj)}(hhh]j9)}(h swap plugh]h swap plug}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hM'hj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hM'hjߋubj)}(hB``struct list_head *folio_list`` list to put back folios on split h](j)}(h ``struct list_head *folio_list``h]j?)}(hjZh]hstruct list_head *folio_list}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjXubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM(hjTubj)}(hhh]j9)}(h list to put back folios on splith]h list to put back folios on split}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjohM(hjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohM(hjߋubeh}(h]h ]h"]h$]h&]uh1jhjËubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM*hjËubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM)hjËubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌshmem_get_folio (C function)c.shmem_get_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(htint shmem_get_folio (struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h]h)}(hsint shmem_get_folio(struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h](j)}(hinth]hint}(hjڌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֌hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMu ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֌hhhjhMu ubh)}(hshmem_get_folioh]h)}(hshmem_get_folioh]hshmem_get_folio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj֌hhhjhMu ubj)}(h`(struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h](j)}(hstruct inode *inodeh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hinodeh]hinode}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj7modnameN classnameNj\j_)}jb]je)}jXjsbc.shmem_get_folioasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjchhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hinodeh]hinode}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jQc.shmem_get_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hloff_t write_endh](h)}(hhh]h)}(hloff_th]hloff_t}(hjԍhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjэubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj֍modnameN classnameNj\j_)}jb]jQc.shmem_get_folioasbuh1hhj͍ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͍ubh)}(h write_endh]h write_end}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj͍ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct folio **folioph](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj9modnameN classnameNj\j_)}jb]jQc.shmem_get_folioasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjchhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubj2 )}(hj5 h]h*}(hjphhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioph]hfoliop}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum sgp_type sgph](j!)}(hj5h]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hsgp_typeh]hsgp_type}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jQc.shmem_get_folioasbuh1hhjubj)}(h h]h }(hjҎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsgph]hsgp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj֌hhhjhMu ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjҌhhhjhMu ubah}(h]j͌ah ](jjeh"]h$]h&]jj)jhuh1hhjhMu hjόhhubj )}(hhh]j9)}(hfind, and lock a shmem folio.h]hfind, and lock a shmem folio.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMu hjhhubah}(h]h ]h"]h$]h&]uh1jhjόhhhjhMu ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j"j4j"j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMy hj&ubj)}(hhh](j)}(h(``struct inode *inode`` inode to search h](j)}(h``struct inode *inode``h]j?)}(hjKh]hstruct inode *inode}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMv hjEubj)}(hhh]j9)}(hinode to searchh]hinode to search}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`hMv hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMv hjBubj)}(h"``pgoff_t index`` the page index. h](j)}(h``pgoff_t index``h]j?)}(hjh]h pgoff_t index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMw hj~ubj)}(hhh]j9)}(hthe page index.h]hthe page index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMw hjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMw hjBubj)}(h=``loff_t write_end`` end of a write, could extend inode size h](j)}(h``loff_t write_end``h]j?)}(hjh]hloff_t write_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMx hjubj)}(hhh]j9)}(h'end of a write, could extend inode sizeh]h'end of a write, could extend inode size}(hj֏hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjҏhMx hjӏubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjҏhMx hjBubj)}(h8``struct folio **foliop`` pointer to the folio if found h](j)}(h``struct folio **foliop``h]j?)}(hjh]hstruct folio **foliop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMy hjubj)}(hhh]j9)}(hpointer to the folio if foundh]hpointer to the folio if found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMy hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMy hjBubj)}(h6``enum sgp_type sgp`` SGP_* flags to control behavior h](j)}(h``enum sgp_type sgp``h]j?)}(hj/h]henum sgp_type sgp}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj-ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMz hj)ubj)}(hhh]j9)}(hSGP_* flags to control behaviorh]hSGP_* flags to control behavior}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjDhMz hjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMz hjBubeh}(h]h ]h"]h$]h&]uh1jhj&ubj9)}(h**Description**h]jz)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM| hj&ubj9)}(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 }(hjhhhNhNubjz)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh & }(hjhhhNhNubjz)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhK. If a folio is present, it is returned locked with an increased refcount.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM{ hj&ubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM~ hj&ubj)}(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 }(hjɐhhhNhNubjz)}(h**sgp**h]hsgp}(hjѐhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjɐubh:}(hjɐhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM hjŐubj)}(hhh]jު)}(hhh](j+)}(h7for SGP_READ, ***foliop** is ``NULL`` and 0 is returnedh]j9)}(hjh](hfor SGP_READ, }(hjhhhNhNubjz)}(h ***foliop**h]h*foliop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh and 0 is returned}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM hjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(h@for SGP_NOALLOC, ***foliop** is ``NULL`` and -ENOENT is returnedh]j9)}(hj.h](hfor SGP_NOALLOC, }(hj0hhhNhNubjz)}(h ***foliop**h]h*foliop}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubh is }(hj0hhhNhNubj?)}(h``NULL``h]hNULL}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubh and -ENOENT is returned}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM hj,ubah}(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]j9)}(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 }(hjlhhhNhNubjz)}(h **foliop**h]hfoliop}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubh.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM hjhubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jjuh1jݪhj%hM hjubah}(h]h ]h"]h$]h&]uh1jhjŐubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhj&ubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM hj&ubj9)}(h May sleep.h]h May sleep.}(hjÑhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM hj&ubj9)}(h **Return**h]jz)}(hjԑh]hReturn}(hj֑hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjґubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM hj&ubj9)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$shmem_kernel_file_setup (C function)c.shmem_kernel_file_setuphNtauh1hhjhhhNhNubh)}(hhh](h)}(hZstruct file * shmem_kernel_file_setup (const char *name, loff_t size, unsigned long flags)h]h)}(hXstruct file *shmem_kernel_file_setup(const char *name, loff_t size, unsigned long flags)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hM ubh)}(hhh]h)}(hfileh]hfile}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]je)}jXshmem_kernel_file_setupsbc.shmem_kernel_file_setupasbuh1hhjhhhj&hM ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hM ubj2 )}(hj5 h]h*}(hjghhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhj&hM ubh)}(hshmem_kernel_file_setuph]h)}(hjVh]hshmem_kernel_file_setup}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj&hM ubj)}(h4(const char *name, loff_t size, unsigned long flags)h](j)}(hconst char *nameh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(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&]uh1jhjubj2 )}(hj5 h]h*}(hjʒhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hnameh]hname}(hjגhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t sizeh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jTc.shmem_kernel_file_setupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long flagsh](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&]uh1jhj4ubh)}(hflagsh]hflags}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj&hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj&hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj&hM hjhhubj )}(hhh]j9)}(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.2h]hXCget an unlinked file living in tmpfs which must be kernel internal. There will be NO LSM permission checks against the underlying inode. So users of this interface must do LSM checks at a higher layer. The users are the big_key and shm implementations. LSM checks are provided at the key or shm level rather than the inode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj&hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``const char *name`` name for dentry (to be seen in /proc//maps) ``loff_t size`` size to be set for the file ``unsigned long flags`` VM_NORESERVE suppresses pre-accounting of the entire object sizeh](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./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]j?)}(hjۓh]hconst char *name}(hjݓhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjٓubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjՓubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjՓubeh}(h]h ]h"]h$]h&]uh1jhjhMhjғubj)}(h,``loff_t size`` size to be set for the file h](j)}(h``loff_t size``h]j?)}(hjh]h loff_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjubj)}(hhh]j9)}(hsize to be set for the fileh]hsize to be set for the file}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjғubj)}(hX``unsigned long flags`` VM_NORESERVE suppresses pre-accounting of the entire object sizeh](j)}(h``unsigned long flags``h]j?)}(hjMh]hunsigned long flags}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjKubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjGubj)}(hhh]j9)}(h@VM_NORESERVE suppresses pre-accounting of the entire object sizeh]h@VM_NORESERVE suppresses pre-accounting of the entire object size}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjғubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌshmem_file_setup (C function)c.shmem_file_setuphNtauh1hhjhhhNhNubh)}(hhh](h)}(hSstruct file * shmem_file_setup (const char *name, loff_t size, unsigned long flags)h]h)}(hQstruct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]h)}(hfileh]hfile}(hjƔhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjÔubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjȔmodnameN classnameNj\j_)}jb]je)}jXshmem_file_setupsbc.shmem_file_setupasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(hshmem_file_setuph]h)}(hjh]hshmem_file_setup}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h4(const char *name, loff_t size, unsigned long flags)h](j)}(hconst char *nameh](j!)}(hjeh]hconst}(hj!hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjXhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hnameh]hname}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t sizeh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.shmem_file_setupasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long 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)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj•ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj•ubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj•ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h$get an unlinked file living in tmpfsh]h$get an unlinked file living in tmpfs}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhj%hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j@j4j@j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``const char *name`` name for dentry (to be seen in /proc//maps) ``loff_t size`` size to be set for the file ``unsigned long flags`` VM_NORESERVE suppresses pre-accounting of the entire object sizeh](j9)}(h**Parameters**h]jz)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM!hjDubj)}(hhh](j)}(hF``const char *name`` name for dentry (to be seen in /proc//maps) h](j)}(h``const char *name``h]j?)}(hjih]hconst char *name}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjcubj)}(hhh]j9)}(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&]uh1j8hj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`ubj)}(h,``loff_t size`` size to be set for the file h](j)}(h``loff_t size``h]j?)}(hjh]h loff_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMhjubj)}(hhh]j9)}(hsize to be set for the fileh]hsize to be set for the file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj`ubj)}(hX``unsigned long flags`` VM_NORESERVE suppresses pre-accounting of the entire object sizeh](j)}(h``unsigned long flags``h]j?)}(hjۖh]hunsigned long flags}(hjݖhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjٖubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM!hjՖubj)}(hhh]j9)}(h@VM_NORESERVE suppresses pre-accounting of the entire object sizeh]h@VM_NORESERVE suppresses pre-accounting of the entire object size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM hjubah}(h]h ]h"]h$]h&]uh1jhjՖubeh}(h]h ]h"]h$]h&]uh1jhjhM!hj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&shmem_file_setup_with_mnt (C function)c.shmem_file_setup_with_mnthNtauh1hhjhhhNhNubh)}(hhh](h)}(hrstruct file * shmem_file_setup_with_mnt (struct vfsmount *mnt, const char *name, loff_t size, unsigned long flags)h]h)}(hpstruct file *shmem_file_setup_with_mnt(struct vfsmount *mnt, const char *name, loff_t size, unsigned long flags)h](j!)}(hj$h]hstruct}(hj5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj1hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM)ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjBhM)ubh)}(hhh]h)}(hfileh]hfile}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjVmodnameN classnameNj\j_)}jb]je)}jXshmem_file_setup_with_mntsbc.shmem_file_setup_with_mntasbuh1hhj1hhhjBhM)ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjBhM)ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj1hhhjBhM)ubh)}(hshmem_file_setup_with_mnth]h)}(hjrh]hshmem_file_setup_with_mnt}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj1hhhjBhM)ubj)}(hJ(struct vfsmount *mnt, const char *name, loff_t size, unsigned long flags)h](j)}(hstruct vfsmount *mnth](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvfsmounth]hvfsmount}(hj͗hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjʗubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjϗmodnameN classnameNj\j_)}jb]jpc.shmem_file_setup_with_mntasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmnth]hmnt}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hconst char *nameh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcharh]hchar}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hnameh]hname}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t sizeh](h)}(hhh]h)}(hloff_th]hloff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jpc.shmem_file_setup_with_mntasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjĘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjҘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj1hhhjBhM)ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj-hhhjBhM)ubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjBhM)hj*hhubj )}(hhh]j9)}(h$get an unlinked file living in tmpfsh]h$get an unlinked file living in tmpfs}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM)hj#hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjBhM)ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j>j4j>j5j6j7uh1hhhhjhNhNubjp)}(hX-**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 ``unsigned long flags`` VM_NORESERVE suppresses pre-accounting of the entire object sizeh](j9)}(h**Parameters**h]jz)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM-hjBubj)}(hhh](j)}(hH``struct vfsmount *mnt`` the tmpfs mount where the file will be created h](j)}(h``struct vfsmount *mnt``h]j?)}(hjgh]hstruct vfsmount *mnt}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM*hjaubj)}(hhh]j9)}(h.the tmpfs mount where the file will be createdh]h.the tmpfs mount where the file will be created}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|hM*hj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM*hj^ubj)}(hF``const char *name`` name for dentry (to be seen in /proc//maps) h](j)}(h``const char *name``h]j?)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM+hjubj)}(hhh]j9)}(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&]uh1j8hjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hj^ubj)}(h,``loff_t size`` size to be set for the file h](j)}(h``loff_t size``h]j?)}(hjٙh]h loff_t size}(hjۙhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjיubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM,hjәubj)}(hhh]j9)}(hsize to be set for the fileh]hsize to be set for the file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjәubeh}(h]h ]h"]h$]h&]uh1jhjhM,hj^ubj)}(hX``unsigned long flags`` VM_NORESERVE suppresses pre-accounting of the entire object sizeh](j)}(h``unsigned long flags``h]j?)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM.hj ubj)}(hhh]j9)}(h@VM_NORESERVE suppresses pre-accounting of the entire object sizeh]h@VM_NORESERVE suppresses pre-accounting of the entire object size}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM-hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM.hj^ubeh}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌshmem_zero_setup (C function)c.shmem_zero_setuphNtauh1hhjhhhNhNubh)}(hhh](h)}(h1int shmem_zero_setup (struct vm_area_struct *vma)h]h)}(h0int shmem_zero_setup(struct vm_area_struct *vma)h](j)}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM7ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjzhM7ubh)}(hshmem_zero_setuph]h)}(hshmem_zero_setuph]hshmem_zero_setup}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhhjzhM7ubj)}(h(struct vm_area_struct *vma)h]j)}(hstruct vm_area_struct *vmah](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjǚhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjĚubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjɚmodnameN classnameNj\j_)}jb]je)}jXjsbc.shmem_zero_setupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhhjzhM7ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjdhhhjzhM7ubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhM7hjahhubj )}(hhh]j9)}(h setup a shared anonymous mappingh]h setup a shared anonymous mapping}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM7hj)hhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhM7ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jDj4jDj5j6j7uh1hhhhjhNhNubjp)}(h]**Parameters** ``struct vm_area_struct *vma`` the vma to be mmapped is prepared by do_mmaph](j9)}(h**Parameters**h]jz)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM;hjHubj)}(hhh]j)}(hK``struct vm_area_struct *vma`` the vma to be mmapped is prepared by do_mmaph](j)}(h``struct vm_area_struct *vma``h]j?)}(hjmh]hstruct vm_area_struct *vma}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM=hjgubj)}(hhh]j9)}(h,the vma to be mmapped is prepared by do_mmaph]h,the vma to be mmapped is prepared by do_mmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM8hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!shmem_read_folio_gfp (C function)c.shmem_read_folio_gfphNtauh1hhjhhhNhNubh)}(hhh](h)}(h]struct folio * shmem_read_folio_gfp (struct address_space *mapping, pgoff_t index, gfp_t gfp)h]h)}(h[struct folio *shmem_read_folio_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j!)}(hj$h]hstruct}(hjǛhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjÛhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMRubj)}(h h]h }(hj՛hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÛhhhjԛhMRubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXshmem_read_folio_gfpsbc.shmem_read_folio_gfpasbuh1hhjÛhhhjԛhMRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÛhhhjԛhMRubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjÛhhhjԛhMRubh)}(hshmem_read_folio_gfph]h)}(hjh]hshmem_read_folio_gfp}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjÛhhhjԛhMRubj)}(h9(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]h)}(h address_spaceh]h address_space}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]jc.shmem_read_folio_gfpasbuh1hhj=ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj=ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.shmem_read_folio_gfpasbuh1hhjubj)}(h h]h }(hjҜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.shmem_read_folio_gfpasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfph]hgfp}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubeh}(h]h ]h"]h$]h&]jj uh1jhjÛhhhjԛhMRubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjԛhMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjԛhMRhjhhubj )}(hhh]j9)}(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](j9)}(h**Parameters**h]jz)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMVhjnubj)}(hhh](j)}(h<``struct address_space *mapping`` the folio's address_space h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMShjubj)}(hhh]j9)}(hthe folio's address_spaceh]hthe folio’s address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubj)}(h"``pgoff_t index`` the folio index h](j)}(h``pgoff_t index``h]j?)}(hj̝h]h pgoff_t index}(hjΝhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjʝubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMThjƝubj)}(hhh]j9)}(hthe folio indexh]hthe folio index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMThjubah}(h]h ]h"]h$]h&]uh1jhjƝubeh}(h]h ]h"]h$]h&]uh1jhjhMThjubj)}(h<``gfp_t gfp`` the page allocator flags to use if allocating h](j)}(h ``gfp_t gfp``h]j?)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMUhjubj)}(hhh]j9)}(h-the page allocator flags to use if allocatingh]h-the page allocator flags to use if allocating}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMUhjubeh}(h]h ]h"]h$]h&]uh1jhjnubj9)}(h**Description**h]jz)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj>ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMWhjnubj9)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chMVhjnubj9)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/shmem.chM\hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmigrate_vma_setup (C function)c.migrate_vma_setuphNtauh1hhjhhhNhNubh)}(hhh](h)}(h0int migrate_vma_setup (struct migrate_vma *args)h]h)}(h/int migrate_vma_setup(struct migrate_vma *args)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmigrate_vma_setuph]h)}(hmigrate_vma_setuph]hmigrate_vma_setup}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(struct migrate_vma *args)h]j)}(hstruct migrate_vma *argsh](j!)}(hj$h]hstruct}(hjўhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj͞ubj)}(h h]h }(hjޞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͞ubh)}(hhh]h)}(h migrate_vmah]h migrate_vma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.migrate_vma_setupasbuh1hhj͞ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͞ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj͞ubh)}(hargsh]hargs}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj͞ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjɞubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h$prepare to migrate a range of memoryh]h$prepare to migrate a range of memory}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jlj4jlj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubj)}(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]j?)}(hjh]hstruct migrate_vma *args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjubj)}(hhh]j9)}(h:contains the vma, start, and pfns arrays for the migrationh]h:contains the vma, start, and pfns arrays for the migration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubj9)}(h **Return**h]jz)}(hjПh]hReturn}(hjҟhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjΟubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubj9)}(hRnegative errno on failures, 0 when 0 or more pages were migrated without an error.h]hRnegative errno on failures, 0 when 0 or more pages were migrated without an error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubj9)}(hXPrepare to migrate a range of memory virtual address range by collecting all the pages backing each virtual address in the range, saving them inside the src array. Then lock those pages and unmap them. Once the pages are locked and unmapped, check whether each page is pinned or not. Pages that aren't pinned have the MIGRATE_PFN_MIGRATE flag set (by this function) in the corresponding src array entry. Then restores any pages that are pinned, by remapping and unlocking those pages.h]hXPrepare to migrate a range of memory virtual address range by collecting all the pages backing each virtual address in the range, saving them inside the src array. Then lock those pages and unmap them. Once the pages are locked and unmapped, check whether each page is pinned or not. Pages that aren’t pinned have the MIGRATE_PFN_MIGRATE flag set (by this function) in the corresponding src array entry. Then restores any pages that are pinned, by remapping and unlocking those pages.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubj9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubj9)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubj9)}(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.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubj9)}(hXAfter that, the callers must call migrate_vma_pages() to go over each entry in the src array that has the MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set. If the corresponding entry in dst array has MIGRATE_PFN_VALID flag set, then migrate_vma_pages() to migrate struct page information from the source struct page to the destination struct page. If it fails to migrate the struct page information, then it clears the MIGRATE_PFN_MIGRATE flag in the src array.h]hXAfter that, the callers must call migrate_vma_pages() to go over each entry in the src array that has the MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set. If the corresponding entry in dst array has MIGRATE_PFN_VALID flag set, then migrate_vma_pages() to migrate struct page information from the source struct page to the destination struct page. If it fails to migrate the struct page information, then it clears the MIGRATE_PFN_MIGRATE flag in the src array.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubj9)}(hAt this point all successfully migrated pages have an entry in the src array with MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set and the dst array entry with MIGRATE_PFN_VALID flag set.h]hAt this point all successfully migrated pages have an entry in the src array with MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE flag set and the dst array entry with MIGRATE_PFN_VALID flag set.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubj9)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM hjpubj9)}(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).}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM hjpubj9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!migrate_device_pages (C function)c.migrate_device_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(hbvoid migrate_device_pages (unsigned long *src_pfns, unsigned long *dst_pfns, unsigned long npages)h]h)}(havoid migrate_device_pages(unsigned long *src_pfns, unsigned long *dst_pfns, unsigned long npages)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMubj)}(h h]h }(hjàhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(hmigrate_device_pagesh]h)}(hmigrate_device_pagesh]hmigrate_device_pages}(hjՠhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjѠubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj hMubj)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj)hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsrc_pfnsh]hsrc_pfns}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long *dst_pfnsh](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&]uh1jhjKubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjKubh)}(hdst_pfnsh]hdst_pfns}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long npagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjɡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjסhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnpagesh]hnpages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj )}(hhh]j9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j'j4j'j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhj+ubj)}(hhh](j)}(hJ``unsigned long *src_pfns`` src_pfns returned from migrate_device_range() h](j)}(h``unsigned long *src_pfns``h]j?)}(hjPh]hunsigned long *src_pfns}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjJubj)}(hhh]j9)}(h-src_pfns returned from migrate_device_range()h]h-src_pfns returned from migrate_device_range()}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjGubj)}(hW``unsigned long *dst_pfns`` array of pfns allocated by the driver to migrate memory to h](j)}(h``unsigned long *dst_pfns``h]j?)}(hjh]hunsigned long *dst_pfns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjubj)}(hhh]j9)}(h:array of pfns allocated by the driver to migrate memory toh]h:array of pfns allocated by the driver to migrate memory to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubj)}(h6``unsigned long npages`` number of pages in the range h](j)}(h``unsigned long npages``h]j?)}(hj¢h]hunsigned long npages}(hjĢhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjubj)}(hhh]j9)}(hnumber of pages in the rangeh]hnumber of pages in the range}(hjۢhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjעhMhjآubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjעhMhjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhj+ubj9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmigrate_vma_pages (C function)c.migrate_vma_pageshNtauh1hhjhhhNhNubh)}(hhh](h)}(h4void migrate_vma_pages (struct migrate_vma *migrate)h]h)}(h3void migrate_vma_pages(struct migrate_vma *migrate)h](j)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM(ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhjPhM(ubh)}(hmigrate_vma_pagesh]h)}(hmigrate_vma_pagesh]hmigrate_vma_pages}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj>hhhjPhM(ubj)}(h(struct migrate_vma *migrate)h]j)}(hstruct migrate_vma *migrateh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]h)}(h migrate_vmah]h migrate_vma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjesbc.migrate_vma_pagesasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj2 )}(hj5 h]h*}(hjˣhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj{ubh)}(hmigrateh]hmigrate}(hjأhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjwubah}(h]h ]h"]h$]h&]jj uh1jhj>hhhjPhM(ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj:hhhjPhM(ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhjPhM(hj7hhubj )}(hhh]j9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM(hjhhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjPhM(ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM,hjubj)}(hhh]j)}(hT``struct migrate_vma *migrate`` migrate struct containing all migration information h](j)}(h``struct migrate_vma *migrate``h]j?)}(hjCh]hstruct migrate_vma *migrate}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjAubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM)hj=ubj)}(hhh]j9)}(h3migrate struct containing all migration informationh]h3migrate struct containing all migration information}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjXhM)hjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhM)hj:ubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM+hjubj9)}(hThis migrates struct page meta-data from source struct page to destination struct page. This effectively finishes the migration from source page to the destination page.h]hThis migrates struct page meta-data from source struct page to destination struct page. This effectively finishes the migration from source page to the destination page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!migrate_vma_finalize (C function)c.migrate_vma_finalizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h7void migrate_vma_finalize (struct migrate_vma *migrate)h]h)}(h6void migrate_vma_finalize(struct migrate_vma *migrate)h](j)}(hvoidh]hvoid}(hjähhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM{ubj)}(h h]h }(hjҤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjѤhM{ubh)}(hmigrate_vma_finalizeh]h)}(hmigrate_vma_finalizeh]hmigrate_vma_finalize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjѤhM{ubj)}(h(struct migrate_vma *migrate)h]j)}(hstruct migrate_vma *migrateh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h migrate_vmah]h migrate_vma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjsbc.migrate_vma_finalizeasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjLhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmigrateh]hmigrate}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjѤhM{ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjѤhM{ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjѤhM{hjhhubj )}(hhh]j9)}(hrestore CPU page table entryh]hrestore CPU page table entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM{hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjѤhM{ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./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]j?)}(hjĥh]hstruct migrate_vma *migrate}(hjƥhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj¥ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM|hjubj)}(hhh]j9)}(h3migrate struct containing all migration informationh]h3migrate struct containing all migration information}(hjݥhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj٥hM|hjڥubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj٥hM|hjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM~hjubj9)}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chM}hjubj9)}(hiThis also unlocks the pages and puts them back on the lru, or drops the extra refcount, for device pages.h]hiThis also unlocks the pages and puts them back on the lru, or drops the extra refcount, for device pages.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!migrate_device_range (C function)c.migrate_device_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(h]int migrate_device_range (unsigned long *src_pfns, unsigned long start, unsigned long npages)h]h)}(h\int migrate_device_range(unsigned long *src_pfns, unsigned long start, unsigned long npages)h](j)}(hinth]hint}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjahMubh)}(hmigrate_device_rangeh]h)}(hmigrate_device_rangeh]hmigrate_device_range}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubah}(h]h ](jjeh"]h$]h&]jj uh1hhjOhhhjahMubj)}(hD(unsigned long *src_pfns, unsigned long start, unsigned long npages)h](j)}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjȦhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsrc_pfnsh]hsrc_pfns}(hjզhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hstarth]hstart}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long npagesh](j)}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hlongh]hlong}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hnpagesh]hnpages}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjahMhjHhhubj )}(hhh]j9)}(h-migrate device private pfns to normal memory.h]h-migrate device private pfns to normal memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjçh]h Parameters}(hjŧhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjubj)}(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]j?)}(hjh]hunsigned long *src_pfns}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjܧubj)}(hhh]j9)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjܧubeh}(h]h ]h"]h$]h&]uh1jhjhMhj٧ubj)}(h>``unsigned long start`` starting pfn in the range to migrate. h](j)}(h``unsigned long start``h]j?)}(hjh]hunsigned long start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjubj)}(hhh]j9)}(h%starting pfn in the range to migrate.h]h%starting pfn in the range to migrate.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj٧ubj)}(h5``unsigned long npages`` number of pages to migrate. h](j)}(h``unsigned long npages``h]j?)}(hjTh]hunsigned long npages}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjNubj)}(hhh]j9)}(hnumber of pages to migrate.h]hnumber of pages to migrate.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhj٧ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjubj9)}(hmigrate_vma_setup() is similar in concept to migrate_vma_setup() except that instead of looking up pages based on virtual address mappings a range of device pfns that should be migrated to system memory is used instead.h]hmigrate_vma_setup() is similar in concept to migrate_vma_setup() except that instead of looking up pages based on virtual address mappings a range of device pfns that should be migrated to system memory is used instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjubj9)}(hThis is useful when a driver needs to free device memory but doesn't know the virtual mappings of every page that may be in device memory. For example this is often the case when a driver is being unloaded or unbound from a device.h]hThis is useful when a driver needs to free device memory but doesn’t know the virtual mappings of every page that may be in device memory. For example this is often the case when a driver is being unloaded or unbound from a device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjubj9)}(hX Like migrate_vma_setup() this function will take a reference and lock any migrating pages that aren't free before unmapping them. Drivers may then allocate destination pages and start copying data from the device to CPU memory before calling migrate_device_pages().h]hX Like migrate_vma_setup() this function will take a reference and lock any migrating pages that aren’t free before unmapping them. Drivers may then allocate destination pages and start copying data from the device to CPU memory before calling migrate_device_pages().}(hjèhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ migrate_device_pfns (C function)c.migrate_device_pfnshNtauh1hhjhhhNhNubh)}(hhh](h)}(hGint migrate_device_pfns (unsigned long *src_pfns, unsigned long npages)h]h)}(hFint migrate_device_pfns(unsigned long *src_pfns, unsigned long npages)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmigrate_device_pfnsh]h)}(hmigrate_device_pfnsh]hmigrate_device_pfns}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h/(unsigned long *src_pfns, unsigned long npages)h](j)}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hlongh]hlong}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj2 )}(hj5 h]h*}(hjghhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj+ubh)}(hsrc_pfnsh]hsrc_pfns}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj'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&]uh1jhjubh)}(hnpagesh]hnpages}(hjũhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj'ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h-migrate device private pfns to normal memory.h]h-migrate device private pfns to normal memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hX#**Parameters** ``unsigned long *src_pfns`` pre-popluated 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-popluated array of device pages to migrate.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhj ubj)}(hhh](j)}(hZ``unsigned long *src_pfns`` pre-popluated array of source device private pfns to migrate. h](j)}(h``unsigned long *src_pfns``h]j?)}(hj0h]hunsigned long *src_pfns}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj.ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhj*ubj)}(hhh]j9)}(h=pre-popluated array of source device private pfns to migrate.h]h=pre-popluated array of source device private pfns to migrate.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj'ubj)}(h5``unsigned long npages`` number of pages to migrate. h](j)}(h``unsigned long npages``h]j?)}(hjih]hunsigned long npages}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhjcubj)}(hhh]j9)}(hnumber of pages to migrate.h]hnumber of pages to migrate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj'ubeh}(h]h ]h"]h$]h&]uh1jhj ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhj ubj9)}(hmSimilar to migrate_device_range() but supports non-contiguous pre-popluated array of device pages to migrate.h]hmSimilar to migrate_device_range() but supports non-contiguous pre-popluated array of device pages to migrate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:125: ./mm/migrate_device.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubjt)}(hA#kernel-doc:: mm/nommu.c (duplicates kernel-doc from other files)h]hA#kernel-doc:: mm/nommu.c (duplicates kernel-doc from other files)}hjЪsbah}(h]h ]h"]h$]h&]jj uh1jshjhhhhhK~ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwp_walk (C struct) c.wp_walkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hwp_walkh]h)}(hstruct wp_walkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hwp_walkh]h)}(hjh]hwp_walk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(h+Private struct for pagetable walk callbacksh]h+Private struct for pagetable walk callbacks}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chK hj6hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-structeh"]h$]h&]j2j-j3jQj4jQj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Definition**::h](jz)}(h**Definition**h]h Definition}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYubh:}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjUubj)}(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; };}hjvsbah}(h]h ]h"]h$]h&]jj uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjUubj9)}(h **Members**h]jz)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjUubj)}(hhh](j)}(h"``range`` Range for mmu notifiers h](j)}(h ``range``h]j?)}(hjh]hrange}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chK hjubj)}(hhh]j9)}(hRange for mmu notifiersh]hRange for mmu notifiers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubj)}(h1``tlbflush_start`` Address of first modified pte h](j)}(h``tlbflush_start``h]j?)}(hj߫h]htlbflush_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjݫubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhj٫ubj)}(hhh]j9)}(hAddress of first modified pteh]hAddress of first modified pte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhj٫ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h2``tlbflush_end`` Address of last modified pte + 1 h](j)}(h``tlbflush_end``h]j?)}(hjh]h tlbflush_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]j9)}(h Address of last modified pte + 1h]h Address of last modified pte + 1}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj-hKhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubj)}(h'``total`` Total number of modified ptesh](j)}(h ``total``h]j?)}(hjQh]htotal}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjOubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjKubj)}(hhh]j9)}(hTotal number of modified ptesh]hTotal number of modified ptes}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjubeh}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwp_pte (C function)c.wp_ptehNtauh1hhjhhhNhNubh)}(hhh](h)}(hTint wp_pte (pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h]h)}(hSint wp_pte(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hwp_pteh]h)}(hwp_pteh]hwp_pte}(hj̬hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjȬubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(hI(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j)}(h pte_t *pteh](h)}(hhh]h)}(hpte_th]hpte_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjάsbc.wp_pteasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpteh]hpte}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hlongh]hlong}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(haddrh]haddr}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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&]uh1jhjubh)}(hendh]hend}(hjȭhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct mm_walk *walkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjݭubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݭubh)}(hhh]h)}(hmm_walkh]hmm_walk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.wp_pteasbuh1hhjݭubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݭubj2 )}(hj5 h]h*}(hj+hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjݭubh)}(hwalkh]hwalk}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjݭubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(hWrite-protect a pteh]hWrite-protect a pte}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhj_hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jzj4jzj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhj~ubj)}(hhh](j)}(h"``pte_t *pte`` Pointer to the pte h](j)}(h``pte_t *pte``h]j?)}(hjh]h pte_t *pte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]j9)}(hPointer to the pteh]hPointer to the pte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h?``unsigned long addr`` The start of protecting virtual address h](j)}(h``unsigned long addr``h]j?)}(hjܮh]hunsigned long addr}(hjޮhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjڮubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhj֮ubj)}(hhh]j9)}(h'The start of protecting virtual addressh]h'The start of protecting virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhj֮ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h<``unsigned long end`` The end of protecting virtual address h](j)}(h``unsigned long end``h]j?)}(hjh]hunsigned long end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]j9)}(h%The end of protecting virtual addressh]h%The end of protecting virtual address}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hKhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjubj)}(h:``struct mm_walk *walk`` pagetable walk callback argument h](j)}(h``struct mm_walk *walk``h]j?)}(hjNh]hstruct mm_walk *walk}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjLubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjHubj)}(hhh]j9)}(h pagetable walk callback argumenth]h pagetable walk callback argument}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjchKhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchKhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhj~ubj9)}(hThe function write-protects a pte and records the range in virtual address space of touched ptes for efficient range TLB flushes.h]hThe function write-protects a pte and records the range in virtual address space of touched ptes for efficient range TLB flushes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclean_walk (C struct) c.clean_walkhNtauh1hhjhhhNhNubh)}(hhh](h)}(h clean_walkh]h)}(hstruct clean_walkh](j!)}(hj$h]hstruct}(hjίhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjʯhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chK$ubj)}(h h]h }(hjܯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʯhhhjۯhK$ubh)}(h clean_walkh]h)}(hjȯh]h clean_walk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjʯhhhjۯhK$ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjƯhhhjۯhK$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjۯhK$hjïhhubj )}(hhh]j9)}(h1Private struct for the clean_record_pte function.h]h1Private struct for the clean_record_pte function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chK7hj hhubah}(h]h ]h"]h$]h&]uh1jhjïhhhjۯhK$ubeh}(h]h ](j-structeh"]h$]h&]j2j-j3j(j4j(j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Definition**::h](jz)}(h**Definition**h]h Definition}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubh:}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chK;hj,ubj)}(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; };}hjMsbah}(h]h ]h"]h$]h&]jj uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chK=hj,ubj9)}(h **Members**h]jz)}(hj^h]hMembers}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj\ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKEhj,ubj)}(hhh](j)}(h'``base`` struct wp_walk we derive from h](j)}(h``base``h]j?)}(hj}h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj{ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chK9hjwubj)}(hhh]j9)}(hstruct wp_walk we derive fromh]hstruct wp_walk we derive from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhK9hjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhK9hjtubj)}(hJ``bitmap_pgoff`` Address_space Page offset of the first bit in **bitmap** h](j)}(h``bitmap_pgoff``h]j?)}(hjh]h bitmap_pgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chK:hjubj)}(hhh]j9)}(h8Address_space Page offset of the first bit in **bitmap**h](h.Address_space Page offset of the first bit in }(hjϰhhhNhNubjz)}(h **bitmap**h]hbitmap}(hjװhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjϰubeh}(h]h ]h"]h$]h&]uh1j8hj˰hK:hj̰ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˰hK:hjtubj)}(hX``bitmap`` Bitmap with one bit for each page offset in the address_space range covered. h](j)}(h ``bitmap``h]j?)}(hjh]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhj5ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chK>hj1ubj)}(hhh]j9)}(hLAddress_space page offset of first modified pte relative to **bitmap_pgoff**h](hhjtubj)}(hS``end`` Address_space page offset of last modified pte relative to **bitmap_pgoff**h](j)}(h``end``h]j?)}(hjh]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj}ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chK?hjyubj)}(hhh]j9)}(hKAddress_space page offset of last modified pte relative to **bitmap_pgoff**h](h;Address_space page offset of last modified pte relative to }(hjhhhNhNubjz)}(h**bitmap_pgoff**h]h bitmap_pgoff}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubeh}(h]h ]h"]h$]h&]uh1j8hjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjtubeh}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclean_record_pte (C function)c.clean_record_ptehNtauh1hhjhhhNhNubh)}(hhh](h)}(h^int clean_record_pte (pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h]h)}(h]int clean_record_pte(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKLubh)}(hclean_record_pteh]h)}(hclean_record_pteh]hclean_record_pte}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKLubj)}(hI(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j)}(h pte_t *pteh](h)}(hhh]h)}(hpte_th]hpte_t}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj(modnameN classnameNj\j_)}jb]je)}jXj sbc.clean_record_pteasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjThhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpteh]hpte}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long addrh](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&]uh1jhjvubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hj˲hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDzubj)}(h h]h }(hjٲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDzubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDzubh)}(hendh]hend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDzubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct mm_walk *walkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hmm_walkh]hmm_walk}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj<modnameN classnameNj\j_)}jb]jBc.clean_record_pteasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjfhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hwalkh]hwalk}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKLubeh}(h]h ]h"]h$]h&]jj juh1hjjhjޱhhhjhKLubah}(h]jٱah ](jjeh"]h$]h&]jj)jhuh1hhjhKLhj۱hhubj )}(hhh]j9)}(h;Clean a pte and record its address space offset in a bitmaph]h;Clean a pte and record its address space offset in a bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKLhjhhubah}(h]h ]h"]h$]h&]uh1jhj۱hhhjhKLubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKPhjubj)}(hhh](j)}(h"``pte_t *pte`` Pointer to the pte h](j)}(h``pte_t *pte``h]j?)}(hj޳h]h pte_t *pte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjܳubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKNhjسubj)}(hhh]j9)}(hPointer to the pteh]hPointer to the pte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjسubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjճubj)}(h@``unsigned long addr`` The start of virtual address to be clean h](j)}(h``unsigned long addr``h]j?)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKOhjubj)}(hhh]j9)}(h(The start of virtual address to be cleanh]h(The start of virtual address to be clean}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj,hKOhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hKOhjճubj)}(h=``unsigned long end`` The end of virtual address to be clean h](j)}(h``unsigned long end``h]j?)}(hjPh]hunsigned long end}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKPhjJubj)}(hhh]j9)}(h&The end of virtual address to be cleanh]h&The end of virtual address to be clean}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehKPhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehKPhjճubj)}(h:``struct mm_walk *walk`` pagetable walk callback argument h](j)}(h``struct mm_walk *walk``h]j?)}(hjh]hstruct mm_walk *walk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKQhjubj)}(hhh]j9)}(h pagetable walk callback argumenth]h pagetable walk callback argument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjճubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjĴh]h Description}(hjƴhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj´ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKShjubj9)}(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.}(hjڴhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$wp_shared_mapping_range (C function)c.wp_shared_mapping_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hfunsigned long wp_shared_mapping_range (struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h]h)}(heunsigned long wp_shared_mapping_range(struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(hlongh]hlong}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hwp_shared_mapping_rangeh]h)}(hwp_shared_mapping_rangeh]hwp_shared_mapping_range}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(h@(struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjbhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjHsbc.wp_shared_mapping_rangeasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj^ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjZubj)}(hpgoff_t first_indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj׵hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjԵubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjٵmodnameN classnameNj\j_)}jb]jc.wp_shared_mapping_rangeasbuh1hhjеubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjеubh)}(h first_indexh]h first_index}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjеubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjZubj)}(h pgoff_t nrh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj!modnameN classnameNj\j_)}jb]jc.wp_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnrh]hnr}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjZubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(h0Write-protect all ptes in an address space rangeh]h0Write-protect all ptes in an address space range}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh](j)}(hM``struct address_space *mapping`` The address_space we want to write protect h](j)}(h!``struct address_space *mapping``h]j?)}(hjh]hstruct address_space *mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]j9)}(h*The address_space we want to write protecth]h*The address_space we want to write protect}(hj϶hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj˶hKhj̶ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˶hKhjubj)}(h;``pgoff_t first_index`` The first page offset in the range h](j)}(h``pgoff_t first_index``h]j?)}(hjh]hpgoff_t first_index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]j9)}(h"The first page offset in the rangeh]h"The first page offset in the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h;``pgoff_t nr`` Number of incremental page offsets to cover h](j)}(h``pgoff_t nr``h]j?)}(hj(h]h pgoff_t nr}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj&ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhj"ubj)}(hhh]j9)}(h+Number of incremental page offsets to coverh]h+Number of incremental page offsets to cover}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj=hKhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Note**h]jz)}(hjch]hNote}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjubj9)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chKhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhjubj9)}(hdThe number of ptes actually write-protected. Note that already write-protected ptes are not counted.h]hdThe number of ptes actually write-protected. Note that already write-protected ptes are not counted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.clean_record_shared_mapping_range (C function)#c.clean_record_shared_mapping_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hunsigned long clean_record_shared_mapping_range (struct address_space *mapping, pgoff_t first_index, pgoff_t nr, pgoff_t bitmap_pgoff, unsigned long *bitmap, pgoff_t *start, pgoff_t *end)h]h)}(hunsigned long clean_record_shared_mapping_range(struct address_space *mapping, pgoff_t first_index, pgoff_t nr, pgoff_t bitmap_pgoff, unsigned long *bitmap, pgoff_t *start, pgoff_t *end)h](j)}(hunsignedh]hunsigned}(hjϷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˷hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMubj)}(h h]h }(hj޷hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˷hhhjݷhMubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˷hhhjݷhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˷hhhjݷhMubh)}(h!clean_record_shared_mapping_rangeh]h)}(h!clean_record_shared_mapping_rangeh]h!clean_record_shared_mapping_range}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj˷hhhjݷhMubj)}(h(struct address_space *mapping, pgoff_t first_index, pgoff_t nr, pgoff_t bitmap_pgoff, unsigned long *bitmap, pgoff_t *start, pgoff_t *end)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj(hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjHmodnameN classnameNj\j_)}jb]je)}jXjsb#c.clean_record_shared_mapping_rangeasbuh1hhj$ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2 )}(hj5 h]h*}(hjthhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj$ubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hpgoff_t first_indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jb#c.clean_record_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h first_indexh]h first_index}(hjɸhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(h pgoff_t nrh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jb#c.clean_record_shared_mapping_rangeasbuh1hhj޸ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj޸ubh)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj޸ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hpgoff_t bitmap_pgoffh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj/modnameN classnameNj\j_)}jb]jb#c.clean_record_shared_mapping_rangeasbuh1hhj&ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(h bitmap_pgoffh]h bitmap_pgoff}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hunsigned long *bitmaph](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&]uh1jhjnubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjnubh)}(hbitmaph]hbitmap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hpgoff_t *starth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjӹhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjйubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjչmodnameN classnameNj\j_)}jb]jb#c.clean_record_shared_mapping_rangeasbuh1hhj̹ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̹ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj̹ubh)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj̹ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(h pgoff_t *endh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj*modnameN classnameNj\j_)}jb]jb#c.clean_record_shared_mapping_rangeasbuh1hhj!ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2 )}(hj5 h]h*}(hjThhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj!ubh)}(hendh]hend}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhj˷hhhjݷhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjǷhhhjݷhMubah}(h]j·ah ](jjeh"]h$]h&]jj)jhuh1hhjݷhMhjķhhubj )}(hhh]j9)}(h3Clean and record all ptes in an address space rangeh]h3Clean and record all ptes in an address space range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjķhhhjݷhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhjubj)}(hhh](j)}(hE``struct address_space *mapping`` The address_space we want to clean h](j)}(h!``struct address_space *mapping``h]j?)}(hj̺h]hstruct address_space *mapping}(hjκhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjʺubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhjƺubj)}(hhh]j9)}(h"The address_space we want to cleanh]h"The address_space we want to clean}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjƺubeh}(h]h ]h"]h$]h&]uh1jhjhMhjúubj)}(h;``pgoff_t first_index`` The first page offset in the range h](j)}(h``pgoff_t first_index``h]j?)}(hjh]hpgoff_t first_index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhjubj)}(hhh]j9)}(h"The first page offset in the rangeh]h"The first page offset in the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjúubj)}(h;``pgoff_t nr`` Number of incremental page offsets to cover h](j)}(h``pgoff_t nr``h]j?)}(hj>h]h pgoff_t nr}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj<ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhj8ubj)}(hhh]j9)}(h+Number of incremental page offsets to coverh]h+Number of incremental page offsets to cover}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjúubj)}(hH``pgoff_t bitmap_pgoff`` The page offset of the first bit in **bitmap** h](j)}(h``pgoff_t bitmap_pgoff``h]j?)}(hjwh]hpgoff_t bitmap_pgoff}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjuubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhjqubj)}(hhh]j9)}(h.The page offset of the first bit in **bitmap**h](h$The page offset of the first bit in }(hjhhhNhNubjz)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjúubj)}(h``unsigned long *bitmap`` Pointer to a bitmap of at least **nr** bits. The bitmap needs to cover the whole range **first_index**..**first_index** + **nr**. h](j)}(h``unsigned long *bitmap``h]j?)}(hjh]hunsigned long *bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhjubj)}(hhh]j9)}(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׻hhhNhNubjz)}(h**nr**h]hnr}(hj߻hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj׻ubh1 bits. The bitmap needs to cover the whole range }(hj׻hhhNhNubjz)}(h**first_index**h]h first_index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj׻ubh..**first_index** + }(hj׻hhhNhNubjz)}(h**nr**h]hnr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj׻ubh.}(hj׻hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhjԻubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӻhMhjúubj)}(hz``pgoff_t *start`` Pointer to number of the first set bit in **bitmap**. is modified as new bits are set by the function. h](j)}(h``pgoff_t *start``h]j?)}(hj.h]hpgoff_t *start}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj,ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhj(ubj)}(hhh]j9)}(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 }(hjGhhhNhNubjz)}(h **bitmap**h]hbitmap}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubh2. is modified as new bits are set by the function.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjúubj)}(h``pgoff_t *end`` Pointer to the number of the last set bit in **bitmap**. none set. The value is modified as new bits are set by the function. h](j)}(h``pgoff_t *end``h]j?)}(hjzh]h pgoff_t *end}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chM!hjtubj)}(hhh]j9)}(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 }(hjhhhNhNubjz)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhF. none set. The value is modified as new bits are set by the function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chM hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjúubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjȼh]h Description}(hjʼhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjƼubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chM#hjubj9)}(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&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chM"hjubjު)}(hhh](j+)}(hUAll ptes dirty when the function starts executing will end up recorded in the bitmap.h]j9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chM&hjubah}(h]h ]h"]h$]h&]uh1j+hjubj+)}(hYAll ptes dirtied after that will either remain dirty, be recorded in the bitmap or both. h]j9)}(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&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chM(hj ubah}(h]h ]h"]h$]h&]uh1j+hjubeh}(h]h ]h"]h$]h&]jj5 uh1jݪhjhM&hjubj9)}(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&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chM+hjubj9)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chM1hjubj9)}(h **Return**h]jz)}(hjHh]hReturn}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chM6hjubj9)}(h*The number of dirty ptes actually cleaned.h]h*The number of dirty ptes actually cleaned.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:127: ./mm/mapping_dirty_helpers.chM7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubjt)}(h2#kernel-doc:: mm/memory-failure.c (build warnings)h]h2#kernel-doc:: mm/memory-failure.c (build warnings)}hjtsbah}(h]h ]h"]h$]h&]jj uh1jshjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_addr_in_chunk (C function)c.pcpu_addr_in_chunkhNtauh1hhjhhhNhNubh)}(hhh](h)}(h>bool pcpu_addr_in_chunk (struct pcpu_chunk *chunk, void *addr)h]h)}(h=bool pcpu_addr_in_chunk(struct pcpu_chunk *chunk, void *addr)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hpcpu_addr_in_chunkh]h)}(hpcpu_addr_in_chunkh]hpcpu_addr_in_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(h&(struct pcpu_chunk *chunk, void *addr)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hj׽hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjӽubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӽubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_addr_in_chunkasbuh1hhjӽubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӽubj2 )}(hj5 h]h*}(hj#hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjӽubh)}(hchunkh]hchunk}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjӽubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjϽubj)}(h void *addrh](j)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2 )}(hj5 h]h*}(hjehhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjEubh)}(haddrh]haddr}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjϽubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(h.check if the address is served from this chunkh]h.check if the address is served from this chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``void *addr`` percpu address **Return** True if the address is served from this chunk.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKhjubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjݾh]hstruct pcpu_chunk *chunk}(hj߾hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj۾ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKhj׾ubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhj׾ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjԾubj)}(h``void *addr`` percpu address h](j)}(h``void *addr``h]j?)}(hjh]h void *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKhjubj)}(hhh]j9)}(hpercpu addressh]hpercpu address}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+hKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hKhjԾubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h **Return**h]jz)}(hjQh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKhjubj9)}(h.True if the address is served from this chunk.h]h.True if the address is served from this chunk.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"pcpu_check_block_hint (C function)c.pcpu_check_block_hinthNtauh1hhjhhhNhNubh)}(hhh](h)}(hPbool pcpu_check_block_hint (struct pcpu_block_md *block, int bits, size_t align)h]h)}(hObool pcpu_check_block_hint(struct pcpu_block_md *block, int bits, size_t align)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM4ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM4ubh)}(hpcpu_check_block_hinth]h)}(hpcpu_check_block_hinth]hpcpu_check_block_hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM4ubj)}(h5(struct pcpu_block_md *block, int bits, size_t align)h](j)}(hstruct pcpu_block_md *blockh](j!)}(hj$h]hstruct}(hjҿhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjοubj)}(h h]h }(hj߿hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjοubh)}(hhh]h)}(h pcpu_block_mdh]h pcpu_block_md}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_check_block_hintasbuh1hhjοubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjοubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjοubh)}(hblockh]hblock}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjοubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjʿubj)}(hint bitsh](j)}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hbitsh]hbits}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjʿubj)}(h size_t alignh](h)}(hhh]h)}(hsize_th]hsize_t}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]j c.pcpu_check_block_hintasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(halignh]halign}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjʿubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM4ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM4hjhhubj )}(hhh]j9)}(hcheck against the contig hinth]hcheck against the contig hint}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM4hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM4ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM8hjubj)}(hhh](j)}(h2``struct pcpu_block_md *block`` block of interest h](j)}(h``struct pcpu_block_md *block``h]j?)}(hjh]hstruct pcpu_block_md *block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM5hj ubj)}(hhh]j9)}(hblock of interesth]hblock of interest}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj(hM5hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hM5hj ubj)}(h ``int bits`` size of allocation h](j)}(h ``int bits``h]j?)}(hjLh]hint bits}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM6hjFubj)}(hhh]j9)}(hsize of allocationh]hsize of allocation}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjahM6hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM6hj ubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]j?)}(hjh]h size_t align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM7hjubj)}(hhh]j9)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hj ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM9hjubj9)}(hCheck to see if the allocation can fit in the block's contig hint. Note, a chunk uses the same hints as a block so this can also check against the chunk's contig hint.h]hCheck to see if the allocation can fit in the block’s contig hint. Note, a chunk uses the same hints as a block so this can also check against the chunk’s contig hint.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM8hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%pcpu_next_md_free_region (C function)c.pcpu_next_md_free_regionhNtauh1hhjhhhNhNubh)}(hhh](h)}(hQvoid pcpu_next_md_free_region (struct pcpu_chunk *chunk, int *bit_off, int *bits)h]h)}(hPvoid pcpu_next_md_free_region(struct pcpu_chunk *chunk, int *bit_off, int *bits)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMcubh)}(hpcpu_next_md_free_regionh]h)}(hpcpu_next_md_free_regionh]hpcpu_next_md_free_region}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMcubj)}(h3(struct pcpu_chunk *chunk, int *bit_off, int *bits)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjBhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbmodnameN classnameNj\j_)}jb]je)}jXj(sbc.pcpu_next_md_free_regionasbuh1hhj>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj>ubh)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubj)}(h int *bit_offh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hbit_offh]hbit_off}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubj)}(h int *bitsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMcubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMchjhhubj )}(hhh]j9)}(hfinds the next hint free areah]hfinds the next hint free area}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMchjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMcubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jaj4jaj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMghjeubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjh]hstruct pcpu_chunk *chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMdhjubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubj)}(h``int *bit_off`` chunk offset h](j)}(h``int *bit_off``h]j?)}(hjh]h int *bit_off}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMehjubj)}(hhh]j9)}(h chunk offseth]h chunk offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubj)}(h ``int *bits`` size of free area h](j)}(h ``int *bits``h]j?)}(hjh]h int *bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMfhjubj)}(hhh]j9)}(hsize of free areah]hsize of free area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubeh}(h]h ]h"]h$]h&]uh1jhjeubj9)}(h**Description**h]jz)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhhjeubj9)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMghjeubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!pcpu_next_fit_region (C function)c.pcpu_next_fit_regionhNtauh1hhjhhhNhNubh)}(hhh](h)}(hhvoid pcpu_next_fit_region (struct pcpu_chunk *chunk, int alloc_bits, int align, int *bit_off, int *bits)h]h)}(hgvoid pcpu_next_fit_region(struct pcpu_chunk *chunk, int alloc_bits, int align, int *bit_off, int *bits)h](j)}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhMubh)}(hpcpu_next_fit_regionh]h)}(hpcpu_next_fit_regionh]hpcpu_next_fit_region}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjxhhhjhMubj)}(hN(struct pcpu_chunk *chunk, int alloc_bits, int align, int *bit_off, int *bits)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_next_fit_regionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint alloc_bitsh](j)}(hinth]hint}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(h alloc_bitsh]h alloc_bits}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int alignh](j)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(halignh]halign}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int *bit_offh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hbit_offh]hbit_off}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int *bitsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjxhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjthhhjhMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjqhhubj )}(hhh]j9)}(h.finds fit areas for a given allocation requesth]h.finds fit areas for a given allocation request}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj'hhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jBj4jBj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjFubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjkh]hstruct pcpu_chunk *chunk}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjeubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(h&``int alloc_bits`` size of allocation h](j)}(h``int alloc_bits``h]j?)}(hjh]hint alloc_bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hsize of allocationh]hsize of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(h0``int align`` alignment of area (max PAGE_SIZE) h](j)}(h ``int align``h]j?)}(hjh]h int align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(h``int *bit_off`` chunk offset h](j)}(h``int *bit_off``h]j?)}(hjh]h int *bit_off}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(h chunk offseth]h chunk offset}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjbubj)}(h ``int *bits`` size of free area h](j)}(h ``int *bits``h]j?)}(hjOh]h int *bits}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjIubj)}(hhh]j9)}(hsize of free areah]hsize of free area}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjbubeh}(h]h ]h"]h$]h&]uh1jhjFubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjFubj9)}(hX.Finds the next free region that is viable for use with a given size and alignment. This only returns if there is a valid area to be used for this allocation. block->first_free is returned if the allocation request fits within the block to see if the request can be fulfilled prior to the contig hint.h]hX.Finds the next free region that is viable for use with a given size and alignment. This only returns if there is a valid area to be used for this allocation. block->first_free is returned if the allocation request fits within the block to see if the request can be fulfilled prior to the contig hint.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_mem_zalloc (C function)c.pcpu_mem_zallochNtauh1hhjhhhNhNubh)}(hhh](h)}(h/void * pcpu_mem_zalloc (size_t size, gfp_t gfp)h]h)}(h-void *pcpu_mem_zalloc(size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(hpcpu_mem_zalloch]h)}(hpcpu_mem_zalloch]hpcpu_mem_zalloc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(size_t size, gfp_t gfp)h](j)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_mem_zallocasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]j8c.pcpu_mem_zallocasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hallocate memoryh]hallocate memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh](j)}(h"``size_t size`` bytes to allocate h](j)}(h``size_t size``h]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hbytes to allocateh]hbytes to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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]j?)}(hj6h]h gfp_t gfp}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj0ubj)}(hhh]j9)}(hallocation flagsh]hallocation flags}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjoubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(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 }(hjhhhNhNubjz)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh bytes. If }(hjhhhNhNubjz)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is smaller than PAGE_SIZE, kzalloc() is used; otherwise, the equivalent of vzalloc() is used. This is to facilitate passing through whitelisted flags. The returned memory is always zeroed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(h:Pointer to the allocated area on success, NULL on failure.h]h:Pointer to the allocated area on success, NULL on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_mem_free (C function)c.pcpu_mem_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid pcpu_mem_free (void *ptr)h]h)}(hvoid pcpu_mem_free(void *ptr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h pcpu_mem_freeh]h)}(h pcpu_mem_freeh]h pcpu_mem_free}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h (void *ptr)h]j)}(h void *ptrh](j)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2 )}(hj5 h]h*}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj:ubh)}(hptrh]hptr}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h free memoryh]h free memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``void *ptr`` memory to free **Description** Free **ptr**. **ptr** should have been allocated using pcpu_mem_zalloc().h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j)}(h``void *ptr`` memory to free h](j)}(h ``void *ptr``h]j?)}(hjh]h void *ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hmemory to freeh]hmemory to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(hJFree **ptr**. **ptr** should have been allocated using pcpu_mem_zalloc().h](hFree }(hj#hhhNhNubjz)}(h**ptr**h]hptr}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubh. }(hj#hhhNhNubjz)}(h**ptr**h]hptr}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubh4 should have been allocated using pcpu_mem_zalloc().}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ pcpu_chunk_relocate (C function)c.pcpu_chunk_relocatehNtauh1hhjhhhNhNubh)}(hhh](h)}(h>void pcpu_chunk_relocate (struct pcpu_chunk *chunk, int oslot)h]h)}(h=void pcpu_chunk_relocate(struct pcpu_chunk *chunk, int oslot)h](j)}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMubh)}(hpcpu_chunk_relocateh]h)}(hpcpu_chunk_relocateh]hpcpu_chunk_relocate}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjrhhhjhMubj)}(h%(struct pcpu_chunk *chunk, int oslot)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_chunk_relocateasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hchunkh]hchunk}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int osloth](j)}(hinth]hint}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hosloth]hoslot}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjrhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjnhhhjhMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjkhhubj )}(hhh]j9)}(h'put chunk in the appropriate chunk sloth]h'put chunk in the appropriate chunk slot}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM#hjubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjh]hstruct pcpu_chunk *chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h*``int oslot`` the previous slot it was on h](j)}(h ``int oslot``h]j?)}(hjh]h int oslot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM!hjubj)}(hhh]j9)}(hthe previous slot it was onh]hthe previous slot it was on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM#hjubj9)}(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](hhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6ubh<. New slot according to the changed state is determined and }(hj6hhhNhNubjz)}(h **chunk**h]hchunk}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6ubhQ is moved to the slot. Note that the reserved chunk is never put on chunk slots.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM"hjubj9)}(h **Context**h]jz)}(hjkh]hContext}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM'hjubj9)}(h pcpu_lock.h]h pcpu_lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM(hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_block_update (C function)c.pcpu_block_updatehNtauh1hhjhhhNhNubh)}(hhh](h)}(hHvoid pcpu_block_update (struct pcpu_block_md *block, int start, int end)h]h)}(hGvoid pcpu_block_update(struct pcpu_block_md *block, int start, int end)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMmubh)}(hpcpu_block_updateh]h)}(hpcpu_block_updateh]hpcpu_block_update}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMmubj)}(h1(struct pcpu_block_md *block, int start, int end)h](j)}(hstruct pcpu_block_md *blockh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h pcpu_block_mdh]h pcpu_block_md}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_block_updateasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj9hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hblockh]hblock}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int starth](j)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hstarth]hstart}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint endh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hendh]hend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMmubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMmhjhhubj )}(hhh]j9)}(h!updates a block given a free areah]h!updates a block given a free area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMmubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hXb**Parameters** ``struct pcpu_block_md *block`` block of interest ``int start`` start offset in block ``int end`` end offset in block **Description** Updates a block given a known free area. The region [start, end) is expected to be the entirety of the free area within a block. Chooses the best starting offset if the contig hints are equal.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMqhjubj)}(hhh](j)}(h2``struct pcpu_block_md *block`` block of interest h](j)}(h``struct pcpu_block_md *block``h]j?)}(hjh]hstruct pcpu_block_md *block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMnhjubj)}(hhh]j9)}(hblock of interesth]hblock of interest}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMnhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMnhjubj)}(h$``int start`` start offset in block h](j)}(h ``int start``h]j?)}(hjTh]h int start}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMohjNubj)}(hhh]j9)}(hstart offset in blockh]hstart offset in block}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihMohjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMohjubj)}(h ``int end`` end offset in block h](j)}(h ``int end``h]j?)}(hjh]hint end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMphjubj)}(hhh]j9)}(hend offset in blockh]hend offset in block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMphjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMrhjubj9)}(hUpdates a block given a known free area. The region [start, end) is expected to be the entirety of the free area within a block. Chooses the best starting offset if the contig hints are equal.h]hUpdates a block given a known free area. The region [start, end) is expected to be the entirety of the free area within a block. Chooses the best starting offset if the contig hints are equal.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMqhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$pcpu_chunk_refresh_hint (C function)c.pcpu_chunk_refresh_hinthNtauh1hhjhhhNhNubh)}(hhh](h)}(hGvoid pcpu_chunk_refresh_hint (struct pcpu_chunk *chunk, bool full_scan)h]h)}(hFvoid pcpu_chunk_refresh_hint(struct pcpu_chunk *chunk, bool full_scan)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubh)}(hpcpu_chunk_refresh_hinth]h)}(hpcpu_chunk_refresh_hinth]hpcpu_chunk_refresh_hint}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhjhMubj)}(h*(struct pcpu_chunk *chunk, bool full_scan)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjJhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjFubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjjmodnameN classnameNj\j_)}jb]je)}jXj0sbc.pcpu_chunk_refresh_hintasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjFubh)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubj)}(hbool full_scanh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h full_scanh]h full_scan}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjBubeh}(h]h ]h"]h$]h&]jj uh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hupdates metadata about a chunkh]hupdates metadata about a chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``bool full_scan`` if we should scan from the beginning **Description** Iterates over the metadata blocks to find the largest contig area. A full scan can be avoided on the allocation path as this is triggered if we broke the contig_hint. In doing so, the scan_hint will be before the contig_hint or after if the scan_hint == contig_hint. This cannot be prevented on freeing as we want to find the largest area possibly spanning blocks.h](j9)}(h**Parameters**h]jz)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjBh]hstruct pcpu_chunk *chunk}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj@ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj<ubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubj)}(h8``bool full_scan`` if we should scan from the beginning h](j)}(h``bool full_scan``h]j?)}(hj{h]hbool full_scan}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjuubj)}(hhh]j9)}(h$if we should scan from the beginningh]h$if we should scan from the beginning}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(hXnIterates over the metadata blocks to find the largest contig area. A full scan can be avoided on the allocation path as this is triggered if we broke the contig_hint. In doing so, the scan_hint will be before the contig_hint or after if the scan_hint == contig_hint. This cannot be prevented on freeing as we want to find the largest area possibly spanning blocks.h]hXnIterates over the metadata blocks to find the largest contig area. A full scan can be avoided on the allocation path as this is triggered if we broke the contig_hint. In doing so, the scan_hint will be before the contig_hint or after if the scan_hint == contig_hint. This cannot be prevented on freeing as we want to find the largest area possibly spanning blocks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$pcpu_block_refresh_hint (C function)c.pcpu_block_refresh_hinthNtauh1hhjhhhNhNubh)}(hhh](h)}(hBvoid pcpu_block_refresh_hint (struct pcpu_chunk *chunk, int index)h]h)}(hAvoid pcpu_block_refresh_hint(struct pcpu_chunk *chunk, int index)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(hpcpu_block_refresh_hinth]h)}(hpcpu_block_refresh_hinth]hpcpu_block_refresh_hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj hMubj)}(h%(struct pcpu_chunk *chunk, int index)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hj8hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjXmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_block_refresh_hintasbuh1hhj4ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4ubh)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj0ubj)}(h int indexh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj0ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int index`` index of the metadata block **Description** Scans over the block beginning at first_free and updates the block metadata accordingly.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hj"h]hstruct pcpu_chunk *chunk}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(h*``int index`` index of the metadata block h](j)}(h ``int index``h]j?)}(hj[h]h int index}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjYubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjUubj)}(hhh]j9)}(hindex of the metadata blockh]hindex of the metadata block}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(hXScans over the block beginning at first_free and updates the block metadata accordingly.h]hXScans over the block beginning at first_free and updates the block metadata accordingly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)pcpu_block_update_hint_alloc (C function)c.pcpu_block_update_hint_allochNtauh1hhjhhhNhNubh)}(hhh](h)}(hSvoid pcpu_block_update_hint_alloc (struct pcpu_chunk *chunk, int bit_off, int bits)h]h)}(hRvoid pcpu_block_update_hint_alloc(struct pcpu_chunk *chunk, int bit_off, int bits)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_block_update_hint_alloch]h)}(hpcpu_block_update_hint_alloch]hpcpu_block_update_hint_alloc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h1(struct pcpu_chunk *chunk, int bit_off, int bits)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_block_update_hint_allocasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjdhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hchunkh]hchunk}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int bit_offh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hbit_offh]hbit_off}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint bitsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hupdate hint on allocation pathh]hupdate hint on allocation path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hX_**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int bit_off`` chunk offset ``int bits`` size of request **Description** Updates metadata for the allocation path. The metadata only has to be refreshed by a full scan iff the chunk's contig hint is broken. Block level scans are required if the block's contig hint is broken.h](j9)}(h**Parameters**h]jz)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM#hj!ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjFh]hstruct pcpu_chunk *chunk}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj@ubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[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]j?)}(hjh]h int bit_off}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj}ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM!hjyubj)}(hhh]j9)}(h chunk offseth]h chunk offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM!hj=ubj)}(h``int bits`` size of request h](j)}(h ``int bits``h]j?)}(hjh]hint bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM"hjubj)}(hhh]j9)}(hsize of requesth]hsize of request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM$hj!ubj9)}(hUpdates metadata for the allocation path. The metadata only has to be refreshed by a full scan iff the chunk's contig hint is broken. Block level scans are required if the block's contig hint is broken.h]hUpdates metadata for the allocation path. The metadata only has to be refreshed by a full scan iff the chunk’s contig hint is broken. Block level scans are required if the block’s contig hint is broken.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM#hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(pcpu_block_update_hint_free (C function)c.pcpu_block_update_hint_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(hRvoid pcpu_block_update_hint_free (struct pcpu_chunk *chunk, int bit_off, int bits)h]h)}(hQvoid pcpu_block_update_hint_free(struct pcpu_chunk *chunk, int bit_off, int bits)h](j)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjFhMubh)}(hpcpu_block_update_hint_freeh]h)}(hpcpu_block_update_hint_freeh]hpcpu_block_update_hint_free}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ](jjeh"]h$]h&]jj uh1hhj4hhhjFhMubj)}(h1(struct pcpu_chunk *chunk, int bit_off, int bits)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjuhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj[sbc.pcpu_block_update_hint_freeasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjqubh)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubj)}(h int bit_offh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hbit_offh]hbit_off}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubj)}(hint bitsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hbitsh]hbits}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubeh}(h]h ]h"]h$]h&]jj uh1jhj4hhhjFhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj0hhhjFhMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhj-hhubj )}(hhh]j9)}(h(updates the block hints on the free pathh]h(updates the block hints on the free path}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj_hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjFhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jzj4jzj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct pcpu_chunk *chunk`` chunk of interest ``int bit_off`` chunk offset ``int bits`` size of request **Description** Updates metadata for the allocation path. This avoids a blind block refresh by making use of the block contig hints. If this fails, it scans forward and backward to determine the extent of the free area. This is capped at the boundary of blocks. A chunk update is triggered if a page becomes free, a block becomes free, or the free spans across blocks. This tradeoff is to minimize iterating over the block metadata to update chunk_md->contig_hint. chunk_md->contig_hint may be off by up to a page, but it will never be more than the available space. If the contig hint is contained in one block, it will be accurate.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj~ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjh]hstruct pcpu_chunk *chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int bit_off`` chunk offset h](j)}(h``int bit_off``h]j?)}(hjh]h int bit_off}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(h chunk offseth]h chunk offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int bits`` size of request h](j)}(h ``int bits``h]j?)}(hjh]hint bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hsize of requesth]hsize of request}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubj9)}(h**Description**h]jz)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj~ubj9)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj~ubj9)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_is_populated (C function)c.pcpu_is_populatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hWbool pcpu_is_populated (struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off)h]h)}(hVbool pcpu_is_populated(struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM%ubh)}(hpcpu_is_populatedh]h)}(hpcpu_is_populatedh]hpcpu_is_populated}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM%ubj)}(h@(struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_is_populatedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj,hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hchunkh]hchunk}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int bit_offh](j)}(hinth]hint}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hbit_offh]hbit_off}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint bitsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int *next_offh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hnext_offh]hnext_off}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM%ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM%ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM%hjhhubj )}(hhh]j9)}(h%determines if the region is populatedh]h%determines if the region is populated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM%hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM%ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j'j4j'j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM)hj+ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjPh]hstruct pcpu_chunk *chunk}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM&hjJubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehM&hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM&hjGubj)}(h``int bit_off`` chunk offset h](j)}(h``int bit_off``h]j?)}(hjh]h int bit_off}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM'hjubj)}(hhh]j9)}(h chunk offseth]h chunk offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM'hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjGubj)}(h``int bits`` size of area h](j)}(h ``int bits``h]j?)}(hjh]hint bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM(hjubj)}(hhh]j9)}(h size of areah]h size of area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjGubj)}(hF``int *next_off`` return value for the next offset to start searching h](j)}(h``int *next_off``h]j?)}(hjh]h int *next_off}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM)hjubj)}(hhh]j9)}(h3return value for the next offset to start searchingh]h3return value for the next offset to start searching}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubj9)}(h**Description**h]jz)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM+hj+ubj9)}(hAFor atomic allocations, check if the backing pages are populated.h]hAFor atomic allocations, check if the backing pages are populated.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM*hj+ubj9)}(h **Return**h]jz)}(hj]h]hReturn}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM,hj+ubj9)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM-hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ pcpu_find_block_fit (C function)c.pcpu_find_block_fithNtauh1hhjhhhNhNubh)}(hhh](h)}(h_int pcpu_find_block_fit (struct pcpu_chunk *chunk, int alloc_bits, size_t align, bool pop_only)h]h)}(h^int pcpu_find_block_fit(struct pcpu_chunk *chunk, int alloc_bits, size_t align, bool pop_only)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMDubh)}(hpcpu_find_block_fith]h)}(hpcpu_find_block_fith]hpcpu_find_block_fit}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMDubj)}(hG(struct pcpu_chunk *chunk, int alloc_bits, size_t align, bool pop_only)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_find_block_fitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj+hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hchunkh]hchunk}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint alloc_bitsh](j)}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(h alloc_bitsh]h alloc_bits}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t alignh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.pcpu_find_block_fitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(halignh]halign}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h bool pop_onlyh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hpop_onlyh]hpop_only}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMDubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMDhjhhubj )}(hhh]j9)}(h(finds the block index to start searchingh]h(finds the block index to start searching}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMDhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMDubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j+j4j+j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMHhj/ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjTh]hstruct pcpu_chunk *chunk}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMEhjNubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihMEhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMEhjKubj)}(h7``int alloc_bits`` size of request in allocation units h](j)}(h``int alloc_bits``h]j?)}(hjh]hint alloc_bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMFhjubj)}(hhh]j9)}(h#size of request in allocation unitsh]h#size of request in allocation units}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjKubj)}(h9``size_t align`` alignment of area (max PAGE_SIZE bytes) h](j)}(h``size_t align``h]j?)}(hjh]h size_t align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMGhjubj)}(hhh]j9)}(h'alignment of area (max PAGE_SIZE bytes)h]h'alignment of area (max PAGE_SIZE bytes)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjKubj)}(h-``bool pop_only`` use populated regions only h](j)}(h``bool pop_only``h]j?)}(hjh]h bool pop_only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMHhjubj)}(hhh]j9)}(huse populated regions onlyh]huse populated regions only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubj9)}(h**Description**h]jz)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj8ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMJhj/ubj9)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMIhj/ubj9)}(h **Return**h]jz)}(hjah]hReturn}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMQhj/ubj9)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMRhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_alloc_area (C function)c.pcpu_alloc_areahNtauh1hhjhhhNhNubh)}(hhh](h)}(hWint pcpu_alloc_area (struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start)h]h)}(hVint pcpu_alloc_area(struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_alloc_areah]h)}(hpcpu_alloc_areah]hpcpu_alloc_area}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hC(struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_alloc_areaasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj/hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hchunkh]hchunk}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint alloc_bitsh](j)}(hinth]hint}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(h alloc_bitsh]h alloc_bits}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t alignh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.pcpu_alloc_areaasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(halignh]halign}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int starth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h#allocates an area from a pcpu_chunkh]h#allocates an area from a pcpu_chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j0j4j0j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj8ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj4ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjYh]hstruct pcpu_chunk *chunk}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjSubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjPubj)}(h7``int alloc_bits`` size of request in allocation units h](j)}(h``int alloc_bits``h]j?)}(hjh]hint alloc_bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(h#size of request in allocation unitsh]h#size of request in allocation units}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]j?)}(hjh]h size_t align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubj)}(h)``int start`` bit_off to start searching h](j)}(h ``int start``h]j?)}(hjh]h int start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hbit_off to start searchingh]hbit_off to start searching}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubj9)}(h**Description**h]jz)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj=ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj4ubj9)}(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 }(hjUhhhNhNubjz)}(h **start**h]hstart}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubh3 offset to begin searching to fit an allocation of }(hjUhhhNhNubjz)}(h**alloc_bits**h]h alloc_bits}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubh with alignment }(hjUhhhNhNubjz)}(h **align**h]halign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubh\. It needs to scan the allocation map because if it fits within the block’s contig hint, }(hjUhhhNhNubjz)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubh 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.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj4ubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj4ubj9)}(hOAllocated addr offset in **chunk** on success. -1 if no matching area is found.h](hAllocated addr offset in }(hjhhhNhNubjz)}(h **chunk**h]hchunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh- on success. -1 if no matching area is found.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_free_area (C function)c.pcpu_free_areahNtauh1hhjhhhNhNubh)}(hhh](h)}(h6int pcpu_free_area (struct pcpu_chunk *chunk, int off)h]h)}(h5int pcpu_free_area(struct pcpu_chunk *chunk, int off)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_free_areah]h)}(hpcpu_free_areah]hpcpu_free_area}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h#(struct pcpu_chunk *chunk, int off)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjBhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbmodnameN classnameNj\j_)}jb]je)}jXj(sbc.pcpu_free_areaasbuh1hhj>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj>ubh)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubj)}(hint offh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hoffh]hoff}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj:ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hfrees the corresponding offseth]hfrees the corresponding offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hj;h]hstruct pcpu_chunk *chunk}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj5ubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubj)}(h#``int off`` addr offset into chunk h](j)}(h ``int off``h]j?)}(hjth]hint off}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjnubj)}(hhh]j9)}(haddr offset into chunkh]haddr offset into chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(hNumber of freed bytes.h]hNumber of freed bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_alloc_first_chunk (C function)c.pcpu_alloc_first_chunkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hQstruct pcpu_chunk * pcpu_alloc_first_chunk (unsigned long tmp_addr, int map_size)h]h)}(hOstruct pcpu_chunk *pcpu_alloc_first_chunk(unsigned long tmp_addr, int map_size)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM5ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj(hM5ubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj<modnameN classnameNj\j_)}jb]je)}jXpcpu_alloc_first_chunksbc.pcpu_alloc_first_chunkasbuh1hhjhhhj(hM5ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj(hM5ubj2 )}(hj5 h]h*}(hjihhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhj(hM5ubh)}(hpcpu_alloc_first_chunkh]h)}(hjXh]hpcpu_alloc_first_chunk}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj(hM5ubj)}(h&(unsigned long tmp_addr, int map_size)h](j)}(hunsigned long tmp_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&]uh1jhjubh)}(htmp_addrh]htmp_addr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int map_sizeh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hmap_sizeh]hmap_size}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj(hM5ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj(hM5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj(hM5hjhhubj )}(hhh]j9)}(h)creates chunks that serve the first chunkh]h)creates chunks that serve the first chunk}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM5hj)hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hM5ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jDj4jDj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM9hjHubj)}(hhh](j)}(h:``unsigned long tmp_addr`` the start of the region served h](j)}(h``unsigned long tmp_addr``h]j?)}(hjmh]hunsigned long tmp_addr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM6hjgubj)}(hhh]j9)}(hthe start of the region servedh]hthe start of the region served}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjdubj)}(h+``int map_size`` size of the region served h](j)}(h``int map_size``h]j?)}(hjh]h int map_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM7hjubj)}(hhh]j9)}(hsize of the region servedh]hsize of the region served}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjdubeh}(h]h ]h"]h$]h&]uh1jhjHubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM9hjHubj9)}(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 }(hjhhhNhNubjz)}(h **tmp_addr**h]htmp_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM8hjHubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM=hjHubj9)}(h9Chunk serving the region at **tmp_addr** of **map_size**.h](hChunk serving the region at }(hj0hhhNhNubjz)}(h **tmp_addr**h]htmp_addr}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubh of }(hj0hhhNhNubjz)}(h **map_size**h]hmap_size}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM>hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!pcpu_chunk_populated (C function)c.pcpu_chunk_populatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hRvoid pcpu_chunk_populated (struct pcpu_chunk *chunk, int page_start, int page_end)h]h)}(hQvoid pcpu_chunk_populated(struct pcpu_chunk *chunk, int page_start, int page_end)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_chunk_populatedh]h)}(hpcpu_chunk_populatedh]hpcpu_chunk_populated}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h8(struct pcpu_chunk *chunk, int page_start, int page_end)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_chunk_populatedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint page_starth](j)}(hinth]hint}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(h page_starth]h page_start}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int page_endh](j)}(hinth]hint}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hpage_endh]hpage_end}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj{hhhjhMubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjxhhubj )}(hhh]j9)}(hpost-population bookkeepingh]hpost-population bookkeeping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh](j)}(h<``struct pcpu_chunk *chunk`` pcpu_chunk which got populated h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjh]hstruct pcpu_chunk *chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hpcpu_chunk which got populatedh]hpcpu_chunk which got populated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``int page_start`` the start page h](j)}(h``int page_start``h]j?)}(hj'h]hint page_start}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj!ubj)}(hhh]j9)}(hthe start pageh]hthe start page}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubj)}(h``int page_end`` the end page h](j)}(h``int page_end``h]j?)}(hj`h]h int page_end}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj^ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjZubj)}(hhh]j9)}(h the end pageh]h the end page}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(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 [}(hjhhhNhNubjz)}(h**page_start**h]h page_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh&,**page_end**) have been populated to }(hjhhhNhNubjz)}(h **chunk**h]hchunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhd. Update the bookkeeping information accordingly. Must be called after each successful population.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_chunk_depopulated (C function)c.pcpu_chunk_depopulatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hTvoid pcpu_chunk_depopulated (struct pcpu_chunk *chunk, int page_start, int page_end)h]h)}(hSvoid pcpu_chunk_depopulated(struct pcpu_chunk *chunk, int page_start, int page_end)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_chunk_depopulatedh]h)}(hpcpu_chunk_depopulatedh]hpcpu_chunk_depopulated}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h8(struct pcpu_chunk *chunk, int page_start, int page_end)h](j)}(hstruct pcpu_chunk *chunkh](j!)}(hj$h]hstruct}(hjAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]je)}jXj'sbc.pcpu_chunk_depopulatedasbuh1hhj=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj=ubh)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(hint page_starth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h page_starth]h page_start}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(h int page_endh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hpage_endh]hpage_end}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hpost-depopulation bookkeepingh]hpost-depopulation bookkeeping}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj+hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jFj4jFj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjJubj)}(hhh](j)}(h>``struct pcpu_chunk *chunk`` pcpu_chunk which got depopulated h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjoh]hstruct pcpu_chunk *chunk}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjiubj)}(hhh]j9)}(h pcpu_chunk which got depopulatedh]h pcpu_chunk which got depopulated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubj)}(h"``int page_start`` the start page h](j)}(h``int page_start``h]j?)}(hjh]hint page_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hthe start pageh]hthe start page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubj)}(h``int page_end`` the end page h](j)}(h``int page_end``h]j?)}(hjh]h int page_end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(h the end pageh]h the end page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubeh}(h]h ]h"]h$]h&]uh1jhjJubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjJubj9)}(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 [}(hj2hhhNhNubjz)}(h**page_start**h]h page_start}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubh*,**page_end**) have been depopulated from }(hj2hhhNhNubjz)}(h **chunk**h]hchunk}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubhe. Update the bookkeeping information accordingly. Must be called after each successful depopulation.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_chunk_addr_search (C function)c.pcpu_chunk_addr_searchhNtauh1hhjhhhNhNubh)}(hhh](h)}(h7struct pcpu_chunk * pcpu_chunk_addr_search (void *addr)h]h)}(h5struct pcpu_chunk *pcpu_chunk_addr_search(void *addr)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM+ubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXpcpu_chunk_addr_searchsbc.pcpu_chunk_addr_searchasbuh1hhjhhhjhM+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM+ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhM+ubh)}(hpcpu_chunk_addr_searchh]h)}(hjh]hpcpu_chunk_addr_search}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM+ubj)}(h (void *addr)h]j)}(h void *addrh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(haddrh]haddr}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM+ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj}hhhjhM+ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjhM+hjzhhubj )}(hhh]j9)}(h,determine chunk containing specified addressh]h,determine chunk containing specified address}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM+hjOhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhM+ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jjj4jjj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM/hjnubj)}(hhh]j)}(hC``void *addr`` address for which the chunk needs to be determined. h](j)}(h``void *addr``h]j?)}(hjh]h void *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM,hjubj)}(hhh]j9)}(h3address for which the chunk needs to be determined.h]h3address for which the chunk needs to be determined.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjnubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM.hjnubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM-hjnubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM0hjnubj9)}(hThe address of the found chunk.h]hThe address of the found chunk.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM1hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_alloc (C function) c.pcpu_allochNtauh1hhjhhhNhNubh)}(hhh](h)}(hPvoid __percpu * pcpu_alloc (size_t size, size_t align, bool reserved, gfp_t gfp)h]h)}(hNvoid __percpu *pcpu_alloc(size_t size, size_t align, bool reserved, gfp_t gfp)h](j)}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhjHhMubh__percpu}(hj6hhhNhNubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhjHhMubj2 )}(hj5 h]h*}(hjihhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj6hhhjHhMubh)}(h pcpu_alloch]h)}(h pcpu_alloch]h pcpu_alloc}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubah}(h]h ](jjeh"]h$]h&]jj uh1hhj6hhhjHhMubj)}(h5(size_t size, size_t align, bool reserved, gfp_t gfp)h](j)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj|sb c.pcpu_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t alignh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j c.pcpu_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(halignh]halign}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h bool reservedh](j)}(hj)h]hbool}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hreservedh]hreserved}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]j c.pcpu_allocasbuh1hhjXubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj6hhhjHhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj2hhhjHhMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhjHhMhj/hhubj )}(hhh]j9)}(hthe percpu allocatorh]hthe percpu allocator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh](j)}(h2``size_t size`` size of area to allocate in bytes h](j)}(h``size_t size``h]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(h!size of area to allocate in bytesh]h!size of area to allocate in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]j?)}(hj/h]h size_t align}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj-ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj)ubj)}(hhh]j9)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(h@``bool reserved`` allocate from the reserved chunk if available h](j)}(h``bool reserved``h]j?)}(hjhh]h bool reserved}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjbubj)}(hhh]j9)}(h-allocate from the reserved chunk if availableh]h-allocate from the reserved chunk if available}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]j?)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hallocation flagsh]hallocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(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 }(hjhhhNhNubjz)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh bytes aligned at }(hjhhhNhNubjz)}(h **align**h]halign}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh. If }(hjhhhNhNubjz)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh doesn’t contain }(hjhhhNhNubj?)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh, the allocation is atomic. If }(hjhhhNhNubjz)}(h**gfp**h]hgfp}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh] has __GFP_NOWARN then no warning will be triggered on invalid or failed allocation requests.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(h **Return**h]jz)}(hj]h]hReturn}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(hAPercpu pointer to the allocated area on success, NULL on failure.h]hAPercpu pointer to the allocated area on success, NULL on failure.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_balance_free (C function)c.pcpu_balance_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h(void pcpu_balance_free (bool empty_only)h]h)}(h'void pcpu_balance_free(bool empty_only)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_balance_freeh]h)}(hpcpu_balance_freeh]hpcpu_balance_free}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(bool empty_only)h]j)}(hbool empty_onlyh](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h empty_onlyh]h empty_only}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h manage the amount of free chunksh]h manage the amount of free chunks}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j<j4j<j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./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]j?)}(hjeh]hbool empty_only}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjcubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj_ubj)}(hhh]j9)}(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&]uh1j8hjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj@ubj9)}(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 }(hjhhhNhNubj?)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh, reclaim all fully free chunks regardless of the number of populated pages. Otherwise, only reclaim chunks that have no populated pages.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj@ubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj@ubj9)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_balance_populated (C function)c.pcpu_balance_populatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h"void pcpu_balance_populated (void)h]h)}(h!void pcpu_balance_populated(void)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj,hMubh)}(hpcpu_balance_populatedh]h)}(hpcpu_balance_populatedh]hpcpu_balance_populated}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj,hMubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]noemphjj uh1jhjSubah}(h]h ]h"]h$]h&]jj uh1jhjhhhj,hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj,hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hMhjhhubj )}(hhh]j9)}(h$manage the amount of populated pagesh]h$manage the amount of populated pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j?)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKhjubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(h **Context**h]jz)}(hj(h]hContext}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj&ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_reclaim_populated (C function)c.pcpu_reclaim_populatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h"void pcpu_reclaim_populated (void)h]h)}(h!void pcpu_reclaim_populated(void)h](j)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hMubh)}(hpcpu_reclaim_populatedh]h)}(hpcpu_reclaim_populatedh]hpcpu_reclaim_populated}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjihhhj{hMubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjihhhj{hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjehhhj{hMubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj{hMhjbhhubj )}(hhh]j9)}(h3scan over to_depopulate chunks and free empty pagesh]h3scan over to_depopulate chunks and free empty pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj{hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j?)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKhjubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hKhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chKhjubj9)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(h **Context**h]jz)}(hjwh]hContext}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjuubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM#hjubj9)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ pcpu_balance_workfn (C function)c.pcpu_balance_workfnhNtauh1hhjhhhNhNubh)}(hhh](h)}(h3void pcpu_balance_workfn (struct work_struct *work)h]h)}(h2void pcpu_balance_workfn(struct work_struct *work)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_balance_workfnh]h)}(hpcpu_balance_workfnh]hpcpu_balance_workfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(struct work_struct *work)h]j)}(hstruct work_struct *workh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h work_structh]h work_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_balance_workfnasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjEhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hworkh]hwork}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h4manage the amount of free chunks and populated pagesh]h4manage the amount of free chunks and populated pages}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j)}(h$``struct work_struct *work`` unused h](j)}(h``struct work_struct *work``h]j?)}(hjh]hstruct work_struct *work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hunusedh]hunused}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfree_percpu (C function) c.free_percpuhNtauh1hhjhhhNhNubh)}(hhh](h)}(h%void free_percpu (void __percpu *ptr)h]h)}(h$void free_percpu(void __percpu *ptr)h](j)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjKhMubh)}(h free_percpuh]h)}(h free_percpuh]h free_percpu}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ](jjeh"]h$]h&]jj uh1hhj9hhhjKhMubj)}(h(void __percpu *ptr)h]j)}(hvoid __percpu *ptrh](j)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh__percpu}(hjvhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjvubh)}(hptrh]hptr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjrubah}(h]h ]h"]h$]h&]jj uh1jhj9hhhjKhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj5hhhjKhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhj2hhubj )}(hhh]j9)}(hfree percpu areah]hfree percpu area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``void __percpu *ptr`` pointer to area to free **Description** Free percpu area **ptr**. **Context** Can be called from atomic context.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j)}(h/``void __percpu *ptr`` pointer to area to free h](j)}(h``void __percpu *ptr``h]j?)}(hj h]hvoid __percpu *ptr}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(hpointer to area to freeh]hpointer to area to free}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(hFree percpu area **ptr**.h](hFree percpu area }(hjqhhhNhNubjz)}(h**ptr**h]hptr}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqubh.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(h"Can be called from atomic context.h]h"Can be called from atomic context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%is_kernel_percpu_address (C function)c.is_kernel_percpu_addresshNtauh1hhjhhhNhNubh)}(hhh](h)}(h2bool is_kernel_percpu_address (unsigned long addr)h]h)}(h1bool is_kernel_percpu_address(unsigned long addr)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(his_kernel_percpu_addressh]h)}(his_kernel_percpu_addressh]his_kernel_percpu_address}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(unsigned long addr)h]j)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h/test whether address is from static percpu areah]h/test whether address is from static percpu area}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjthhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j)}(h'``unsigned long addr`` address to test h](j)}(h``unsigned long addr``h]j?)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj)}(hhh]j9)}(haddress to testh]haddress to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(hTest whether **addr** belongs to in-kernel static percpu area. Module static percpu areas are not considered. For those, use is_module_percpu_address().h](h Test whether }(hj hhhNhNubjz)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh belongs to in-kernel static percpu area. Module static percpu areas are not considered. For those, use is_module_percpu_address().}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMhjubj9)}(h **Return**h]jz)}(hj,h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(hO``true`` if **addr** is from in-kernel static percpu area, ``false`` otherwise.h](j?)}(h``true``h]htrue}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBubh if }(hjBhhhNhNubjz)}(h**addr**h]haddr}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubh' is from in-kernel static percpu area, }(hjBhhhNhNubj?)}(h ``false``h]hfalse}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBubh otherwise.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ per_cpu_ptr_to_phys (C function)c.per_cpu_ptr_to_physhNtauh1hhjhhhNhNubh)}(hhh](h)}(h,phys_addr_t per_cpu_ptr_to_phys (void *addr)h]h)}(h+phys_addr_t per_cpu_ptr_to_phys(void *addr)h](h)}(hhh]h)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXper_cpu_ptr_to_physsbc.per_cpu_ptr_to_physasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hper_cpu_ptr_to_physh]h)}(hjh]hper_cpu_ptr_to_phys}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(h (void *addr)h]j)}(h void *addrh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(h5convert translated percpu address to physical addressh]h5convert translated percpu address to physical address}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjEhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j`j4j`j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``void *addr`` the address to be converted to physical address **Description** Given **addr** which is dereferenceable address obtained via one of percpu access macros, this function translates it into its physical address. The caller is responsible for ensuring **addr** stays valid until this function finishes. percpu allocator has special setup for the first chunk, which currently supports either embedding in linear address space or vmalloc mapping, and, from the second one, the backing allocator (currently either vm or km) provides translation. The addr can be translated simply without checking if it falls into the first chunk. But the current code reflects better how percpu allocator actually works, and the verification can discover both bugs in percpu allocator itself and per_cpu_ptr_to_phys() callers. So we keep current code. **Return** The physical address for **addr**.h](j9)}(h**Parameters**h]jz)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjdubj)}(hhh]j)}(h?``void *addr`` the address to be converted to physical address h](j)}(h``void *addr``h]j?)}(hjh]h void *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj)}(hhh]j9)}(h/the address to be converted to physical addressh]h/the address to be converted to physical address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjdubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjdubj9)}(hGiven **addr** which is dereferenceable address obtained via one of percpu access macros, this function translates it into its physical address. The caller is responsible for ensuring **addr** stays valid until this function finishes.h](hGiven }(hjhhhNhNubjz)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh which is dereferenceable address obtained via one of percpu access macros, this function translates it into its physical address. The caller is responsible for ensuring }(hjhhhNhNubjz)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh* stays valid until this function finishes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjdubj9)}(hpercpu allocator has special setup for the first chunk, which currently supports either embedding in linear address space or vmalloc mapping, and, from the second one, the backing allocator (currently either vm or km) provides translation.h]hpercpu allocator has special setup for the first chunk, which currently supports either embedding in linear address space or vmalloc mapping, and, from the second one, the backing allocator (currently either vm or km) provides translation.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjdubj9)}(hX!The addr can be translated simply without checking if it falls into the first chunk. But the current code reflects better how percpu allocator actually works, and the verification can discover both bugs in percpu allocator itself and per_cpu_ptr_to_phys() callers. So we keep current code.h]hX!The addr can be translated simply without checking if it falls into the first chunk. But the current code reflects better how percpu allocator actually works, and the verification can discover both bugs in percpu allocator itself and per_cpu_ptr_to_phys() callers. So we keep current code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjdubj9)}(h **Return**h]jz)}(hj-h]hReturn}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj+ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjdubj9)}(h"The physical address for **addr**.h](hThe physical address for }(hjChhhNhNubjz)}(h**addr**h]haddr}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubh.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"pcpu_alloc_alloc_info (C function)c.pcpu_alloc_alloc_infohNtauh1hhjhhhNhNubh)}(hhh](h)}(hLstruct pcpu_alloc_info * pcpu_alloc_alloc_info (int nr_groups, int nr_units)h]h)}(hJstruct pcpu_alloc_info *pcpu_alloc_alloc_info(int nr_groups, int nr_units)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMN ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMN ubh)}(hhh]h)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXpcpu_alloc_alloc_infosbc.pcpu_alloc_alloc_infoasbuh1hhjhhhjhMN ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMN ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMN ubh)}(hpcpu_alloc_alloc_infoh]h)}(hjh]hpcpu_alloc_alloc_info}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMN ubj)}(h(int nr_groups, int nr_units)h](j)}(h int nr_groupsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h nr_groupsh]h nr_groups}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int nr_unitsh](j)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hnr_unitsh]hnr_units}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMN ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj|hhhjhMN ubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMN hjyhhubj )}(hhh]j9)}(hallocate percpu allocation infoh]hallocate percpu allocation info}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMN hjvhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMN ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``int nr_groups`` the number of groups ``int nr_units`` the number of units **Description** Allocate ai which is large enough for **nr_groups** groups containing **nr_units** units. The returned ai's groups[0].cpu_map points to the cpu_map array which is long enough for **nr_units** and filled with NR_CPUS. It's the caller's responsibility to initialize cpu_map pointer of other groups. **Return** Pointer to the allocated pcpu_alloc_info on success, NULL on failure.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMR hjubj)}(hhh](j)}(h'``int nr_groups`` the number of groups h](j)}(h``int nr_groups``h]j?)}(hjh]h int nr_groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMO hjubj)}(hhh]j9)}(hthe number of groupsh]hthe number of groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMO hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMO hjubj)}(h%``int nr_units`` the number of units h](j)}(h``int nr_units``h]j?)}(hjh]h int nr_units}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMP hjubj)}(hhh]j9)}(hthe number of unitsh]hthe number of units}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMP hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMP hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMR hjubj9)}(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 }(hjDhhhNhNubjz)}(h **nr_groups**h]h nr_groups}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubh groups containing }(hjDhhhNhNubjz)}(h **nr_units**h]hnr_units}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubhd units. The returned ai’s groups[0].cpu_map points to the cpu_map array which is long enough for }(hjDhhhNhNubjz)}(h **nr_units**h]hnr_units}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubhn and filled with NR_CPUS. It’s the caller’s responsibility to initialize cpu_map pointer of other groups.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMQ hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMW hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMX hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!pcpu_free_alloc_info (C function)c.pcpu_free_alloc_infohNtauh1hhjhhhNhNubh)}(hhh](h)}(h6void pcpu_free_alloc_info (struct pcpu_alloc_info *ai)h]h)}(h5void pcpu_free_alloc_info(struct pcpu_alloc_info *ai)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMz ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMz ubh)}(hpcpu_free_alloc_infoh]h)}(hpcpu_free_alloc_infoh]hpcpu_free_alloc_info}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMz ubj)}(h(struct pcpu_alloc_info *ai)h]j)}(hstruct pcpu_alloc_info *aih](j!)}(hj$h]hstruct}(hj hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj-modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_free_alloc_infoasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hjYhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(haih]hai}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMz ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMz ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMz hjhhubj )}(hhh]j9)}(hfree percpu allocation infoh]hfree percpu allocation info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMz hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMz ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct pcpu_alloc_info *ai`` pcpu_alloc_info to free **Description** Free **ai** which was allocated by pcpu_alloc_alloc_info().h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM~ hjubj)}(hhh]j)}(h7``struct pcpu_alloc_info *ai`` pcpu_alloc_info to free h](j)}(h``struct pcpu_alloc_info *ai``h]j?)}(hjh]hstruct pcpu_alloc_info *ai}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM{ hjubj)}(hhh]j9)}(hpcpu_alloc_info to freeh]hpcpu_alloc_info to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM{ hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM{ hjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM} hjubj9)}(h;Free **ai** which was allocated by pcpu_alloc_alloc_info().h](hFree }(hj"hhhNhNubjz)}(h**ai**h]hai}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"ubh0 which was allocated by pcpu_alloc_alloc_info().}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM| hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!pcpu_dump_alloc_info (C function)c.pcpu_dump_alloc_infohNtauh1hhjhhhNhNubh)}(hhh](h)}(hMvoid pcpu_dump_alloc_info (const char *lvl, const struct pcpu_alloc_info *ai)h]h)}(hLvoid pcpu_dump_alloc_info(const char *lvl, const struct pcpu_alloc_info *ai)h](j)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhjqhM ubh)}(hpcpu_dump_alloc_infoh]h)}(hpcpu_dump_alloc_infoh]hpcpu_dump_alloc_info}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj_hhhjqhM ubj)}(h3(const char *lvl, const struct pcpu_alloc_info *ai)h](j)}(hconst char *lvlh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(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&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hlvlh]hlvl}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h const struct pcpu_alloc_info *aih](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_dump_alloc_infoasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjdhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(haih]hai}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj_hhhjqhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj[hhhjqhM ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjqhM hjXhhubj )}(hhh]j9)}(h+print out information about pcpu_alloc_infoh]h+print out information about pcpu_alloc_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjqhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj)}(hhh](j)}(h``const char *lvl`` loglevel h](j)}(h``const char *lvl``h]j?)}(hjh]hconst char *lvl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj)}(hhh]j9)}(hloglevelh]hloglevel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h=``const struct pcpu_alloc_info *ai`` allocation info to dump h](j)}(h$``const struct pcpu_alloc_info *ai``h]j?)}(hjh]h const struct pcpu_alloc_info *ai}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj)}(hhh]j9)}(hallocation info to dumph]hallocation info to dump}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hM hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(h:Print out information about **ai** using loglevel **lvl**.h](hPrint out information about }(hjfhhhNhNubjz)}(h**ai**h]hai}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjfubh using loglevel }(hjfhhhNhNubjz)}(h**lvl**h]hlvl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjfubh.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_setup_first_chunk (C function)c.pcpu_setup_first_chunkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hOvoid pcpu_setup_first_chunk (const struct pcpu_alloc_info *ai, void *base_addr)h]h)}(hNvoid pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai, void *base_addr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hpcpu_setup_first_chunkh]h)}(hpcpu_setup_first_chunkh]hpcpu_setup_first_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(h3(const struct pcpu_alloc_info *ai, void *base_addr)h](j)}(h const struct pcpu_alloc_info *aih](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_setup_first_chunkasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj]hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(haih]hai}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hvoid *base_addrh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(h base_addrh]h base_addr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(h!initialize the first percpu chunkh]h!initialize the first percpu chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj)}(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]j?)}(hjh]h const struct pcpu_alloc_info *ai}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj)}(hhh]j9)}(h7pcpu_alloc_info describing how to percpu area is shapedh]h7pcpu_alloc_info describing how to percpu area is shaped}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj,hM hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hM hjubj)}(h#``void *base_addr`` mapped address h](j)}(h``void *base_addr``h]j?)}(hjPh]hvoid *base_addr}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjJubj)}(hhh]j9)}(hmapped addressh]hmapped address}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehM hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(ho**ai** contains all information necessary to initialize the first chunk and prime the dynamic percpu allocator.h](jz)}(h**ai**h]hai}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhi contains all information necessary to initialize the first chunk and prime the dynamic percpu allocator.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(h6**ai->static_size** is the size of static percpu area.h](jz)}(h**ai->static_size**h]hai->static_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh# is the size of static percpu area.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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](jz)}(h**ai->reserved_size**h]hai->reserved_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhX, 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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](jz)}(h**ai->dyn_size**h]h ai->dyn_size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhg determines the number of bytes available for dynamic allocation in the first chunk. The area between }(hjhhhNhNubjz)}(h**ai->static_size**h]hai->static_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh + }(hjhhhNhNubjz)}(h**ai->reserved_size**h]hai->reserved_size}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh + }(hjhhhNhNubjz)}(h**ai->dyn_size**h]h ai->dyn_size}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh and }(hjhhhNhNubjz)}(h**ai->unit_size**h]h ai->unit_size}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is unused.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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](jz)}(h**ai->unit_size**h]h ai->unit_size}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubhR specifies unit size and must be aligned to PAGE_SIZE and equal to or larger than }(hjlhhhNhNubjz)}(h**ai->static_size**h]hai->static_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubh + }(hjlhhhNhNubjz)}(h**ai->reserved_size**h]hai->reserved_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubh + }(hjlhhhNhNubjz)}(h**ai->dyn_size**h]h ai->dyn_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubh.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(hQ**ai->atom_size** is the allocation atom size and used as alignment for vm areas.h](jz)}(h**ai->atom_size**h]h ai->atom_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh@ is the allocation atom size and used as alignment for vm areas.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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](jz)}(h**ai->alloc_size**h]hai->alloc_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh/ is the allocation size and always multiple of }(hjhhhNhNubjz)}(h**ai->atom_size**h]h ai->atom_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh. This is larger than }(hjhhhNhNubjz)}(h**ai->atom_size**h]h ai->atom_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh if }(hjhhhNhNubjz)}(h**ai->unit_size**h]h ai->unit_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is larger than }(hjhhhNhNubjz)}(h**ai->atom_size**h]h ai->atom_size}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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](jz)}(h**ai->nr_groups**h]h ai->nr_groups}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubh and }(hjAhhhNhNubjz)}(h**ai->groups**h]h ai->groups}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubh 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 }(hjAhhhNhNubjz)}(h**ai->nr_groups**h]h ai->nr_groups}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubh9 is zero, a single group containing all units is assumed.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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 }(hjhhhNhNubjz)}(h **base_addr**h]h base_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh% and copied static data to each unit.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"pcpu_build_alloc_info (C function)c.pcpu_build_alloc_infohNtauh1hhjhhhNhNubh)}(hhh](h)}(hstruct pcpu_alloc_info * pcpu_build_alloc_info (size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn)h]h)}(hstruct pcpu_alloc_info *pcpu_build_alloc_info(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hhh]h)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXpcpu_build_alloc_infosbc.pcpu_build_alloc_infoasbuh1hhjhhhjhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhM ubh)}(hpcpu_build_alloc_infoh]h)}(hjh]hpcpu_build_alloc_info}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM 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]h)}(hsize_th]hsize_t}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjQmodnameN classnameNj\j_)}jb]j c.pcpu_build_alloc_infoasbuh1hhjHubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(h reserved_sizeh]h reserved_size}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(hsize_t dyn_sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j c.pcpu_build_alloc_infoasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hdyn_sizeh]hdyn_size}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(hsize_t atom_sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j c.pcpu_build_alloc_infoasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h atom_sizeh]h atom_size}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(h)pcpu_fc_cpu_distance_fn_t cpu_distance_fnh](h)}(hhh]h)}(hpcpu_fc_cpu_distance_fn_th]hpcpu_fc_cpu_distance_fn_t}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj)modnameN classnameNj\j_)}jb]j c.pcpu_build_alloc_infoasbuh1hhj ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hcpu_distance_fnh]hcpu_distance_fn}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(hhh]j9)}(h3build alloc_info considering distances between CPUsh]h3build alloc_info considering distances between CPUs}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjzhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]j?)}(hjh]hsize_t reserved_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj)}(hhh]j9)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hF``size_t dyn_size`` minimum free size for dynamic allocation in bytes h](j)}(h``size_t dyn_size``h]j?)}(hjh]hsize_t dyn_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj)}(hhh]j9)}(h1minimum free size for dynamic allocation in bytesh]h1minimum free size for dynamic allocation in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h*``size_t atom_size`` allocation atom size h](j)}(h``size_t atom_size``h]j?)}(hj0h]hsize_t atom_size}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj.ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj*ubj)}(hhh]j9)}(hallocation atom sizeh]hallocation atom size}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEhM hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM hjubj)}(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]j?)}(hjih]h)pcpu_fc_cpu_distance_fn_t cpu_distance_fn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjcubj)}(hhh]j9)}(h5callback to determine distance between cpus, optionalh]h5callback to determine distance between cpus, optional}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj~hM hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_embed_first_chunk (C function)c.pcpu_embed_first_chunkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hint pcpu_embed_first_chunk (size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h]h)}(hint pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM ubj)}(h h]h }(hj. hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj- hM ubh)}(hpcpu_embed_first_chunkh]h)}(hpcpu_embed_first_chunkh]hpcpu_embed_first_chunk}(hj@ hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj< ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj- hM ubj)}(h(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h](j)}(hsize_t reserved_sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj_ hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetja modnameN classnameNj\j_)}jb]je)}jXjB sbc.pcpu_embed_first_chunkasbuh1hhjX ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX ubh)}(h reserved_sizeh]h reserved_size}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjX ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjT ubj)}(hsize_t dyn_sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]j{ c.pcpu_embed_first_chunkasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hdyn_sizeh]hdyn_size}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjT ubj)}(hsize_t atom_sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]j{ c.pcpu_embed_first_chunkasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(h atom_sizeh]h atom_size}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjT ubj)}(h)pcpu_fc_cpu_distance_fn_t cpu_distance_fnh](h)}(hhh]h)}(hpcpu_fc_cpu_distance_fn_th]hpcpu_fc_cpu_distance_fn_t}(hj9 hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6 ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj; modnameN classnameNj\j_)}jb]j{ c.pcpu_embed_first_chunkasbuh1hhj2 ubj)}(h h]h }(hjW hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2 ubh)}(hcpu_distance_fnh]hcpu_distance_fn}(hje hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2 ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjT ubj)}(h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fnh](h)}(hhh]h)}(hpcpu_fc_cpu_to_node_fn_th]hpcpu_fc_cpu_to_node_fn_t}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]j{ c.pcpu_embed_first_chunkasbuh1hhjz ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz ubh)}(h cpu_to_nd_fnh]h cpu_to_nd_fn}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjz ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjT ubeh}(h]h ]h"]h$]h&]jj uh1jhj hhhj- hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj- hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj- hM hj hhubj )}(hhh]j9)}(h)embed the first percpu chunk into bootmemh]h)embed the first percpu chunk into bootmem}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj- hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]j?)}(hj h]hsize_t reserved_size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj)}(hhh]j9)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hj1 hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj- hM hj. ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj- hM hj ubj)}(hF``size_t dyn_size`` minimum free size for dynamic allocation in bytes h](j)}(h``size_t dyn_size``h]j?)}(hjQ h]hsize_t dyn_size}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjO ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hjK ubj)}(hhh]j9)}(h1minimum free size for dynamic allocation in bytesh]h1minimum free size for dynamic allocation in bytes}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjf hM hjg ubah}(h]h ]h"]h$]h&]uh1jhjK ubeh}(h]h ]h"]h$]h&]uh1jhjf hM hj ubj)}(h*``size_t atom_size`` allocation atom size h](j)}(h``size_t atom_size``h]j?)}(hj h]hsize_t atom_size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj)}(hhh]j9)}(hallocation atom sizeh]hallocation atom size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubj)}(hd``pcpu_fc_cpu_distance_fn_t cpu_distance_fn`` callback to determine distance between cpus, optional h](j)}(h-``pcpu_fc_cpu_distance_fn_t cpu_distance_fn``h]j?)}(hj h]h)pcpu_fc_cpu_distance_fn_t cpu_distance_fn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj)}(hhh]j9)}(h5callback to determine distance between cpus, optionalh]h5callback to determine distance between cpus, optional}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hM hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubj)}(hY``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn`` callback to convert cpu to it's node, optional h](j)}(h)``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn``h]j?)}(hj h]h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj)}(hhh]j9)}(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&]uh1j8hj 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 ubj9)}(h**Description**h]jz)}(hj7 h]h Description}(hj9 hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5 ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj9)}(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.}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj9)}(hIf this function is used to setup the first chunk, it is allocated by calling pcpu_fc_alloc and used as-is without being mapped into vmalloc area. Allocations are always whole multiples of **atom_size** aligned to **atom_size**.h](hIf this function is used to setup the first chunk, it is allocated by calling pcpu_fc_alloc and used as-is without being mapped into vmalloc area. Allocations are always whole multiples of }(hj\ hhhNhNubjz)}(h **atom_size**h]h atom_size}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj\ ubh aligned to }(hj\ hhhNhNubjz)}(h **atom_size**h]h atom_size}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj\ ubh.}(hj\ hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj9)}(hXThis enables the first chunk to piggy back on the linear physical mapping which often uses larger page size. Please note that this can result in very sparse cpu->unit mapping on NUMA machines thus requiring large vmalloc address space. Don't use this allocator if vmalloc space is not orders of magnitude larger than distances between node memory addresses (ie. 32bit NUMA machines).h]hXThis enables the first chunk to piggy back on the linear physical mapping which often uses larger page size. Please note that this can result in very sparse cpu->unit mapping on NUMA machines thus requiring large vmalloc address space. Don’t use this allocator if vmalloc space is not orders of magnitude larger than distances between node memory addresses (ie. 32bit NUMA machines).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj9)}(h5**dyn_size** specifies the minimum dynamic area size.h](jz)}(h **dyn_size**h]hdyn_size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh) specifies the minimum dynamic area size.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj9)}(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 hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj9)}(h **Return**h]jz)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubj9)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"pcpu_page_first_chunk (C function)c.pcpu_page_first_chunkhNtauh1hhjhhhNhNubh)}(hhh](h)}(hWint pcpu_page_first_chunk (size_t reserved_size, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h]h)}(hVint pcpu_page_first_chunk(size_t reserved_size, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM\ ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hM\ ubh)}(hpcpu_page_first_chunkh]h)}(hpcpu_page_first_chunkh]hpcpu_page_first_chunk}(hj2 hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj. ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj hM\ 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]h)}(hsize_th]hsize_t}(hjQ hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjN ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjS modnameN classnameNj\j_)}jb]je)}jXj4 sbc.pcpu_page_first_chunkasbuh1hhjJ ubj)}(h h]h }(hjq hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubh)}(h reserved_sizeh]h reserved_size}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJ ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjF ubj)}(h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fnh](h)}(hhh]h)}(hpcpu_fc_cpu_to_node_fn_th]hpcpu_fc_cpu_to_node_fn_t}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]jm c.pcpu_page_first_chunkasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(h cpu_to_nd_fnh]h cpu_to_nd_fn}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjF ubeh}(h]h ]h"]h$]h&]jj uh1jhj hhhj hM\ ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj hM\ ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM\ hj hhubj )}(hhh]j9)}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM\ hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM\ ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhNhNubjp)}(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.Dh](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM` hj ubj)}(hhh](j)}(hC``size_t reserved_size`` the size of reserved percpu area in bytes h](j)}(h``size_t reserved_size``h]j?)}(hj2h]hsize_t reserved_size}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM] hj,ubj)}(hhh]j9)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhM] hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM] 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]j?)}(hjkh]h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM^ hjeubj)}(hhh]j9)}(h.callback to convert cpu to it's node, optionalh]h0callback to convert cpu to it’s node, optional}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM^ hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM^ hj)ubeh}(h]h ]h"]h$]h&]uh1jhj ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM` hj ubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chM_ hj ubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMb hj ubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMe hj ubj9)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/percpu.chMf hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#copy_from_user_nofault (C function)c.copy_from_user_nofaulthNtauh1hhjhhhNhNubh)}(hhh](h)}(hLlong copy_from_user_nofault (void *dst, const void __user *src, size_t size)h]h)}(hKlong copy_from_user_nofault(void *dst, const void __user *src, size_t size)h](j)}(hlongh]hlong}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKpubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hKpubh)}(hcopy_from_user_nofaulth]h)}(hcopy_from_user_nofaulth]hcopy_from_user_nofault}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj/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&]uh1jhjZubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2 )}(hj5 h]h*}(hjzhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZubh)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjVubj)}(hconst void __user *srch](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjVubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjDsbc.copy_from_user_nofaultasbuh1hhj ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hsizeh]hsize}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjVubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj/hKpubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj/hKpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj/hKphjhhubj )}(hhh]j9)}(h1safely attempt to read from a user-space locationh]h1safely attempt to read from a user-space location}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKphjghhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hKpubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKthjubj)}(hhh](j)}(h=``void *dst`` pointer to the buffer that shall take the data h](j)}(h ``void *dst``h]j?)}(hjh]h void *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKqhjubj)}(hhh]j9)}(h.pointer to the buffer that shall take the datah]h.pointer to the buffer that shall take the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKqhjubj)}(hN``const void __user *src`` address to read from. This must be a user address. h](j)}(h``const void __user *src``h]j?)}(hjh]hconst void __user *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKrhjubj)}(hhh]j9)}(h2address to read from. This must be a user address.h]h2address to read from. This must be a user address.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKrhjubj)}(h'``size_t size`` size of the data chunk h](j)}(h``size_t size``h]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKshjubj)}(hhh]j9)}(hsize of the data chunkh]hsize of the data chunk}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hKshj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hKshjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKuhjubj9)}(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 }(hjnhhhNhNubjz)}(h**src**h]hsrc}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnubh to the buffer at }(hjnhhhNhNubjz)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnubh<. If a kernel fault happens, handle that and return -EFAULT.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKthjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!copy_to_user_nofault (C function)c.copy_to_user_nofaulthNtauh1hhjhhhNhNubh)}(hhh](h)}(hJlong copy_to_user_nofault (void __user *dst, const void *src, size_t size)h]h)}(hIlong copy_to_user_nofault(void __user *dst, const void *src, size_t size)h](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hcopy_to_user_nofaulth]h)}(hcopy_to_user_nofaulth]hcopy_to_user_nofault}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(h0(void __user *dst, const void *src, size_t size)h](j)}(hvoid __user *dsth](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj,hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hdsth]hdst}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hconst void *srch](j!)}(hjeh]hconst}(hjRhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjNubh)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.copy_to_user_nofaultasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j"j4j"j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhj&ubj)}(hhh](j)}(h)``void __user *dst`` address to write to h](j)}(h``void __user *dst``h]j?)}(hjKh]hvoid __user *dst}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjEubj)}(hhh]j9)}(haddress to write toh]haddress to write to}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`hKhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjBubj)}(h>``const void *src`` pointer to the data that shall be written h](j)}(h``const void *src``h]j?)}(hjh]hconst void *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhj~ubj)}(hhh]j9)}(h)pointer to the data that shall be writtenh]h)pointer to the data that shall be written}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjBubj)}(h'``size_t size`` size of the data chunk h](j)}(h``size_t size``h]j?)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubj)}(hhh]j9)}(hsize of the data chunkh]hsize of the data chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjBubeh}(h]h ]h"]h$]h&]uh1jhj&ubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhj&ubj9)}(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 }(hjhhhNhNubjz)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh from the buffer at }(hjhhhNhNubjz)}(h**src**h]hsrc}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh=. If a kernel fault happens, handle that and return -EFAULT.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&strncpy_from_user_nofault (C function)c.strncpy_from_user_nofaulthNtauh1hhjhhhNhNubh)}(hhh](h)}(hVlong strncpy_from_user_nofault (char *dst, const void __user *unsafe_addr, long count)h]h)}(hUlong strncpy_from_user_nofault(char *dst, const void __user *unsafe_addr, long count)h](j)}(hlongh]hlong}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhjohKubh)}(hstrncpy_from_user_nofaulth]h)}(hstrncpy_from_user_nofaulth]hstrncpy_from_user_nofault}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj]hhhjohKubj)}(h7(char *dst, const void __user *unsafe_addr, long count)h](j)}(h char *dsth](j)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hconst void __user *unsafe_addrh](j!)}(hjeh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh__user}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj)hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(h unsafe_addrh]h unsafe_addr}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h long counth](j)}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hcounth]hcount}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj]hhhjohKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjYhhhjohKubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjohKhjVhhubj )}(hhh]jު)}(hhh]j+)}(h6Copy a NUL terminated string from unsafe user address.h]j9)}(hjh]h6Copy a NUL terminated string from unsafe user address.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubah}(h]h ]h"]h$]h&]uh1j+hjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jݪhjhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubj)}(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]j?)}(hjh]h char *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubj)}(hhh]j9)}(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 }(hjhhhNhNubjz)}(h **count**h]hcount}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh bytes long.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h8``const void __user *unsafe_addr`` Unsafe user address. h](j)}(h"``const void __user *unsafe_addr``h]j?)}(hj4h]hconst void __user *unsafe_addr}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhj.ubj)}(hhh]j9)}(hUnsafe user address.h]hUnsafe user address.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhKhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKhjubj)}(hL``long count`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h``long count``h]j?)}(hjmh]h long count}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjgubj)}(hhh]j9)}(h ah"]h$]h&]uh1j1 hjubh)}(h unsafe_addrh]h unsafe_addr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h long counth](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hcounth]hcount}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj^hhhjphKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjZhhhjphKubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjphKhjWhhubj )}(hhh]jު)}(hhh]j+)}(h2Get the size of a user string INCLUDING final NUL.h]j9)}(hjYh]h2Get the size of a user string INCLUDING final NUL.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjWubah}(h]h ]h"]h$]h&]uh1j+hjThhhjhhNubah}(h]h ]h"]h$]h&]jjuh1jݪhjhhKhjQhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjphKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j~j4j~j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``const void __user *unsafe_addr`` The string to measure. ``long count`` Maximum count (including NUL) **Description** Get the size of a NUL-terminated string in user space without pagefault. Returns the size of the string INCLUDING the terminating NUL. If the string is too long, returns a number larger than **count**. User has to check the return value against "> count". On exception (or invalid count), returns 0. Unlike strnlen_user, this can be used from IRQ handler etc. because it disables pagefaults.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubj)}(hhh](j)}(h:``const void __user *unsafe_addr`` The string to measure. h](j)}(h"``const void __user *unsafe_addr``h]j?)}(hjh]hconst void __user *unsafe_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubj)}(hhh]j9)}(hThe string to measure.h]hThe string to measure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h-``long count`` Maximum count (including NUL) h](j)}(h``long count``h]j?)}(hjh]h long count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubj)}(hhh]j9)}(hMaximum count (including NUL)h]hMaximum count (including NUL)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubj9)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubj9)}(h=Returns the size of the string INCLUDING the terminating NUL.h]h=Returns the size of the string INCLUDING the terminating NUL.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubj9)}(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 }(hjOhhhNhNubjz)}(h **count**h]hcount}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOubhg. User has to check the return value against “> count”. On exception (or invalid count), returns 0.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubj9)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/maccess.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&writeback_throttling_sane (C function)c.writeback_throttling_sanehNtauh1hhjhhhNhNubh)}(hhh](h)}(h8bool writeback_throttling_sane (struct scan_control *sc)h]h)}(h7bool writeback_throttling_sane(struct scan_control *sc)h](j)}(hj)h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hwriteback_throttling_saneh]h)}(hwriteback_throttling_saneh]hwriteback_throttling_sane}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(h(struct scan_control *sc)h]j)}(hstruct scan_control *sch](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h scan_controlh]h scan_control}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.writeback_throttling_saneasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj'hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsch]hsc}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(h2is the usual dirty throttling mechanism available?h]h2is the usual dirty throttling mechanism available?}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chKhj[hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jvj4jvj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct scan_control *sc`` scan_control in question **Description** The normal page dirty throttling mechanism in balance_dirty_pages() is completely broken with the legacy memcg and direct stalling in shrink_folio_list() is used for throttling instead, which lacks all the niceties such as fairness, adaptive pausing, bandwidth proportional allocation and configurability. This function tests whether the vmscan currently in progress can assume that the normal dirty throttling mechanism is operational.h](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chKhjzubj)}(hhh]j)}(h5``struct scan_control *sc`` scan_control in question h](j)}(h``struct scan_control *sc``h]j?)}(hjh]hstruct scan_control *sc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chKhjubj)}(hhh]j9)}(hscan_control in questionh]hscan_control in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjzubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chKhjzubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chKhjzubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chKhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlruvec_lru_size (C function)c.lruvec_lru_sizehNtauh1hhjhhhNhNubh)}(hhh](h)}(hVunsigned long lruvec_lru_size (struct lruvec *lruvec, enum lru_list lru, int zone_idx)h]h)}(hUunsigned long lruvec_lru_size(struct lruvec *lruvec, enum lru_list lru, int zone_idx)h](j)}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubj)}(hlongh]hlong}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubh)}(hlruvec_lru_sizeh]h)}(hlruvec_lru_sizeh]hlruvec_lru_size}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubah}(h]h ](jjeh"]h$]h&]jj uh1hhj*hhhj<hMubj)}(h8(struct lruvec *lruvec, enum lru_list lru, int zone_idx)h](j)}(hstruct lruvec *lruvech](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hlruvech]hlruvec}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjmsbc.lruvec_lru_sizeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hlruvech]hlruvec}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum lru_list lruh](j!)}(hj5h]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hlru_listh]hlru_list}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.lruvec_lru_sizeasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hlruh]hlru}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int zone_idxh](j)}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hzone_idxh]hzone_idx}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj*hhhj<hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj&hhhj<hMubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMhj#hhubj )}(hhh]j9)}(h2Returns the number of pages on the given LRU list.h]h2Returns the number of pages on the given LRU list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj<hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhjubj)}(hhh](j)}(h%``struct lruvec *lruvec`` lru vector h](j)}(h``struct lruvec *lruvec``h]j?)}(hjh]hstruct lruvec *lruvec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhjubj)}(hhh]j9)}(h lru vectorh]h lru vector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``enum lru_list lru`` lru to use h](j)}(h``enum lru_list lru``h]j?)}(hjh]henum lru_list lru}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhjubj)}(hhh]j9)}(h lru to useh]h lru to use}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(hP``int zone_idx`` zones to consider (use MAX_NR_ZONES - 1 for the whole LRU list)h](j)}(h``int zone_idx``h]j?)}(hjUh]h int zone_idx}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjSubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhjOubj)}(hhh]j9)}(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)}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌremove_mapping (C function)c.remove_mappinghNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMAubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMAubh)}(hremove_mappingh]h)}(hremove_mappingh]hremove_mapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMAubj)}(h4(struct address_space *mapping, struct folio *folio)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjsbc.remove_mappingasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj8hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj^hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]h)}(hfolioh]hfolio}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]j&c.remove_mappingasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMAubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMAubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMAhjhhubj )}(hhh]j9)}(h+Attempt to remove a folio from its mapping.h]h+Attempt to remove a folio from its mapping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMAhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMAubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMEhjubj)}(hhh](j)}(h5``struct address_space *mapping`` The address space. h](j)}(h!``struct address_space *mapping``h]j?)}(hj h]hstruct address_space *mapping}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMBhjubj)}(hhh]j9)}(hThe address space.h]hThe address space.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5hMBhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMBhjubj)}(h-``struct folio *folio`` The folio to remove. h](j)}(h``struct folio *folio``h]j?)}(hjYh]hstruct folio *folio}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMChjSubj)}(hhh]j9)}(hThe folio to remove.h]hThe folio to remove.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnhMChjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMChjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMEhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMDhjubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMGhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMGhjubj9)}(h **Context**h]jz)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMJhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_putback_lru (C function)c.folio_putback_lruhNtauh1hhjhhhNhNubh)}(hhh](h)}(h,void folio_putback_lru (struct folio *folio)h]h)}(h+void folio_putback_lru(struct folio *folio)h](j)}(hvoidh]hvoid}(hj' hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj# hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM[ubj)}(h h]h }(hj6 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj# hhhj5 hM[ubh)}(hfolio_putback_lruh]h)}(hfolio_putback_lruh]hfolio_putback_lru}(hjH hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjD ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj# hhhj5 hM[ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjd hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj` ubj)}(h h]h }(hjq hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj` ubh)}(hhh]h)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjJ sbc.folio_putback_lruasbuh1hhj` ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj` ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj` ubh)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj` ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ ubah}(h]h ]h"]h$]h&]jj uh1jhj# hhhj5 hM[ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj5 hM[ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj5 hM[hj hhubj )}(hhh]j9)}(h8Put previously isolated folio onto appropriate LRU list.h]h8Put previously isolated folio onto appropriate LRU list.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM[hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj5 hM[ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj !h]h Parameters}(hj !hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM_hj!ubj)}(hhh]j)}(h=``struct folio *folio`` Folio to be returned to an LRU list. h](j)}(h``struct folio *folio``h]j?)}(hj(!h]hstruct folio *folio}(hj*!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj&!ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM\hj"!ubj)}(hhh]j9)}(h$Folio to be returned to an LRU list.h]h$Folio to be returned to an LRU list.}(hjA!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj=!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!ubj9)}(h**Description**h]jz)}(hjc!h]h Description}(hje!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhja!ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM^hj!ubj9)}(hpAdd previously isolated **folio** to appropriate LRU list. The folio may still be unevictable for other reasons.h](hAdd previously isolated }(hjy!hhhNhNubjz)}(h **folio**h]hfolio}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjy!ubhO to appropriate LRU list. The folio may still be unevictable for other reasons.}(hjy!hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM]hj!ubj9)}(h **Context**h]jz)}(hj!h]hContext}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj!ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM`hj!ubj9)}(h6lru_lock must not be held, interrupts must be enabled.h]h6lru_lock must not be held, interrupts must be enabled.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMahj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_isolate_lru (C function)c.folio_isolate_lruhNtauh1hhjhhhNhNubh)}(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}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM(ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj!hM(ubh)}(hfolio_isolate_lruh]h)}(hfolio_isolate_lruh]hfolio_isolate_lru}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj!hhhj!hM(ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj"hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj"ubj)}(h h]h }(hj*"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hhh]h)}(hfolioh]hfolio}(hj;"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8"ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj="modnameN classnameNj\j_)}jb]je)}jXj"sbc.folio_isolate_lruasbuh1hhj"ubj)}(h h]h }(hj["hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj2 )}(hj5 h]h*}(hji"hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj"ubh)}(hfolioh]hfolio}(hjv"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj"ubah}(h]h ]h"]h$]h&]jj uh1jhj!hhhj!hM(ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj!hhhj!hM(ubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj!hM(hj!hhubj )}(hhh]j9)}(h)Try to isolate a folio from its LRU list.h]h)Try to isolate a folio from its LRU list.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM(hj"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hM(ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j"j4j"j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM,hj"ubj)}(hhh]j)}(h<``struct folio *folio`` Folio to isolate from its LRU list. h](j)}(h``struct folio *folio``h]j?)}(hj"h]hstruct folio *folio}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM)hj"ubj)}(hhh]j9)}(h#Folio to isolate from its LRU list.h]h#Folio to isolate from its LRU list.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"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"ubj9)}(h**Description**h]jz)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM+hj"ubj9)}(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 }(hj2#hhhNhNubjz)}(h **folio**h]hfolio}(hj:#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2#ubhf from an LRU list and adjust the vmstat statistic corresponding to whatever LRU list the folio was on.}(hj2#hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM*hj"ubj9)}(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.}(hjS#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM-hj"ubj+)}(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]j9)}(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).}(hji#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM3hje#ubah}(h]h ]h"]h$]h&]uh1j+hjb#ubj+)}(hThe lru_lock must not be held.h]j9)}(hj#h]hThe lru_lock must not be held.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM6hj~#ubah}(h]h ]h"]h$]h&]uh1j+hjb#ubj+)}(hInterrupts must be enabled. h]j9)}(hInterrupts must be enabled.h]hInterrupts must be enabled.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM7hj#ubah}(h]h ]h"]h$]h&]uh1j+hjb#ubeh}(h]h ]h"]h$]h&]j0,j1,j2,jk j3,j uh1j+hj"ubj9)}(h **Context**h]jz)}(hj#h]hContext}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM9hj"ubj9)}(h **Return**h]jz)}(hj#h]hReturn}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM5hj"ubj9)}(hZtrue if the folio was removed from an LRU list. false if the folio was not on an LRU list.h]hZtrue if the folio was removed from an LRU list. false if the folio was not on an LRU list.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chM;hj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*check_move_unevictable_folios (C function)c.check_move_unevictable_folioshNtauh1hhjhhhNhNubh)}(hhh](h)}(h?void check_move_unevictable_folios (struct folio_batch *fbatch)h]h)}(h>void check_move_unevictable_folios(struct folio_batch *fbatch)h](j)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMubj)}(h h]h }(hj#$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj"$hMubh)}(hcheck_move_unevictable_foliosh]h)}(hcheck_move_unevictable_foliosh]hcheck_move_unevictable_folios}(hj5$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1$ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj$hhhj"$hMubj)}(h(struct folio_batch *fbatch)h]j)}(hstruct folio_batch *fbatchh](j!)}(hj$h]hstruct}(hjQ$hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjM$ubj)}(h h]h }(hj^$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM$ubh)}(hhh]h)}(h folio_batchh]h folio_batch}(hjo$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjl$ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjq$modnameN classnameNj\j_)}jb]je)}jXj7$sbc.check_move_unevictable_foliosasbuh1hhjM$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM$ubj2 )}(hj5 h]h*}(hj$hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjM$ubh)}(hfbatchh]hfbatch}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjM$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjI$ubah}(h]h ]h"]h$]h&]jj uh1jhj$hhhj"$hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj $hhhj"$hMubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj"$hMhj $hhubj )}(hhh]j9)}(h2Move evictable folios to appropriate zone lru listh]h2Move evictable folios to appropriate zone lru list}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj $hhhj"$hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j$j4j$j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj$ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhj$ubj)}(hhh]j)}(h=``struct folio_batch *fbatch`` Batch of lru folios to check. h](j)}(h``struct folio_batch *fbatch``h]j?)}(hj%h]hstruct folio_batch *fbatch}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhj%ubj)}(hhh]j9)}(hBatch of lru folios to check.h]hBatch of lru folios to check.}(hj.%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*%hMhj+%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj*%hMhj %ubah}(h]h ]h"]h$]h&]uh1jhj$ubj9)}(h**Description**h]jz)}(hjP%h]h Description}(hjR%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjN%ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhj$ubj9)}(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.}(hjf%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/vmscan.chMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__remove_pages (C function)c.__remove_pageshNtauh1hhjhhhNhNubh)}(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%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMGubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hMGubh)}(h__remove_pagesh]h)}(h__remove_pagesh]h__remove_pages}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj%hhhj%hMGubj)}(hG(unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)h](j)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hlongh]hlong}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hpfnh]hpfn}(hj &hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj%ubj)}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hj#&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hj1&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hlongh]hlong}(hj?&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(h h]h }(hjM&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hnr_pagesh]hnr_pages}(hj[&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj%ubj)}(hstruct vmem_altmap *altmaph](j!)}(hj$h]hstruct}(hjt&hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjp&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp&ubh)}(hhh]h)}(h vmem_altmaph]h vmem_altmap}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj&modnameN classnameNj\j_)}jb]je)}jXj%sbc.__remove_pagesasbuh1hhjp&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp&ubj2 )}(hj5 h]h*}(hj&hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjp&ubh)}(haltmaph]haltmap}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjp&ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj%ubeh}(h]h ]h"]h$]h&]jj uh1jhj%hhhj%hMGubeh}(h]h ]h"]h$]h&]jj juh1hjjhj%hhhj%hMGubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1hhj%hMGhj%hhubj )}(hhh]j9)}(hremove sections of pagesh]hremove sections of pages}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMGhj&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hMGubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j'j4j'j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj'ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMKhj'ubj)}(hhh](j)}(hQ``unsigned long pfn`` starting pageframe (must be aligned to start of a section) h](j)}(h``unsigned long pfn``h]j?)}(hj8'h]hunsigned long pfn}(hj:'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6'ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMHhj2'ubj)}(hhh]j9)}(h:starting pageframe (must be aligned to start of a section)h]h:starting pageframe (must be aligned to start of a section)}(hjQ'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjM'hMHhjN'ubah}(h]h ]h"]h$]h&]uh1jhj2'ubeh}(h]h ]h"]h$]h&]uh1jhjM'hMHhj/'ubj)}(hX``unsigned long nr_pages`` number of pages to remove (must be multiple of section size) h](j)}(h``unsigned long nr_pages``h]j?)}(hjq'h]hunsigned long nr_pages}(hjs'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjo'ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMIhjk'ubj)}(hhh]j9)}(hhj'ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMJhj'ubj)}(hhh]j9)}(hAalternative device page map or ``NULL`` if default memmap is usedh](halternative device page map or }(hj'hhhNhNubj?)}(h``NULL``h]hNULL}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj'ubh if default memmap is used}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj'hMJhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMJhj/'ubeh}(h]h ]h"]h$]h&]uh1jhj'ubj9)}(h**Description**h]jz)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj'ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMLhj'ubj9)}(hGeneric 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]hGeneric 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().}(hj (hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMKhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtry_offline_node (C function)c.try_offline_nodehNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid try_offline_node (int nid)h]h)}(hvoid try_offline_node(int nid)h](j)}(hvoidh]hvoid}(hj<(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8(hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMoubj)}(h h]h }(hjK(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8(hhhjJ(hMoubh)}(htry_offline_nodeh]h)}(htry_offline_nodeh]htry_offline_node}(hj](hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjY(ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8(hhhjJ(hMoubj)}(h (int nid)h]j)}(hint nidh](j)}(hinth]hint}(hjy(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju(ubh)}(hnidh]hnid}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhju(ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjq(ubah}(h]h ]h"]h$]h&]jj uh1jhj8(hhhjJ(hMoubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4(hhhjJ(hMoubah}(h]j/(ah ](jjeh"]h$]h&]jj)jhuh1hhjJ(hMohj1(hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhj1(hhhjJ(hMoubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j(j4j(j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``int nid`` the node ID **Description** Offline a node if all memory sections and cpus of the node are removed. **NOTE** The caller must call lock_device_hotplug() to serialize hotplug and online/offline operations before this call.h](j9)}(h**Parameters**h]jz)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj(ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMshj(ubj)}(hhh]j)}(h``int nid`` the node ID h](j)}(h ``int nid``h]j?)}(hj(h]hint nid}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj(ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMphj(ubj)}(hhh]j9)}(h the node IDh]h the node ID}(hj )hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj)hMphj)ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj)hMphj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubj9)}(h**Description**h]jz)}(hj,)h]h Description}(hj.)hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*)ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMrhj(ubj9)}(hGOffline a node if all memory sections and cpus of the node are removed.h]hGOffline a node if all memory sections and cpus of the node are removed.}(hjB)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMqhj(ubj9)}(h**NOTE**h]jz)}(hjS)h]hNOTE}(hjU)hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQ)ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMshj(ubj9)}(hoThe caller must call lock_device_hotplug() to serialize hotplug and online/offline operations before this call.h]hoThe caller must call lock_device_hotplug() to serialize hotplug and online/offline operations before this call.}(hji)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMthj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__remove_memory (C function)c.__remove_memoryhNtauh1hhjhhhNhNubh)}(hhh](h)}(h*void __remove_memory (u64 start, u64 size)h]h)}(h)void __remove_memory(u64 start, u64 size)h](j)}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj)hMubh)}(h__remove_memoryh]h)}(h__remove_memoryh]h__remove_memory}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj)hhhj)hMubj)}(h(u64 start, u64 size)h](j)}(h u64 starth](h)}(hhh]h)}(hu64h]hu64}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj)modnameN classnameNj\j_)}jb]je)}jXj)sbc.__remove_memoryasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hstarth]hstart}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)ubj)}(hu64 sizeh](h)}(hhh]h)}(hu64h]hu64}(hj"*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj$*modnameN classnameNj\j_)}jb]j)c.__remove_memoryasbuh1hhj*ubj)}(h h]h }(hj@*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hsizeh]hsize}(hjN*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)ubeh}(h]h ]h"]h$]h&]jj uh1jhj)hhhj)hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj)hhhj)hMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hMhj)hhubj )}(hhh]j9)}(h.Remove memory if every memory block is offlineh]h.Remove memory if every memory block is offline}(hjx*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMhju*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j*j4j*j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``u64 start`` physical address of the region to remove ``u64 size`` size of the region to remove **NOTE** The caller must call lock_device_hotplug() to serialize hotplug and online/offline operations before this call, as required by try_offline_node().h](j9)}(h**Parameters**h]jz)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMhj*ubj)}(hhh](j)}(h7``u64 start`` physical address of the region to remove h](j)}(h ``u64 start``h]j?)}(hj*h]h u64 start}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj*ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMhj*ubj)}(hhh]j9)}(h(physical address of the region to removeh]h(physical address of the region to remove}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj*ubj)}(h*``u64 size`` size of the region to remove h](j)}(h ``u64 size``h]j?)}(hj*h]hu64 size}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj*ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMhj*ubj)}(hhh]j9)}(hsize of the region to removeh]hsize of the region to remove}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+hMhj+ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*ubj9)}(h**NOTE**h]jz)}(hj-+h]hNOTE}(hj/+hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj++ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMhj*ubj9)}(hThe caller must call lock_device_hotplug() to serialize hotplug and online/offline operations before this call, as required by try_offline_node().h]hThe caller must call lock_device_hotplug() to serialize hotplug and online/offline operations before this call, as required by try_offline_node().}(hjC+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/memory_hotplug.chMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$mmu_interval_read_begin (C function)c.mmu_interval_read_beginhNtauh1hhjhhhNhNubh)}(hhh](h)}(hRunsigned long mmu_interval_read_begin (struct mmu_interval_notifier *interval_sub)h]h)}(hQunsigned long mmu_interval_read_begin(struct mmu_interval_notifier *interval_sub)h](j)}(hunsignedh]hunsigned}(hjr+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn+hhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn+hhhj+hKubj)}(hlongh]hlong}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn+hhhj+hKubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn+hhhj+hKubh)}(hmmu_interval_read_beginh]h)}(hmmu_interval_read_beginh]hmmu_interval_read_begin}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjn+hhhj+hKubj)}(h,(struct mmu_interval_notifier *interval_sub)h]j)}(h*struct mmu_interval_notifier *interval_subh](j!)}(hj$h]hstruct}(hj+hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(hhh]h)}(hmmu_interval_notifierh]hmmu_interval_notifier}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj+modnameN classnameNj\j_)}jb]je)}jXj+sbc.mmu_interval_read_beginasbuh1hhj+ubj)}(h h]h }(hj ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj2 )}(hj5 h]h*}(hj,hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj+ubh)}(h interval_subh]h interval_sub}(hj$,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj+ubah}(h]h ]h"]h$]h&]jj uh1jhjn+hhhj+hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjj+hhhj+hKubah}(h]je+ah ](jjeh"]h$]h&]jj)jhuh1hhj+hKhjg+hhubj )}(hhh]j9)}(h5Begin a read side critical section against a VA rangeh]h5Begin a read side critical section against a VA range}(hjN,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKhjK,hhubah}(h]h ]h"]h$]h&]uh1jhjg+hhhj+hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jf,j4jf,j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct mmu_interval_notifier *interval_sub`` The interval subscription **Description** mmu_iterval_read_begin()/mmu_iterval_read_retry() implement a collision-retry scheme similar to seqcount for the VA range under subscription. If the mm invokes invalidation during the critical section then mmu_interval_read_retry() will return true. This is useful to obtain shadow PTEs where teardown or setup of the SPTEs require a blocking context. The critical region formed by this can sleep, and the required 'user_lock' can also be a sleeping lock. The caller is required to provide a 'user_lock' to serialize both teardown and setup. The return value should be passed to mmu_interval_read_retry().h](j9)}(h**Parameters**h]jz)}(hjp,h]h Parameters}(hjr,hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjn,ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKhjj,ubj)}(hhh]j)}(hI``struct mmu_interval_notifier *interval_sub`` The interval subscription h](j)}(h.``struct mmu_interval_notifier *interval_sub``h]j?)}(hj,h]h*struct mmu_interval_notifier *interval_sub}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj,ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKhj,ubj)}(hhh]j9)}(hThe interval subscriptionh]hThe interval subscription}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj,hKhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hKhj,ubah}(h]h ]h"]h$]h&]uh1jhjj,ubj9)}(h**Description**h]jz)}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKhjj,ubj9)}(hmmu_iterval_read_begin()/mmu_iterval_read_retry() implement a collision-retry scheme similar to seqcount for the VA range under subscription. If the mm invokes invalidation during the critical section then mmu_interval_read_retry() will return true.h]hmmu_iterval_read_begin()/mmu_iterval_read_retry() implement a collision-retry scheme similar to seqcount for the VA range under subscription. If the mm invokes invalidation during the critical section then mmu_interval_read_retry() will return true.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKhjj,ubj9)}(hThis is useful to obtain shadow PTEs where teardown or setup of the SPTEs require a blocking context. The critical region formed by this can sleep, and the required 'user_lock' can also be a sleeping lock.h]hThis is useful to obtain shadow PTEs where teardown or setup of the SPTEs require a blocking context. The critical region formed by this can sleep, and the required ‘user_lock’ can also be a sleeping lock.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKhjj,ubj9)}(hUThe caller is required to provide a 'user_lock' to serialize both teardown and setup.h]hYThe caller is required to provide a ‘user_lock’ to serialize both teardown and setup.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKhjj,ubj9)}(h?The return value should be passed to mmu_interval_read_retry().h]h?The return value should be passed to mmu_interval_read_retry().}(hj -hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKhjj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"mmu_notifier_register (C function)c.mmu_notifier_registerhNtauh1hhjhhhNhNubh)}(hhh](h)}(hSint mmu_notifier_register (struct mmu_notifier *subscription, struct mm_struct *mm)h]h)}(hRint mmu_notifier_register(struct mmu_notifier *subscription, struct mm_struct *mm)h](j)}(hinth]hint}(hj<-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8-hhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMubj)}(h h]h }(hjK-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8-hhhjJ-hMubh)}(hmmu_notifier_registerh]h)}(hmmu_notifier_registerh]hmmu_notifier_register}(hj]-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjY-ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8-hhhjJ-hMubj)}(h9(struct mmu_notifier *subscription, struct mm_struct *mm)h](j)}(h!struct mmu_notifier *subscriptionh](j!)}(hj$h]hstruct}(hjy-hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hju-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju-ubh)}(hhh]h)}(h mmu_notifierh]h mmu_notifier}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj-modnameN classnameNj\j_)}jb]je)}jXj_-sbc.mmu_notifier_registerasbuh1hhju-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju-ubj2 )}(hj5 h]h*}(hj-hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hju-ubh)}(h subscriptionh]h subscription}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhju-ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjq-ubj)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hj-hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]h)}(h mm_structh]h mm_struct}(hj .hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj .modnameN classnameNj\j_)}jb]j-c.mmu_notifier_registerasbuh1hhj-ubj)}(h h]h }(hj'.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj2 )}(hj5 h]h*}(hj5.hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj-ubh)}(hmmh]hmm}(hjB.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjq-ubeh}(h]h ]h"]h$]h&]jj uh1jhj8-hhhjJ-hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4-hhhjJ-hMubah}(h]j/-ah ](jjeh"]h$]h&]jj)jhuh1hhjJ-hMhj1-hhubj )}(hhh]j9)}(hRegister a notifier on a mmh]hRegister a notifier on a mm}(hjl.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhji.hhubah}(h]h ]h"]h$]h&]uh1jhj1-hhhjJ-hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j.j4j.j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj.ubj)}(hhh](j)}(h=``struct mmu_notifier *subscription`` The notifier to attach h](j)}(h%``struct mmu_notifier *subscription``h]j?)}(hj.h]h!struct mmu_notifier *subscription}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj.ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj.ubj)}(hhh]j9)}(hThe notifier to attachh]hThe notifier to attach}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj.ubj)}(h:``struct mm_struct *mm`` The mm to attach the notifier to h](j)}(h``struct mm_struct *mm``h]j?)}(hj.h]hstruct mm_struct *mm}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj.ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj.ubj)}(hhh]j9)}(h The mm to attach the notifier toh]h The mm to attach the notifier to}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.ubj9)}(h**Description**h]jz)}(hj!/h]h Description}(hj#/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj.ubj9)}(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.}(hj7/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj.ubj9)}(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.}(hjF/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj.ubj9)}(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().}(hjU/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$mmu_notifier_get_locked (C function)c.mmu_notifier_get_lockedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hhstruct mmu_notifier * mmu_notifier_get_locked (const struct mmu_notifier_ops *ops, struct mm_struct *mm)h]h)}(hfstruct mmu_notifier *mmu_notifier_get_locked(const struct mmu_notifier_ops *ops, struct mm_struct *mm)h](j!)}(hj$h]hstruct}(hj/hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj/hhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj/hMubh)}(hhh]h)}(h mmu_notifierh]h mmu_notifier}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj/modnameN classnameNj\j_)}jb]je)}jXmmu_notifier_get_lockedsbc.mmu_notifier_get_lockedasbuh1hhj/hhhj/hMubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj/hMubj2 )}(hj5 h]h*}(hj/hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj/hhhj/hMubh)}(hmmu_notifier_get_lockedh]h)}(hj/h]hmmu_notifier_get_locked}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj/hhhj/hMubj)}(h:(const struct mmu_notifier_ops *ops, struct mm_struct *mm)h](j)}(h"const struct mmu_notifier_ops *opsh](j!)}(hjeh]hconst}(hj/hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj 0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj!)}(hj$h]hstruct}(hj0hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj/ubj)}(h h]h }(hj&0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]h)}(hmmu_notifier_opsh]hmmu_notifier_ops}(hj70hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj40ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj90modnameN classnameNj\j_)}jb]j/c.mmu_notifier_get_lockedasbuh1hhj/ubj)}(h h]h }(hjU0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2 )}(hj5 h]h*}(hjc0hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj/ubh)}(hopsh]hops}(hjp0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/ubj)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hj0hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]h)}(h mm_structh]h mm_struct}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj0modnameN classnameNj\j_)}jb]j/c.mmu_notifier_get_lockedasbuh1hhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2 )}(hj5 h]h*}(hj0hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj0ubh)}(hmmh]hmm}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/ubeh}(h]h ]h"]h$]h&]jj uh1jhj/hhhj/hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj|/hhhj/hMubah}(h]jw/ah ](jjeh"]h$]h&]jj)jhuh1hhj/hMhjy/hhubj )}(hhh]j9)}(h6Return the single struct mmu_notifier for the mm & opsh]h6Return the single struct mmu_notifier for the mm & ops}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jhjy/hhhj/hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j"1j4j"1j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj,1h]h Parameters}(hj.1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*1ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj&1ubj)}(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]j?)}(hjK1h]h"const struct mmu_notifier_ops *ops}(hjM1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjI1ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhjE1ubj)}(hhh]j9)}(h*The operations struct being subscribe withh]h*The operations struct being subscribe with}(hjd1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`1hMhja1ubah}(h]h ]h"]h$]h&]uh1jhjE1ubeh}(h]h ]h"]h$]h&]uh1jhj`1hMhjB1ubj)}(h8``struct mm_struct *mm`` The mm to attach notifiers too h](j)}(h``struct mm_struct *mm``h]j?)}(hj1h]hstruct mm_struct *mm}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj~1ubj)}(hhh]j9)}(hThe mm to attach notifiers tooh]hThe mm to attach notifiers too}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj~1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjB1ubeh}(h]h ]h"]h$]h&]uh1jhj&1ubj9)}(h**Description**h]jz)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj&1ubj9)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj&1ubj9)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj&1ubj9)}(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().}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj&1ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmmu_notifier_put (C function)c.mmu_notifier_puthNtauh1hhjhhhNhNubh)}(hhh](h)}(h9void mmu_notifier_put (struct mmu_notifier *subscription)h]h)}(h8void mmu_notifier_put(struct mmu_notifier *subscription)h](j)}(hvoidh]hvoid}(hj"2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMSubj)}(h h]h }(hj12hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj02hMSubh)}(hmmu_notifier_puth]h)}(hmmu_notifier_puth]hmmu_notifier_put}(hjC2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?2ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj2hhhj02hMSubj)}(h#(struct mmu_notifier *subscription)h]j)}(h!struct mmu_notifier *subscriptionh](j!)}(hj$h]hstruct}(hj_2hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj[2ubj)}(h h]h }(hjl2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[2ubh)}(hhh]h)}(h mmu_notifierh]h mmu_notifier}(hj}2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjz2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2modnameN classnameNj\j_)}jb]je)}jXjE2sbc.mmu_notifier_putasbuh1hhj[2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[2ubj2 )}(hj5 h]h*}(hj2hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj[2ubh)}(h subscriptionh]h subscription}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[2ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjW2ubah}(h]h ]h"]h$]h&]jj uh1jhj2hhhj02hMSubeh}(h]h ]h"]h$]h&]jj juh1hjjhj2hhhj02hMSubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj02hMShj2hhubj )}(hhh]j9)}(h%Release the reference on the notifierh]h%Release the reference on the notifier}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMShj2hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj02hMSubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j2j4j2j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMWhj2ubj)}(hhh]j)}(h=``struct mmu_notifier *subscription`` The notifier to act on h](j)}(h%``struct mmu_notifier *subscription``h]j?)}(hj#3h]h!struct mmu_notifier *subscription}(hj%3hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj!3ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMThj3ubj)}(hhh]j9)}(hThe notifier to act onh]hThe notifier to act on}(hj<3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj83hMThj93ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj83hMThj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubj9)}(h**Description**h]jz)}(hj^3h]h Description}(hj`3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj\3ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMVhj2ubj9)}(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.}(hjt3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMUhj2ubj9)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMYhj2ubj9)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chM]hj2ubj9)}(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().}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMahj2ubj9)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMdhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)mmu_interval_notifier_insert (C function)c.mmu_interval_notifier_inserthNtauh1hhjhhhNhNubh)}(hhh](h)}(hint mmu_interval_notifier_insert (struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops)h]h)}(hint mmu_interval_notifier_insert(struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops)h](j)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhj3hMubh)}(hmmu_interval_notifier_inserth]h)}(hmmu_interval_notifier_inserth]hmmu_interval_notifier_insert}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj3hhhj3hMubj)}(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](j!)}(hj$h]hstruct}(hj4hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj)4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]h)}(hmmu_interval_notifierh]hmmu_interval_notifier}(hj:4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj74ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj<4modnameN classnameNj\j_)}jb]je)}jXj4sbc.mmu_interval_notifier_insertasbuh1hhj4ubj)}(h h]h }(hjZ4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2 )}(hj5 h]h*}(hjh4hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4ubh)}(h interval_subh]h interval_sub}(hju4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubj)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hj4hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]h)}(h mm_structh]h mm_struct}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4modnameN classnameNj\j_)}jb]jV4c.mmu_interval_notifier_insertasbuh1hhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2 )}(hj5 h]h*}(hj4hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4ubh)}(hmmh]hmm}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubj)}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj 5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj(5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hstarth]hstart}(hj65hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubj)}(hunsigned long lengthh](j)}(hunsignedh]hunsigned}(hjO5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK5ubj)}(h h]h }(hj]5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK5ubj)}(hlongh]hlong}(hjk5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK5ubj)}(h h]h }(hjy5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK5ubh)}(hlengthh]hlength}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjK5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubj)}(h+const struct mmu_interval_notifier_ops *opsh](j!)}(hjeh]hconst}(hj5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj!)}(hj$h]hstruct}(hj5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]h)}(hmmu_interval_notifier_opsh]hmmu_interval_notifier_ops}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj5modnameN classnameNj\j_)}jb]jV4c.mmu_interval_notifier_insertasbuh1hhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2 )}(hj5 h]h*}(hj6hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj5ubh)}(hopsh]hops}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubeh}(h]h ]h"]h$]h&]jj uh1jhj3hhhj3hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj3hhhj3hMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj3hMhj3hhubj )}(hhh]j9)}(hInsert an interval notifierh]hInsert an interval notifier}(hj<6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj96hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jT6j4jT6j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj^6h]h Parameters}(hj`6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj\6ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhjX6ubj)}(hhh](j)}(hQ``struct mmu_interval_notifier *interval_sub`` Interval subscription to register h](j)}(h.``struct mmu_interval_notifier *interval_sub``h]j?)}(hj}6h]h*struct mmu_interval_notifier *interval_sub}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj{6ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhjw6ubj)}(hhh]j9)}(h!Interval subscription to registerh]h!Interval subscription to register}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjw6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjt6ubj)}(h0``struct mm_struct *mm`` mm_struct to attach to h](j)}(h``struct mm_struct *mm``h]j?)}(hj6h]hstruct mm_struct *mm}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj6ubj)}(hhh]j9)}(hmm_struct to attach toh]hmm_struct to attach to}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ube h}(h]h ]h"]h$]h&]uh1jhj6hMhjt6ubj)}(h<``unsigned long start`` Starting virtual address to monitor h](j)}(h``unsigned long start``h]j?)}(hj6h]hunsigned long start}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj6ubj)}(hhh]j9)}(h#Starting virtual address to monitorh]h#Starting virtual address to monitor}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjt6ubj)}(h8``unsigned long length`` Length of the range to monitor h](j)}(h``unsigned long length``h]j?)}(hj(7h]hunsigned long length}(hj*7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj&7ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj"7ubj)}(hhh]j9)}(hLength of the range to monitorh]hLength of the range to monitor}(hjA7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj=7hMhj>7ubah}(h]h ]h"]h$]h&]uh1jhj"7ubeh}(h]h ]h"]h$]h&]uh1jhj=7hMhjt6ubj)}(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]j?)}(hja7h]h+const struct mmu_interval_notifier_ops *ops}(hjc7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_7ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj[7ubj)}(hhh]j9)}(h ah"]h$]h&]uh1j1 hj)8ubh)}(h interval_subh]h interval_sub}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj%8ubah}(h]h ]h"]h$]h&]jj uh1jhj7hhhj7hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj7hhhj7hMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj7hMhj7hhubj )}(hhh]j9)}(hRemove a interval notifierh]hRemove a interval notifier}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j8j4j8j5j6j7uh1hhhhjhNhNubjp)}(hXJ**Parameters** ``struct mmu_interval_notifier *interval_sub`` Interval subscription to unregister **Description** This function must be paired with mmu_interval_notifier_insert(). It cannot be called from any ops callback. Once this returns ops callbacks are no longer running on other CPUs and will not be called in future.h](j9)}(h**Parameters**h]jz)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj8ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chM hj8ubj)}(hhh]j)}(hS``struct mmu_interval_notifier *interval_sub`` Interval subscription to unregister h](j)}(h.``struct mmu_interval_notifier *interval_sub``h]j?)}(hj8h]h*struct mmu_interval_notifier *interval_sub}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj8ubj)}(hhh]j9)}(h#Interval subscription to unregisterh]h#Interval subscription to unregister}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubj9)}(h**Description**h]jz)}(hj,9h]h Description}(hj.9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*9ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj8ubj9)}(hlThis function must be paired with mmu_interval_notifier_insert(). It cannot be called from any ops callback.h]hlThis function must be paired with mmu_interval_notifier_insert(). It cannot be called from any ops callback.}(hjB9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMhj8ubj9)}(heOnce this returns ops callbacks are no longer running on other CPUs and will not be called in future.h]heOnce this returns ops callbacks are no longer running on other CPUs and will not be called in future.}(hjQ9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chM hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%mmu_notifier_synchronize (C function)c.mmu_notifier_synchronizehNtauh1hhjhhhNhNubh)}(hhh](h)}(h$void mmu_notifier_synchronize (void)h]h)}(h#void mmu_notifier_synchronize(void)h](j)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|9hhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chM;ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|9hhhj9hM;ubh)}(hmmu_notifier_synchronizeh]h)}(hmmu_notifier_synchronizeh]hmmu_notifier_synchronize}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj|9hhhj9hM;ubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubah}(h]h ]h"]h$]h&]jj uh1jhj|9hhhj9hM;ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjx9hhhj9hM;ubah}(h]js9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hM;hju9hhubj )}(hhh]j9)}(h"Ensure all mmu_notifiers are freedh]h"Ensure all mmu_notifiers are freed}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chM;hj9hhubah}(h]h ]h"]h$]h&]uh1jhju9hhhj9hM;ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j9j4j9j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``void`` no arguments **Description** This function ensures that all outstanding async SRU work from mmu_notifier_put() is completed. After it returns any mmu_notifier_ops associated with an unused mmu_notifier will no longer be called. Before using the caller must ensure that all of its mmu_notifiers have been fully released via mmu_notifier_put(). Modules using the mmu_notifier_put() API should call this in their __exit function to avoid module unloading races.h](j9)}(h**Parameters**h]jz)}(hj :h]h Parameters}(hj :hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chM?hj:ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j?)}(hj(:h]hvoid}(hj*:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj&:ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKhj":ubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hjA:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj=:hKhj>:ubah}(h]h ]h"]h$]h&]uh1jhj":ubeh}(h]h ]h"]h$]h&]uh1jhj=:hKhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubj9)}(h**Description**h]jz)}(hjc:h]h Description}(hje:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhja:ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chKhj:ubj9)}(hThis function ensures that all outstanding async SRU work from mmu_notifier_put() is completed. After it returns any mmu_notifier_ops associated with an unused mmu_notifier will no longer be called.h]hThis function ensures that all outstanding async SRU work from mmu_notifier_put() is completed. After it returns any mmu_notifier_ops associated with an unused mmu_notifier will no longer be called.}(hjy:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chM<hj:ubj9)}(hrBefore using the caller must ensure that all of its mmu_notifiers have been fully released via mmu_notifier_put().h]hrBefore using the caller must ensure that all of its mmu_notifiers have been fully released via mmu_notifier_put().}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chM@hj:ubj9)}(hsModules using the mmu_notifier_put() API should call this in their __exit function to avoid module unloading races.h]hsModules using the mmu_notifier_put() API should call this in their __exit function to avoid module unloading races.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/mmu_notifier.chMChj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&balloon_page_list_enqueue (C function)c.balloon_page_list_enqueuehNtauh1hhjhhhNhNubh)}(hhh](h)}(h_size_t balloon_page_list_enqueue (struct balloon_dev_info *b_dev_info, struct list_head *pages)h]h)}(h^size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, struct list_head *pages)h](h)}(hhh]h)}(hsize_th]hsize_t}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]je)}jXballoon_page_list_enqueuesbc.balloon_page_list_enqueueasbuh1hhj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chKubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hKubh)}(hballoon_page_list_enqueueh]h)}(hj:h]hballoon_page_list_enqueue}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj:hhhj:hKubj)}(h>(struct balloon_dev_info *b_dev_info, struct list_head *pages)h](j)}(h#struct balloon_dev_info *b_dev_infoh](j!)}(hj$h]hstruct}(hj;hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj;ubj)}(h h]h }(hj%;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]h)}(hballoon_dev_infoh]hballoon_dev_info}(hj6;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3;ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8;modnameN classnameNj\j_)}jb]j:c.balloon_page_list_enqueueasbuh1hhj;ubj)}(h h]h }(hjT;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2 )}(hj5 h]h*}(hjb;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj;ubh)}(h b_dev_infoh]h b_dev_info}(hjo;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj;ubj)}(hstruct list_head *pagesh](j!)}(hj$h]hstruct}(hj;hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]h)}(h list_headh]h list_head}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;modnameN classnameNj\j_)}jb]j:c.balloon_page_list_enqueueasbuh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2 )}(hj5 h]h*}(hj;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj;ubh)}(hpagesh]hpages}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj;ubeh}(h]h ]h"]h$]h&]jj uh1jhj:hhhj:hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj:hhhj:hKubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hKhj:hhubj )}(hhh]j9)}(h3inserts a list of pages into the balloon page list.h]h3inserts a list of pages into the balloon page list.}(hj <hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chKhj<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j!<j4j!<j5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hj+<h]h Parameters}(hj-<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj)<ubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK#hj%<ubj)}(hhh](j)}(he``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will insert a new page to h](j)}(h'``struct balloon_dev_info *b_dev_info``h]j?)}(hjJ<h]h#struct balloon_dev_info *b_dev_info}(hjL<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjH<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK!hjD<ubj)}(hhh]j9)}(hhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK"hj}<ubj)}(hhh]j9)}(h6pages to enqueue - allocated using balloon_page_alloc.h]h6pages to enqueue - allocated using balloon_page_alloc.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<hK"hj<ubah}(h]h ]h"]h$]h&]uh1jhj}<ubeh}(h]h ]h"]h$]h&]uh1jhj<hK"hjA<ubeh}(h]h ]h"]h$]h&]uh1jhj%<ubj9)}(h**Description**h]jz)}(hj<h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj<ubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK$hj%<ubj9)}(hyDriver must call this function to properly enqueue balloon pages before definitively removing them from the guest system.h]hyDriver must call this function to properly enqueue balloon pages before definitively removing them from the guest system.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK#hj%<ubj9)}(h **Return**h]jz)}(hj<h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj<ubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK&hj%<ubj9)}(h#number of pages that were enqueued.h]h#number of pages that were enqueued.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK'hj%<ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&balloon_page_list_dequeue (C function)c.balloon_page_list_dequeuehNtauh1hhjhhhNhNubh)}(hhh](h)}(hssize_t balloon_page_list_dequeue (struct balloon_dev_info *b_dev_info, struct list_head *pages, size_t n_req_pages)h]h)}(hrsize_t balloon_page_list_dequeue(struct balloon_dev_info *b_dev_info, struct list_head *pages, size_t n_req_pages)h](h)}(hhh]h)}(hsize_th]hsize_t}(hj-=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*=ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj/=modnameN classnameNj\j_)}jb]je)}jXballoon_page_list_dequeuesbc.balloon_page_list_dequeueasbuh1hhj&=hhhX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK ah"]h$]h&]uh1j1 hjx=ubh)}(h b_dev_infoh]h b_dev_info}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjx=ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjt=ubj)}(hstruct list_head *pagesh](j!)}(hj$h]hstruct}(hj=hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]h)}(h list_headh]h list_head}(hj >hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj >modnameN classnameNj\j_)}jb]jI=c.balloon_page_list_dequeueasbuh1hhj=ubj)}(h h]h }(hj(>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj2 )}(hj5 h]h*}(hj6>hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj=ubh)}(hpagesh]hpages}(hjC>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjt=ubj)}(hsize_t n_req_pagesh](h)}(hhh]h)}(hsize_th]hsize_t}(hj_>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetja>modnameN classnameNj\j_)}jb]jI=c.balloon_page_list_dequeueasbuh1hhjX>ubj)}(h h]h }(hj}>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX>ubh)}(h n_req_pagesh]h n_req_pages}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjX>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjt=ubeh}(h]h ]h"]h$]h&]jj uh1jhj&=hhhjN=hKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chKhhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjN=hKj4j>j5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``struct balloon_dev_info *b_dev_info`` balloon device descriptor where we will grab a page from. ``struct list_head *pages`` pointer to the list of pages that would be returned to the caller. ``size_t n_req_pages`` number of requested pages. **Description** Driver must call this function to properly de-allocate a previous enlisted balloon pages before definitively releasing it back to the guest system. This function tries to remove **n_req_pages** from the ballooned pages and return them to the caller in the **pages** list. Note that this function may fail to dequeue some pages even if the balloon isn't empty - since the page list can be temporarily empty due to compaction of isolated pages. **Return** number of pages that were added to the **pages** list.h](j9)}(h**Parameters**h]jz)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj>ubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK@hj>ubj)}(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]j?)}(hj>h]h#struct balloon_dev_info *b_dev_info}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK>hj>ubj)}(hhh]j9)}(h9balloon device descriptor where we will grab a page from.h]h9balloon device descriptor where we will grab a page from.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj ?hK>hj ?ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj ?hK>hj>ubj)}(h_``struct list_head *pages`` pointer to the list of pages that would be returned to the caller. h](j)}(h``struct list_head *pages``h]j?)}(hj/?h]hstruct list_head *pages}(hj1?hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj-?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK?hj)?ubj)}(hhh]j9)}(hBpointer to the list of pages that would be returned to the caller.h]hBpointer to the list of pages that would be returned to the caller.}(hjH?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjD?hK?hjE?ubah}(h]h ]h"]h$]h&]uh1jhj)?ubeh}(h]h ]h"]h$]h&]uh1jhjD?hK?hj>ubj)}(h2``size_t n_req_pages`` number of requested pages. h](j)}(h``size_t n_req_pages``h]j?)}(hjh?h]hsize_t n_req_pages}(hjj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjf?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chK@hjb?ubj)}(hhh]j9)}(hnumber of requested pages.h]hnumber of requested pages.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj}?hK@hj~?ubah}(h]h ]h"]h$]h&]uh1jhjb?ubeh}(h]h ]h"]h$]h&]uh1jhj}?hK@hj>ubeh}(h]h ]h"]h$]h&]uh1jhj>ubj9)}(h**Description**h]jz)}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chKBhj>ubj9)}(hXDriver must call this function to properly de-allocate a previous enlisted balloon pages before definitively releasing it back to the guest system. This function tries to remove **n_req_pages** from the ballooned pages and return them to the caller in the **pages** list.h](hDriver must call this function to properly de-allocate a previous enlisted balloon pages before definitively releasing it back to the guest system. This function tries to remove }(hj?hhhNhNubjz)}(h**n_req_pages**h]h n_req_pages}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubh? from the ballooned pages and return them to the caller in the }(hj?hhhNhNubjz)}(h **pages**h]hpages}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubh list.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chKAhj>ubj9)}(hNote that this function may fail to dequeue some pages even if the balloon isn't empty - since the page list can be temporarily empty due to compaction of isolated pages.h]hNote that this function may fail to dequeue some pages even if the balloon isn’t empty - since the page list can be temporarily empty due to compaction of isolated pages.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chKFhj>ubj9)}(h **Return**h]jz)}(hj?h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chKJhj>ubj9)}(h6number of pages that were added to the **pages** list.h](h'number of pages that were added to the }(hj@hhhNhNubjz)}(h **pages**h]hpages}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@ubh list.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/balloon_compaction.chKKhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmf_insert_pfn_pmd (C function)c.vmf_insert_pfn_pmdhNtauh1hhjhhhNhNubh)}(hhh](h)}(hSvm_fault_t vmf_insert_pfn_pmd (struct vm_fault *vmf, unsigned long pfn, bool write)h]h)}(hRvm_fault_t vmf_insert_pfn_pmd(struct vm_fault *vmf, unsigned long pfn, bool write)h](h)}(hhh]h)}(h vm_fault_th]h vm_fault_t}(hjW@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjT@ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjY@modnameN classnameNj\j_)}jb]je)}jXvmf_insert_pfn_pmdsbc.vmf_insert_pfn_pmdasbuh1hhjP@hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMubj)}(h h]h }(hjy@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP@hhhjx@hMubh)}(hvmf_insert_pfn_pmdh]h)}(hju@h]hvmf_insert_pfn_pmd}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjP@hhhjx@hMubj)}(h5(struct vm_fault *vmf, unsigned long pfn, bool write)h](j)}(hstruct vm_fault *vmfh](j!)}(hj$h]hstruct}(hj@hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]h)}(hvm_faulth]hvm_fault}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj@modnameN classnameNj\j_)}jb]js@c.vmf_insert_pfn_pmdasbuh1hhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2 )}(hj5 h]h*}(hj@hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj@ubh)}(hvmfh]hvmf}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj@ubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hj$AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hlongh]hlong}(hj2AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hj@AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hpfnh]hpfn}(hjNAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj@ubj)}(h bool writeh](j)}(hj)h]hbool}(hjgAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcAubj)}(h h]h }(hjtAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcAubh)}(hwriteh]hwrite}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj@ubeh}(h]h ]h"]h$]h&]jj uh1jhjP@hhhjx@hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjL@hhhjx@hMubah}(h]jG@ah ](jjeh"]h$]h&]jj)jhuh1hhjx@hMhjI@hhubj )}(hhh]j9)}(hinsert a pmd size pfnh]hinsert a pmd size pfn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhjI@hhhjx@hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jAj4jAj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMhjAubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]j?)}(hjAh]hstruct vm_fault *vmf}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjAubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMhjAubj)}(hhh]j9)}(hStructure describing the faulth]hStructure describing the fault}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjAubj)}(h$``unsigned long pfn`` pfn to insert h](j)}(h``unsigned long pfn``h]j?)}(hj&Bh]hunsigned long pfn}(hj(BhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj$Bubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMhj Bubj)}(hhh]j9)}(h pfn to inserth]h pfn to insert}(hj?BhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj;BhMhjhj]Bubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMhjYBubj)}(hhh]j9)}(hwhether it's a write faulth]hwhether it’s a write fault}(hjxBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjtBhMhjuBubah}(h]h ]h"]h$]h&]uh1jhjYBubeh}(h]h ]h"]h$]h&]uh1jhjtBhMhjAubeh}(h]h ]h"]h$]h&]uh1jhjAubj9)}(h**Description**h]jz)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMhjAubj9)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMhjAubj9)}(h **Return**h]jz)}(hjBh]hReturn}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMhjAubj9)}(hvm_fault_t value.h]hvm_fault_t value.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmf_insert_pfn_pud (C function)c.vmf_insert_pfn_pudhNtauh1hhjhhhNhNubh)}(hhh](h)}(hSvm_fault_t vmf_insert_pfn_pud (struct vm_fault *vmf, unsigned long pfn, bool write)h]h)}(hRvm_fault_t vmf_insert_pfn_pud(struct vm_fault *vmf, unsigned long pfn, bool write)h](h)}(hhh]h)}(h vm_fault_th]h vm_fault_t}(hj ChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj CmodnameN classnameNj\j_)}jb]je)}jXvmf_insert_pfn_pudsbc.vmf_insert_pfn_pudasbuh1hhjChhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chM&ubj)}(h h]h }(hj+ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhj*ChM&ubh)}(hvmf_insert_pfn_pudh]h)}(hj'Ch]hvmf_insert_pfn_pud}(hj=ChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9Cubah}(h]h ](jjeh"]h$]h&]jj uh1hhjChhhj*ChM&ubj)}(h5(struct vm_fault *vmf, unsigned long pfn, bool write)h](j)}(hstruct vm_fault *vmfh](j!)}(hj$h]hstruct}(hjXChhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjTCubj)}(h h]h }(hjeChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTCubh)}(hhh]h)}(hvm_faulth]hvm_fault}(hjvChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsCubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjxCmodnameN classnameNj\j_)}jb]j%Cc.vmf_insert_pfn_pudasbuh1hhjTCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTCubj2 )}(hj5 h]h*}(hjChhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTCubh)}(hvmfh]hvmf}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPCubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hlongh]hlong}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hpfnh]hpfn}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPCubj)}(h bool writeh](j)}(hj)h]hbool}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hj&DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hwriteh]hwrite}(hj4DhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPCubeh}(h]h ]h"]h$]h&]jj uh1jhjChhhj*ChM&ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjBhhhj*ChM&ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhj*ChM&hjBhhubj )}(hhh]j9)}(hinsert a pud size pfnh]hinsert a pud size pfn}(hj^DhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chM&hj[Dhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj*ChM&ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jvDj4jvDj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj~Dubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chM*hjzDubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]j?)}(hjDh]hstruct vm_fault *vmf}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chM'hjDubj)}(hhh]j9)}(hStructure describing the faulth]hStructure describing the fault}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjDhM'hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM'hjDubj)}(h$``unsigned long pfn`` pfn to insert h](j)}(h``unsigned long pfn``h]j?)}(hjDh]hunsigned long pfn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chM(hjDubj)}(hhh]j9)}(h pfn to inserth]h pfn to insert}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjDhM(hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM(hjDubj)}(h*``bool write`` whether it's a write fault h](j)}(h``bool write``h]j?)}(hjEh]h bool write}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chM)hj Eubj)}(hhh]j9)}(hwhether it's a write faulth]hwhether it’s a write fault}(hj*EhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj&EhM)hj'Eubah}(h]h ]h"]h$]h&]uh1jhj Eubeh}(h]h ]h"]h$]h&]uh1jhj&EhM)hjDubeh}(h]h ]h"]h$]h&]uh1jhjzDubj9)}(h**Description**h]jz)}(hjLEh]h Description}(hjNEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJEubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chM+hjzDubj9)}(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.}(hjbEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chM*hjzDubj9)}(h **Return**h]jz)}(hjsEh]hReturn}(hjuEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqEubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chM,hjzDubj9)}(hvm_fault_t value.h]hvm_fault_t value.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chM-hjzDubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!vmf_insert_folio_pud (C function)c.vmf_insert_folio_pudhNtauh1hhjhhhNhNubh)}(hhh](h)}(hWvm_fault_t vmf_insert_folio_pud (struct vm_fault *vmf, struct folio *folio, bool write)h]h)}(hVvm_fault_t vmf_insert_folio_pud(struct vm_fault *vmf, struct folio *folio, bool write)h](h)}(hhh]h)}(h vm_fault_th]h vm_fault_t}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjEmodnameN classnameNj\j_)}jb]je)}jXvmf_insert_folio_pudsbc.vmf_insert_folio_pudasbuh1hhjEhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMRubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjEhMRubh)}(hvmf_insert_folio_pudh]h)}(hjEh]hvmf_insert_folio_pud}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ](jjeh"]h$]h&]jj uh1hhjEhhhjEhMRubj)}(h7(struct vm_fault *vmf, struct folio *folio, bool write)h](j)}(hstruct vm_fault *vmfh](j!)}(hj$h]hstruct}(hj FhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]h)}(hvm_faulth]hvm_fault}(hj(FhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%Fubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj*FmodnameN classnameNj\j_)}jb]jEc.vmf_insert_folio_pudasbuh1hhjFubj)}(h h]h }(hjFFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2 )}(hj5 h]h*}(hjTFhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjFubh)}(hvmfh]hvmf}(hjaFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubj)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjzFhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjvFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvFubh)}(hhh]h)}(hfolioh]hfolio}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFmodnameN classnameNj\j_)}jb]jEc.vmf_insert_folio_pudasbuh1hhjvFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvFubj2 )}(hj5 h]h*}(hjFhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjvFubh)}(hfolioh]hfolio}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubj)}(h bool writeh](j)}(hj)h]hbool}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hwriteh]hwrite}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubeh}(h]h ]h"]h$]h&]jj uh1jhjEhhhjEhMRubeh}(h]h ]h"]h$]h&]jj juh1hjjhjEhhhjEhMRubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjEhMRhjEhhubj )}(hhh]j9)}(h-insert a pud size folio mapped by a pud entryh]h-insert a pud size folio mapped by a pud entry}(hj/GhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMRhj,Ghhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMRubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jGGj4jGGj5j6j7uh1hhhhjhNhNubjp)}(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](j9)}(h**Parameters**h]jz)}(hjQGh]h Parameters}(hjSGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOGubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMVhjKGubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]j?)}(hjpGh]hstruct vm_fault *vmf}(hjrGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjnGubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMShjjGubj)}(hhh]j9)}(hStructure describing the faulth]hStructure describing the fault}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhMShjGubah}(h]h ]h"]h$]h&]uh1jhjjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMShjgGubj)}(h(``struct folio *folio`` folio to insert h](j)}(h``struct folio *folio``h]j?)}(hjGh]hstruct folio *folio}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMThjGubj)}(hhh]j9)}(hfolio to inserth]hfolio to insert}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhMThjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMThjgGubj)}(h*``bool write`` whether it's a write fault h](j)}(h``bool write``h]j?)}(hjGh]h bool write}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMUhjGubj)}(hhh]j9)}(hwhether it's a write faulth]hwhether it’s a write fault}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhMUhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMUhjgGubeh}(h]h ]h"]h$]h&]uh1jhjKGubj9)}(h **Return**h]jz)}(hjHh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMWhjKGubj9)}(hvm_fault_t value.h]hvm_fault_t value.}(hj3HhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:135: ./mm/huge_memory.chMWhjKGubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubeh}(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_handlerj|Herror_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,]j!asnameids}(jVHjSHj2j/jNj,jMjJj6j3jjj1j.jEjBj_j_j8j5jzj|zjjjtjqjjjwzjtzjjjNHjKHu nametypes}(jVHj2jNjMj6jj1jEj_j8jzjjtjjwzjjNHuh}(jSHhj/hhhjjjjjjjjj j j j j,j5jJj5j3jFjj9j.jjBj4j_jUjrjwjYj^jjjVj[jj jjjW#j\#j&j&j'j'j)j)jo,jt,jR1jW1j3j3j6j6j7j7j9j9j7;j<;j=j>j?j?juAjzAjDjDjGjGjHIjMIj7Kjj>jhAjmAjCjCjrFjwFj3Ij8IjxLj}LjNjNjXPj]PjRjRjTjTjWjWj.Yj3YjZj[j\j\j[^j`^j*`j/`jbjbjdjdjhjhjljlj~njnjojojZqj_qjrjrj?tjDtjujujwjwjjzjzjzj9|j>|j}j}jejjjjjjj jjjjKHjjjjXj]jjjj j6j;jEjJj@jEjujzjJjOjjj jj jj1j6jjŴjejjj@jEj jjjjmjrjfjkjjjjjjj|jjjjHjMjjjjjjjjjjjjj:j?jqjvjjjjj.j3j}jjEjJjjjCjHj0j5j~jjjjjjC jH jjj_jdj#j(jjjjjjj j j"j"jc#jh#j%j%j/'j4'j(j(j*j*jN,jS,j-j-j/j/j.1j31j 3j3j4j4j~6j6j8j8j9j9j-;j2;j<j<jV>j[>jl@jq@jBjBjCjCj/Fj4FjkHjpHjJjJjLjLj7NjjjjGjLjjjCjHjjj+j0jjj,j1jsjxj:j?jjjjj=jBjjjjjjj j jt jy j j jjjojjj`jejHjMjjj6j;jjjjjjjP jU j/"j4"j,&j1&jF(jK(j6+j;+j-j-j0j0jX2j]2jG4jL4j 6j%6j8j8j;j;j=j=jM?jR?j@j@j"Bj'BjEjEjGjGj*Kj/Kj MjMjNjNjjQjoQjcTjhTjVjVj[Xj`XjYjYj*\j/\jC^jH^j`j`j|bjbjfjfj)hj.hjijij lj%lj1nj6njlqjqqjsjsj8vj=vjyj"yj{j{j7}j<}j~j~jjjjjjj'j,jjj͌jҌj jjjj(j-j_jdjjjjjjj5j:jjjFjKjjjjjjjjƯjٱjޱjjj·jǷjjjjjjjojtjjjjjijnjjjjjjjjj+j0jjjjjjjjjjjvj{jjjxj}j-j2jjjjj`jejjj0j5jjjjjwj|jjjVj[jjjjj j j j jjjjjTjYjUjZjjj!j&jjj j j!j!j$j $j%j%j/(j4(j)j)je+jj+j/-j4-jw/j|/j2j2j3j3j7j7js9jx9j:j:j=j"=jG@jL@jBjBjEjEu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages]hsystem_message)}(hhh]j9)}(hhh]h6Hyperlink target "mm-api-gfp-flags" is not referenced.}hjHsbah}(h]h ]h"]h$]h&]uh1j8hjHubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1jHuba transformerN include_log] decorationNhhub.