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 *); unsigned int sheaf_capacity; }; **Members** ``align`` The required alignment for the objects. ``0`` means no specific alignment is requested. ``useroffset`` Usercopy region offset. ``0`` is a valid offset, when **usersize** is non-``0`` ``usersize`` Usercopy region size. ``0`` means no usercopy region is specified. ``freeptr_offset`` Custom offset for the free pointer in :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. ``sheaf_capacity`` Enable sheaves of given capacity for the cache. With a non-zero value, allocations from the cache go through caching arrays called sheaves. Each cpu has a main sheaf that's always present, and a spare sheaf that may be not present. When both become empty, there's an attempt to replace an empty sheaf with a full sheaf from the per-node barn. When no full sheaf is available, and gfp flags allow blocking, a sheaf is allocated and filled from slab(s) using bulk allocation. Otherwise the allocation falls back to the normal operation allocating a single object from a slab. Analogically when freeing and both percpu sheaves are full, the barn may replace it with an empty sheaf, unless it's over capacity. In that case a sheaf is bulk freed to slab pages. The sheaves do not enforce NUMA placement of objects, so allocations via kmem_cache_alloc_node() with a node specified other than NUMA_NO_NODE will bypass them. Bulk allocation and free operations also try to use the cpu sheaves and barn, but fallback to using slab pages directly. When slub_debug is enabled for the cache, the sheaf_capacity argument is ignored. ``0`` means no sheaves will be created.h](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 *); unsigned int sheaf_capacity; };h]hstruct kmem_cache_args { unsigned int align; unsigned int useroffset; unsigned int usersize; unsigned int freeptr_offset; bool use_freeptr_offset; void (*ctor)(void *); unsigned int sheaf_capacity; };}hjsbah}(h]h ]h"]h$]h&]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.hhMPhjubj)}(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&]uh1j8hjhMPhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubj)}(hX``sheaf_capacity`` Enable sheaves of given capacity for the cache. With a non-zero value, allocations from the cache go through caching arrays called sheaves. Each cpu has a main sheaf that's always present, and a spare sheaf that may be not present. When both become empty, there's an attempt to replace an empty sheaf with a full sheaf from the per-node barn. When no full sheaf is available, and gfp flags allow blocking, a sheaf is allocated and filled from slab(s) using bulk allocation. Otherwise the allocation falls back to the normal operation allocating a single object from a slab. Analogically when freeing and both percpu sheaves are full, the barn may replace it with an empty sheaf, unless it's over capacity. In that case a sheaf is bulk freed to slab pages. The sheaves do not enforce NUMA placement of objects, so allocations via kmem_cache_alloc_node() with a node specified other than NUMA_NO_NODE will bypass them. Bulk allocation and free operations also try to use the cpu sheaves and barn, but fallback to using slab pages directly. When slub_debug is enabled for the cache, the sheaf_capacity argument is ignored. ``0`` means no sheaves will be created.h](j)}(h``sheaf_capacity``h]j?)}(hjh]hsheaf_capacity}(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.hhMnhjubj)}(hhh](j9)}(h/Enable sheaves of given capacity for the cache.h]h/Enable sheaves of given capacity for the cache.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMThjubj9)}(hX&With a non-zero value, allocations from the cache go through caching arrays called sheaves. Each cpu has a main sheaf that's always present, and a spare sheaf that may be not present. When both become empty, there's an attempt to replace an empty sheaf with a full sheaf from the per-node barn.h]hX*With a non-zero value, allocations from the cache go through caching arrays called sheaves. Each cpu has a main sheaf that’s always present, and a spare sheaf that may be not present. When both become empty, there’s an attempt to replace an empty sheaf with a full sheaf from the per-node barn.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMVhjubj9)}(hWhen no full sheaf is available, and gfp flags allow blocking, a sheaf is allocated and filled from slab(s) using bulk allocation. Otherwise the allocation falls back to the normal operation allocating a single object from a slab.h]hWhen no full sheaf is available, and gfp flags allow blocking, a sheaf is allocated and filled from slab(s) using bulk allocation. Otherwise the allocation falls back to the normal operation allocating a single object from a slab.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM\hjubj9)}(hAnalogically when freeing and both percpu sheaves are full, the barn may replace it with an empty sheaf, unless it's over capacity. In that case a sheaf is bulk freed to slab pages.h]hAnalogically when freeing and both percpu sheaves are full, the barn may replace it with an empty sheaf, unless it’s over capacity. In that case a sheaf is bulk freed to slab pages.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMahjubj9)}(hThe sheaves do not enforce NUMA placement of objects, so allocations via kmem_cache_alloc_node() with a node specified other than NUMA_NO_NODE will bypass them.h]hThe sheaves do not enforce NUMA placement of objects, so allocations via kmem_cache_alloc_node() with a node specified other than NUMA_NO_NODE will bypass them.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMehjubj9)}(hxBulk allocation and free operations also try to use the cpu sheaves and barn, but fallback to using slab pages directly.h]hxBulk allocation and free operations also try to use the cpu sheaves and barn, but fallback to using slab pages directly.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMihjubj9)}(hQWhen slub_debug is enabled for the cache, the sheaf_capacity argument is ignored.h]hQWhen slub_debug is enabled for the cache, the sheaf_capacity argument is ignored.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMlhjubj9)}(h'``0`` means no sheaves will be created.h](j?)}(h``0``h]h0}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubh" means no sheaves will be created.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMohjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubeh}(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.hhMrhjUhhubj9)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh is a valid value, so }(hjhhhNhNubjz)}(h**use_freeptr_offset**h]huse_freeptr_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh must be also set to }(hjhhhNhNubj?)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh. in order to interpret the field as used. For }(hjhhhNhNubjz)}(h**useroffset**h]h useroffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh }(hjhhhNhNubj?)}(h``0``h]h0}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh" is also valid, but only with non-}(hjhhhNhNubj?)}(h``0``h]h0}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh }(hjhhhNhNubjz)}(h **usersize**h]husersize}(hjFhhhNhNubah}(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 }(hj_hhhNhNubj?)}(h``NULL``h]hNULL}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_ubhN args is passed to kmem_cache_create(), it is equivalent to all fields unused.}(hj_hhhNhNubeh}(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.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXkmem_cache_create_usercopysbc.kmem_cache_create_usercopyasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(hkmem_cache_create_usercopyh]h)}(hjh]hkmem_cache_create_usercopy}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(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}(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 }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjKhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hnameh]hname}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hunsigned int sizeh](j)}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hunsigned int alignh](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)}(halignh]halign}(hjhhhNhNubah}(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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]jc.kmem_cache_create_usercopyasbuh1hhj ubj)}(h h]h }(hj4 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hflagsh]hflags}(hjB hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hunsigned int useroffseth](j)}(hunsignedh]hunsigned}(hj[ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubj)}(h h]h }(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubj)}(hinth]hint}(hjw hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubh)}(h useroffseth]h useroffset}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjW ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hunsigned int usersizeh](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)}(husersizeh]husersize}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hvoid (*ctor)(void*)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj !hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(h(h]h(}(hj!hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubj2 )}(hj5 h]h*}(hj'!hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hctorh]hctor}(hj4!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubj2 )}(h)h]h)}(hjB!hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubj2 )}(hj!h]h(}(hjP!hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubj)}(hvoidh]hvoid}(hj]!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hjk!hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubj2 )}(hjD!h]h)}(hjx!hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj 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)}(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.hhMhj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(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.hhMhj!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?)}(hj!h]hconst char *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)}(hG``unsigned int size`` The size of objects to be created in this cache. h](j)}(h``unsigned int size``h]j?)}(hj"h]hunsigned int 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.}(hj4"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0"hMhj1"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj0"hMhj!ubj)}(h?``unsigned int align`` The required alignment for the objects. h](j)}(h``unsigned int align``h]j?)}(hjT"h]hunsigned int align}(hjV"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjR"ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjN"ubj)}(hhh]j9)}(h'The required alignment for the objects.h]h'The required alignment for the objects.}(hjm"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hji"hMhjj"ubah}(h]h ]h"]h$]h&]uh1jhjN"ubeh}(h]h ]h"]h$]h&]uh1jhji"hMhj!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.hhMhj"ubj)}(hhh]j9)}(h SLAB flagsh]h SLAB flags}(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``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.hhMhj"ubj)}(hhh]j9)}(hUsercopy region offseth]hUsercopy region offset}(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 int usersize`` Usercopy region size h](j)}(h``unsigned int usersize``h]j?)}(hj"h]hunsigned int usersize}(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)}(hUsercopy region sizeh]hUsercopy region 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)}(hE``void (*ctor)(void *)`` A constructor for the objects, or ``NULL``. h](j)}(h``void (*ctor)(void *)``h]j?)}(hj8#h]hvoid (*ctor)(void *)}(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:37: ./include/linux/slab.hhMhj2#ubj)}(hhh]j9)}(h+A constructor for the objects, or ``NULL``.h](h"A constructor for the objects, or }(hjQ#hhhNhNubj?)}(h``NULL``h]hNULL}(hjY#hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQ#ubh.}(hjQ#hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjM#hMhjN#ubah}(h]h ]h"]h$]h&]uh1jhj2#ubeh}(h]h ]h"]h$]h&]uh1jhjM#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)}(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.hhMhj#ubh)}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj#hMhj!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)}(h3a pointer to the cache on success, NULL on failure.h]h3a pointer to the cache on success, NULL on failure.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]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_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}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$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]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj+$hMhj $hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhj $hhhj+$hMubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jD$j4jD$j5j6j7uh1hhhhjUhNhNubj9)}(h:``kmem_cache_create (__name, __object_size, __args, ...)``h]j?)}(hjJ$h]h6kmem_cache_create (__name, __object_size, __args, ...)}(hjL$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjH$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.}(hjd$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&]uh1jThjr$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.hhMhjy$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}(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)}(hOptional arguments, see :c:type:`struct kmem_cache_args `. Passing ``NULL`` means defaults will be used for all the arguments.h](hOptional arguments, see }(hj)%hhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]j?)}(hj3%h]hstruct kmem_cache_args}(hj5%hhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hj1%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)%ubh . Passing }(hj)%hhhNhNubj?)}(h``NULL``h]hNULL}(hjU%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj)%ubh3 means defaults will be used for all the arguments.}(hj)%hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjP%hMhj&%ubah}(h]h ]h"]h$]h&]uh1jhj %ubeh}(h]h ]h"]h$]h&]uh1jhj%%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.hhKhjy%ubj)}(hhh]j9)}(hvariable argumentsh]hvariable arguments}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%hKhj%ubah}(h]h ]h"]h$]h&]uh1jhjy%ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhj$ubeh}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhKhjy$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.hhMhjy$ubj9)}(hWThe new variant has 4 parameters: ``kmem_cache_create(name, object_size, args, flags)``h](h"The new variant has 4 parameters: }(hj%hhhNhNubj?)}(h5``kmem_cache_create(name, object_size, args, flags)``h]h1kmem_cache_create(name, object_size, args, flags)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%ubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjy$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.hhMhjy$ubj9)}(haThe legacy variant has 5 parameters: ``kmem_cache_create(name, object_size, align, flags, ctor)``h](h%The legacy variant has 5 parameters: }(hj&hhhNhNubj?)}(h<``kmem_cache_create(name, object_size, align, flags, ctor)``h]h8kmem_cache_create(name, object_size, align, flags, ctor)}(hj%&hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj&ubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjy$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?)}(hjD&h]hstruct kmem_cache_args}(hjF&hhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjB&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&]uh1j8hja&hMhjy$ubj9)}(h **Context**h]jz)}(hjj&h]hContext}(hjl&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjh&ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjy$ubj9)}(h ah"]h$]h&]uh1j1 hj$'ubh)}(hobjph]hobjp}(hjl'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)}(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&hhhj&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)}(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)}(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.}(hj((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}(hjW(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS(hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hjf(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS(hhhje(hMubj2 )}(hj5 h]h*}(hjt(hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjS(hhhje(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 uh1hhjS(hhhje(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}(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.kmem_cache_allocasbuh1hhj)ubj)}(h h]h }(hj4)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hflagsh]hflags}(hjB)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj(ubeh}(h]h ]h"]h$]h&]jj uh1jhjS(hhhje(hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjO(hhhje(hMubah}(h]jJ(ah ](jjeh"]h$]h&]jj)jhuh1hhje(hMhjL(hhubj )}(hhh]j9)}(hAllocate an objecth]hAllocate an object}(hjl)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhji)hhubah}(h]h ]h"]h$]h&]uh1jhjL(hhhje(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?)}(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.hhMhj)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)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)}(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.}(hj7*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)}(hjH*h]hReturn}(hjJ*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjF*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}(hjf*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*}(hj*hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj*ubh)}(hobjph]hobjp}(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]je)}jXj*sbc.kmem_cache_chargeasbuh1hhj+ubj)}(h h]h }(hjA+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(hgfpflagsh]hgfpflags}(hjO+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-memcg charge an already allocated slab memoryh]h-memcg charge an already allocated slab memory}(hjy+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjv+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?)}(hj+h]hgfp_t gfpflags}(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)}(hdescribe the allocation contexth]hdescribe the allocation context}(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}(hj0,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)}(hjD,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.}(hjS,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:}(hjb,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)}(hjz,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.hhM hjx,ubah}(h]h ]h"]h$]h&]uh1jv,hjs,ubjw,)}(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.hhM!hj,ubah}(h]h ]h"]h$]h&]uh1jv,hjs,ubjw,)}(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.hhM"hj,ubah}(h]h ]h"]h$]h&]uh1jv,hjs,ubjw,)}(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.hhM$hj,ubah}(h]h ]h"]h$]h&]uh1jv,hjs,ubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jq,hj+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.hhM&hj+ubj9)}(h.true if charge was successful otherwise false.h]h.true if charge was successful otherwise false.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM'hj+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&]uh1jhj(-hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM~ubj)}(h h]h }(hj;-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(-hhhj:-hM~ubj2 )}(hj5 h]h*}(hjI-hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj(-hhhj:-hM~ubh)}(hkmalloch]h)}(hkmalloch]hkmalloc}(hjZ-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjV-ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj(-hhhj:-hM~ubj)}(h(size_t size, gfp_t flags)h](j)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjy-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjv-ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{-modnameN classnameNj\j_)}jb]je)}jXj\-sb c.kmallocasbuh1hhjr-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)}(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 }(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 uh1jhjn-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)}(hallocate kernel memoryh]hallocate kernel memory}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM~hj.hhubah}(h]h ]h"]h$]h&]uh1jhj!-hhhj:-hM~ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j1.j4j1.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&]uh1jyhj9.ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5.ubj)}(hhh](j)}(h7``size_t size`` how many bytes of memory are required. h](j)}(h``size_t size``h]j?)}(hjZ.h]h size_t size}(hj\.hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjX.ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjT.ubj)}(hhh]j9)}(h&how many bytes of memory are required.h]h&how many bytes of memory are required.}(hjs.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjo.hMhjp.ubah}(h]h ]h"]h$]h&]uh1jhjT.ubeh}(h]h ]h"]h$]h&]uh1jhjo.hMhjQ.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.hhMhj.ubj)}(hhh]j9)}(hdescribe the allocation contexth]hdescribe the allocation context}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjQ.ubeh}(h]h ]h"]h$]h&]uh1jhj5.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.hhMhj5.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.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5.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 }(hj.hhhNhNubjz)}(h**size**h]hsize}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.ubh of power of two bytes, the alignment is also guaranteed to be at least to the size. For other sizes, the alignment is guaranteed to be at least the largest power-of-two divisor of }(hj.hhhNhNubjz)}(h**size**h]hsize}(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.hhMhj5.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 }(hj&/hhhNhNubjz)}(h **flags**h]hflags}(hj./hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj&/ubh\ argument may be one of the GFP flags defined at include/linux/gfp_types.h and described at }(hj&/hhhNhNubh)}(h;:ref:`Documentation/core-api/mm-api.rst `h]hinline)}(hjB/h]h!Documentation/core-api/mm-api.rst}(hjF/hhhNhNubah}(h]h ](j%stdstd-refeh"]h$]h&]uh1jD/hj@/ubah}(h]h ]h"]h$]h&]refdocj1 refdomainjP/reftyperef refexplicitrefwarnj:mm-api-gfp-flagsuh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj&/ubeh}(h]h ]h"]h$]h&]uh1j8hjb/hMhj5.ubj9)}(h~The recommended usage of the **flags** is described at :ref:`Documentation/core-api/memory-allocation.rst `h](hThe recommended usage of the }(hji/hhhNhNubjz)}(h **flags**h]hflags}(hjq/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhji/ubh is described at }(hji/hhhNhNubh)}(hG:ref:`Documentation/core-api/memory-allocation.rst `h]jE/)}(hj/h]h,Documentation/core-api/memory-allocation.rst}(hj/hhhNhNubah}(h]h ](j%stdstd-refeh"]h$]h&]uh1jD/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.hhMhji/ubeh}(h]h ]h"]h$]h&]uh1j8hj/hMhj5.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.hhMhj5.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.hhMhj/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/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubj)}(h*``GFP_NOWAIT`` Allocation will not sleep. h](j)}(h``GFP_NOWAIT``h]j?)}(hj/h]h GFP_NOWAIT}(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)}(hAllocation will not sleep.h]hAllocation will not sleep.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj/ubj)}(hD``GFP_ATOMIC`` Allocation will not sleep. May use emergency pools. h](j)}(h``GFP_ATOMIC``h]j?)}(hj40h]h GFP_ATOMIC}(hj60hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj20ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj.0ubj)}(hhh]j9)}(h4Allocation will not sleep. May use emergency pools.h]h4Allocation will not sleep. May use emergency pools.}(hjM0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjI0hMhjJ0ubah}(h]h ]h"]h$]h&]uh1jhj.0ubeh}(h]h ]h"]h$]h&]uh1jhjI0hMhj/ubeh}(h]h ]h"]h$]h&]uh1jhj5.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 }(hjm0hhhNhNubjz)}(h **flags**h]hflags}(hju0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjm0ubh:}(hjm0hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5.ubj)}(hhh](j)}(hO``__GFP_ZERO`` Zero the allocated memory before returning. Also see kzalloc(). h](j)}(h``__GFP_ZERO``h]j?)}(hj0h]h __GFP_ZERO}(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.hhMhj0ubj)}(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&]uh1j8hj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubj)}(hN``__GFP_HIGH`` This allocation has high priority and may use emergency pools. h](j)}(h``__GFP_HIGH``h]j?)}(hj0h]h __GFP_HIGH}(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.hhMhj0ubj)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubj)}(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?)}(hj 1h]h __GFP_NOFAIL}(hj 1hhhNhNubah}(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.hhMhj1ubj)}(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).}(hj"1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubj)}(hP``__GFP_NORETRY`` If memory is not immediately available, then give up at once. h](j)}(h``__GFP_NORETRY``h]j?)}(hjC1h]h __GFP_NORETRY}(hjE1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjA1ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj=1ubj)}(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.}(hj\1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjY1ubah}(h]h ]h"]h$]h&]uh1jhj=1ubeh}(h]h ]h"]h$]h&]uh1jhjX1hMhj0ubj)}(h@``__GFP_NOWARN`` If allocation fails, don't issue any warnings. h](j)}(h``__GFP_NOWARN``h]j?)}(hj}1h]h __GFP_NOWARN}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj{1ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjw1ubj)}(hhh]j9)}(h.If allocation fails, don't issue any warnings.h]h0If allocation fails, don’t issue any warnings.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjw1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubj)}(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.hhMhj1ubj)}(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&]uh1j8hj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj0ubeh}(h]h ]h"]h$]h&]uh1jhj5.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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 2hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 2hhhj2hMubj2 )}(hj5 h]h*}(hj,2hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj 2hhhj2hMubh)}(h kmalloc_arrayh]h)}(h kmalloc_arrayh]h kmalloc_array}(hj=2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj92ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj 2hhhj2hMubj)}(h$(size_t n, size_t size, gfp_t flags)h](j)}(hsize_t nh](h)}(hhh]h)}(hsize_th]hsize_t}(hj\2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjY2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj^2modnameN classnameNj\j_)}jb]je)}jXj?2sbc.kmalloc_arrayasbuh1hhjU2ubj)}(h h]h }(hj|2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU2ubh)}(hhh]hn}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjU2ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQ2ubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2modnameN classnameNj\j_)}jb]jx2c.kmalloc_arrayasbuh1hhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hsizeh]hsize}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQ2ubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2modnameN classnameNj\j_)}jb]jx2c.kmalloc_arrayasbuh1hhj2ubj)}(h h]h }(hj 3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hflagsh]hflags}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjQ2ubeh}(h]h ]h"]h$]h&]jj uh1jhj 2hhhj2hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj2hhhj2hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj2hMhj2hhubj )}(hhh]j9)}(hallocate memory for an array.h]hallocate memory for an array.}(hjC3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj@3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j[3j4j[3j5j6j7uh1hhhhjUhNhNubjp)}(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)}(hje3h]h Parameters}(hjg3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjc3ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj_3ubj)}(hhh](j)}(h!``size_t n`` number of elements. h](j)}(h ``size_t n``h]j?)}(hj3h]hsize_t n}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj3ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj~3ubj)}(hhh]j9)}(hnumber of elements.h]hnumber of elements.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj~3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj{3ubj)}(h``size_t size`` element size. h](j)}(h``size_t size``h]j?)}(hj3h]h size_t size}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj3ubah}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj{3ubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc).h](j)}(h``gfp_t flags``h]j?)}(hj3h]h gfp_t flags}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj3ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj3ubj)}(hhh]j9)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj 4ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj 4hMhj{3ubeh}(h]h ]h"]h$]h&]uh1jhj_3ubeh}(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}(hjP4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL4hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubj)}(h h]h }(hj_4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL4hhhj^4hMubj2 )}(hj5 h]h*}(hjm4hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjL4hhhj^4hMubh)}(hkrealloc_arrayh]h)}(hkrealloc_arrayh]hkrealloc_array}(hj~4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjz4ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjL4hhhj^4hMubj)}(h5(void *p, size_t new_n, size_t new_size, gfp_t flags)h](j)}(hvoid *ph](j)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2 )}(hj5 h]h*}(hj4hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4ubh)}(hj> h]hp}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubj)}(h size_t new_nh](h)}(hhh]h)}(hsize_th]hsize_t}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4modnameN classnameNj\j_)}jb]je)}jXj4sbc.krealloc_arrayasbuh1hhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hnew_nh]hnew_n}(hj 5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubj)}(hsize_t new_sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj(5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj*5modnameN classnameNj\j_)}jb]j4c.krealloc_arrayasbuh1hhj!5ubj)}(h h]h }(hjF5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!5ubh)}(hnew_sizeh]hnew_size}(hjT5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjp5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjm5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjr5modnameN classnameNj\j_)}jb]j4c.krealloc_arrayasbuh1hhji5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji5ubh)}(hflagsh]hflags}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhji5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4ubeh}(h]h ]h"]h$]h&]jj uh1jhjL4hhhj^4hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjH4hhhj^4hMubah}(h]jC4ah ](jjeh"]h$]h&]jj)jhuh1hhj^4hMhjE4hhubj )}(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&]uh1jhjE4hhhj^4hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j5j4j5j5j6j7uh1hhhhjUhNhNubjp)}(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)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5ubj)}(hhh](j)}(h6``void *p`` pointer to the memory chunk to reallocate h](j)}(h ``void *p``h]j?)}(hj6h]hvoid *p}(hj 6hhhNhNubah}(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.hhMhj6ubj)}(hhh]j9)}(h)pointer to the memory chunk to reallocateh]h)pointer to the memory chunk to reallocate}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubj)}(h1``size_t new_n`` new number of elements to alloc h](j)}(h``size_t new_n``h]j?)}(hj@6h]h size_t new_n}(hjB6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj>6ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj:6ubj)}(hhh]j9)}(hnew number of elements to alloch]hnew number of elements to alloc}(hjY6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjU6hMhjV6ubah}(h]h ]h"]h$]h&]uh1jhj:6ubeh}(h]h ]h"]h$]h&]uh1jhjU6hMhj5ubj)}(h=``size_t new_size`` new size of a single member of the array h](j)}(h``size_t new_size``h]j?)}(hjy6h]hsize_t new_size}(hj{6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjw6ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjs6ubj)}(hhh]j9)}(h(new size of a single member of the arrayh]h(new size of a single member of the array}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjs6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubj)}(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.hhMhj6ubj)}(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&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubj9)}(h**Description**h]jz)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5ubj9)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5ubj9)}(h*See krealloc_noprof() for further details.h]h*See krealloc_noprof() for further details.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5ubj9)}(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!7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj5ubeh}(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)}(hjJ7h]hkcalloc}(hjT7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjP7ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjL7hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMubah}(h]h ]h"]h$]h&]jj juh1hjjhjH7hhhjg7hMubah}(h]jC7ah ](jjeh"]h$]h&]jj)jhuh1hhjg7hMhjE7hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjE7hhhjg7hMubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3j7j4j7j5j6j7uh1hhhhjUhNhNubj9)}(h``kcalloc (n, size, flags)``h]j?)}(hj7h]hkcalloc (n, size, flags)}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(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.}(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&]uh1jThj7hMhjUhhubjp)}(h**Parameters** ``n`` number of elements. ``size`` element size. ``flags`` the type of memory to allocate (see kmalloc).h](j9)}(h**Parameters**h]jz)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(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?)}(hj7h]hn}(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)}(hnumber of elements.h]hnumber of elements.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubj)}(h``size`` element size. h](j)}(h``size``h]j?)}(hj8h]hsize}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhj 8ubj)}(hhh]j9)}(h element size.h]h element size.}(hj,8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj(8hMhj)8ubah}(h]h ]h"]h$]h&]uh1jhj 8ubeh}(h]h ]h"]h$]h&]uh1jhj(8hMhj7ubj)}(h7``flags`` the type of memory to allocate (see kmalloc).h](j)}(h ``flags``h]j?)}(hjL8h]hflags}(hjN8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJ8ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjF8ubj)}(hhh]j9)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hje8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjb8ubah}(h]h ]h"]h$]h&]uh1jhjF8ubeh}(h]h ]h"]h$]h&]uh1jhja8hMhj7ubeh}(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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhT/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&]uh1jhj8hhhj8hM@ubj2 )}(hj5 h]h*}(hj8hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj8hhhj8hM@ubh)}(hkzalloch]h)}(hkzalloch]hkzalloc}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8hhhj8hM@ubj)}(h(size_t size, gfp_t flags)h](j)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]je)}jXj8sb c.kzallocasbuh1hhj8ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hsizeh]hsize}(hj!9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj8ubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj=9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:9ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj?9modnameN classnameNj\j_)}jb]j9 c.kzallocasbuh1hhj69ubj)}(h h]h }(hj[9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj69ubh)}(hflagsh]hflags}(hji9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj69ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj8ubeh}(h]h ]h"]h$]h&]jj uh1jhj8hhhj8hM@ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj8hhhj8hM@ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj8hM@hj8hhubj )}(hhh]j9)}(h+allocate memory. The memory is set to zero.h]h+allocate memory. The memory is set to zero.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhM@hj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hM@ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j9j4j9j5j6j7uh1hhhhjUhNhNubjp)}(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.hhMDhj9ubj)}(hhh](j)}(h7``size_t size`` how many bytes of memory are required. h](j)}(h``size_t size``h]j?)}(hj9h]h size_t size}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMAhj9ubj)}(hhh]j9)}(h&how many bytes of memory are required.h]h&how many bytes of memory are required.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj9hMAhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMAhj9ubj)}(h=``gfp_t flags`` the type of memory to allocate (see kmalloc).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.hhMChj:ubj)}(hhh]j9)}(h-the type of memory to allocate (see kmalloc).h]h-the type of memory to allocate (see kmalloc).}(hj&:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMBhj#:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj":hMChj9ubeh}(h]h ]h"]h$]h&]uh1jhj9ubeh}(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}(hjj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjg:ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjl:modnameN classnameNj\j_)}jb]je)}jXkmalloc_size_roundupsbc.kmalloc_size_roundupasbuh1hhjc: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&]uh1jhjc:hhhj:hMubh)}(hkmalloc_size_rounduph]h)}(hj:h]hkmalloc_size_roundup}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjc:hhhj:hMubj)}(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]j:c.kmalloc_size_roundupasbuh1hhj: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:ubah}(h]h ]h"]h$]h&]jj uh1jhjc:hhhj:hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj_:hhhj:hMubah}(h]jZ:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hMhj\:hhubj )}(hhh]j9)}(h0Report allocation bucket size for the given sizeh]h0Report allocation bucket size for the given size}(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** ``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)}(hj4;h]h Parameters}(hj6;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2;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)}(h2``size_t size`` Number of bytes to round up from. h](j)}(h``size_t size``h]j?)}(hjS;h]h size_t size}(hjU;hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQ;ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:37: ./include/linux/slab.hhMhjM;ubj)}(hhh]j9)}(h!Number of bytes to round up from.h]h!Number of bytes to round up from.}(hjl;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjh;hMhji;ubah}(h]h ]h"]h$]h&]uh1jhjM;ubeh}(h]h ]h"]h$]h&]uh1jhjh;hMhjJ;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.hhMhj.;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.hhMhj.;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.hhMhj.;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}(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<hMubj2 )}(hj5 h]h*}(hj<hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj;hhhj<hMubh)}(hkmem_cache_alloc_nodeh]h)}(hkmem_cache_alloc_nodeh]hkmem_cache_alloc_node}(hj"<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj;hhhj<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 }(hjK<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:<ubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hj\<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjY<ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj^<modnameN classnameNj\j_)}jb]je)}jXj$<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 uh1jhj6<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]jx<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 uh1jhj6<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 uh1jhj6<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(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&]uh1jhj;hhhj<hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jV=j4jV=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}(hjb=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.chMhjZ=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.chMhjy=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&]uh1jhjy=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjv=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=hMhjv=ubj)}(h-``int node`` node number of the target node. h](j)}(h ``int node``h]j?)}(hj=h]hint node}(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)}(hnode number of the target node.h]hnode number of the target node.}(hj >hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjv=ubeh}(h]h ]h"]h$]h&]uh1jhjZ=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.chMhjZ=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.}(hjB>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjZ=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.}(hjQ>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjZ=ubj9)}(h **Return**h]jz)}(hjb>h]hReturn}(hjd>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.chMhjZ=ubj9)}(h6pointer to the new object or ``NULL`` in case of errorh](hpointer to the new object or }(hjx>hhhNhNubj?)}(h``NULL``h]hNULL}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjx>ubh in case of error}(hjx>hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjZ=ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmalloc_nolock (C function)c.kmalloc_nolockhNtauh1hhjUhhhNhNubh)}(hhh](h)}(h>void * kmalloc_nolock (size_t size, gfp_t gfp_flags, int node)h]h)}(hhhhNhNubah}(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>hMubj2 )}(hj5 h]h*}(hj>hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj>hhhj>hMubh)}(hkmalloc_nolockh]h)}(hkmalloc_nolockh]hkmalloc_nolock}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj>hhhj>hMubj)}(h((size_t size, gfp_t gfp_flags, int node)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>sbc.kmalloc_nolockasbuh1hhj>ubj)}(h h]h }(hj&?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hsizeh]hsize}(hj4?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj>ubj)}(hgfp_t gfp_flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjP?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjM?ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjR?modnameN classnameNj\j_)}jb]j"?c.kmalloc_nolockasbuh1hhjI?ubj)}(h h]h }(hjn?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI?ubh)}(h gfp_flagsh]h gfp_flags}(hj|?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjI?ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj>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 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)}(h2Allocate an object of given size from any context.h]h2Allocate an object of given size from any context.}(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)}(hXl**Parameters** ``size_t size`` size to allocate ``gfp_t gfp_flags`` GFP flags. Only __GFP_ACCOUNT, __GFP_ZERO, __GFP_NO_OBJ_EXT allowed. ``int node`` node number of the target node. **Return** pointer to the new object or NULL in case of error. NULL does not mean EBUSY or EAGAIN. It means ENOMEM. There is no reason to call it again and expect !NULL.h](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!``size_t size`` size 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&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj@ubj)}(hhh]j9)}(hsize to allocateh]hsize to allocate}(hj5@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1@hMhj2@ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj1@hMhj@ubj)}(hY``gfp_t gfp_flags`` GFP flags. Only __GFP_ACCOUNT, __GFP_ZERO, __GFP_NO_OBJ_EXT allowed. h](j)}(h``gfp_t gfp_flags``h]j?)}(hjU@h]hgfp_t gfp_flags}(hjW@hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjS@ubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjO@ubj)}(hhh]j9)}(hDGFP flags. Only __GFP_ACCOUNT, __GFP_ZERO, __GFP_NO_OBJ_EXT allowed.h]hDGFP flags. Only __GFP_ACCOUNT, __GFP_ZERO, __GFP_NO_OBJ_EXT allowed.}(hjn@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjk@ubah}(h]h ]h"]h$]h&]uh1jhjO@ubeh}(h]h ]h"]h$]h&]uh1jhjj@hMhj@ubj)}(h-``int node`` node number of the target node. h](j)}(h ``int node``h]j?)}(hj@h]hint node}(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)}(hnode number of the target node.h]hnode number of the target node.}(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 **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.chM!hj?ubj9)}(hpointer to the new object or NULL in case of error. NULL does not mean EBUSY or EAGAIN. It means ENOMEM. There is no reason to call it again and expect !NULL.h]hpointer to the new object or NULL in case of error. NULL does not mean EBUSY or EAGAIN. It means ENOMEM. There is no reason to call it again and expect !NULL.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM!hj?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}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj AhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMGubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj AhhhjAhMGubh)}(hkmem_cache_freeh]h)}(hkmem_cache_freeh]hkmem_cache_free}(hj0AhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,Aubah}(h]h ](jjeh"]h$]h&]jj uh1hhj AhhhjAhMGubj)}(h(struct kmem_cache *s, void *x)h](j)}(hstruct kmem_cache *sh](j!)}(hj$h]hstruct}(hjLAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjHAubj)}(h h]h }(hjYAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHAubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hjjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgAubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjlAmodnameN classnameNj\j_)}jb]je)}jXj2Asbc.kmem_cache_freeasbuh1hhjHAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHAubj2 )}(hj5 h]h*}(hjAhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjHAubh)}(hj<h]hs}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDAubj)}(hvoid *xh](j)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2 )}(hj5 h]h*}(hjAhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjAubh)}(hxh]hx}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDAubeh}(h]h ]h"]h$]h&]jj uh1jhj AhhhjAhMGubeh}(h]h ]h"]h$]h&]jj juh1hjjhjAhhhjAhMGubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1hhjAhMGhjAhhubj )}(hhh]j9)}(hDeallocate an objecth]hDeallocate an object}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMGhj Bhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjAhMGubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j(Bj4j(Bj5j6j7uh1hhhhjUhNhNubjp)}(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)}(hj2Bh]h Parameters}(hj4BhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0Bubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMKhj,Bubj)}(hhh](j)}(h<``struct kmem_cache *s`` The cache the allocation was from. h](j)}(h``struct kmem_cache *s``h]j?)}(hjQBh]hstruct kmem_cache *s}(hjSBhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjOBubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMHhjKBubj)}(hhh]j9)}(h"The cache the allocation was from.h]h"The cache the allocation was from.}(hjjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjfBhMHhjgBubah}(h]h ]h"]h$]h&]uh1jhjKBubeh}(h]h ]h"]h$]h&]uh1jhjfBhMHhjHBubj)}(h-``void *x`` The previously allocated object. h](j)}(h ``void *x``h]j?)}(hjBh]hvoid *x}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMIhjBubj)}(hhh]j9)}(h The previously allocated object.h]h The previously allocated object.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjBhMIhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMIhjHBubeh}(h]h ]h"]h$]h&]uh1jhj,Bubj9)}(h**Description**h]jz)}(hjBh]h Description}(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.chMKhj,Bubj9)}(h>Free an object which was previously allocated from this cache.h]h>Free an object which was previously allocated from this cache.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMJhj,Bubeh}(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 ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjChMubh)}(hkfreeh]h)}(hkfreeh]hkfree}(hj+ChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'Cubah}(h]h ](jjeh"]h$]h&]jj uh1hhjChhhjChMubj)}(h(const void *object)h]j)}(hconst void *objecth](j!)}(hjh]hconst}(hjGChhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjCCubj)}(h h]h }(hjTChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCCubj)}(hvoidh]hvoid}(hjbChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCCubj)}(h h]h }(hjpChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCCubj2 )}(hj5 h]h*}(hj~ChhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjCCubh)}(hobjecth]hobject}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?Cubah}(h]h ]h"]h$]h&]jj uh1jhjChhhjChMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjChhhjChMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjChMhjBhhubj )}(hhh]j9)}(h free previously allocated memoryh]h free previously allocated memory}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjChMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jCj4jCj5j6j7uh1hhhhjUhNhNubjp)}(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)}(hjCh]h Parameters}(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.chMhjCubj)}(hhh]j)}(hK``const void *object`` pointer returned by kmalloc() or kmem_cache_alloc() h](j)}(h``const void *object``h]j?)}(hjCh]hconst void *object}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjCubj)}(hhh]j9)}(h3pointer returned by kmalloc() or kmem_cache_alloc()h]h3pointer returned by kmalloc() or kmem_cache_alloc()}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj DhMhj Dubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj DhMhjCubah}(h]h ]h"]h$]h&]uh1jhjCubj9)}(h**Description**h]jz)}(hj1Dh]h Description}(hj3DhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/Dubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjCubj9)}(h1If **object** is NULL, no operation is performed.h](hIf }(hjGDhhhNhNubjz)}(h **object**h]hobject}(hjODhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGDubh$ is NULL, no operation is performed.}(hjGDhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ krealloc_node_align (C function)c.krealloc_node_alignhNtauh1hhjUhhhNhNubh)}(hhh](h)}(hfvoid * krealloc_node_align (const void *p, size_t new_size, unsigned long align, gfp_t flags, int nid)h]h)}(hdvoid *krealloc_node_align(const void *p, size_t new_size, unsigned long align, gfp_t flags, int nid)h](j)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMOubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjDhMOubj2 )}(hj5 h]h*}(hjDhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjDhhhjDhMOubh)}(hkrealloc_node_alignh]h)}(hkrealloc_node_alignh]hkrealloc_node_align}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubah}(h]h ](jjeh"]h$]h&]jj uh1hhjDhhhjDhMOubj)}(hK(const void *p, size_t new_size, unsigned long align, gfp_t flags, int nid)h](j)}(h const void *ph](j!)}(hjh]hconst}(hjDhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2 )}(hj5 h]h*}(hj EhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjDubh)}(hj> h]hp}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(hsize_t new_sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hj1EhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.Eubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3EmodnameN classnameNj\j_)}jb]je)}jXjDsbc.krealloc_node_alignasbuh1hhj*Eubj)}(h h]h }(hjQEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*Eubh)}(hnew_sizeh]hnew_size}(hj_EhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*Eubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(hunsigned long alignh](j)}(hunsignedh]hunsigned}(hjxEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtEubj)}(hlongh]hlong}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtEubh)}(halignh]halign}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtEubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(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]jMEc.krealloc_node_alignasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hflagsh]hflags}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(hint nidh](j)}(hinth]hint}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Fubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Fubh)}(hnidh]hnid}(hj-FhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Fubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubeh}(h]h ]h"]h$]h&]jj uh1jhjDhhhjDhMOubeh}(h]h ]h"]h$]h&]jj juh1hjjhjDhhhjDhMOubah}(h]j{Dah ](jjeh"]h$]h&]jj)jhuh1hhjDhMOhj}Dhhubj )}(hhh]j9)}(h6reallocate memory. The contents will remain unchanged.h]h6reallocate memory. The contents will remain unchanged.}(hjWFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMOhjTFhhubah}(h]h ]h"]h$]h&]uh1jhj}DhhhjDhMOubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3joFj4joFj5j6j7uh1hhhhjUhNhNubjp)}(hX+**Parameters** ``const void *p`` object to reallocate memory for. ``size_t new_size`` how many bytes of memory are required. ``unsigned long align`` desired alignment. ``gfp_t flags`` the type of memory to allocate. ``int nid`` NUMA node or NUMA_NO_NODE **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. Only alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details. 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)}(hjyFh]h Parameters}(hj{FhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwFubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMShjsFubj)}(hhh](j)}(h3``const void *p`` object to reallocate memory for. h](j)}(h``const void *p``h]j?)}(hjFh]h const void *p}(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.chMPhjFubj)}(hhh]j9)}(h object to reallocate memory for.h]h object to reallocate memory for.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFhMPhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMPhjFubj)}(h;``size_t new_size`` how many bytes of memory are required. h](j)}(h``size_t new_size``h]j?)}(hjFh]hsize_t new_size}(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.chMQhjFubj)}(hhh]j9)}(h&how many bytes of memory are required.h]h&how many bytes of memory are required.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFhMQhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMQhjFubj)}(h+``unsigned long align`` desired alignment. h](j)}(h``unsigned long align``h]j?)}(hj Gh]hunsigned long align}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMRhjGubj)}(hhh]j9)}(hdesired alignment.h]hdesired alignment.}(hj#GhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhMRhj Gubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMRhjFubj)}(h0``gfp_t flags`` the type of memory to allocate. h](j)}(h``gfp_t flags``h]j?)}(hjCGh]h gfp_t flags}(hjEGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjAGubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMShj=Gubj)}(hhh]j9)}(hthe type of memory to allocate.h]hthe type of memory to allocate.}(hj\GhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjXGhMShjYGubah}(h]h ]h"]h$]h&]uh1jhj=Gubeh}(h]h ]h"]h$]h&]uh1jhjXGhMShjFubj)}(h&``int nid`` NUMA node or NUMA_NO_NODE h](j)}(h ``int nid``h]j?)}(hj|Gh]hint nid}(hj~GhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjzGubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMThjvGubj)}(hhh]j9)}(hNUMA node or NUMA_NO_NODEh]hNUMA node or NUMA_NO_NODE}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhMThjGubah}(h]h ]h"]h$]h&]uh1jhjvGubeh}(h]h ]h"]h$]h&]uh1jhjGhMThjFubeh}(h]h ]h"]h$]h&]uh1jhjsFubj9)}(h**Description**h]jz)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMVhjsFubj9)}(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 }(hjGhhhNhNubjz)}(h**p**h]hp}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubh is }(hjGhhhNhNubj?)}(h``NULL``h]hNULL}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubh1, krealloc() behaves exactly like kmalloc(). If }(hjGhhhNhNubjz)}(h **new_size**h]hnew_size}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubh is 0 and }(hjGhhhNhNubjz)}(h**p**h]hp}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubh is not a }(hjGhhhNhNubj?)}(h``NULL``h]hNULL}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubh) pointer, the object pointed to is freed.=}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMUhjsFubj9)}(hOnly alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details.h]hOnly alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details.}(hj6HhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMXhjsFubj9)}(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.}(hjEHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM[hjsFubj9)}(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:}(hjTHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM`hjsFubj)}(ht new bucket 0 size size |--------|----------------| | keep | zero |h]ht new bucket 0 size size |--------|----------------| | keep | zero |}hjcHsbah}(h]h ]h"]h$]h&]jj uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMehjsFubj9)}(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’.}(hjrHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMjhjsFubj9)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMnhjsFubj9)}(h **Return**h]jz)}(hjHh]hReturn}(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.chMqhjsFubj9)}(hhjHubh in case of error}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMrhjsFubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__kvmalloc_node (C function)c.__kvmalloc_nodehNtauh1hhjUhhhNhNubh)}(hhh](h)}(hLvoid * __kvmalloc_node (size, b, unsigned long align, gfp_t flags, int node)h]h)}(hJvoid *__kvmalloc_node(size, b, unsigned long align, gfp_t flags, int node)h](j)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhMubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjHhhhjHhMubh)}(h__kvmalloc_nodeh]h)}(h__kvmalloc_nodeh]h__kvmalloc_node}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ](jjeh"]h$]h&]jj uh1hhjHhhhjHhMubj)}(h5(size, b, unsigned long align, gfp_t flags, int node)h](j)}(hsizeh]h)}(hhh]h)}(hsizeh]hsize}(hj6IhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3Iubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8ImodnameN classnameNj\j_)}jb]je)}jXjIsbc.__kvmalloc_nodeasbuh1hhj/Iubah}(h]h ]h"]h$]h&]noemphjj uh1jhj+Iubj)}(hbh]h)}(hhh]h)}(hbh]hb}(hjdIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaIubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjfImodnameN classnameNj\j_)}jb]jRIc.__kvmalloc_nodeasbuh1hhj]Iubah}(h]h ]h"]h$]h&]noemphjj uh1jhj+Iubj)}(hunsigned long alignh](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)}(halignh]halign}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj+Iubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjImodnameN classnameNj\j_)}jb]jRIc.__kvmalloc_nodeasbuh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hflagsh]hflags}(hj JhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj+Iubj)}(hint nodeh](j)}(hinth]hint}(hj&JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Jubj)}(h h]h }(hj4JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Jubh)}(hnodeh]hnode}(hjBJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"Jubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj+Iubeh}(h]h ]h"]h$]h&]jj uh1jhjHhhhjHhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjHhhhjHhMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjHhMhjHhhubj )}(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.}(hjlJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjiJhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jJj4jJj5j6j7uh1hhhhjUhNhNubjp)}(hX**Parameters** ``size`` size of the request. ``b`` which set of kmalloc buckets to allocate from. ``unsigned long align`` desired alignment. ``gfp_t flags`` gfp mask for the allocation - must be compatible (superset) with GFP_KERNEL. ``int node`` numa node to allocate from **Description** Only alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details. 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)}(hjJh]h Parameters}(hjJhhhNhNubah}(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.chMhjJubj)}(hhh](j)}(h``size`` size of the request. h](j)}(h``size``h]j?)}(hjJh]hsize}(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)}(hsize of the request.h]hsize of the request.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubj)}(h5``b`` which set of kmalloc buckets to allocate from. h](j)}(h``b``h]j?)}(hjJh]hb}(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.which set of kmalloc buckets to allocate from.h]h.which set of kmalloc buckets to allocate from.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubj)}(h+``unsigned long align`` desired alignment. h](j)}(h``unsigned long align``h]j?)}(hjKh]hunsigned long align}(hj!KhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjKubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjKubj)}(hhh]j9)}(hdesired alignment.h]hdesired alignment.}(hj8KhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4KhMhj5Kubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhj4KhMhjJubj)}(h]``gfp_t flags`` gfp mask for the allocation - must be compatible (superset) with GFP_KERNEL. h](j)}(h``gfp_t flags``h]j?)}(hjXKh]h gfp_t flags}(hjZKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVKubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjRKubj)}(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.}(hjqKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmKhMhjnKubah}(h]h ]h"]h$]h&]uh1jhjRKubeh}(h]h ]h"]h$]h&]uh1jhjmKhMhjJubj)}(h(``int node`` numa node to allocate from h](j)}(h ``int node``h]j?)}(hjKh]hint node}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjKubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjKubj)}(hhh]j9)}(hnuma node to allocate fromh]hnuma node to allocate from}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjJubeh}(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&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjJubj9)}(hOnly alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details.h]hOnly alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjJubj9)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjJubj9)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjJubj9)}(h **Return**h]jz)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjJubj9)}(h>pointer to the allocated memory of ``NULL`` in case of failureh](h#pointer to the allocated memory of }(hj'LhhhNhNubj?)}(h``NULL``h]hNULL}(hj/LhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj'Lubh in case of failure}(hj'LhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjJubeh}(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}(hjhLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdLhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjwLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdLhhhjvLhMubh)}(hkvfreeh]h)}(hkvfreeh]hkvfree}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ](jjeh"]h$]h&]jj uh1hhjdLhhhjvLhMubj)}(h(const void *addr)h]j)}(hconst void *addrh](j!)}(hjh]hconst}(hjLhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2 )}(hj5 h]h*}(hjLhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjLubh)}(haddrh]haddr}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjLubah}(h]h ]h"]h$]h&]jj uh1jhjdLhhhjvLhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj`LhhhjvLhMubah}(h]j[Lah ](jjeh"]h$]h&]jj)jhuh1hhjvLhMhj]Lhhubj )}(hhh]j9)}(h Free memory.h]h Free memory.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhj]LhhhjvLhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j+Mj4j+Mj5j6j7uh1hhhhjUhNhNubjp)}(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)}(hj5Mh]h Parameters}(hj7MhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3Mubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj/Mubj)}(hhh]j)}(h2``const void *addr`` Pointer to allocated memory. h](j)}(h``const void *addr``h]j?)}(hjTMh]hconst void *addr}(hjVMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRMubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjNMubj)}(hhh]j9)}(hPointer to allocated memory.h]hPointer to allocated memory.}(hjmMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjiMhMhjjMubah}(h]h ]h"]h$]h&]uh1jhjNMubeh}(h]h ]h"]h$]h&]uh1jhjiMhMhjKMubah}(h]h ]h"]h$]h&]uh1jhj/Mubj9)}(h**Description**h]jz)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj/Mubj9)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj/Mubj9)}(h **Context**h]jz)}(hjMh]hContext}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj/Mubj9)}(h5Either preemptible task context or not-NMI interrupt.h]h5Either preemptible task context or not-NMI interrupt.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj/Mubeh}(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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hj NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj NhMubh)}(hkvfree_sensitiveh]h)}(hkvfree_sensitiveh]hkvfree_sensitive}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ](jjeh"]h$]h&]jj uh1hhjMhhhj NhMubj)}(h(const void *addr, size_t len)h](j)}(hconst void *addrh](j!)}(hjh]hconst}(hj8NhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4Nubj)}(h h]h }(hjENhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Nubj)}(hvoidh]hvoid}(hjSNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Nubj)}(h h]h }(hjaNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Nubj2 )}(hj5 h]h*}(hjoNhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4Nubh)}(haddrh]haddr}(hj|NhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4Nubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj0Nubj)}(h size_t lenh](h)}(hhh]h)}(hsize_th]hsize_t}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjNmodnameN classnameNj\j_)}jb]je)}jXjNsbc.kvfree_sensitiveasbuh1hhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hlenh]hlen}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj0Nubeh}(h]h ]h"]h$]h&]jj uh1jhjMhhhj NhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjMhhhj NhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1hhj NhMhjMhhubj )}(hhh]j9)}(h4Free a data object containing sensitive information.h]h4Free a data object containing sensitive information.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhj NhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jOj4jOj5j6j7uh1hhhhjUhNhNubjp)}(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)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj Oubj)}(hhh](j)}(h=``const void *addr`` address of the data object to be freed. h](j)}(h``const void *addr``h]j?)}(hj1Oh]hconst void *addr}(hj3OhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/Oubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj+Oubj)}(hhh]j9)}(h'address of the data object to be freed.h]h'address of the data object to be freed.}(hjJOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFOhMhjGOubah}(h]h ]h"]h$]h&]uh1jhj+Oubeh}(h]h ]h"]h$]h&]uh1jhjFOhMhj(Oubj)}(h*``size_t len`` length of the data object. h](j)}(h``size_t len``h]j?)}(hjjOh]h size_t len}(hjlOhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjhOubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjdOubj)}(hhh]j9)}(hlength of the data object.h]hlength of the data object.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjOhMhjOubah}(h]h ]h"]h$]h&]uh1jhjdOubeh}(h]h ]h"]h$]h&]uh1jhjOhMhj(Oubeh}(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&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj Oubj9)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj Oubeh}(h]h ] kernelindentah"]h$]h&]uh1johjUhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!kvrealloc_node_align (C function)c.kvrealloc_node_alignhNtauh1hhjUhhhNhNubh)}(hhh](h)}(hcvoid * kvrealloc_node_align (const void *p, size_t size, unsigned long align, gfp_t flags, int nid)h]h)}(havoid *kvrealloc_node_align(const void *p, size_t size, unsigned long align, gfp_t flags, int nid)h](j)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjOhMubj2 )}(hj5 h]h*}(hjPhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjOhhhjOhMubh)}(hkvrealloc_node_alignh]h)}(hkvrealloc_node_alignh]hkvrealloc_node_align}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ](jjeh"]h$]h&]jj uh1hhjOhhhjOhMubj)}(hG(const void *p, size_t size, unsigned long align, gfp_t flags, int nid)h](j)}(h const void *ph](j!)}(hjh]hconst}(hj4PhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj0Pubj)}(h h]h }(hjAPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Pubj)}(hvoidh]hvoid}(hjOPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Pubj)}(h h]h }(hj]PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Pubj2 )}(hj5 h]h*}(hjkPhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj0Pubh)}(hj> h]hp}(hjxPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0Pubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,Pubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjPmodnameN classnameNj\j_)}jb]je)}jXjPsbc.kvrealloc_node_alignasbuh1hhjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hsizeh]hsize}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,Pubj)}(hunsigned long alignh](j)}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(halignh]halign}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,Pubj)}(h gfp_t flagsh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj.QhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+Qubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj0QmodnameN classnameNj\j_)}jb]jPc.kvrealloc_node_alignasbuh1hhj'Qubj)}(h h]h }(hjLQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Qubh)}(hflagsh]hflags}(hjZQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'Qubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,Pubj)}(hint nidh](j)}(hinth]hint}(hjsQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoQubh)}(hnidh]hnid}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,Pubeh}(h]h ]h"]h$]h&]jj uh1jhjOhhhjOhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjOhhhjOhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjOhMhjOhhubj )}(hhh]j9)}(h,reallocate memory; contents remain unchangedh]h,reallocate memory; contents remain unchanged}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjOhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jQj4jQj5j6j7uh1hhhhjUhNhNubjp)}(hX\**Parameters** ``const void *p`` object to reallocate memory for ``size_t size`` the size to reallocate ``unsigned long align`` desired alignment ``gfp_t flags`` the flags for the page level allocator ``int nid`` NUMA node id **Description** If **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. Only alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details. 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. In any case, the contents of the object pointed to are preserved up to the lesser of the new and old sizes. This function must not be called concurrently with itself or kvfree() for the same memory allocation. **Return** pointer to the allocated memory or ``NULL`` in case of errorh](j9)}(h**Parameters**h]jz)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjQubj)}(hhh](j)}(h2``const void *p`` object to reallocate memory for h](j)}(h``const void *p``h]j?)}(hjQh]h const void *p}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjQubj)}(hhh]j9)}(hobject to reallocate memory forh]hobject to reallocate memory for}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjQubj)}(h'``size_t size`` the size to reallocate h](j)}(h``size_t size``h]j?)}(hj3Rh]h size_t size}(hj5RhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1Rubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhj-Rubj)}(hhh]j9)}(hthe size to reallocateh]hthe size to reallocate}(hjLRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjHRhMhjIRubah}(h]h ]h"]h$]h&]uh1jhj-Rubeh}(h]h ]h"]h$]h&]uh1jhjHRhMhjQubj)}(h*``unsigned long align`` desired alignment h](j)}(h``unsigned long align``h]j?)}(hjlRh]hunsigned long align}(hjnRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjRubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjfRubj)}(hhh]j9)}(hdesired alignmenth]hdesired alignment}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjfRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjQubj)}(h7``gfp_t flags`` the flags for the page level allocator h](j)}(h``gfp_t flags``h]j?)}(hjRh]h gfp_t flags}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjRubj)}(hhh]j9)}(h&the flags for the page level allocatorh]h&the flags for the page level allocator}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjQubj)}(h``int nid`` NUMA node id h](j)}(h ``int nid``h]j?)}(hjRh]hint nid}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjRubj)}(hhh]j9)}(h NUMA node idh]h NUMA node id}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjRhMhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjQubeh}(h]h ]h"]h$]h&]uh1jhjQubj9)}(h**Description**h]jz)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjQubj9)}(hIf **p** is ``NULL``, kvrealloc() behaves exactly like kvmalloc(). If **size** is 0 and **p** is not a ``NULL`` pointer, the object pointed to is freed.h](hIf }(hj/ShhhNhNubjz)}(h**p**h]hp}(hj7ShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/Subh is }(hj/ShhhNhNubj?)}(h``NULL``h]hNULL}(hjIShhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/Subh2, kvrealloc() behaves exactly like kvmalloc(). If }(hj/ShhhNhNubjz)}(h**size**h]hsize}(hj[ShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/Subh is 0 and }(hj/ShhhNhNubjz)}(h**p**h]hp}(hjmShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/Subh is not a }(hj/ShhhNhNubj?)}(h``NULL``h]hNULL}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/Subh) pointer, the object pointed to is freed.}(hj/ShhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjQubj9)}(hOnly alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details.h]hOnly alignments up to those guaranteed by kmalloc() will be honored. Please see Documentation/core-api/memory-allocation.rst for more details.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjQubj9)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chM hjQubj9)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjQubj9)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjQubj9)}(h **Return**h]jz)}(hjSh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjQubj9)}(hhjSubh in case of error}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:40: ./mm/slub.chMhjQubeh}(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}(hj-ThhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj)ThhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMubj)}(h h]h }(hj;ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Thhhj:ThMubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hjLThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjITubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjNTmodnameN classnameNj\j_)}jb]je)}jX__kmem_cache_create_argssbc.__kmem_cache_create_argsasbuh1hhj)Thhhj:ThMubj)}(h h]h }(hjmThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Thhhj:ThMubj2 )}(hj5 h]h*}(hj{ThhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj)Thhhj:ThMubh)}(h__kmem_cache_create_argsh]h)}(hjjTh]h__kmem_cache_create_args}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubah}(h]h ](jjeh"]h$]h&]jj uh1hhj)Thhhj:ThMubj)}(h^(const char *name, unsigned int object_size, struct kmem_cache_args *args, slab_flags_t flags)h](j)}(hconst char *nameh](j!)}(hjh]hconst}(hjThhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hcharh]hchar}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2 )}(hj5 h]h*}(hjThhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubh)}(hnameh]hname}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjTubj)}(hunsigned int object_sizeh](j)}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hinth]hint}(hj UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hj.UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(h object_sizeh]h object_size}(hj ah"]h$]h&]uh1j1 hjQUubh)}(hargsh]hargs}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQUubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjTubj)}(hslab_flags_t flagsh](h)}(hhh]h)}(h slab_flags_th]h slab_flags_t}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjUmodnameN classnameNj\j_)}jb]jhTc.__kmem_cache_create_argsasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hflagsh]hflags}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjTubeh}(h]h ]h"]h$]h&]jj uh1jhj)Thhhj:ThMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj%Thhhj:ThMubah}(h]j Tah ](jjeh"]h$]h&]jj)jhuh1hhj:ThMhj"Thhubj )}(hhh]j9)}(hCreate a kmem cache.h]hCreate a kmem cache.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhj"Thhhj:ThMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j6Vj4j6Vj5j6j7uh1hhhhjUhNhNubjp)}(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)}(hj@Vh]h Parameters}(hjBVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj>Vubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj:Vubj)}(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?)}(hj_Vh]hconst char *name}(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.chMhjYVubj)}(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.}(hjxVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjtVhMhjuVubah}(h]h ]h"]h$]h&]uh1jhjYVubeh}(h]h ]h"]h$]h&]uh1jhjtVhMhjVVubj)}(hN``unsigned int object_size`` The size of objects to be created in this cache. h](j)}(h``unsigned int object_size``h]j?)}(hjVh]hunsigned int object_size}(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.chMhjVubj)}(hhh]j9)}(h0The size of objects to be created in this cache.h]h0The size of objects to be created in this cache.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjVhMhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjVVubj)}(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?)}(hjVh]hstruct kmem_cache_args *args}(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.chMhjVubj)}(hhh]j9)}(heAdditional arguments for the cache creation (see :c:type:`struct kmem_cache_args `).h](h1Additional arguments for the cache creation (see }(hjVhhhNhNubh)}(h2:c:type:`struct kmem_cache_args `h]j?)}(hjVh]hstruct kmem_cache_args}(hjVhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjVubah}(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.chMhjVubh).}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjWhMhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjVVubj)}(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?)}(hj.Wh]hslab_flags_t flags}(hj0WhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj,Wubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj(Wubj)}(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.}(hjGWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjDWubah}(h]h ]h"]h$]h&]uh1jhj(Wubeh}(h]h ]h"]h$]h&]uh1jhjCWhMhjVVubeh}(h]h ]h"]h$]h&]uh1jhj:Vubj9)}(h**Description**h]jz)}(hjjWh]h Description}(hjlWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhWubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM hj:Vubj9)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj:Vubj9)}(hCommonly used **flags**:h](hCommonly used }(hjWhhhNhNubjz)}(h **flags**h]hflags}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjWubh:}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM hj:Vubj9)}(h6:c:type:`SLAB_ACCOUNT` - Account allocations to memcg.h](h)}(h:c:type:`SLAB_ACCOUNT`h]j?)}(hjWh]h SLAB_ACCOUNT}(hjWhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjWubah}(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 hjWubh - Account allocations to memcg.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjWhM hj:Vubj9)}(hF:c:type:`SLAB_HWCACHE_ALIGN` - Align objects on cache line boundaries.h](h)}(h:c:type:`SLAB_HWCACHE_ALIGN`h]j?)}(hjWh]hSLAB_HWCACHE_ALIGN}(hjWhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjWubah}(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.chMhjWubh* - Align objects on cache line boundaries.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjXhMhj:Vubj9)}(h9:c:type:`SLAB_RECLAIM_ACCOUNT` - Objects are reclaimable.h](h)}(h:c:type:`SLAB_RECLAIM_ACCOUNT`h]j?)}(hjXh]hSLAB_RECLAIM_ACCOUNT}(hjXhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjXubah}(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 Xubh - Objects are reclaimable.}(hj XhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj/XhMhj:Vubj9)}(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?)}(hj@Xh]hSLAB_TYPESAFE_BY_RCU}(hjBXhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hj>Xubah}(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.chMhj:Xubhp - Slab page (not individual objects) freeing delayed by a grace period - see the full description before using.}(hj:XhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj]XhMhj:Vubj9)}(h **Context**h]jz)}(hjjXh]hContext}(hjlXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhXubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj:Vubj9)}(h ah"]h$]h&]uh1j1 hjXhhhjXhMoubh)}(hkmem_buckets_createh]h)}(hjXh]hkmem_buckets_create}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ](jjeh"]h$]h&]jj uh1hhjXhhhjXhMoubj)}(hk(const char *name, slab_flags_t flags, unsigned int useroffset, unsigned int usersize, void (*ctor)(void*))h](j)}(hconst char *nameh](j!)}(hjh]hconst}(hj5YhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj1Yubj)}(h h]h }(hjBYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Yubj)}(hcharh]hchar}(hjPYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Yubj)}(h h]h }(hj^YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Yubj2 )}(hj5 h]h*}(hjlYhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj1Yubh)}(hnameh]hname}(hjyYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1Yubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-Yubj)}(hslab_flags_t flagsh](h)}(hhh]h)}(h slab_flags_th]h slab_flags_t}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjYmodnameN classnameNj\j_)}jb]jXc.kmem_buckets_createasbuh1hhjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hflagsh]hflags}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-Yubj)}(hunsigned int useroffseth](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)}(h useroffseth]h useroffset}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-Yubj)}(hunsigned int usersizeh](j)}(hunsignedh]hunsigned}(hj+ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Zubj)}(h h]h }(hj9ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Zubj)}(hinth]hint}(hjGZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Zubj)}(h h]h }(hjUZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Zubh)}(husersizeh]husersize}(hjcZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'Zubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-Yubj)}(hvoid (*ctor)(void*)h](j)}(hvoidh]hvoid}(hj|ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxZubj2 )}(hj!h]h(}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxZubj2 )}(hj5 h]h*}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxZubh)}(hctorh]hctor}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxZubj2 )}(hjD!h]h)}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxZubj2 )}(hj!h]h(}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxZubj)}(hvoidh]hvoid}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxZubj2 )}(hj5 h]h*}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxZubj2 )}(hjD!h]h)}(hjZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-Yubeh}(h]h ]h"]h$]h&]jj uh1jhjXhhhjXhMoubeh}(h]h ]h"]h$]h&]jj juh1hjjhjXhhhjXhMoubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjXhMohjXhhubj )}(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()}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMohjhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhMoubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j6[j4j6[j5j6j7uh1hhhhjUhNhNubjp)}(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)}(hj@[h]h Parameters}(hjB[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.chMshj:[ubj)}(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?)}(hj_[h]hconst char *name}(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:43: ./mm/slab_common.chMrhjY[ubj)}(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.}(hjx[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMqhju[ubah}(h]h ]h"]h$]h&]uh1jhjY[ubeh}(h]h ]h"]h$]h&]uh1jhjt[hMrhjV[ubj)}(hI``slab_flags_t flags`` SLAB flags (see kmem_cache_create() for details). 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMshj[ubj)}(hhh]j9)}(h1SLAB flags (see kmem_cache_create() for details).h]h1SLAB flags (see kmem_cache_create() for details).}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hMshj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMshjV[ubj)}(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[h]hunsigned int useroffset}(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.chMuhj[ubj)}(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[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMthj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMuhjV[ubj)}(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 \h]hunsigned int usersize}(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.chMwhj\ubj)}(hhh]j9)}(hLHow many bytes, starting at **useroffset**, may be copied to/from userspace.h](hHow many bytes, starting at }(hj%\hhhNhNubjz)}(h**useroffset**h]h useroffset}(hj-\hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%\ubh", may be copied to/from userspace.}(hj%\hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMvhj"\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj!\hMwhjV[ubj)}(h[``void (*ctor)(void *)`` A constructor for the objects, run when new allocations are made. h](j)}(h``void (*ctor)(void *)``h]j?)}(hjX\h]hvoid (*ctor)(void *)}(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:43: ./mm/slab_common.chMxhjR\ubj)}(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.}(hjq\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjm\hMxhjn\ubah}(h]h ]h"]h$]h&]uh1jhjR\ubeh}(h]h ]h"]h$]h&]uh1jhjm\hMxhjV[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:43: ./mm/slab_common.chMzhj:[ubj9)}(h=Cannot be called within an interrupt, but can be interrupted.h]h=Cannot be called within an interrupt, but can be interrupted.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMyhj:[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:43: ./mm/slab_common.chM{hj:[ubj9)}(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\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM|hj:[ubeh}(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}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM*ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj ]hM*ubh)}(hkmem_cache_shrinkh]h)}(hkmem_cache_shrinkh]hkmem_cache_shrink}(hj ]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj\hhhj ]hM*ubj)}(h(struct kmem_cache *cachep)h]j)}(hstruct kmem_cache *cacheph](j!)}(hj$h]hstruct}(hj<]hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj8]ubj)}(h h]h }(hjI]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8]ubh)}(hhh]h)}(h kmem_cacheh]h kmem_cache}(hjZ]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjW]ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj\]modnameN classnameNj\j_)}jb]je)}jXj"]sbc.kmem_cache_shrinkasbuh1hhj8]ubj)}(h h]h }(hjz]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8]ubj2 )}(hj5 h]h*}(hj]hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj8]ubh)}(hcacheph]hcachep}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8]ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj4]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)}(hShrink a cache.h]hShrink a cache.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM*hj]hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj ]hM*ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j]j4j]j5j6j7uh1hhhhjUhNhNubjp)}(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)}(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.chM.hj]ubj)}(hhh]j)}(h3``struct kmem_cache *cachep`` The cache to shrink. 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM+hj]ubj)}(hhh]j9)}(hThe cache to shrink.h]hThe cache to shrink.}(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&]uh1jyhj9^ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM-hj]ubj9)}(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.}(hjQ^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM,hj]ubj9)}(h **Return**h]jz)}(hjb^h]hReturn}(hjd^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.chM/hj]ubj9)}(h4``0`` if all slabs were released, non-zero otherwiseh](j?)}(h``0``h]h0}(hj|^hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjx^ubh/ if all slabs were released, non-zero otherwise}(hjx^hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chM0hj]ubeh}(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}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMHubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj^hMHubh)}(h kmem_dump_objh]h)}(h kmem_dump_objh]h kmem_dump_obj}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj^hhhj^hMHubj)}(h(void *object)h]j)}(h void *objecth](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)}(hobjecth]hobject}(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^hMHubeh}(h]h ]h"]h$]h&]jj juh1hjjhj^hhhj^hMHubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhj^hMHhj^hhubj )}(hhh]j9)}(h+Print available slab provenance informationh]h+Print available slab provenance information}(hjD_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMHhjA_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hMHubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j\_j4j\_j5j6j7uh1hhhhjUhNhNubjp)}(hX**Parameters** ``void *object`` slab object for which to find provenance information. **Description** This 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. **Return** ``true`` if the pointer is to a not-yet-freed object from kmalloc() or kmem_cache_alloc(), either ``true`` or ``false`` if the pointer is to an already-freed object, and ``false`` otherwise.h](j9)}(h**Parameters**h]jz)}(hjf_h]h Parameters}(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.chMLhj`_ubj)}(hhh]j)}(hG``void *object`` slab object for which to find provenance information. h](j)}(h``void *object``h]j?)}(hj_h]h void *object}(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.chMIhj_ubj)}(hhh]j9)}(h5slab object for which to find provenance information.h]h5slab object for which to find provenance information.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_hMIhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMIhj|_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.chMKhj`_ubj9)}(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_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMJhj`_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:43: ./mm/slab_common.chMQhj`_ubj9)}(h``true`` if the pointer is to a not-yet-freed object from kmalloc() or kmem_cache_alloc(), either ``true`` or ``false`` if the pointer is to an already-freed object, and ``false`` otherwise.h](j?)}(h``true``h]htrue}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_ubhZ if the pointer is to a not-yet-freed object from kmalloc() or kmem_cache_alloc(), either }(hj_hhhNhNubj?)}(h``true``h]htrue}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_ubh or }(hj_hhhNhNubj?)}(h ``false``h]hfalse}(hj%`hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_ubh3 if the pointer is to an already-freed object, and }(hj_hhhNhNubj?)}(h ``false``h]hfalse}(hj7`hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj_ubh otherwise.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMRhj`_ubeh}(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}(hjp`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl`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&]uh1jhjl`hhhj~`hMubh)}(hkfree_sensitiveh]h)}(hkfree_sensitiveh]hkfree_sensitive}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjl`hhhj~`hMubj)}(h(const void *p)h]j)}(h const void *ph](j!)}(hjh]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]hp}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubah}(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)}(h4Clear sensitive information in memory before freeingh]h4Clear sensitive information in memory before freeing}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjahhubah}(h]h ]h"]h$]h&]uh1jhje`hhhj~`hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j2aj4j2aj5j6j7uh1hhhhjUhNhNubjp)}(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)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:aubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj6aubj)}(hhh]j)}(h+``const void *p`` object to free memory of h](j)}(h``const void *p``h]j?)}(hj[ah]h const void *p}(hj]ahhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjYaubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjUaubj)}(hhh]j9)}(hobject to free memory ofh]hobject to free memory of}(hjtahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjpahMhjqaubah}(h]h ]h"]h$]h&]uh1jhjUaubeh}(h]h ]h"]h$]h&]uh1jhjpahMhjRaubah}(h]h ]h"]h$]h&]uh1jhj6aubj9)}(h**Description**h]jz)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj6aubj9)}(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 }(hjahhhNhNubjz)}(h**p**h]hp}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubh& points to is zeroed before freed. If }(hjahhhNhNubjz)}(h**p**h]hp}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubh is }(hjahhhNhNubj?)}(h``NULL``h]hNULL}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubh!, kfree_sensitive() does nothing.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj6aubj9)}(h**Note**h]jz)}(hjah]hNote}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj6aubj9)}(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 bhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhj6aubeh}(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}(hj8bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4bhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMubj)}(h h]h }(hjGbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4bhhhjFbhMubh)}(hkvfree_rcu_barrierh]h)}(hkvfree_rcu_barrierh]hkvfree_rcu_barrier}(hjYbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUbubah}(h]h ](jjeh"]h$]h&]jj uh1hhj4bhhhjFbhMubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hjubhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqbubah}(h]h ]h"]h$]h&]noemphjj uh1jhjmbubah}(h]h ]h"]h$]h&]jj uh1jhj4bhhhjFbhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj0bhhhjFbhMubah}(h]j+bah ](jjeh"]h$]h&]jj)jhuh1hhjFbhMhj-bhhubj )}(hhh]j9)}(h/Wait until all in-flight kvfree_rcu() complete.h]h/Wait until all in-flight kvfree_rcu() complete.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjbhhubah}(h]h ]h"]h$]h&]uh1jhj-bhhhjFbhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jbj4jbj5j6j7uh1hhhhjUhNhNubjp)}(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)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjbubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjbubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j?)}(hjbh]hvoid}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chKhjbubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhKhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjbubah}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chKhjbubj9)}(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().}(hj1chhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:43: ./mm/slab_common.chMhjbubeh}(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`chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\chhhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK&ubj)}(h h]h }(hjochhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\chhhjnchK&ubh)}(h kfree_consth]h)}(h kfree_consth]h kfree_const}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}cubah}(h]h ](jjeh"]h$]h&]jj uh1hhj\chhhjnchK&ubj)}(h(const void *x)h]j)}(h const void *xh](j!)}(hjh]hconst}(hjchhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hvoidh]hvoid}(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)}(hjAh]hx}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjcubah}(h]h ]h"]h$]h&]jj uh1jhj\chhhjnchK&ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjXchhhjnchK&ubah}(h]jScah ](jjeh"]h$]h&]jj)jhuh1hhjnchK&hjUchhubj )}(hhh]j9)}(hconditionally free memoryh]hconditionally free memory}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK&hjdhhubah}(h]h ]h"]h$]h&]uh1jhjUchhhjnchK&ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j"dj4j"dj5j6j7uh1hhhhjUhNhNubjp)}(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,dh]h Parameters}(hj.dhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*dubah}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK*hj&dubj)}(hhh]j)}(h(``const void *x`` pointer to the memory h](j)}(h``const void *x``h]j?)}(hjKdh]h const void *x}(hjMdhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIdubah}(h]h ]h"]h$]h&]uh1jhI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK'hjEdubj)}(hhh]j9)}(hpointer to the memoryh]hpointer to the memory}(hjddhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj`dhK'hjadubah}(h]h ]h"]h$]h&]uh1jhjEdubeh}(h]h ]h"]h$]h&]uh1jhj`dhK'hjBdubah}(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&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK)hj&dubj9)}(h=Function calls kfree only if **x** is not in .rodata section.h](hFunction calls kfree only if }(hjdhhhNhNubjz)}(h**x**h]hx}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjdubh is not in .rodata section.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hI/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:46: ./mm/util.chK(hj&dubeh}(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}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhhhhhK2ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_unmap_aliases (C function)c.vm_unmap_aliaseshNtauh1hhjdhhhNhNubh)}(hhh](h)}(hvoid vm_unmap_aliases (void)h]h)}(hvoid vm_unmap_aliases(void)h](j)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjehM ubh)}(hvm_unmap_aliasesh]h)}(hvm_unmap_aliasesh]hvm_unmap_aliases}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubah}(h]h ](jjeh"]h$]h&]jj uh1hhjdhhhjehM ubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hj3ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/eubah}(h]h ]h"]h$]h&]noemphjj uh1jhj+eubah}(h]h ]h"]h$]h&]jj uh1jhjdhhhjehM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjdhhhjehM ubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjehM hjdhhubj )}(hhh]j9)}(h0unmap outstanding lazy aliases in the vmap layerh]h0unmap outstanding lazy aliases in the vmap layer}(hj]ehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjZehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjehM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3juej4juej5j6j7uh1hhhhjdhNhNubjp)}(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)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}eubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyeubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j?)}(hjeh]hvoid}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chKhjeubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehKhjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehKhjeubah}(h]h ]h"]h$]h&]uh1jhjyeubj9)}(h**Description**h]jz)}(hjeh]h Description}(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.chKhjyeubj9)}(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).}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyeubj9)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyeubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_unmap_ram (C function)c.vm_unmap_ramhNtauh1hhjdhhhNhNubh)}(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-fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)fhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hj ah"]h$]h&]uh1j1 hjffubh)}(hmemh]hmem}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjffubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbfubj)}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hcounth]hcount}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjbfubeh}(h]h ]h"]h$]h&]jj uh1jhj)fhhhj;fhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj%fhhhj;fhM ubah}(h]j fah ](jjeh"]h$]h&]jj)jhuh1hhj;fhM hj"fhhubj )}(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)ghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj&ghhubah}(h]h ]h"]h$]h&]uh1jhj"fhhhj;fhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jAgj4jAgj5j6j7uh1hhhhjdhNhNubjp)}(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)}(hjKgh]h Parameters}(hjMghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjIgubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjEgubj)}(hhh](j)}(h7``const void *mem`` the pointer returned by vm_map_ram h](j)}(h``const void *mem``h]j?)}(hjjgh]hconst void *mem}(hjlghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjhgubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjdgubj)}(hhh]j9)}(h"the pointer returned by vm_map_ramh]h"the pointer returned by vm_map_ram}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghM hjgubah}(h]h ]h"]h$]h&]uh1jhjdgubeh}(h]h ]h"]h$]h&]uh1jhjghM hjagubj)}(hV``unsigned int count`` the count passed to that vm_map_ram call (cannot unmap partial)h](j)}(h``unsigned int count``h]j?)}(hjgh]hunsigned int count}(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.chM hjgubj)}(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)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghM hjagubeh}(h]h ]h"]h$]h&]uh1jhjEgubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_map_ram (C function) c.vm_map_ramhNtauh1hhjdhhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hj hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhj hhM ubj2 )}(hj5 h]h*}(hjhhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjghhhj hhM ubh)}(h vm_map_ramh]h)}(h vm_map_ramh]h vm_map_ram}(hj+hhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'hubah}(h]h ](jjeh"]h$]h&]jj uh1hhjghhhj hhM ubj)}(h3(struct page **pages, unsigned int count, int node)h](j)}(hstruct page **pagesh](j!)}(hj$h]hstruct}(hjGhhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjChubj)}(h h]h }(hjThhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChubh)}(hhh]h)}(hpageh]hpage}(hjehhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbhubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjghmodnameN classnameNj\j_)}jb]je)}jXj-hsb c.vm_map_ramasbuh1hhjChubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChubj2 )}(hj5 h]h*}(hjhhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjChubj2 )}(hj5 h]h*}(hjhhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjChubh)}(hpagesh]hpages}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?hubj)}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hcounth]hcount}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?hubj)}(hint nodeh](j)}(hinth]hint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hj%ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hnodeh]hnode}(hj3ihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?hubeh}(h]h ]h"]h$]h&]jj uh1jhjghhhj hhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjghhhj hhM ubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhj hhM hjghhubj )}(hhh]j9)}(h>map pages linearly into kernel virtual address (vmalloc space)h]h>map pages linearly into kernel virtual address (vmalloc space)}(hj]ihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjZihhubah}(h]h ]h"]h$]h&]uh1jhjghhhj hhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3juij4juij5j6j7uh1hhhhjdhNhNubjp)}(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)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}iubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyiubj)}(hhh](j)}(hG``struct page **pages`` an array of pointers to the pages to be mapped h](j)}(h``struct page **pages``h]j?)}(hjih]hstruct page **pages}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjiubj)}(hhh]j9)}(h.an array of pointers to the pages to be mappedh]h.an array of pointers to the pages to be mapped}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihM hjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihM hjiubj)}(h'``unsigned int count`` number of pages h](j)}(h``unsigned int count``h]j?)}(hjih]hunsigned int count}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjiubj)}(hhh]j9)}(hnumber of pagesh]hnumber of pages}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihM hjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihM hjiubj)}(h=``int node`` prefer to allocate data structures on this node h](j)}(h ``int node``h]j?)}(hjjh]hint node}(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 hj jubj)}(hhh]j9)}(h/prefer to allocate data structures on this nodeh]h/prefer to allocate data structures on this node}(hj)jhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%jhM hj&jubah}(h]h ]h"]h$]h&]uh1jhj jubeh}(h]h ]h"]h$]h&]uh1jhj%jhM hjiubeh}(h]h ]h"]h$]h&]uh1jhjyiubj9)}(h**Description**h]jz)}(hjKjh]h Description}(hjMjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjIjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyiubj9)}(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.}(hjajhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyiubj9)}(h **Return**h]jz)}(hjrjh]hReturn}(hjtjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjpjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyiubj9)}(hEa pointer to the address that has been mapped, or ``NULL`` on failureh](h2a pointer to the address that has been mapped, or }(hjjhhhNhNubj?)}(h``NULL``h]hNULL}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubh on failure}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjyiubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvfree (C function)c.vfreehNtauh1hhjdhhhNhNubh)}(hhh](h)}(hvoid vfree (const void *addr)h]h)}(hvoid vfree(const void *addr)h](j)}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM; ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhjjhM; ubh)}(hvfreeh]h)}(hvfreeh]hvfree}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjjhhhjjhM; ubj)}(h(const void *addr)h]j)}(hconst void *addrh](j!)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hvoidh]hvoid}(hj!khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hj/khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2 )}(hj5 h]h*}(hj=khhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjkubh)}(haddrh]haddr}(hjJkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubeh}(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%Release memory allocated by vmalloc()h]h%Release memory allocated by vmalloc()}(hjtkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM; hjqkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhM; ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jkj4jkj5j6j7uh1hhhhjdhNhNubjp)}(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)}(hjkh]h Parameters}(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? hjkubj)}(hhh]j)}(h)``const void *addr`` Memory base address h](j)}(h``const void *addr``h]j?)}(hjkh]hconst void *addr}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM< hjkubj)}(hhh]j9)}(hMemory base addressh]hMemory base address}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM> hjkubj9)}(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 }(hjlhhhNhNubjz)}(h**addr**h]haddr}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubh, 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.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM= hjkubj9)}(h/If **addr** is NULL, no operation is performed.h](hIf }(hj'lhhhNhNubjz)}(h**addr**h]haddr}(hj/lhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj'lubh$ is NULL, no operation is performed.}(hj'lhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMB hjkubj9)}(h **Context**h]jz)}(hjJlh]hContext}(hjLlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHlubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMD hjkubj9)}(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 }(hj`lhhhNhNubjK)}(h*not*h]hnot}(hjhlhhhNhNubah}(h]h ]h"]h$]h&]uh1jJhj`lubh 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).}(hj`lhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chME hjkubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvunmap (C function)c.vunmaphNtauh1hhjdhhhNhNubh)}(hhh](h)}(hvoid vunmap (const void *addr)h]h)}(hvoid vunmap(const void *addr)h](j)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM{ ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhjlhM{ ubh)}(hvunmaph]h)}(hvunmaph]hvunmap}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ](jjeh"]h$]h&]jj uh1hhjlhhhjlhM{ ubj)}(h(const void *addr)h]j)}(hconst void *addrh](j!)}(hjh]hconst}(hjlhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2 )}(hj5 h]h*}(hjmhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjlubh)}(haddrh]haddr}(hj"mhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjlubah}(h]h ]h"]h$]h&]jj uh1jhjlhhhjlhM{ ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjlhhhjlhM{ ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhM{ hjlhhubj )}(hhh]j9)}(h*release virtual mapping obtained by vmap()h]h*release virtual mapping obtained by vmap()}(hjLmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM{ hjImhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhM{ ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jdmj4jdmj5j6j7uh1hhhhjdhNhNubjp)}(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)}(hjnmh]h Parameters}(hjpmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlmubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjhmubj)}(hhh]j)}(h)``const void *addr`` memory base address h](j)}(h``const void *addr``h]j?)}(hjmh]hconst void *addr}(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)}(hmemory base addressh]hmemory base address}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhM| hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhM| hjmubah}(h]h ]h"]h$]h&]uh1jhjhmubj9)}(h**Description**h]jz)}(hjmh]h Description}(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~ hjhmubj9)}(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 }(hjmhhhNhNubjz)}(h**addr**h]haddr}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjmubh9, which was created from the page array passed to vmap().}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM} hjhmubj9)}(h(Must not be called in interrupt context.h]h(Must not be called in interrupt context.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjhmubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmap (C function)c.vmaphNtauh1hhjdhhhNhNubh)}(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}(hj.nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*nhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hj=nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*nhhhj ah"]h$]h&]uh1j1 hj*nhhhj ah"]h$]h&]uh1j1 hjtnubj2 )}(hj5 h]h*}(hjnhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjtnubh)}(hpagesh]hpages}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpnubj)}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hinth]hint}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hj!ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hcounth]hcount}(hj/ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpnubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjHohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDoubj)}(h h]h }(hjVohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDoubj)}(hlongh]hlong}(hjdohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDoubj)}(h h]h }(hjrohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDoubh)}(hflagsh]hflags}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDoubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpnubj)}(h pgprot_t proth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjomodnameN classnameNj\j_)}jb]jnc.vmapasbuh1hhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hproth]hprot}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpnubeh}(h]h ]h"]h$]h&]jj uh1jhj*nhhhjflags ``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)}(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.chM hjpubj)}(hhh](j)}(h/``struct page **pages`` array of page pointers h](j)}(h``struct page **pages``h]j?)}(hj3ph]hstruct page **pages}(hj5phhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1pubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj-pubj)}(hhh]j9)}(harray of page pointersh]harray of page pointers}(hjLphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjHphM hjIpubah}(h]h ]h"]h$]h&]uh1jhj-pubeh}(h]h ]h"]h$]h&]uh1jhjHphM hj*pubj)}(h.``unsigned int count`` number of pages to map h](j)}(h``unsigned int count``h]j?)}(hjlph]hunsigned int count}(hjnphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjpubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjfpubj)}(hhh]j9)}(hnumber of pages to maph]hnumber of pages to map}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphM hjpubah}(h]h ]h"]h$]h&]uh1jhjfpubeh}(h]h ]h"]h$]h&]uh1jhjphM hj*pubj)}(h'``unsigned long flags`` vm_area->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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjpubj)}(hhh]j9)}(hvm_area->flagsh]hvm_area->flags}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphM hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphM hj*pubj)}(h2``pgprot_t prot`` page protection for the mapping h](j)}(h``pgprot_t prot``h]j?)}(hjph]h pgprot_t prot}(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)}(hpage protection for the mappingh]hpage protection for the mapping}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphM hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphM hj*pubeh}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjpubj9)}(hX[Maps **count** pages from **pages** into contiguous kernel virtual space. If **flags** contains ``VM_MAP_PUT_PAGES`` the ownership of the pages array itself (which must be kmalloc or vmalloc memory) and one reference per pages in it are transferred from the caller to vmap(), and will be freed / dropped when vfree() is called on the return value.h](hMaps }(hj/qhhhNhNubjz)}(h **count**h]hcount}(hj7qhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/qubh pages from }(hj/qhhhNhNubjz)}(h **pages**h]hpages}(hjIqhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/qubh* into contiguous kernel virtual space. If }(hj/qhhhNhNubjz)}(h **flags**h]hflags}(hj[qhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/qubh contains }(hj/qhhhNhNubj?)}(h``VM_MAP_PUT_PAGES``h]hVM_MAP_PUT_PAGES}(hjmqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/qubh the ownership of the pages array itself (which must be kmalloc or vmalloc memory) and one reference per pages in it are transferred from the caller to vmap(), and will be freed / dropped when vfree() is called on the return value.}(hj/qhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjpubj9)}(h **Return**h]jz)}(hjqh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjpubj9)}(h.the address of the area or ``NULL`` on failureh](hthe address of the area or }(hjqhhhNhNubj?)}(h``NULL``h]hNULL}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjqubh on failure}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmap_pfn (C function) c.vmap_pfnhNtauh1hhjdhhhNhNubh)}(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}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhM ubj2 )}(hj5 h]h*}(hjqhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjqhhhjqhM ubh)}(hvmap_pfnh]h)}(hvmap_pfnh]hvmap_pfn}(hj rhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj rubah}(h]h ](jjeh"]h$]h&]jj uh1hhjqhhhjqhM ubj)}(h8(unsigned long *pfns, unsigned int count, pgprot_t prot)h](j)}(hunsigned long *pfnsh](j)}(hunsignedh]hunsigned}(hj)rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%rubj)}(h h]h }(hj7rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%rubj)}(hlongh]hlong}(hjErhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%rubj)}(h h]h }(hjSrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%rubj2 )}(hj5 h]h*}(hjarhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj%rubh)}(hpfnsh]hpfns}(hjnrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%rubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj!rubj)}(hunsigned int counth](j)}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hcounth]hcount}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj!rubj)}(h pgprot_t proth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjrmodnameN classnameNj\j_)}jb]je)}jXjrsb c.vmap_pfnasbuh1hhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hproth]hprot}(hj shhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj!rubeh}(h]h ]h"]h$]h&]jj uh1jhjqhhhjqhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjqhhhjqhM ubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjqhM hjqhhubj )}(hhh]j9)}(h4map an array of PFNs into virtually contiguous spaceh]h4map an array of PFNs into virtually contiguous space}(hj3shhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hj0shhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jKsj4jKsj5j6j7uh1hhhhjdhNhNubjp)}(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)}(hjUsh]h Parameters}(hjWshhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSsubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjOsubj)}(hhh](j)}(h&``unsigned long *pfns`` array of PFNs h](j)}(h``unsigned long *pfns``h]j?)}(hjtsh]hunsigned long *pfns}(hjvshhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrsubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjnsubj)}(hhh]j9)}(h array of PFNsh]h array of PFNs}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjshM hjsubah}(h]h ]h"]h$]h&]uh1jhjnsubeh}(h]h ]h"]h$]h&]uh1jhjshM hjksubj)}(h.``unsigned int count`` number of pages to map h](j)}(h``unsigned int count``h]j?)}(hjsh]hunsigned int count}(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.chM hjsubj)}(hhh]j9)}(hnumber of pages to maph]hnumber of pages to map}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjshM hjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshM hjksubj)}(h2``pgprot_t prot`` page protection for the mapping h](j)}(h``pgprot_t prot``h]j?)}(hjsh]h pgprot_t prot}(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.chM hjsubj)}(hhh]j9)}(hpage protection for the mappingh]hpage protection for the mapping}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjshM hjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshM hjksubeh}(h]h ]h"]h$]h&]uh1jhjOsubj9)}(h**Description**h]jz)}(hj!th]h Description}(hj#thhhNhNubah}(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.chM hjOsubj9)}(htMaps **count** PFNs from **pfns** into contiguous kernel virtual space and returns the start address of the mapping.h](hMaps }(hj7thhhNhNubjz)}(h **count**h]hcount}(hj?thhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7tubh PFNs from }(hj7thhhNhNubjz)}(h**pfns**h]hpfns}(hjQthhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7tubhS into contiguous kernel virtual space and returns the start address of the mapping.}(hj7thhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM hjOsubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__vmalloc_node (C function)c.__vmalloc_nodehNtauh1hhjdhhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMcubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthMcubj2 )}(hj5 h]h*}(hjthhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjthhhjthMcubh)}(h__vmalloc_nodeh]h)}(h__vmalloc_nodeh]h__vmalloc_node}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ](jjeh"]h$]h&]jj uh1hhjthhhjthMcubj)}(hW(unsigned long size, unsigned long align, gfp_t gfp_mask, int node, const void *caller)h](j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hlongh]hlong}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hsizeh]hsize}(hj uhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubj)}(hunsigned long alignh](j)}(hunsignedh]hunsigned}(hj%uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!uubj)}(h h]h }(hj3uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!uubj)}(hlongh]hlong}(hjAuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!uubj)}(h h]h }(hjOuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!uubh)}(halignh]halign}(hj]uhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!uubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjyuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvuubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{umodnameN classnameNj\j_)}jb]je)}jXjtsbc.__vmalloc_nodeasbuh1hhjruubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjruubh)}(hgfp_maskh]hgfp_mask}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjruubeh}(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 uh1jhjtubj)}(hconst void *callerh](j!)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjuubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2 )}(hj5 h]h*}(hj,vhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjuubh)}(hcallerh]hcaller}(hj9vhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubeh}(h]h ]h"]h$]h&]jj uh1jhjthhhjthMcubeh}(h]h ]h"]h$]h&]jj juh1hjjhjthhhjthMcubah}(h]j}tah ](jjeh"]h$]h&]jj)jhuh1hhjthMchjthhubj )}(hhh]j9)}(h$allocate virtually contiguous memoryh]h$allocate virtually contiguous memory}(hjcvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMchj`vhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthMcubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j{vj4j{vj5j6j7uh1hhhhjdhNhNubjp)}(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)}(hjvh]h Parameters}(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.chMghjvubj)}(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.chMdhjvubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjvhMdhjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMdhjvubj)}(h*``unsigned long align`` desired alignment h](j)}(h``unsigned long align``h]j?)}(hjvh]hunsigned long align}(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.chMehjvubj)}(hhh]j9)}(hdesired alignmenth]hdesired alignment}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjvhMehjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMehjvubj)}(h6``gfp_t gfp_mask`` flags for the page level allocator h](j)}(h``gfp_t gfp_mask``h]j?)}(hjwh]hgfp_t gfp_mask}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjwubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMfhjwubj)}(hhh]j9)}(h"flags for the page level allocatorh]h"flags for the page level allocator}(hj/whhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+whMfhj,wubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhj+whMfhjvubj)}(h8``int node`` node to use for allocation or NUMA_NO_NODE h](j)}(h ``int node``h]j?)}(hjOwh]hint node}(hjQwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMwubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMghjIwubj)}(hhh]j9)}(h*node to use for allocation or NUMA_NO_NODEh]h*node to use for allocation or NUMA_NO_NODE}(hjhwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjdwhMghjewubah}(h]h ]h"]h$]h&]uh1jhjIwubeh}(h]h ]h"]h$]h&]uh1jhjdwhMghjvubj)}(h/``const void *caller`` caller's return address h](j)}(h``const void *caller``h]j?)}(hjwh]hconst void *caller}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjwubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhhjwubj)}(hhh]j9)}(hcaller's return addressh]hcaller’s return address}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjwhMhhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMhhjvubeh}(h]h ]h"]h$]h&]uh1jhjvubj9)}(h**Description**h]jz)}(hjwh]h Description}(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.chMjhjvubj9)}(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 }(hjwhhhNhNubjz)}(h**size**h]hsize}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwubh$ from the page level allocator with }(hjwhhhNhNubjz)}(h **gfp_mask**h]hgfp_mask}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwubh7 flags. Map them into contiguous kernel virtual space.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMihjvubj9)}(hiReclaim modifiers in **gfp_mask** - __GFP_NORETRY, __GFP_RETRY_MAYFAIL and __GFP_NOFAIL are not supportedh](hReclaim modifiers in }(hj xhhhNhNubjz)}(h **gfp_mask**h]hgfp_mask}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj xubhH - __GFP_NORETRY, __GFP_RETRY_MAYFAIL and __GFP_NOFAIL are not supported}(hj xhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMlhjvubj9)}(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.}(hj-xhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMohjvubj9)}(h **Return**h]jz)}(hj>xh]hReturn}(hj@xhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhjTxubh on error}(hjTxhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMshjvubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc (C function) c.vmallochNtauh1hhjdhhhNhNubh)}(hhh](h)}(h#void * vmalloc (unsigned long size)h]h)}(h!void *vmalloc(unsigned long size)h](j)}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjxhMubj2 )}(hj5 h]h*}(hjxhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxhhhjxhMubh)}(hvmalloch]h)}(hvmalloch]hvmalloc}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubah}(h]h ](jjeh"]h$]h&]jj uh1hhjxhhhjxhMubj)}(h(unsigned long size)h]j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hlongh]hlong}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(h h]h }(hj yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hsizeh]hsize}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjxubah}(h]h ]h"]h$]h&]jj uh1jhjxhhhjxhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjxhhhjxhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjxhhubj )}(hhh]j9)}(h$allocate virtually contiguous memoryh]h$allocate virtually contiguous memory}(hjAyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj>yhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jYyj4jYyj5j6j7uh1hhhhjdhNhNubjp)}(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)}(hjcyh]h Parameters}(hjeyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjayubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj]yubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjyh]hunsigned long size}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj|yubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhj|yubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjyyubah}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj]yubj9)}(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 }(hjyhhhNhNubjz)}(h**size**h]hsize}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj]yubj9)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj]yubj9)}(h **Return**h]jz)}(hjzh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjzubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj]yubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjzhhhNhNubj?)}(h``NULL``h]hNULL}(hj#zhhhNhNubah}(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.chMhj]yubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc_huge_node (C function)c.vmalloc_huge_nodehNtauh1hhjdhhhNhNubh)}(hhh](h)}(hGvoid * vmalloc_huge_node (unsigned long size, gfp_t gfp_mask, int node)h]h)}(hEvoid *vmalloc_huge_node(unsigned long size, gfp_t gfp_mask, int node)h](j)}(hvoidh]hvoid}(hj\zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXzhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjkzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXzhhhjjzhMubj2 )}(hj5 h]h*}(hjyzhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjXzhhhjjzhMubh)}(hvmalloc_huge_nodeh]h)}(hvmalloc_huge_nodeh]hvmalloc_huge_node}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ](jjeh"]h$]h&]jj uh1hhjXzhhhjjzhMubj)}(h.(unsigned long size, gfp_t gfp_mask, int node)h](j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hsizeh]hsize}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjzmodnameN classnameNj\j_)}jb]je)}jXjzsbc.vmalloc_huge_nodeasbuh1hhjzubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hgfp_maskh]hgfp_mask}(hj({hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubj)}(hint nodeh](j)}(hinth]hint}(hjA{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj={ubj)}(h h]h }(hjO{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 uh1jhjzubeh}(h]h ]h"]h$]h&]jj uh1jhjXzhhhjjzhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjTzhhhjjzhMubah}(h]jOzah ](jjeh"]h$]h&]jj)jhuh1hhjjzhMhjQzhhubj )}(hhh]j9)}(h6allocate virtually contiguous memory, allow huge pagesh]h6allocate virtually contiguous memory, allow huge pages}(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&]uh1jhjQzhhhjjzhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j{j4j{j5j6j7uh1hhhhjdhNhNubjp)}(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)}(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)}(h6``gfp_t gfp_mask`` flags for the page level allocator 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:52: ./mm/vmalloc.chMhj{ubj)}(hhh]j9)}(h"flags for the page level allocatorh]h"flags for the page level allocator}(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)}(h8``int node`` node to use for allocation or NUMA_NO_NODE h](j)}(h ``int node``h]j?)}(hj:|h]hint node}(hj<|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8|ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhj4|ubj)}(hhh]j9)}(h*node to use for allocation or NUMA_NO_NODEh]h*node to use for allocation or NUMA_NO_NODE}(hjS|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjO|hMhjP|ubah}(h]h ]h"]h$]h&]uh1jhj4|ubeh}(h]h ]h"]h$]h&]uh1jhjO|hMhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{ubj9)}(h**Description**h]jz)}(hju|h]h Description}(hjw|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjs|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. If **size** is greater than or equal to PMD_SIZE, allow using huge pages for the memoryh](hAllocate enough pages to cover }(hj|hhhNhNubjz)}(h**size**h]hsize}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubhU from the page level allocator and map them into contiguous kernel virtual space. If }(hj|hhhNhNubjz)}(h**size**h]hsize}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubhL is greater than or equal to PMD_SIZE, allow using huge pages for the memory}(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&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvzalloc (C function) c.vzallochNtauh1hhjdhhhNhNubh)}(hhh](h)}(h#void * vzalloc (unsigned long size)h]h)}(h!void *vzalloc(unsigned long size)h](j)}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hj&}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhj%}hMubj2 )}(hj5 h]h*}(hj4}hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj}hhhj%}hMubh)}(hvzalloch]h)}(hvzalloch]hvzalloc}(hjE}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjA}ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj}hhhj%}hMubj)}(h(unsigned long size)h]j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hja}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]}ubj)}(h h]h }(hjo}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)}(hsizeh]hsize}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]}ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjY}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)}(h3allocate virtually contiguous memory with zero fillh]h3allocate virtually contiguous memory 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}j5j6j7uh1hhhhjdhNhNubjp)}(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)}(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}ubah}(h]h ]h"]h$]h&]uh1jhj}ubj9)}(h**Description**h]jz)}(hj?~h]h Description}(hjA~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 }(hjU~hhhNhNubjz)}(h**size**h]hsize}(hj]~hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjU~ubhv from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.}(hjU~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.}(hjv~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&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc_user (C function)c.vmalloc_userhNtauh1hhjdhhhNhNubh)}(hhh](h)}(h(void * vmalloc_user (unsigned long size)h]h)}(h&void *vmalloc_user(unsigned long size)h](j)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.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 vmalloc_userh]h)}(h vmalloc_userh]h vmalloc_user}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj~hhhj~hMubj)}(h(unsigned long size)h]j)}(hunsigned long sizeh](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)}(hsizeh]hsize}(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)}(h9allocate zeroed virtually contiguous memory for userspaceh]h9allocate zeroed virtually contiguous memory for 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&]uh1jhj~hhhj~hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjdhNhNubjp)}(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)}(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)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjh]hunsigned long 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:52: ./mm/vmalloc.chMhjubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(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:52: ./mm/vmalloc.chMhjubj9)}(hZThe resulting memory area is zeroed so it can be mapped to userspace without leaking data.h]hZThe resulting memory area is zeroed so it can be mapped to userspace without leaking data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.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:52: ./mm/vmalloc.chMhjubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjChhhNhNubj?)}(h``NULL``h]hNULL}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCubh on error}(hjChhhNhNubeh}(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&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc_node (C function)c.vmalloc_nodehNtauh1hhjdhhhNhNubh)}(hhh](h)}(h2void * vmalloc_node (unsigned long size, int node)h]h)}(h0void *vmalloc_node(unsigned long size, int node)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(h vmalloc_nodeh]h)}(h vmalloc_nodeh]h vmalloc_node}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʀubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʀubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjʀubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjƀubj)}(hint nodeh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnodeh]hnode}(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 juh1hjjhj|hhhjhMubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjyhhubj )}(hhh]j9)}(h"allocate memory on a specific nodeh]h"allocate memory on a specific node}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjbhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j}j4j}j5j6j7uh1hhhhjdhNhNubjp)}(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)}(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)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjh]hunsigned long 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:52: ./mm/vmalloc.chMhjubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int node`` numa node h](j)}(h ``int node``h]j?)}(hj߁h]hint node}(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:52: ./mm/vmalloc.chMhjفubj)}(hhh]j9)}(h numa nodeh]h numa node}(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:52: ./mm/vmalloc.chMhjubj9)}(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 }(hj0hhhNhNubjz)}(h**size**h]hsize}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj9)}(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.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj9)}(h **Return**h]jz)}(hjbh]hReturn}(hjdhhhNhNubah}(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)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjxhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvzalloc_node (C function)c.vzalloc_nodehNtauh1hhjdhhhNhNubh)}(hhh](h)}(h2void * vzalloc_node (unsigned long size, int node)h]h)}(h0void *vzalloc_node(unsigned long size, int node)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjȂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjǂhMubj2 )}(hj5 h]h*}(hjւhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjǂhMubh)}(h vzalloc_nodeh]h)}(h vzalloc_nodeh]h vzalloc_node}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjǂhMubj)}(h(unsigned long size, int node)h](j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint nodeh](j)}(hinth]hint}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hnodeh]hnode}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(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)}(h1allocate memory on a specific node with zero fillh]h1allocate memory on a specific node with zero fill}(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&]uh1jhjhhhjǂhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjdhNhNubjp)}(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)}(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)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjՃubeh}(h]h ]h"]h$]h&]uh1jhjhMhj҃ubj)}(h``int node`` numa node h](j)}(h ``int node``h]j?)}(hjh]hint node}(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)}(h numa nodeh]h numa node}(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)}(hjOh]h Description}(hjQhhhNhNubah}(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.chMhjubj9)}(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 }(hjehhhNhNubjz)}(h**size**h]hsize}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjeubhv from the page level allocator and map them into contiguous kernel virtual space. The memory allocated is set to zero.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.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:52: ./mm/vmalloc.chMhjubj9)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc_32 (C function) c.vmalloc_32hNtauh1hhjdhhhNhNubh)}(hhh](h)}(h&void * vmalloc_32 (unsigned long size)h]h)}(h$void *vmalloc_32(unsigned long size)h](j)}(hvoidh]hvoid}(hj߄hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۄhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۄhhhjhMyubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjۄhhhjhMyubh)}(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ۄhhhjhMyubj)}(h(unsigned long size)h]j)}(hunsigned long sizeh](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)}(hsizeh]hsize}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj!ubah}(h]h ]h"]h$]h&]jj uh1jhjۄhhhjhMyubeh}(h]h ]h"]h$]h&]jj juh1hjjhjׄhhhjhMyubah}(h]j҄ah ](jjeh"]h$]h&]jj)jhuh1hhjhMyhjԄ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.chMyhjhhubah}(h]h ]h"]h$]h&]uh1jhjԄhhhjhMyubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjdhNhNubjp)}(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.chM}hjubj)}(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.chMzhjƅubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMzhjubah}(h]h ]h"]h$]h&]uh1jhjƅubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjÅ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:52: ./mm/vmalloc.chM|hjubj9)}(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 }(hjhhhNhNubjz)}(h**size**h]hsize}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhQ from the page level allocator and map them into contiguous kernel virtual space.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chM{hjubj9)}(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:52: ./mm/vmalloc.chM~hjubj9)}(h4pointer to the allocated memory or ``NULL`` on errorh](h#pointer to the allocated memory or }(hjVhhhNhNubj?)}(h``NULL``h]hNULL}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubh on error}(hjVhhhNhNubeh}(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&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmalloc_32_user (C function)c.vmalloc_32_userhNtauh1hhjdhhhNhNubh)}(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.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(hvmalloc_32_userh]h)}(hvmalloc_32_userh]hvmalloc_32_user}(hjņhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(unsigned long size)h]j)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݆ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݆ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݆ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݆ubh)}(hsizeh]hsize}(hjhhhNhNubah}(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)}(h1allocate zeroed virtually contiguous 32bit memoryh]h1allocate zeroed virtually contiguous 32bit memory}(hjChhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j[j4j[j5j6j7uh1hhhhjdhNhNubjp)}(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)}(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:52: ./mm/vmalloc.chMhj_ubj)}(hhh]j)}(h'``unsigned long size`` allocation size h](j)}(h``unsigned long size``h]j?)}(hjh]hunsigned long 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:52: ./mm/vmalloc.chMhj~ubj)}(hhh]j9)}(hallocation sizeh]hallocation size}(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&]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:52: ./mm/vmalloc.chMhj_ubj9)}(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.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:52: ./mm/vmalloc.chMhj_ubj9)}(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.chMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjdhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ remap_vmalloc_range (C function)c.remap_vmalloc_rangehNtauh1hhjdhhhNhNubh)}(hhh](h)}(hUint remap_vmalloc_range (struct vm_area_struct *vma, void *addr, unsigned long pgoff)h]h)}(hTint remap_vmalloc_range(struct vm_area_struct *vma, void *addr, unsigned long pgoff)h](j)}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjKhMubh)}(hremap_vmalloc_rangeh]h)}(hremap_vmalloc_rangeh]hremap_vmalloc_range}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ](jjeh"]h$]h&]jj uh1hhj9hhhjKhMubj)}(h=(struct vm_area_struct *vma, void *addr, unsigned long pgoff)h](j)}(hstruct vm_area_struct *vmah](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)}(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)}jXj`sbc.remap_vmalloc_rangeasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2 )}(hj5 h]h*}(hjƈhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjvubh)}(hvmah]hvma}(hjӈhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjrubj)}(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 uh1jhjrubj)}(hunsigned long pgoffh](j)}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hlongh]hlong}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hpgoffh]hpgoff}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjrubeh}(h]h ]h"]h$]h&]jj uh1jhj9hhhjKhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj5hhhjKhMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhj2hhubj )}(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&]uh1jhj2hhhjKhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjdhNhNubjp)}(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.chMhjˉubj)}(hhh]j9)}(h$vma to cover (map full range of vma)h]h$vma to cover (map full range of vma)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjˉubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȉubj)}(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>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:52: ./mm/vmalloc.chMhjubj)}(hhh]j9)}(hvmalloc memoryh]hvmalloc memory}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȉubj)}(hK``unsigned long pgoff`` number of pages into addr before first page to map h](j)}(h``unsigned long pgoff``h]j?)}(hjCh]hunsigned long pgoff}(hjEhhhNhNubah}(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.chMhj=ubj)}(hhh]j9)}(h2number of pages into addr before first page to maph]h2number of pages into addr before first page to map}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjȉubeh}(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&]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)}(hjʊhhhNhNubah}(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&]uh1johjdhhhNhNubeh}(h]virtually-contiguous-mappingsah ]h"]virtually contiguous mappingsah$]h&]uh1hhhhhhhhK2ubh)}(hhh](h)}(hFile Mapping and Page Cacheh]hFile Mapping and Page Cache}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK8ubh)}(hhh](h)}(hFilemaph]hFilemap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK;ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#filemap_fdatawrite_wbc (C function)c.filemap_fdatawrite_wbchNtauh1hhjhhhNhNubh)}(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}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMrubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj1hMrubh)}(hfilemap_fdatawrite_wbch]h)}(hfilemap_fdatawrite_wbch]hfilemap_fdatawrite_wbc}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj1hMrubj)}(h>(struct address_space *mapping, struct writeback_control *wbc)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj`hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj\ubj)}(h h]h }(hjmhhhNhNubah}(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 reftargetjmodnameN classnameNj\j_)}jb]je)}jXjFsbc.filemap_fdatawrite_wbcasbuh1hhj\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 uh1jhjXubj)}(hstruct writeback_control *wbch](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)}(hwriteback_controlh]hwriteback_control}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_fdatawrite_wbcasbuh1hhj΋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)}(hwbch]hwbc}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj΋ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjXubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj1hMrubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj1hMrubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hMrhjhhubj )}(hhh]j9)}(h/start writeback on mapping dirty pages in rangeh]h/start writeback on mapping dirty pages in range}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMrhjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMrubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jkj4jkj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjsubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMvhjoubj)}(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.chMshjubj)}(hhh]j9)}(h address space structure to writeh]h address space structure to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubj)}(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>hjˌubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMthjnjubj)}(hhh]j9)}(h.the writeback_control controlling the writeouth]h.the writeback_control controlling the writeout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMthjubah}(h]h ]h"]h$]h&]uh1jhjnjubeh}(h]h ]h"]h$]h&]uh1jhjhMthjubeh}(h]h ]h"]h$]h&]uh1jhjoubj9)}(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.chMvhjoubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMuhjoubj9)}(h **Return**h]jz)}(hj/h]hReturn}(hj1hhhNhNubah}(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.chMxhjoubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEubh+ on success, negative error code otherwise.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMyhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*filemap_fdatawrite_range_kick (C function)c.filemap_fdatawrite_range_kickhNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhMubh)}(hfilemap_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 }(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 reftargetjߍmodnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_fdatawrite_range_kickasbuh1hhjubj)}(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 loff_t starth](h)}(hhh]h)}(hloff_th]hloff_t}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6modnameN classnameNj\j_)}jb]jc.filemap_fdatawrite_range_kickasbuh1hhj-ubj)}(h h]h }(hjRhhhNhNubah}(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)}(h loff_t endh](h)}(hhh]h)}(hloff_th]hloff_t}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]jc.filemap_fdatawrite_range_kickasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hendh]hend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj~hhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjwhhubj )}(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&]uh1jhjwhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(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.chMhj ubj)}(hhh]j9)}(htarget address_spaceh]htarget 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-``loff_t start`` index to start writeback on h](j)}(h``loff_t start``h]j?)}(hjLh]h loff_t start}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjFubj)}(hhh]j9)}(hindex to start writeback onh]hindex to start writeback on}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjahMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhj ubj)}(h4``loff_t end`` last (inclusive) index for writeback h](j)}(h``loff_t end``h]j?)}(hjh]h loff_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$last (inclusive) index for writebackh]h$last (inclusive) index for writeback}(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&]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_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.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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_flush (C function)c.filemap_flushhNtauh1hhjhhhNhNubh)}(hhh](h)}(h1int filemap_flush (struct address_space *mapping)h]h)}(h0int filemap_flush(struct address_space *mapping)h](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhjHhMubh)}(h filemap_flushh]h)}(h filemap_flushh]h filemap_flush}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ](jjeh"]h$]h&]jj uh1hhj6hhhjHhMubj)}(h(struct address_space *mapping)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]je)}jXj]sbc.filemap_flushasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2 )}(hj5 h]h*}(hjÐhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjsubh)}(hmappingh]hmapping}(hjАhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubah}(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)}(hmostly a non-blocking flushh]hmostly a non-blocking flush}(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/hhhjHhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(h7``struct address_space *mapping`` target 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>hj9ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj5ubj)}(hhh]j9)}(htarget address_spaceh]htarget address_space}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhj2ubah}(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 a mostly non-blocking flush. Not suitable for data-integrity purposes - I/O may not be started against all dirty pages.h]hThis is a mostly non-blocking flush. Not suitable for data-integrity purposes - I/O may not be started against all dirty pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#filemap_range_has_page (C function)c.filemap_range_has_pagehNtauh1hhjhhhNhNubh)}(hhh](h)}(h_bool filemap_range_has_page (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(h^bool filemap_range_has_page(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_range_has_pageh]h)}(hfilemap_range_has_pageh]hfilemap_range_has_page}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj,hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj(ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjLmodnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_range_has_pageasbuh1hhj(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)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj$ubj)}(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]jfc.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 uh1jhj$ubj)}(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]jfc.filemap_range_has_pageasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hend_byteh]hend_byte}(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 check if a page exists in range.h]h check if a page exists in 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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jWj4jWj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(hF``struct address_space *mapping`` address space within which to check 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjzubj)}(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&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]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.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ΓhMhjwubj)}(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>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubeh}(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:61: ./mm/filemap.chMhj[ubj9)}(h}Find at least one page in the range supplied, usually used to check if direct writing in this range will trigger a writeback.h]h}Find at least one page in the range supplied, usually used to check if direct writing in this range will trigger a writeback.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj[ubj9)}(h **Return**h]jz)}(hjTh]hReturn}(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.chMhj[ubj9)}(hQ``true`` if at least one page exists in the specified range, ``false`` otherwise.h](j?)}(h``true``h]htrue}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubh5 if at least one page exists in the specified range, }(hjjhhhNhNubj?)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubh otherwise.}(hjjhhhNhNubeh}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$filemap_fdatawait_range (C function)c.filemap_fdatawait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(h_int filemap_fdatawait_range (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(h^int filemap_fdatawait_range(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM&ubj)}(h h]h }(hjȔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjǔhM&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 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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjܔsbc.filemap_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjBhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hloff_t start_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmmodnameN classnameNj\j_)}jb]j0c.filemap_fdatawait_rangeasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(h start_byteh]h start_byte}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubeh}(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]j0c.filemap_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hjѕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hend_byteh]hend_byte}(hjߕhhhNhNubah}(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}(hj hhhNhNubah}(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!j5j6j7uh1hhhhjhNhNubjp)}(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}(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%ubj)}(hhh](j)}(hF``struct address_space *mapping`` address space structure to wait for h](j)}(h!``struct address_space *mapping``h]j?)}(hjJh]hstruct address_space *mapping}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM'hjDubj)}(hhh]j9)}(h#address space structure to wait forh]h#address space structure to wait for}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_hM'hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hM'hjAubj)}(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(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(hjAubj)}(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>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM)hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjіhM)hjAubeh}(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)}(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*hj%ubj9)}(hSince the error status of the address space is cleared by this function, callers are responsible for checking the return value and handling and/or reporting the error.h]hSince the error status of the address space is cleared by this function, callers are responsible for checking the return value and handling and/or reporting the error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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.chM2hj%ubj9)}(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.chM3hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ0filemap_fdatawait_range_keep_errors (C function)%c.filemap_fdatawait_range_keep_errorshNtauh1hhjhhhNhNubh)}(hhh](h)}(hkint filemap_fdatawait_range_keep_errors (struct address_space *mapping, loff_t start_byte, loff_t end_byte)h]h)}(hjint filemap_fdatawait_range_keep_errors(struct address_space *mapping, loff_t start_byte, loff_t end_byte)h](j)}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjhM>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 uh1hhjnhhhjhM>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&]uh1hhjʗubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjϗmodnameN classnameNj\j_)}jb]je)}jXjsb%c.filemap_fdatawait_range_keep_errorsasbuh1hhjubj)}(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)}(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_fdatawait_range_keep_errorsasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h start_byteh]h start_byte}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hloff_t end_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjnmodnameN classnameNj\j_)}jb]j%c.filemap_fdatawait_range_keep_errorsasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hend_byteh]hend_byte}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjnhhhjhM>ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjjhhhjhM>ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjhM>hjghhubj )}(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>hjhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhM>ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jژj4jژj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.chMBhjޘubj)}(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@hj6ubj)}(hhh]j9)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQhM@hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM@hjubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]j?)}(hjuh]hloff_t end_byte}(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.chMAhjoubj)}(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&]uh1j8hjhMAhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjubeh}(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.chMChjޘubj9)}(hWalk the list of under-writeback pages of the given address space in the given range and wait for all of them. Unlike filemap_fdatawait_range(), this function does not clear error status of the address space.h]hWalk the list of under-writeback pages of the given address space in the given range and wait for all of them. Unlike filemap_fdatawait_range(), this function does not clear error status of the address space.}(hjƙhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMBhjޘubj9)}(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.chMFhjޘubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!file_fdatawait_range (C function)c.file_fdatawait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hPint file_fdatawait_range (struct file *file, loff_t start_byte, loff_t end_byte)h]h)}(hOint file_fdatawait_range(struct file *file, loff_t start_byte, loff_t end_byte)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMTubh)}(hfile_fdatawait_rangeh]h)}(hfile_fdatawait_rangeh]hfile_fdatawait_range}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMTubj)}(h7(struct file *file, loff_t start_byte, loff_t end_byte)h](j)}(hstruct file *fileh](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)}(hfileh]hfile}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]je)}jXj'sbc.file_fdatawait_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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubj)}(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]j{c.file_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 uh1jhj9ubj)}(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.file_fdatawait_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hend_byteh]hend_byte}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj9ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMTubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMTubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMThjhhubj )}(hhh]j9)}(hwait for writeback to completeh]hwait for writeback to complete}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMThjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMTubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jlj4jlj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.chMXhjpubj)}(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.chMUhjubj)}(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&]uh1j8hjhMUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMUhjubj)}(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.chMVhjț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&]uh1j8hjhMVhjubah}(h]h ]h"]h$]h&]uh1jhjțubeh}(h]h ]h"]h$]h&]uh1jhjhMVhjubj)}(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}(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.chMWhjubj)}(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&]uh1j8hjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjubeh}(h]h ]h"]h$]h&]uh1jhjpubj9)}(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.chMYhjpubj9)}(hWalk the list of under-writeback pages of the address space that file refers to, in the given range and wait for all of them. Check error status of the address space vs. the file->f_wb_err cursor and return it.h]hWalk the list of under-writeback pages of the address space that file refers to, in the given range and wait for all of them. Check error status of the address space vs. the file->f_wb_err cursor and return it.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMXhjpubj9)}(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.2}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM\hjpubj9)}(h **Return**h]jz)}(hjxh]hReturn}(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.chM`hjpubj9)}(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.chMahjpubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*filemap_fdatawait_keep_errors (C function)c.filemap_fdatawait_keep_errorshNtauh1hhjhhhNhNubh)}(hhh](h)}(hAint filemap_fdatawait_keep_errors (struct address_space *mapping)h]h)}(h@int filemap_fdatawait_keep_errors(struct address_space *mapping)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMmubj)}(h h]h }(hj̜hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj˜hMmubh)}(hfilemap_fdatawait_keep_errorsh]h)}(hfilemap_fdatawait_keep_errorsh]hfilemap_fdatawait_keep_errors}(hjޜhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjڜubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj˜hMmubj)}(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.filemap_fdatawait_keep_errorsasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjFhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhj˜hMmubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj˜hMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj˜hMmhjhhubj )}(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.chMmhjzhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj˜hMmubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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.chMqhjubj)}(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.chMnhjubj)}(hhh]j9)}(h#address space structure to wait forh]h#address space structure to wait for}(hjםhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjӝhMnhjԝubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӝhMnhjubah}(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.chMphjubj9)}(hWalk the list of under-writeback pages of the given address space and wait for all of them. Unlike filemap_fdatawait(), this function does not clear error status of the address space.h]hWalk the list of under-writeback pages of the given address space and wait for all of them. Unlike filemap_fdatawait(), this function does not clear error status of the address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMohjubj9)}(hUse this function if callers don't handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8)h]hUse this function if callers don’t handle errors themselves. Expected call sites are system-wide / filesystem-wide data flushers: e.g. sync(2), fsfreeze(8)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMshjubj9)}(h **Return**h]jz)}(hj/h]hReturn}(hj1hhhNhNubah}(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.chMwhjubj9)}(h"error status of the address space.h]h"error status of the address space.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)filemap_write_and_wait_range (C function)c.filemap_write_and_wait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(h\int filemap_write_and_wait_range (struct address_space *mapping, loff_t lstart, loff_t lend)h]h)}(h[int filemap_write_and_wait_range(struct address_space *mapping, loff_t lstart, loff_t lend)h](j)}(hinth]hint}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubh)}(hfilemap_write_and_wait_rangeh]h)}(hfilemap_write_and_wait_rangeh]hfilemap_write_and_wait_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjphhhjhMubj)}(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&]uh1hhj̞ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjўmodnameN classnameNj\j_)}jb]je)}jXjsbc.filemap_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)}(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}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj(modnameN classnameNj\j_)}jb]jc.filemap_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hlstarth]hlstart}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t lendh](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.filemap_write_and_wait_rangeasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hlendh]hlend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjphhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjlhhhjhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjihhubj )}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jܟj4jܟj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(hB``struct address_space *mapping`` the address_space for the pages 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 for the pagesh]hthe address_space for the 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}(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)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubj)}(hA``loff_t lend`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t lend``h]j?)}(hjwh]h loff_t lend}(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)}(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&]uh1jhjqubeh}(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}(hjߠhhhNhNubah}(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)}(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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*file_check_and_advance_wb_err (C function)c.file_check_and_advance_wb_errhNtauh1hhjhhhNhNubh)}(hhh](h)}(h5int file_check_and_advance_wb_err (struct file *file)h]h)}(h4int file_check_and_advance_wb_err(struct file *file)h](j)}(hinth]hint}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhMubh)}(hfile_check_and_advance_wb_errh]h)}(hfile_check_and_advance_wb_errh]hfile_check_and_advance_wb_err}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj;hhhjMhMubj)}(h(struct file *file)h]j)}(hstruct file *fileh](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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjbsbc.file_check_and_advance_wb_errasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2 )}(hj5 h]h*}(hjȡhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxubh)}(hfileh]hfile}(hjաhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubah}(h]h ]h"]h$]h&]jj uh1jhj;hhhjMhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj7hhhjMhMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhjMhMhj4hhubj )}(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}(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&]uh1jhj4hhhjMhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(hj!h]h Parameters}(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.chMhjubj)}(hhh]j)}(hG``struct file *file`` struct file on which the error is being reported h](j)}(h``struct file *file``h]j?)}(hj@h]hstruct file *file}(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.chMhj:ubj)}(hhh]j9)}(h0struct file on which the error is being reportedh]h0struct file on which the error is being reported}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubah}(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.chMhjubj9)}(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.chMhjubj9)}(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.chMhjubj9)}(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.chMhjubj9)}(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.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:61: ./mm/filemap.chMhjubj9)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&file_write_and_wait_range (C function)c.file_write_and_wait_rangehNtauh1hhjhhhNhNubh)}(hhh](h)}(hMint file_write_and_wait_range (struct file *file, loff_t lstart, loff_t lend)h]h)}(hLint file_write_and_wait_range(struct file *file, loff_t lstart, loff_t lend)h](j)}(hinth]hint}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hMubh)}(hfile_write_and_wait_rangeh]h)}(hfile_write_and_wait_rangeh]hfile_write_and_wait_range}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj0hMubj)}(h/(struct file *file, loff_t lstart, loff_t lend)h](j)}(hstruct file *fileh](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)}(hfileh]hfile}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjEsbc.file_write_and_wait_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)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjWubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͣubh)}(hlstarth]hlstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjͣubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjWubj)}(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.file_write_and_wait_rangeasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hlendh]hlend}(hjHhhhNhNubah}(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)}(h write out & wait on a file rangeh]h write out & wait on a file range}(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&]uh1jhjhhhj0hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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.chM hjubj)}(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}(hj̤hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjȤhMhjɤubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȤhMhjubj)}(h9``loff_t lstart`` offset in bytes where the range starts h](j)}(h``loff_t lstart``h]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&]uh1jhjhMhjubj)}(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.chMhjubj)}(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: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)}(hj`h]h Description}(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.chM hjubj9)}(h=Write out and wait upon file offsets lstart->lend, inclusive.h]h=Write out and wait upon file offsets lstart->lend, inclusive.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj9)}(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 }(hjhhhNhNubjz)}(h**lend**h]hlend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh is inclusive (describes the last byte to be written) so that this function can be used to write to the very end-of-file (end = -1).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj9)}(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.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)}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%replace_page_cache_folio (C function)c.replace_page_cache_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hDvoid replace_page_cache_folio (struct folio *old, struct folio *new)h]h)}(hCvoid replace_page_cache_folio(struct folio *old, struct folio *new)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM+ubh)}(hreplace_page_cache_folioh]h)}(hreplace_page_cache_folioh]hreplace_page_cache_folio}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM+ubj)}(h&(struct folio *old, struct folio *new)h](j)}(hstruct folio *oldh](j!)}(hj$h]hstruct}(hjGhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]h)}(hfolioh]hfolio}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjgmodnameN classnameNj\j_)}jb]je)}jXj-sbc.replace_page_cache_folioasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjCubh)}(holdh]hold}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?ubj)}(hstruct folio *newh](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]jc.replace_page_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hnewh]hnew}(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)}(h(replace a pagecache folio with a new oneh]h(replace a pagecache folio with a new one}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM+hj7hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM+ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jRj4jRj5j6j7uh1hhhhjhNhNubjp)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM/hjVubj)}(hhh](j)}(h+``struct folio *old`` folio to be replaced h](j)}(h``struct folio *old``h]j?)}(hj{h]hstruct folio *old}(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.chM,hjuubj)}(hhh]j9)}(hfolio to be replacedh]hfolio to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjrubj)}(h,``struct folio *new`` folio to replace with h](j)}(h``struct folio *new``h]j?)}(hjh]hstruct folio *new}(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)}(hfolio to replace withh]hfolio to replace with}(hjͧhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjɧhM-hjʧubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɧhM-hjrubeh}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM/hjVubj9)}(hXThis function replaces a folio in the pagecache with a new one. On success it acquires the pagecache reference for the new folio and drops it for the old folio. Both the old and new folios must be locked. This function does not add the new folio to the LRU, the caller must do that.h]hXThis function replaces a folio in the pagecache with a new one. On success it acquires the pagecache reference for the new folio and drops it for the old folio. Both the old and new folios must be locked. This function does not add the new folio to the LRU, the caller must do that.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM.hjVubj9)}(h7The remove + add is atomic. This function cannot fail.h]h7The remove + add is atomic. This function cannot fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM4hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_unlock (C function)c.folio_unlockhNtauh1hhjhhhNhNubh)}(hhh](h)}(h'void folio_unlock (struct folio *folio)h]h)}(h&void folio_unlock(struct folio *folio)h](j)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMubh)}(h folio_unlockh]h)}(h folio_unlockh]h folio_unlock}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj?hhhjQhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjfsbc.folio_unlockasbuh1hhj|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 uh1jhjxubah}(h]h ]h"]h$]h&]jj uh1jhj?hhhjQhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhj8hhubj )}(hhh]j9)}(hUnlock a locked folio.h]hUnlock a locked 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&]uh1jhj8hhhjQhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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. h](j)}(h``struct folio *folio``h]j?)}(hjDh]hstruct folio *folio}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj>ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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.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:61: ./mm/filemap.chMhjubj9)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_end_read (C function)c.folio_end_readhNtauh1hhjhhhNhNubh)}(hhh](h)}(h7void folio_end_read (struct folio *folio, bool success)h]h)}(h6void folio_end_read(struct folio *folio, bool success)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_end_readh]h)}(hfolio_end_readh]hfolio_end_read}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h#(struct folio *folio, bool success)h](j)}(hstruct folio *folioh](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)}(hfolioh]hfolio}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjHmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_end_readasbuh1hhj$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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(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 uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jީah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hEnd read on a folio.h]hEnd read on a folio.}(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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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 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>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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubj)}(h;``bool success`` True if all reads completed successfully. h](j)}(h``bool success``h]j?)}(hjYh]h bool success}(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)}(h)True if all reads completed successfully.h]h)True if all reads completed successfully.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjubeh}(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)}(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.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:61: ./mm/filemap.chMhjubj9)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_end_private_2 (C function)c.folio_end_private_2hNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void folio_end_private_2 (struct folio *folio)h]h)}(h-void folio_end_private_2(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_end_private_2h]h)}(hfolio_end_private_2h]hfolio_end_private_2}(hj!hhhNhNubah}(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}(hj=hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]h)}(hfolioh]hfolio}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj]modnameN classnameNj\j_)}jb]je)}jXj#sbc.folio_end_private_2asbuh1hhj9ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj9ubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5ubah}(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(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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jجj4jجj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.chMhjܬubj)}(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.chM hjubj)}(hhh]j9)}(h The folio.h]h The folio.}(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&]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: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.}(hjRhhhNhNubah}(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.}(hjahhhNhNubah}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!folio_wait_private_2 (C function)c.folio_wait_private_2hNtauh1hhjhhhNhNubh)}(hhh](h)}(h/void folio_wait_private_2 (struct folio *folio)h]h)}(h.void folio_wait_private_2(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(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 uh1hhjhhhjhM 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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_wait_private_2asbuh1hhjɭ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)}(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 uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj )}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jhj4jhj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjpubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM$hjlubj)}(hhh]j)}(h.``struct folio *folio`` The folio to wait on. h](j)}(h``struct folio *folio``h]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.chM!hjubj)}(hhh]j9)}(hThe folio to wait on.h]hThe folio to wait on.}(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&]uh1jhjlubj9)}(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.chM#hjlubj9)}(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.chM"hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*folio_wait_private_2_killable (C function)c.folio_wait_private_2_killablehNtauh1hhjhhhNhNubh)}(hhh](h)}(h7int folio_wait_private_2_killable (struct folio *folio)h]h)}(h6int folio_wait_private_2_killable(struct folio *folio)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM-ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhM-ubh)}(hfolio_wait_private_2_killableh]h)}(hfolio_wait_private_2_killableh]hfolio_wait_private_2_killable}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhjhM-ubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](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)}(hfolioh]hfolio}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjnmodnameN classnameNj\j_)}jb]je)}jXj4sbc.folio_wait_private_2_killableasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjJubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubah}(h]h ]h"]h$]h&]jj uh1jhj hhhjhM-ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhjhM-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM-hjhhubj )}(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&]uh1jhjhhhjhM-ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.chM1hjubj)}(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.chM.hj ubj)}(hhh]j9)}(hThe folio to wait on.h]hThe folio to wait on.}(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&]uh1jhjubj9)}(h**Description**h]jz)}(hjMh]h Description}(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.chM0hjubj9)}(hgWait for PG_private_2 to be cleared on a folio or until a fatal signal is received by the calling task.h]hgWait for PG_private_2 to be cleared on a folio or until a fatal signal is received by the calling task.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM/hjubj9)}(h **Return**h]jz)}(hjth]hReturn}(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.chM2hjubh bullet_list)}(hhh](jw,)}(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.cGhM3hjubah}(h]h ]h"]h$]h&]uh1jv,hjubjw,)}(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.chM4hjubah}(h]h ]h"]h$]h&]uh1jv,hjubeh}(h]h ]h"]h$]h&]bullet-uh1jhjhM3hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.folio_end_writeback_no_dropbehind (C function)#c.folio_end_writeback_no_dropbehindhNtauh1hhjhhhNhNubh)}(hhh](h)}(h ah"]h$]h&]uh1j1 hj ubh)}(hfolioh]hfolio}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMlubeh}(h]h ]h"]h$]h&]jj juh1hjjhj߰hhhjhMlubah}(h]jڰah ](jjeh"]h$]h&]jj)jhuh1hhjhMlhjܰ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.chMlhjhhubah}(h]h ]h"]h$]h&]uh1jhjܰhhhjhMlubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``struct folio *folio`` The folio. **Description** The folio must actually be under writeback. This call is intended for filesystems that need to defer dropbehind. **Context** May be called from process or interrupt context.h](j9)}(h**Parameters**h]jz)}(hjɱh]h Parameters}(hj˱hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDZubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMphjñubj)}(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.chMmhjubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhj߱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:61: ./mm/filemap.chMohjñubj9)}(hpThe folio must actually be under writeback. This call is intended for filesystems that need to defer dropbehind.h]hpThe folio must actually be under writeback. This call is intended for filesystems that need to defer dropbehind.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMnhjñubj9)}(h **Context**h]jz)}(hjJh]hContext}(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.chMqhjñubj9)}(h0May be called from process or interrupt context.h]h0May be called from process or interrupt context.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMrhjñubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_end_writeback (C function)c.folio_end_writebackhNtauh1hhjhhhNhNubh)}(hhh](h)}(h.void folio_end_writeback (struct folio *folio)h]h)}(h-void folio_end_writeback(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_end_writebackh]h)}(hfolio_end_writebackh]hfolio_end_writeback}(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 }(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_end_writebackasbuh1hhjȲ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)}(hfolioh]hfolio}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjȲubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjIJubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hEnd writeback against a folio.h]hEnd writeback against a folio.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jgj4jgj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjqh]h Parameters}(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.chMhjkubj)}(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&]uh1jhjkubj9)}(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.chMhjkubj9)}(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.chMhjkubj9)}(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.chMhjkubj9)}(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.chMhjkubeh}(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}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhjEhMubh)}(h __folio_lockh]h)}(h __folio_lockh]h __folio_lock}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubah}(h]h ](jjeh"]h$]h&]jj uh1hhj3hhhjEhMubj)}(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_lockasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjpubh)}(hfolioh]hfolio}(hjʹhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjlubah}(h]h ]h"]h$]h&]jj uh1jhj3hhhjEhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj/hhhjEhMubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjEhMhj,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,hhhjEhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(h;**Parameters** ``struct folio *folio`` The folio to lockh](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 folio *folio`` The folio to lockh](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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj2ubj)}(hhh]j9)}(hThe folio to lockh]hThe folio to lock}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!page_cache_next_miss (C function)c.page_cache_next_misshNtauh1hhjhhhNhNubh)}(hhh](h)}(hcpgoff_t page_cache_next_miss (struct address_space *mapping, pgoff_t index, unsigned long max_scan)h]h)}(hbpgoff_t page_cache_next_miss(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](h)}(hhh]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_next_misssbc.page_cache_next_missasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpage_cache_next_missh]h)}(hjh]hpage_cache_next_miss}(hjɵhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjŵubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(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]jc.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}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjܵubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjYmodnameN classnameNj\j_)}jb]jc.page_cache_next_missasbuh1hhjPubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(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 }(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)}(hmax_scanh]hmax_scan}(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$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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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&]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?)}(hj?h]hstruct address_space *mapping}(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)}(hMapping.h]hMapping.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhj6ubj)}(h``pgoff_t index`` Index. h](j)}(h``pgoff_t index``h]j?)}(hjxh]h pgoff_t index}(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)}(hIndex.h]hIndex.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhj6ubj)}(h4``unsigned long max_scan`` Maximum range to search. h](j)}(h``unsigned long max_scan``h]j?)}(hjh]hunsigned long max_scan}(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)}(hMaximum range to search.h]hMaximum range to search.}(hjʷhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjƷhMhjǷubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƷhMhj6ubeh}(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)}(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.chMhjubj9)}(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.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:61: ./mm/filemap.chM hjubj9)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!page_cache_prev_miss (C function)c.page_cache_prev_misshNtauh1hhjhhhNhNubh)}(hhh](h)}(hcpgoff_t page_cache_prev_miss (struct address_space *mapping, pgoff_t index, unsigned long max_scan)h]h)}(hbpgoff_t page_cache_prev_miss(struct address_space *mapping, pgoff_t index, unsigned long max_scan)h](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjlmodnameN classnameNj\j_)}jb]je)}jXpage_cache_prev_misssbc.page_cache_prev_missasbuh1hhjchhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjhM#ubh)}(hpage_cache_prev_missh]h)}(hjh]hpage_cache_prev_miss}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjchhhjhM#ubj)}(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 }(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 reftargetjٸmodnameN classnameNj\j_)}jb]jc.page_cache_prev_missasbuh1hhjubj)}(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}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj.modnameN classnameNj\j_)}jb]jc.page_cache_prev_missasbuh1hhj%ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hindexh]hindex}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long max_scanh](j)}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hmax_scanh]hmax_scan}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjchhhjhM#ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj_hhhjhM#ubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjhM#hj\hhubj )}(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.chM#hjйhhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjhM#ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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.chM'hjubj)}(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.chM$hjubj)}(hhh]j9)}(hMapping.h]hMapping.}(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``pgoff_t index`` Index. h](j)}(h``pgoff_t index``h]j?)}(hjMh]h pgoff_t index}(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.chM%hjGubj)}(hhh]j9)}(hIndex.h]hIndex.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhM%hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM%hj ubj)}(h4``unsigned long max_scan`` Maximum range to search. h](j)}(h``unsigned long max_scan``h]j?)}(hjh]hunsigned long max_scan}(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)}(hMaximum range to search.h]hMaximum range to search.}(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}(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.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.}(hj׺hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM'hjubj9)}(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.chM0hjubj9)}(hThe index of the gap if found, otherwise an index outside the range specified (in which case 'index - return >= max_scan' will be true). In the rare case of wrap-around, ULONG_MAX will be returned.h]hThe index of the gap if found, otherwise an index outside the range specified (in which case ‘index - return >= max_scan’ will be true). In the rare case of wrap-around, ULONG_MAX will be returned.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM1hjubeh}(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)}(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}(hj<hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj8hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhMubh)}(hhh]h)}(hfolioh]hfolio}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj]modnameN classnameNj\j_)}jb]je)}jX__filemap_get_foliosbc.__filemap_get_folioasbuh1hhj8hhhjIhMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj8hhhjIhMubh)}(h__filemap_get_folioh]h)}(hjyh]h__filemap_get_folio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8hhhjIhMubj)}(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}(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 reftargetjֻmodnameN classnameNj\j_)}jb]jwc.__filemap_get_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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]jwc.__filemap_get_folioasbuh1hhj"ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubh)}(hindexh]hindex}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hfgf_t fgp_flagsh](h)}(hhh]h)}(hfgf_th]hfgf_t}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjsmodnameN classnameNj\j_)}jb]jwc.__filemap_get_folioasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(h fgp_flagsh]h fgp_flags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubeh}(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]jwc.__filemap_get_folioasbuh1hhjubj)}(h h]h }(hj׼hhhNhNubah}(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 uh1jhj8hhhjIhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4hhhjIhMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjIhMhj1hhubj )}(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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjIhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j'j4j'j5j6j7uh1hhhhjhNhNubjp)}(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)}(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:61: ./mm/filemap.chMhj+ubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]j?)}(hjPh]hstruct address_space *mapping}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjJubj)}(hhh]j9)}(hThe address_space to search.h]hThe address_space to search.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjGubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]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 index.h]hThe page index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubj)}(hD``fgf_t fgp_flags`` ``FGP`` flags modify how the folio is returned. h](j)}(h``fgf_t fgp_flags``h]j?)}(hj½h]hfgf_t fgp_flags}(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/``FGP`` flags modify how the folio is returned.h](j?)}(h``FGP``h]hFGP}(hj߽hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj۽ubh( flags modify how the folio is returned.}(hj۽hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj׽hMhjؽubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj׽hMhjGubj)}(hL``gfp_t gfp`` Memory allocation flags to use if ``FGP_CREAT`` is specified. h](j)}(h ``gfp_t gfp``h]j?)}(hj h]h gfp_t gfp}(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=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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubj9)}(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.chMhj+ubj9)}(h9Looks up the page cache entry at **mapping** & **index**.h](h!Looks up the page cache entry at }(hjlhhhNhNubjz)}(h **mapping**h]hmapping}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubh & }(hjlhhhNhNubjz)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubh.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj+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 }(hjhhhNhNubj?)}(h ``FGP_LOCK``h]hFGP_LOCK}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh or }(hjhhhNhNubj?)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh7 are specified then the function may sleep even if the }(hjhhhNhNubj?)}(h``GFP``h]hGFP}(hj˾hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh flags specified for }(hjhhhNhNubj?)}(h ``FGP_CREAT``h]h FGP_CREAT}(hjݾhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh are atomic.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj+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.chMhj+ubj9)}(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:61: ./mm/filemap.chMhj+ubj9)}(h*The found folio or an ERR_PTR() otherwise.h]h*The found folio or an ERR_PTR() otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_get_folios (C function)c.filemap_get_folioshNtauh1hhjhhhNhNubh)}(hhh](h)}(htunsigned filemap_get_folios (struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h]h)}(hsunsigned filemap_get_folios(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j)}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjZhMubh)}(hfilemap_get_foliosh]h)}(hfilemap_get_foliosh]hfilemap_get_folios}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ](jjeh"]h$]h&]jj uh1hhjHhhhjZhMubj)}(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}(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)}jXjosbc.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)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]jÿc.filemap_get_foliosasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj*hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hstarth]hstart}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t endh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjUmodnameN classnameNj\j_)}jb]jÿc.filemap_get_foliosasbuh1hhjLubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hendh]hend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]jÿc.filemap_get_foliosasbuh1hhjubj)}(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 uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjHhhhjZhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjDhhhjZhMubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1hhjZhMhjAhhubj )}(hhh]j9)}(hGet a batch of foliosh]hGet a batch of folios}(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&]uh1jhjAhhhjZhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j1j4j1j5j6j7uh1hhhhjhNhNubjp)}(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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj9ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj5ubj)}(hhh](j)}(h>``struct address_space *mapping`` The address_space to search h](j)}(h!``struct address_space *mapping``h]j?)}(hjZh]hstruct address_space *mapping}(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.chMhjTubj)}(hhh]j9)}(hThe address_space to searchh]hThe address_space to search}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(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&]uh1jhjhMhjQubj)}(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&]uh1jhjhMhjQubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubj9)}(h**Description**h]jz)}(hj@h]h Description}(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.chMhj5ubj9)}(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 }(hjVhhhNhNubjz)}(h **start**h]hstart}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVubh and up to index }(hjVhhhNhNubjz)}(h**end**h]hend}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVubh* (inclusive). The folios are returned in }(hjVhhhNhNubjz)}(h **fbatch**h]hfbatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVubh" with an elevated reference count.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj5ubj9)}(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.chMhj5ubj9)}(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 }(hjhhhNhNubjz)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh+ to index the next folio for the traversal.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&filemap_get_folios_contig (C function)c.filemap_get_folios_contighNtauh1hhjhhhNhNubh)}(hhh](h)}(h{unsigned filemap_get_folios_contig (struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h]h)}(hzunsigned filemap_get_folios_contig(struct address_space *mapping, pgoff_t *start, pgoff_t end, struct folio_batch *fbatch)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfilemap_get_folios_contigh]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}(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)}jXjsbc.filemap_get_folios_contigasbuh1hhj-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)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]jkc.filemap_get_folios_contigasbuh1hhjubj)}(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 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]jkc.filemap_get_folios_contigasbuh1hhjubj)}(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}(hj@hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj<ubj)}(h h]h }(hjMhhhNhNubah}(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]jkc.filemap_get_folios_contigasbuh1hhj<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)}(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)}(h Get a batch of contiguous foliosh]h Get a batch of contiguous folios}(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-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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}(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>hj9ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhj5ubj)}(hhh]j9)}(hThe starting page indexh]hThe starting page index}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjubj)}(h1``pgoff_t end`` The final page index (inclusive) h](j)}(h``pgoff_t end``h]j?)}(hjth]h pgoff_t end}(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 final page index (inclusive)h]h The final page index (inclusive)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``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 fillh]hThe batch to fill}(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: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&]uh1jyhj ubah}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#filemap_get_folios_tag (C function)c.filemap_get_folios_taghNtauh1hhjhhhNhNubh)}(hhh](h)}(hunsigned filemap_get_folios_tag (struct address_space *mapping, pgoff_t *start, pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch)h]h)}(hunsigned filemap_get_folios_tag(struct address_space *mapping, pgoff_t *start, pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch)h](j)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjthM ubh)}(hfilemap_get_folios_tagh]h)}(hfilemap_get_folios_tagh]hfilemap_get_folios_tag}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjbhhhjthM ubj)}(hg(struct address_space *mapping, pgoff_t *start, pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch)h](j)}(hstruct address_space *mappingh](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_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)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]jc.filemap_get_folios_tagasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjDhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hstarth]hstart}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t endh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjomodnameN classnameNj\j_)}jb]jc.filemap_get_folios_tagasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hendh]hend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h xa_mark_t tagh](h)}(hhh]h)}(h xa_mark_th]h xa_mark_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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(htagh]htag}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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 }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjDhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfbatchh]hfbatch}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjbhhhjthM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj^hhhjthM ubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjthM hj[hhubj )}(hhh]j9)}(h&Get a batch of folios matching **tag**h](hGet a batch of folios matching }(hj{hhhNhNubjz)}(h**tag**h]htag}(hjhhhNhNubah}(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.chM hjxhhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjthM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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 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.chM hjubj)}(hhh]j9)}(hThe address_space to searchh]hThe address_space to search}(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 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.chM hjubj)}(hhh]j9)}(hThe starting page indexh]hThe starting page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h1``pgoff_t end`` The final page index (inclusive) h](j)}(h``pgoff_t end``h]j?)}(hj<h]h pgoff_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.chM hj6ubj)}(hhh]j9)}(h The final page index (inclusive)h]h The final page index (inclusive)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQhM hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjubj)}(h ``xa_mark_t tag`` The tag index h](j)}(h``xa_mark_t tag``h]j?)}(hjuh]h xa_mark_t tag}(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.chM hjoubj)}(hhh]j9)}(h The tag indexh]h The tag index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h1``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.chM hjubj)}(hhh]j9)}(hThe batch to fillh]hThe batch to fill}(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}(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 hjubj9)}(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}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh; if it does, it will contain }(hjhhhNhNubjz)}(h**end**h]hend}(hj=hhhNhNubah}(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}(hjOhhhNhNubah}(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.chM hjubj9)}(h **Return**h]jz)}(hjjh]hReturn}(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 hjubj9)}(hXThe number of folios found. Also update **start** to index the next folio for traversal.h](h(The number of folios found. Also update }(hjhhhNhNubjz)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh' to index the next folio for traversal.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_read (C function)c.filemap_readhNtauh1hhjhhhNhNubh)}(hhh](h)}(hVssize_t filemap_read (struct kiocb *iocb, struct iov_iter *iter, ssize_t already_read)h]h)}(hUssize_t filemap_read(struct kiocb *iocb, struct iov_iter *iter, ssize_t already_read)h](h)}(hhh]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 filemap_readsbc.filemap_readasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(h filemap_readh]h)}(hjh]h filemap_read}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM 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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hkiocbh]hkiocb}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3modnameN classnameNj\j_)}jb]jc.filemap_readasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj]hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hiocbh]hiocb}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hstruct iov_iter *iterh](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.filemap_readasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(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}(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)}(hRead data from the page cache.h]hRead data from the page cache.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jdj4jdj5j6j7uh1hhhhjhNhNubjp)}(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)}(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:61: ./mm/filemap.chM hjhubj)}(hhh](j)}(h)``struct kiocb *iocb`` The iocb to read. 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)}(hThe iocb to read.h]hThe iocb to read.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h4``struct iov_iter *iter`` Destination for the data. h](j)}(h``struct iov_iter *iter``h]j?)}(hjh]hstruct iov_iter *iter}(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)}(hDestination for the data.h]hDestination for the data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hE``ssize_t already_read`` Number of bytes already read by the caller. h](j)}(h``ssize_t already_read``h]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.chM 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&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjhubj9)}(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:61: ./mm/filemap.chM hjhubj9)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhubj9)}(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:61: ./mm/filemap.chM hjhubj9)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#generic_file_read_iter (C function)c.generic_file_read_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hJssize_t generic_file_read_iter (struct kiocb *iocb, struct iov_iter *iter)h]h)}(hIssize_t generic_file_read_iter(struct kiocb *iocb, struct iov_iter *iter)h](h)}(hhh]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_read_itersbc.generic_file_read_iterasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM> ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM> ubh)}(hgeneric_file_read_iterh]h)}(hjh]hgeneric_file_read_iter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM> 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]jc.generic_file_read_iterasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjBhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hiocbh]hiocb}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct iov_iter *iterh](j!)}(hj$h]hstruct}(hjhhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(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_read_iterasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdubh)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubeh}(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)}(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&]uh1jhjhhhjhM> ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.chMB hjubj)}(hhh](j)}(h0``struct kiocb *iocb`` kernel I/O control block h](j)}(h``struct kiocb *iocb``h]j?)}(hj*h]hstruct kiocb *iocb}(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)}(hkernel I/O control blockh]hkernel I/O control block}(hjChhhNhNubah}(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``struct iov_iter *iter`` destination for the data read h](j)}(h``struct iov_iter *iter``h]j?)}(hjch]hstruct iov_iter *iter}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM@ hj]ubj)}(hhh]j9)}(hdestination for the data readh]hdestination for the data read}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjxhM@ hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM@ 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.chMB 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMA 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMD 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMH 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.chMM hjubj)}(hhh](jw,)}(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.chMN hjubah}(h]h ]h"]h$]h&]uh1jv,hjubjw,)}(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.chMO hjubah}(h]h ]h"]h$]h&]uh1jv,hjubeh}(h]h ]h"]h$]h&]jŰj5 uh1jhj hMN hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ filemap_splice_read (C function)c.filemap_splice_readhNtauh1hhjhhhNhNubh)}(hhh](h)}(hyssize_t filemap_splice_read (struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)h]h)}(hxssize_t filemap_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)h](h)}(hhh]h)}(hssize_th]hssize_t}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjWmodnameN classnameNj\j_)}jb]je)}jXfilemap_splice_readsbc.filemap_splice_readasbuh1hhjNhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjvhM ubh)}(hfilemap_splice_readh]h)}(hjsh]hfilemap_splice_read}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjNhhhjvhM 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}(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]jqc.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)}(hinh]hin}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]jqc.filemap_splice_readasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjChhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpposh]hppos}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct pipe_inode_info *pipeh](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)}(hpipe_inode_infoh]hpipe_inode_info}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jqc.filemap_splice_readasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjeubh)}(hpipeh]hpipe}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]jqc.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 uh1jhjubj)}(hunsigned int flagsh](j)}(hunsignedh]hunsigned}(hj!hhhNhNubah}(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 }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjYhhhNhNubah}(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)}(h/Splice data from a file's pagecache into a pipeh]h1Splice data from a file’s pagecache into a pipe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjvhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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 file *in`` The file to read from h](j)}(h``struct file *in``h]j?)}(hjh]hstruct file *in}(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 file to read fromh]hThe file to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h;``loff_t *ppos`` Pointer to the file position to read from h](j)}(h``loff_t *ppos``h]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 hjubj)}(h9``struct pipe_inode_info *pipe`` The pipe to splice into h](j)}(h ``struct pipe_inode_info *pipe``h]j?)}(hj6h]hstruct pipe_inode_info *pipe}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hj0ubj)}(hhh]j9)}(hThe pipe to splice intoh]hThe pipe to splice into}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjKhM hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhM hjubj)}(h$``size_t len`` The amount to splice h](j)}(h``size_t len``h]j?)}(hjoh]h size_t len}(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 amount to spliceh]hThe amount to splice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h,``unsigned int flags`` The SPLICE_F_* flags h](j)}(h``unsigned int flags``h]j?)}(hjh]hunsigned int flags}(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 SPLICE_F_* flagsh]hThe SPLICE_F_* flags}(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}(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 hjubj9)}(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 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.chM hjubj9)}(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 }(hj hhhNhNubjz)}(h ***ppos**h]h*ppos}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubhX4 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.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfilemap_fault (C function)c.filemap_faulthNtauh1hhjhhhNhNubh)}(hhh](h)}(h/vm_fault_t filemap_fault (struct vm_fault *vmf)h]h)}(h.vm_fault_t filemap_fault(struct vm_fault *vmf)h](h)}(hhh]h)}(h vm_fault_th]h vm_fault_t}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjfmodnameN classnameNj\j_)}jb]je)}jX filemap_faultsbc.filemap_faultasbuh1hhj]hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMa ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhjhMa ubh)}(h filemap_faulth]h)}(hjh]h filemap_fault}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj]hhhjhMa ubj)}(h(struct vm_fault *vmf)h]j)}(hstruct vm_fault *vmfh](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_faulth]hvm_fault}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.filemap_faultasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmfh]hvmf}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhj]hhhjhMa ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjYhhhjhMa ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjhMa hjVhhubj )}(hhh]j9)}(h)read in file data for page fault handlingh]h)read in file data for page fault handling}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMa hj1hhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjhMa ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jLj4jLj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.chMe hjPubj)}(hhh]j)}(hI``struct vm_fault *vmf`` struct vm_fault containing details of the fault h](j)}(h``struct vm_fault *vmf``h]j?)}(hjuh]hstruct vm_fault *vmf}(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.chMb hjoubj)}(hhh]j9)}(h/struct vm_fault containing details of the faulth]h/struct vm_fault containing details of the fault}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMb hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMb hjlubah}(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.chMd hjPubj9)}(h}filemap_fault() is invoked via the vma operations vector for a mapped memory region to read in file data during a page fault.h]h}filemap_fault() is invoked via the vma operations vector for a mapped memory region to read in file data during a page fault.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMc hjPubj9)}(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.chMf hjPubj9)}(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.chMj hjPubj9)}(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.chMl hjPubj9)}(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.chMo hjPubj9)}(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.chMr hjPubj9)}(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.chMt hjPubj9)}(h"bitwise-OR of ``VM_FAULT_`` codes.h](hbitwise-OR of }(hj8hhhNhNubj?)}(h ``VM_FAULT_``h]h VM_FAULT_}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8ubh codes.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMu hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌread_cache_folio (C function)c.read_cache_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hrstruct folio * read_cache_folio (struct address_space *mapping, pgoff_t index, filler_t filler, struct file *file)h]h)}(hpstruct folio *read_cache_folio(struct address_space *mapping, pgoff_t index, filler_t filler, struct file *file)h](j!)}(hj$h]hstruct}(hjyhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjuhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhMubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXread_cache_foliosbc.read_cache_folioasbuh1hhjuhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjuhhhjhMubh)}(hread_cache_folioh]h)}(hjh]hread_cache_folio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjuhhhjhMubj)}(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]jc.read_cache_folioasbuh1hhjubj)}(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}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]jc.read_cache_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 uh1jhjubj)}(hfiller_t fillerh](h)}(hhh]h)}(hfiller_th]hfiller_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.read_cache_folioasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hfillerh]hfiller}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(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]jc.read_cache_folioasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj=hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfileh]hfile}(hjJhhhNhNubah}(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(Read into page cache, fill it if needed.h]h(Read into page cache, fill it if needed.}(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&]uh1jhjnhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(hB``struct address_space *mapping`` The address_space to read from. 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 read from.h]hThe address_space to read from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``pgoff_t index`` The index to read. h](j)}(h``pgoff_t index``h]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&]uh1jhjhMhjubj)}(hU``filler_t filler`` Function to perform the read, or NULL to use aops->read_folio(). h](j)}(h``filler_t filler``h]j?)}(hj'h]hfiller_t filler}(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@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().}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubj)}(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}(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)}(h7Passed to filler function, may be NULL if not required.h]h7Passed to filler function, may be NULL if not required.}(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:61: ./mm/filemap.chMhjubj9)}(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 }(hjhhhNhNubjz)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh0, but it may not be the first page of the folio.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.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:61: ./mm/filemap.chMhjubj9)}(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.chMhjubj9)}(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)}(h3An uptodate folio on success, ERR_PTR() on failure.h]h3An uptodate folio on success, ERR_PTR() on failure.}(hj hhhNhNubah}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#mapping_read_folio_gfp (C function)c.mapping_read_folio_gfphNtauh1hhjhhhNhNubh)}(hhh](h)}(h_struct folio * mapping_read_folio_gfp (struct address_space *mapping, pgoff_t index, gfp_t gfp)h]h)}(h]struct folio *mapping_read_folio_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j!)}(hj$h]hstruct}(hjOhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjKhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj\hMubh)}(hhh]h)}(hfolioh]hfolio}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjpmodnameN classnameNj\j_)}jb]je)}jXmapping_read_folio_gfpsbc.mapping_read_folio_gfpasbuh1hhjKhhhj\hMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj\hMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjKhhhj\hMubh)}(hmapping_read_folio_gfph]h)}(hjh]hmapping_read_folio_gfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjKhhhj\hMubj)}(h9(struct address_space *mapping, pgoff_t index, gfp_t gfp)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]jc.mapping_read_folio_gfpasbuh1hhjubj)}(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)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj>modnameN classnameNj\j_)}jb]jc.mapping_read_folio_gfpasbuh1hhj5ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hindexh]hindex}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubeh}(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.mapping_read_folio_gfpasbuh1hhj}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 uh1jhjKhhhj\hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjGhhhj\hMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhj\hMhjDhhubj )}(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&]uh1jhjDhhhj\hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(hC``pgoff_t index`` The index that the allocated folio will contain. h](j)}(h``pgoff_t index``h]j?)}(hjTh]h pgoff_t index}(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)}(h0The index that the allocated folio will contain.h]h0The index that the allocated folio will contain.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubj)}(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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj)}(hhh]j9)}(h.The page allocator flags to use if allocating.h]h.The page allocator flags to use if allocating.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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: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)}(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.chMhjubj9)}(h0Uptodate folio on success, ERR_PTR() on failure.h]h0Uptodate folio on success, ERR_PTR() on failure.}(hj#hhhNhNubah}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ read_cache_page_gfp (C function)c.read_cache_page_gfphNtauh1hhjhhhNhNubh)}(hhh](h)}(h[struct page * read_cache_page_gfp (struct address_space *mapping, pgoff_t index, gfp_t gfp)h]h)}(hYstruct page *read_cache_page_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j!)}(hj$h]hstruct}(hjRhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjNhhhL/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&]uh1jhjNhhhj_hM ubh)}(hhh]h)}(hpageh]hpage}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjsmodnameN classnameNj\j_)}jb]je)}jXread_cache_page_gfpsbc.read_cache_page_gfpasbuh1hhjNhhhj_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)}(hread_cache_page_gfph]h)}(hjh]hread_cache_page_gfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjNhhhj_hM ubj)}(h9(struct address_space *mapping, pgoff_t index, gfp_t gfp)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]jc.read_cache_page_gfpasbuh1hhjubj)}(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)}(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 reftargetjAmodnameN classnameNj\j_)}jb]jc.read_cache_page_gfpasbuh1hhj8ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hindexh]hindex}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubeh}(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.read_cache_page_gfpasbuh1hhjubj)}(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 uh1jhjNhhhj_hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjJhhhj_hM ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhj_hM hjGhhubj )}(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.chM hjubj)}(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}(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)}(hthe page's address_spaceh]hthe page’s address_space}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj3hM hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hM hjubj)}(h!``pgoff_t index`` the page index h](j)}(h``pgoff_t index``h]j?)}(hjWh]h pgoff_t index}(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.chM hjQubj)}(hhh]j9)}(hthe page indexh]hthe page index}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjlhM hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhM hjubj)}(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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjubj)}(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&]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}(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 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.chM hjubj9)}(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.}(hj&hhhNhNubah}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&__generic_file_write_iter (C function)c.__generic_file_write_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hMssize_t __generic_file_write_iter (struct kiocb *iocb, struct iov_iter *from)h]h)}(hLssize_t __generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)h](h)}(hhh]h)}(hssize_th]hssize_t}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjZmodnameN classnameNj\j_)}jb]je)}jX__generic_file_write_itersbc.__generic_file_write_iterasbuh1hhjQhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjyhMubh)}(h__generic_file_write_iterh]h)}(hjvh]h__generic_file_write_iter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjQhhhjyhMubj)}(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 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]jtc.__generic_file_write_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 *fromh](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}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj7modnameN classnameNj\j_)}jb]jtc.__generic_file_write_iterasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjahhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfromh]hfrom}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjQhhhjyhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjMhhhjyhMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhjJhhubj )}(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&]uh1jhjJhhhjyhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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 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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhj ubj)}(hhh]j9)}(hiov_iter with data to writeh]hiov_iter with data to write}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj'hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhjubeh}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjubj9)}(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 }(hjhhhNhNubjK)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjubh take care of syncing data in case of O_SYNC write. A caller has to handle it. This is mainly due to the fact that we want to avoid syncing under i_rwsem.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]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](jw,)}(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&]uh1jv,hjubjw,)}(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&]uh1jv,hjubeh}(h]h ]h"]h$]h&]jŰj5 uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$generic_file_write_iter (C function)c.generic_file_write_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(hKssize_t generic_file_write_iter (struct kiocb *iocb, struct iov_iter *from)h]h)}(hJssize_t generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)h](h)}(hhh]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.chM ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj7hM ubh)}(hgeneric_file_write_iterh]h)}(hj4h]hgeneric_file_write_iter}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj7hM ubj)}(h+(struct kiocb *iocb, struct iov_iter *from)h](j)}(hstruct kiocb *iocbh](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)}(hkiocbh]hkiocb}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j2c.generic_file_write_iterasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjaubh)}(hiocbh]hiocb}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj]ubj)}(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]j2c.generic_file_write_iterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfromh]hfrom}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj]ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj7hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj7hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hM hjhhubj )}(hhh]j9)}(hwrite data to a fileh]hwrite data to a file}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM hjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jnj4jnj5j6j7uh1hhhhjhNhNubjp)}(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)}(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 kiocb *iocb`` IO state structure 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)}(hIO state structureh]hIO state structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h6``struct iov_iter *from`` iov_iter with data to write h](j)}(h``struct iov_iter *from``h]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&]uh1jhjhMhjubeh}(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)}(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.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjrubj9)}(h **Return**h]jz)}(hj2h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjrubj)}(hhh](jw,)}(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}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjKubah}(h]h ]h"]h$]h&]uh1jv,hjHubjw,)}(h2number of bytes written, even for truncated writesh]j9)}(hjfh]h2number of bytes written, even for truncated writes}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMhjdubah}(h]h ]h"]h$]h&]uh1jv,hjHubeh}(h]h ]h"]h$]h&]jŰj5 uh1jhj]hMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"filemap_release_folio (C function)c.filemap_release_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(h;bool filemap_release_folio (struct folio *folio, gfp_t gfp)h]h)}(h:bool filemap_release_folio(struct folio *folio, gfp_t gfp)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM+ubh)}(hfilemap_release_folioh]h)}(hfilemap_release_folioh]hfilemap_release_folio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM+ubj)}(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)}jXjsbc.filemap_release_folioasbuh1hhjubj)}(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}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h gfp_t gfph](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]jc.filemap_release_folioasbuh1hhjLubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubeh}(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(Release fs-specific metadata on a folio.h]h(Release fs-specific metadata on 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&]uh1jhjhhhjhM+ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(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.chM,hjubj)}(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&]uh1j8hjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubj)}(h6``gfp_t gfp`` Memory allocation flags (and I/O 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM-hjubj)}(hhh]j9)}(h'Memory allocation flags (and I/O mode).h]h'Memory allocation flags (and I/O mode).}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj8hM-hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hM-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:61: ./mm/filemap.chM/hjubj9)}(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).}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM.hjubj9)}(hThis will also be called if the private_2 flag is set on a page, indicating that the folio has other metadata associated with it.h]hThis will also be called if the private_2 flag is set on a page, indicating that the folio has other metadata associated with it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM1hjubj9)}(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 }(hjhhhNhNubjz)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh argument specifies whether I/O may be performed to release this page (__GFP_IO), and whether the call may block (__GFP_RECLAIM & __GFP_FS).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM4hjubj9)}(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.chM8hjubj9)}(h<``true`` if the release was successful, otherwise ``false``.h](j?)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh* if the release was successful, otherwise }(hjhhhNhNubj?)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chM9hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%filemap_invalidate_inode (C function)c.filemap_invalidate_inodehNtauh1hhjhhhNhNubh)}(hhh](h)}(hXint filemap_invalidate_inode (struct inode *inode, bool flush, loff_t start, loff_t end)h]h)}(hWint filemap_invalidate_inode(struct inode *inode, bool flush, loff_t start, loff_t end)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMLubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj(hMLubh)}(hfilemap_invalidate_inodeh]h)}(hfilemap_invalidate_inodeh]hfilemap_invalidate_inode}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj(hMLubj)}(h;(struct inode *inode, bool flush, loff_t start, loff_t end)h](j)}(hstruct inode *inodeh](j!)}(hj$h]hstruct}(hjWhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]h)}(hinodeh]hinode}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjwmodnameN classnameNj\j_)}jb]je)}jXj=sbc.filemap_invalidate_inodeasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjSubh)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjOubj)}(h bool flushh](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflushh]hflush}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjOubj)}(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]jc.filemap_invalidate_inodeasbuh1hhjubj)}(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 uh1jhjOubj)}(h loff_t endh](h)}(hhh]h)}(hloff_th]hloff_t}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjJmodnameN classnameNj\j_)}jb]jc.filemap_invalidate_inodeasbuh1hhjAubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hendh]hend}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjOubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj(hMLubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj(hMLubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj(hMLhjhhubj )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMLhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hMLubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.chMPhjubj)}(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.chMMhjubj)}(hhh]j9)}(hThe inode to flushh]hThe inode to flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubj)}(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.chMNhjubj)}(hhh]j9)}(h0Set to write back rather than simply invalidate.h]h0Set to write back rather than simply invalidate.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj-hMNhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMNhjubj)}(h)``loff_t start`` First byte to in range. h](j)}(h``loff_t start``h]j?)}(hjQh]h loff_t start}(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.chMOhjKubj)}(hhh]j9)}(hFirst byte to in range.h]hFirst byte to in range.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjfhMOhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMOhjubj)}(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?)}(hjh]h loff_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.chMQhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:61: ./mm/filemap.chMPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjubeh}(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.chMShjubj9)}(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.chMRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubeh}(h]filemapah ]h"]filemapah$]h&]uh1hhjhhhhhK;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.}(hj hhhNhNubah}(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.}(hj)hhhNhNubah}(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.}(hj8hhhNhNubah}(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.}(hjGhhhNhNubah}(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.}(hjVhhhNhNubah}(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.}(hjehhhNhNubah}(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.}(hjthhhNhNubah}(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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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.}(hjhhhNhNubah}(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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKShjhhubj)}(hhh](jw,)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:67: ./mm/readahead.chKWhjubah}(h]h ]h"]h$]h&]uh1jv,hjubjw,)}(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&]uh1jv,hjubjw,)}(hreadahead() should not fail them due to congestion or temporary resource unavailability, but should wait for necessary resources (e.g. memory or indexing information) to become available. Folios in the final ``async_size`` may be considered less urgent and failure to read them is more acceptable. In this case it is best to use filemap_remove_folio() to remove the folios from the page cache as is automatically done for folios that were not fetched with readahead_folio(). This will allow a subsequent synchronous readahead request to try them again. If they are left in the page cache, then they will be read individually using ->read_folio() which may be less efficient.h](hThose folios not in the final }(hj"hhhNhNubj?)}(h``async_size``h]h async_size}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubhX  of the request should be considered to be important and ->readahead() should not fail them due to congestion or temporary resource unavailability, but should wait for necessary resources (e.g. memory or indexing information) to become available. Folios in the final }(hj"hhhNhNubj?)}(h``async_size``h]h async_size}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"ubhX may be considered less urgent and failure to read them is more acceptable. In this case it is best to use filemap_remove_folio() to remove the folios from the page cache as is automatically done for folios that were not fetched with readahead_folio(). This will allow a subsequent synchronous readahead request to try them again. If they are left in the page cache, then they will be read individually using ->read_folio() which may be less efficient.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]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}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhj|hKubh)}(hpage_cache_ra_unboundedh]h)}(hpage_cache_ra_unboundedh]hpage_cache_ra_unbounded}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjjhhhj|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}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.page_cache_ra_unboundedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(=h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hractlh]hractl}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long nr_to_readh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h nr_to_readh]h nr_to_read}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long lookahead_sizeh](j)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hlookahead_sizeh]hlookahead_size}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjjhhhj|hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjfhhhj|hKubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj|hKhjchhubj )}(hhh]j9)}(hStart unchecked readahead.h]hStart unchecked readahead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|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.chKhj ubj)}(hhh]j9)}(hReadahead control.h]hReadahead control.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj&hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjubj)}(h:``unsigned long nr_to_read`` The number of pages to read. h](j)}(h``unsigned long nr_to_read``h]j?)}(hjJh]hunsigned long nr_to_read}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chKhjDubj)}(hhh]j9)}(hThe number of pages to read.h]hThe number of pages to read.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_hKhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(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?)}(hjh]hunsigned long lookahead_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:70: ./mm/readahead.chKhj}ubj)}(hhh]j9)}(h"Where to start the next readahead.h]h"Where to start the next readahead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(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&]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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj8hMubh)}(hreadahead_expandh]h)}(hreadahead_expandh]hreadahead_expand}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubah}(h]h ](jjeh"]h$]h&]jj uh1hhj&hhhj8hMubj)}(hC(struct readahead_control *ractl, loff_t new_start, size_t new_len)h](j)}(hstruct readahead_control *ractlh](j!)}(hj$h]hstruct}(hjghhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjMsbc.readahead_expandasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjcubh)}(hractlh]hractl}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubeh}(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]jc.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}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj&modnameN classnameNj\j_)}jb]jc.readahead_expandasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnew_lenh]hnew_len}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj_ubeh}(h]h ]h"]h$]h&]jj uh1jhj&hhhj8hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj"hhhj8hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj8hMhjhhubj )}(hhh]j9)}(hExpand a readahead requesth]hExpand a readahead request}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj8hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.chMhjubj)}(hhh](j)}(h?``struct readahead_control *ractl`` The request to be expanded 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.chMhjubj)}(hhh]j9)}(hThe request to be expandedh]hThe request to be expanded}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h3``size_t new_len`` The revised size of the request h](j)}(h``size_t new_len``h]j?)}(hj-h]hsize_t new_len}(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:70: ./mm/readahead.chMhj'ubj)}(hhh]j9)}(hThe revised size of the requesth]hThe revised size of the request}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubeh}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubj9)}(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.chMhjubj9)}(hThe algorithm will stop if it encounters a conflicting page already in the pagecache and leave a smaller expansion than requested.h]hThe algorithm will stop if it encounters a conflicting page already in the pagecache and leave a smaller expansion than requested.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubj9)}(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 }(hjhhhNhNubjz)}(h **ractl**h]hractl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh5 object for a different expansion than was requested.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:70: ./mm/readahead.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubeh}(h] readaheadah ]h"] readaheadah$]h&]uh1hhjhhhhhKAubh)}(hhh](h)}(h Writebackh]h Writeback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKJubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ2balance_dirty_pages_ratelimited_flags (C function)'c.balance_dirty_pages_ratelimited_flagshNtauh1hhjhhhNhNubh)}(hhh](h)}(h]int balance_dirty_pages_ratelimited_flags (struct address_space *mapping, unsigned int flags)h]h)}(h\int balance_dirty_pages_ratelimited_flags(struct address_space *mapping, unsigned int flags)h](j)}(hinth]hint}(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}(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)}jXjsb'c.balance_dirty_pages_ratelimited_flagsasbuh1hhj/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)}(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 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)}(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-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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:76: ./mm/page-writeback.chMhj#ubj)}(hhh](j)}(hC``struct address_space *mapping`` address_space which was dirtied. h](j)}(h!``struct address_space *mapping``h]j?)}(hjHh]hstruct address_space *mapping}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjFubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhjBubj)}(hhh]j9)}(h address_space which was dirtied.h]h address_space which was dirtied.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?ubj)}(h"``unsigned int flags`` BDP flags. h](j)}(h``unsigned int flags``h]j?)}(hjh]hunsigned int flags}(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.chMhj{ubj)}(hhh]j9)}(h BDP flags.h]h BDP flags.}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhj#ubj9)}(hProcesses which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system's dirty state and will initiate writeback if needed.h]hProcesses which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system’s dirty state and will initiate writeback if needed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMhj#ubj9)}(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.chMhj#ubj9)}(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.chMhj#ubj9)}(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.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,balance_dirty_pages_ratelimited (C function)!c.balance_dirty_pages_ratelimitedhNtauh1hhjhhhNhNubh)}(hhh](h)}(hDvoid balance_dirty_pages_ratelimited (struct address_space *mapping)h]h)}(hCvoid balance_dirty_pages_ratelimited(struct address_space *mapping)h](j)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM9ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjWhM9ubh)}(hbalance_dirty_pages_ratelimitedh]h)}(hbalance_dirty_pages_ratelimitedh]hbalance_dirty_pages_ratelimited}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubah}(h]h ](jjeh"]h$]h&]jj uh1hhjEhhhjWhM9ubj)}(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)}jXjlsb!c.balance_dirty_pages_ratelimitedasbuh1hhjubj)}(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 uh1jhj~ubah}(h]h ]h"]h$]h&]jj uh1jhjEhhhjWhM9ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjAhhhjWhM9ubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhM9hj>hhubj )}(hhh]j9)}(hbalance dirty memory state.h]hbalance dirty memory state.}(hj hhhNhNubah}(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&]uh1jhj>hhhjWhM9ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j!j4j!j5j6j7uh1hhhhjhNhNubjp)}(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)}(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:76: ./mm/page-writeback.chM=hj%ubj)}(hhh]j)}(hC``struct address_space *mapping`` address_space which was dirtied. h](j)}(h!``struct address_space *mapping``h]j?)}(hjJh]hstruct address_space *mapping}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM:hjDubj)}(hhh]j9)}(h address_space which was dirtied.h]h address_space which was dirtied.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_hM:hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hM:hjAubah}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM<hj%ubj9)}(hProcesses which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system's dirty state and will initiate writeback if needed.h]hProcesses which are dirtying memory should call in here once for each page which was newly dirtied. The function will periodically check the system’s dirty state and will initiate writeback if needed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM;hj%ubj9)}(hOnce we're over the dirty memory limit we decrease the ratelimiting by a lot, to prevent individual processes from overshooting the limit by (ratelimit_pages) each.h]hOnce we’re over the dirty memory limit we decrease the ratelimiting by a lot, to prevent individual processes from overshooting the limit by (ratelimit_pages) each.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM?hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$tag_pages_for_writeback (C function)c.tag_pages_for_writebackhNtauh1hhjhhhNhNubh)}(hhh](h)}(hXvoid tag_pages_for_writeback (struct address_space *mapping, pgoff_t start, pgoff_t end)h]h)}(hWvoid tag_pages_for_writeback(struct address_space *mapping, pgoff_t start, pgoff_t end)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.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 }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h address_spaceh]h address_space}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6modnameN classnameNj\j_)}jb]je)}jXjsbc.tag_pages_for_writebackasbuh1hhjubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjbhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]jPc.tag_pages_for_writebackasbuh1hhjubj)}(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 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]jPc.tag_pages_for_writebackasbuh1hhjubj)}(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 uh1jhjhhhjhMB ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMB ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMB hjhhubj )}(hhh]j9)}(h$tag pages to be written by writebackh]h$tag pages to be written by writeback}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMB hj&hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMB ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jAj4jAj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjIubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMF hjEubj)}(hhh](j)}(hC``struct address_space *mapping`` address space structure to write h](j)}(h!``struct address_space *mapping``h]j?)}(hjjh]hstruct address_space *mapping}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjhubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMC hjdubj)}(hhh]j9)}(h address space structure to writeh]h address space structure to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMC hjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMC hjaubj)}(h&``pgoff_t start`` starting page index 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMD hjubj)}(hhh]j9)}(hstarting page indexh]hstarting page index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMD hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMD hjaubj)}(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 hjaubeh}(h]h ]h"]h$]h&]uh1jhjEubj9)}(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 hjEubj9)}(hXThis function scans the page range from **start** to **end** (inclusive) and tags all pages that have DIRTY tag set with a special TOWRITE tag. The caller can then use the TOWRITE tag to identify pages eligible for writeback. This mechanism is used to avoid livelocking of writeback by a process steadily creating new dirty pages in the file (thus it is important for this function to be quick so that it can tag pages faster than a dirtying process can create them).h](h(This function scans the page range from }(hj-hhhNhNubjz)}(h **start**h]hstart}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj-ubh to }(hj-hhhNhNubjz)}(h**end**h]hend}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj-ubhX (inclusive) and tags all pages that have DIRTY tag set with a special TOWRITE tag. The caller can then use the TOWRITE tag to identify pages eligible for writeback. This mechanism is used to avoid livelocking of writeback by a process steadily creating new dirty pages in the file (thus it is important for this function to be quick so that it can tag pages faster than a dirtying process can create them).}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chMF hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwriteback_iter (C function)c.writeback_iterhNtauh1hhjhhhNhNubh)}(hhh](h)}(h}struct folio * writeback_iter (struct address_space *mapping, struct writeback_control *wbc, struct folio *folio, int *error)h]h)}(h{struct folio *writeback_iter(struct address_space *mapping, struct writeback_control *wbc, struct folio *folio, int *error)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhM ubh)}(hhh]h)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXwriteback_itersbc.writeback_iterasbuh1hhj|hhhjhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhM ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|hhhjhM ubh)}(hwriteback_iterh]h)}(hjh]hwriteback_iter}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj|hhhjhM 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]jc.writeback_iterasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjDhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct writeback_control *wbch](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)}(hwriteback_controlh]hwriteback_control}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.writeback_iterasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjfubh)}(hwbch]hwbc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubeh}(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]jc.writeback_iterasbuh1hhjubj)}(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}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int *errorh](j)}(hinth]hint}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2 )}(hj5 h]h*}(hjfhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjFubh)}(herrorh]herror}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(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)}(h(iterate folio of a mapping for writebackh]h(iterate folio of a mapping for writeback}(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&]uh1jhjuhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj,hM hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hM hjubj)}(hF``struct folio *folio`` previously iterated folio (``NULL`` to start) h](j)}(h``struct folio *folio``h]j?)}(hjPh]hstruct folio *folio}(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)}(h-previously iterated folio (``NULL`` to start)h](hpreviously iterated folio (}(hjihhhNhNubj?)}(h``NULL``h]hNULL}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiubh to start)}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjehM hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehM hjubj)}(h?``int *error`` in-out pointer for writeback errors (see below) h](j)}(h``int *error``h]j?)}(hjh]h int *error}(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/in-out pointer for writeback errors (see below)h]h/in-out pointer for writeback errors (see below)}(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}(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)}(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 hjubj9)}(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}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh is passed in the }(hjhhhNhNubjz)}(h **folio**h]hfolio}(hj9hhhNhNubah}(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 hjubj9)}(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, }(hjRhhhNhNubjz)}(h **error**h]herror}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubh" should be set to the error value.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjubj9)}(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 }(hjshhhNhNubjz)}(h**wbc**h]hwbc}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjsubh) has finished, this function will return }(hjshhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubh: and if there was an error in any iteration restore it to }(hjshhhNhNubjz)}(h **error**h]herror}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjsubh.}(hjshhhNhNubeh}(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)}(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 }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh.}(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)}(h3the folio to write or ``NULL`` if the loop is done.h](hthe folio to write or }(hj hhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubh if the loop is done.}(hj hhhNhNubeh}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ filemap_dirty_folio (C function)c.filemap_dirty_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hMbool filemap_dirty_folio (struct address_space *mapping, struct folio *folio)h]h)}(hLbool filemap_dirty_folio(struct address_space *mapping, struct folio *folio)h](j)}(hj*h]hbool}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjWhM ubh)}(hfilemap_dirty_folioh]h)}(hfilemap_dirty_folioh]hfilemap_dirty_folio}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubah}(h]h ](jjeh"]h$]h&]jj uh1hhjFhhhjWhM 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)}jXjlsbc.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 uh1jhj~ubj)}(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]jc.filemap_dirty_folioasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjBhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~ubeh}(h]h ]h"]h$]h&]jj uh1jhjFhhhjWhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjBhhhjWhM ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhjWhM hj?hhubj )}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjvhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjWhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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}(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)}(hFolio to be marked as dirty.h]hFolio to be marked as dirty.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hj ubah}(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}(hj0hhhNhNubah}(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.}(hjDhhhNhNubah}(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.}(hjShhhNhNubah}(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.}(hjbhhhNhNubah}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(folio_redirty_for_writepage (C function)c.folio_redirty_for_writepagehNtauh1hhjhhhNhNubh)}(hhh](h)}(hUbool folio_redirty_for_writepage (struct writeback_control *wbc, struct folio *folio)h]h)}(hTbool folio_redirty_for_writepage(struct writeback_control *wbc, struct folio *folio)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_redirty_for_writepageh]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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(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}(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 reftargetj_modnameN classnameNj\j_)}jb]jc.folio_redirty_for_writepageasbuh1hhj;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)}(hfolioh]hfolio}(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)}(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-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj:h]hstruct folio *folio}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hj4ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjOhM hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjsubah}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mark_dirty (C function)c.folio_mark_dirtyhNtauh1hhjhhhNhNubh)}(hhh](h)}(h+bool folio_mark_dirty (struct folio *folio)h]h)}(h*bool folio_mark_dirty(struct folio *folio)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_mark_dirtyh]h)}(hfolio_mark_dirtyh]hfolio_mark_dirty}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM ubj)}(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}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]je)}jXj'sbc.folio_mark_dirtyasbuh1hhj=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 uh1jhj9ubah}(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)}(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&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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.}(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}(hjBhhhNhNubah}(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)}(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.}(hjVhhhNhNubah}(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)}(hjgh]hReturn}(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.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.}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!folio_wait_writeback (C function)c.folio_wait_writebackhNtauh1hhjhhhNhNubh)}(hhh](h)}(h/void folio_wait_writeback (struct folio *folio)h]h)}(h.void folio_wait_writeback(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hfolio_wait_writebackh]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 }(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 reftargetj modnameN classnameNj\j_)}jb]je)}jXjsbc.folio_wait_writebackasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjBhhhNhNubah}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjh]hContext}(hjhhhNhNubah}(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.}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*folio_wait_writeback_killable (C function)c.folio_wait_writeback_killablehNtauh1hhjhhhNhNubh)}(hhh](h)}(h7int folio_wait_writeback_killable (struct folio *folio)h]h)}(h6int folio_wait_writeback_killable(struct folio *folio)h](j)}(hinth]hint}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjbhM ubh)}(hfolio_wait_writeback_killableh]h)}(hfolio_wait_writeback_killableh]hfolio_wait_writeback_killable}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ](jjeh"]h$]h&]jj uh1hhjPhhhjbhM 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)}jXjwsbc.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 uh1jhjPhhhjbhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjLhhhjbhM ubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhM hjIhhubj )}(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 hjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j,j4j,j5j6j7uh1hhhhjhNhNubjp)}(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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM! hj0ubj)}(hhh]j)}(h/``struct folio *folio`` The folio to wait for. h](j)}(h``struct folio *folio``h]j?)}(hjUh]hstruct folio *folio}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM hjOubj)}(hhh]j9)}(hThe folio to wait for.h]hThe folio to wait for.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhM hjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhM hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubj9)}(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 hj0ubj9)}(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 hj0ubj9)}(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" hj0ubj9)}(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# hj0ubj9)}(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( hj0ubj9)}(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.chM' hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_wait_stable (C function)c.folio_wait_stablehNtauh1hhjhhhNhNubh)}(hhh](h)}(h,void folio_wait_stable (struct folio *folio)h]h)}(h+void folio_wait_stable(struct folio *folio)h](j)}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM6 ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj1hM6 ubh)}(hfolio_wait_stableh]h)}(hfolio_wait_stableh]hfolio_wait_stable}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj1hM6 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 }(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.folio_wait_stableasbuh1hhj\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 uh1jhjXubah}(h]h ]h"]h$]h&]jj uh1jhjhhhj1hM6 ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj1hM6 ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hM6 hjhhubj )}(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.chM6 hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hM6 ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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.chM: hjubj)}(hhh]j)}(h.``struct folio *folio`` The folio to wait on. 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:76: ./mm/page-writeback.chM7 hjubj)}(hhh]j9)}(hThe folio to wait on.h]hThe folio to wait on.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj9hM7 hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hM7 hjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hj_h]h Description}(hjahhhNhNubah}(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.chM9 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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:76: ./mm/page-writeback.chM8 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.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.}(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&]uh1johjhhhNhNubeh}(h] writebackah ]h"] writebackah$]h&]uh1hhjhhhhhKJubh)}(hhh](h)}(hTruncateh]hTruncate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKPubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(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}(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 reftargetjA modnameN classnameNj\j_)}jb]je)}jXj sbc.folio_invalidateasbuh1hhj ubj)}(h h]h }(hj_ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hjm hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hfolioh]hfolio}(hjz hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(h size_t offseth](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.folio_invalidateasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hoffseth]hoffset}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(h size_t lengthh](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.folio_invalidateasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hlengthh]hlength}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(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.}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKyhj1 hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKyubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jL j4jL 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)}(hjV h]h Parameters}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjT ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK}hjP ubj)}(hhh](j)}(h5``struct folio *folio`` The folio which is affected. h](j)}(h``struct folio *folio``h]j?)}(hju h]hstruct folio *folio}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjs ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKzhjo ubj)}(hhh]j9)}(hThe folio which is affected.h]hThe folio which is affected.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hKzhj ubah}(h]h ]h"]h$]h&]uh1jhjo ubeh}(h]h ]h"]h$]h&]uh1jhj hKzhjl ubj)}(h3``size_t offset`` start of the range to invalidate h](j)}(h``size_t offset``h]j?)}(hj h]h size_t offset}(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.chK{hj ubj)}(hhh]j9)}(h start of the range to invalidateh]h start of the range to invalidate}(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{hjl ubj)}(h4``size_t length`` length of the range to invalidate h](j)}(h``size_t length``h]j?)}(hj h]h size_t length}(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.chK|hj ubj)}(hhh]j9)}(h!length of the range to invalidateh]h!length of the range to invalidate}(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|hjl ubeh}(h]h ]h"]h$]h&]uh1jhjP 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.chK~hjP ubj9)}(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.}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chK}hjP ubj9)}(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 }(hjG hhhNhNubjz)}(h **offset**h]hoffset}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjG 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.}(hjG hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chKhjP ubeh}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM>ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hM>ubh)}(htruncate_inode_pages_rangeh]h)}(htruncate_inode_pages_rangeh]htruncate_inode_pages_range}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj hM>ubj)}(h;(struct address_space *mapping, loff_t lstart, loff_t lend)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_rangeasbuh1hhj 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&]uh1hhj7 ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj< modnameN classnameNj\j_)}jb]j c.truncate_inode_pages_rangeasbuh1hhj3 ubj)}(h h]h }(hjX hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3 ubh)}(hlstarth]hlstart}(hjf hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3 ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(h loff_t lendh](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_pages_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 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=truncate range of pages specified by start & end byte offsetsh]h=truncate range of pages specified by start & end byte offsets}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM>hj hhubah}(h]h ]h"]h$]h&]uh1jhj} hhhj hM>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}(hj2 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)}(h0``loff_t lstart`` offset from which to truncate h](j)}(h``loff_t lstart``h]j?)}(hjR h]h loff_t lstart}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjP ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM@hjL ubj)}(hhh]j9)}(hoffset from which to truncateh]hoffset from which to truncate}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjg hM@hjh ubah}(h]h ]h"]h$]h&]uh1jhjL ubeh}(h]h ]h"]h$]h&]uh1jhjg 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}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjFhMubh)}(htruncate_inode_pagesh]h)}(htruncate_inode_pagesh]htruncate_inode_pages}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ](jjeh"]h$]h&]jj uh1hhj4hhhjFhMubj)}(h.(struct address_space *mapping, loff_t lstart)h](j)}(hstruct address_space *mappingh](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 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.truncate_inode_pagesasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjqubh)}(hmappingh]hmapping}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubj)}(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_inode_pagesasbuh1hhjubj)}(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 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'truncate *all* the pages from an offseth](h truncate }(hj@hhhNhNubjK)}(h*all*h]hall}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jJhj@ubh the pages from an offset}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjFhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jjj4jjj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjth]h Parameters}(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.chMhjnubj)}(hhh](j)}(h6``struct address_space *mapping`` mapping to truncate 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)}(hmapping to truncateh]hmapping to truncate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``loff_t lstart`` offset from which to truncate 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.chMhjubj)}(hhh]j9)}(hoffset from which to truncateh]hoffset from which to truncate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjnubj9)}(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.chMhjnubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjnubj9)}(h**Note**h]jz)}(hj.h]hNote}(hj0hhhNhNubah}(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.chMhjnubj9)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjnubeh}(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}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhMubh)}(htruncate_inode_pages_finalh]h)}(htruncate_inode_pages_finalh]htruncate_inode_pages_final}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjohhhjhMubj)}(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.truncate_inode_pages_finalasbuh1hhjubj)}(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 uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhhubj )}(hhh]j9)}(h&truncate *all* pages before inode diesh](h truncate }(hj3hhhNhNubjK)}(h*all*h]hall}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jJhj3ubh pages before inode dies}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j]j4j]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)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjeubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjaubj)}(hhh]j)}(h6``struct address_space *mapping`` mapping to truncate 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)}(hmapping to truncateh]hmapping to truncate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubah}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjaubj9)}(h0Called under (and serialized by) inode->i_rwsem.h]h0Called under (and serialized by) inode->i_rwsem.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjaubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjaubeh}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM1ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hM1ubj)}(hlongh]hlong}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hM1ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hM1ubh)}(hinvalidate_mapping_pagesh]h)}(hinvalidate_mapping_pagesh]hinvalidate_mapping_pages}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj#hM1ubj)}(h;(struct address_space *mapping, pgoff_t start, pgoff_t end)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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjTsbc.invalidate_mapping_pagesasbuh1hhjjubj)}(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)}(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}(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}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj-modnameN classnameNj\j_)}jb]jc.invalidate_mapping_pagesasbuh1hhj$ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hendh]hend}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjfubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj#hM1ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj#hM1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj#hM1hj hhubj )}(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.chM1hj~hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hM1ubeh}(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>hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM3hjubj)}(hhh]j9)}(h%the offset 'from' which to invalidateh]h)the offset ‘from’ which to invalidate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubj)}(h@``pgoff_t end`` the offset 'to' which to invalidate (inclusive) h](j)}(h``pgoff_t end``h]j?)}(hj4h]h pgoff_t end}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM4hj.ubj)}(hhh]j9)}(h/the offset 'to' which to invalidate (inclusive)h]h3the offset ‘to’ which to invalidate (inclusive)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhM4hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM4hjubeh}(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&]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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM}ubh)}(hinvalidate_inode_pages2_rangeh]h)}(hinvalidate_inode_pages2_rangeh]hinvalidate_inode_pages2_range}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM}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 hj#ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]h)}(h address_spaceh]h address_space}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjGmodnameN classnameNj\j_)}jb]je)}jXj sbc.invalidate_inode_pages2_rangeasbuh1hhj#ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj2 )}(hj5 h]h*}(hjshhhNhNubah}(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 uh1jhjubj)}(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]jac.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 uh1jhjubj)}(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]jac.invalidate_inode_pages2_rangeasbuh1hhjubj)}(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+remove range of pages from an address_spaceh]h+remove range of pages from an address_space}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM}hj7hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM}ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jRj4jRj5j6j7uh1hhhhjhNhNubjp)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjVubj)}(hhh](j)}(h4``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>hjyubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM~hjuubj)}(hhh]j9)}(hthe address_spaceh]hthe address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM~hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjrubj)}(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&]uh1jhjhMhjrubj)}(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&]uh1jhjhMhjrubeh}(h]h ]h"]h$]h&]uh1jhjVubj9)}(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.chMhjVubj9)}(hZAny pages which are found to be mapped into pagetables are unmapped prior to invalidation.h]hZAny pages which are found to be mapped into pagetables are unmapped prior to invalidation.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjVubj9)}(h **Return**h]jz)}(hjOh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjVubj9)}(h--EBUSY if any pages could not be invalidated.h]h--EBUSY if any pages could not be invalidated.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjVubeh}(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 }(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 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}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jlj4jlj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjpubj)}(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&]uh1jhjpubj9)}(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.chMhjpubj9)}(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.chMhjpubj9)}(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.chMhjpubj9)}(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.chMhjpubeh}(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 hjuubh)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjqubj)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjqubeh}(h]h ]h"]h$]h&]jj uh1jhj8hhhjJhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4hhhjJhMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjJhMhj1hhubj )}(hhh]j9)}(h2unmap and remove pagecache that has been truncatedh]h2unmap and remove pagecache that has been truncated}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjJhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j\j4j\j5j6j7uh1hhhhjhNhNubjp)}(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)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjdubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj`ubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]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&]uh1jhjhMhj|ubj)}(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&]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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj`ubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhj`ubj9)}(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.}(hjhhhNhNubah}(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_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}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhj[hMubh)}(htruncate_setsizeh]h)}(htruncate_setsizeh]htruncate_setsize}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjIhhhj[hMubj)}(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)}jXjpsbc.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_setsizeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(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 uh1jhjIhhhj[hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjEhhhj[hMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj[hMhjBhhubj )}(hhh]j9)}(h.update inode and pagecache for a new file sizeh]h.update inode and pagecache for a new file size}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jmj4jmj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjuubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM hjqubj)}(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&]uh1jhjqubj9)}(h**Description**h]jz)}(hj h]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 hjqubj9)}(htruncate_setsize updates i_size and performs pagecache truncation (if necessary) to **newsize**. It will be typically be called from the filesystem's setattr function when ATTR_SIZE is passed in.h](hTtruncate_setsize updates i_size and performs pagecache truncation (if necessary) to }(hj hhhNhNubjz)}(h **newsize**h]hnewsize}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubhf. It will be typically be called from the filesystem’s setattr function when ATTR_SIZE is passed in.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM hjqubj9)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMhjqubeh}(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}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhj~hMubh)}(hpagecache_isize_extendedh]h)}(hpagecache_isize_extendedh]hpagecache_isize_extended}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjlhhhj~hMubj)}(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*}(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)}(h loff_t fromh](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]jc.pagecache_isize_extendedasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hfromh]hfrom}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h loff_t toh](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]jc.pagecache_isize_extendedasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(htoh]hto}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubeh}(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)}(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&]uh1jhjehhhj~hMubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h$``loff_t from`` original inode size h](j)}(h``loff_t from``h]j?)}(hj:h]h loff_t from}(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:82: ./mm/truncate.chM!hj4ubj)}(hhh]j9)}(horiginal inode sizeh]horiginal inode size}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjOhM!hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM!hjubj)}(h``loff_t to`` new inode size h](j)}(h ``loff_t to``h]j?)}(hjsh]h loff_t to}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjqubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM"hjmubj)}(hhh]j9)}(hnew inode sizeh]hnew inode size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(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&]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}(hj hhhNhNubah}(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}(hj# hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(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}(hj? hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj; ubj)}(h h]h }(hjL hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj; ubh)}(hhh]h)}(hinodeh]hinode}(hj] hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZ ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_ modnameN classnameNj\j_)}jb]je)}jXj% sbc.truncate_pagecache_rangeasbuh1hhj; 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)}(hinodeh]hinode}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj; ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7 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]jy c.truncate_pagecache_rangeasbuh1hhj 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 uh1jhj7 ubj)}(h loff_t lendh](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]jy c.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 uh1jhj7 ubeh}(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/unmap and remove pagecache that is hole-punchedh]h/unmap and remove pagecache that is hole-punched}(hjR!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chM_hjO!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM_ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj!j4jj!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)}(hjt!h]h Parameters}(hjv!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjr!ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMchjn!ubj)}(hhh](j)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j?)}(hj!h]hstruct inode *inode}(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)}(hinodeh]hinode}(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.``loff_t lstart`` offset of beginning of hole 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.chMahj!ubj)}(hhh]j9)}(hoffset of beginning of holeh]hoffset of beginning of hole}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!hMahj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMahj!ubj)}(h,``loff_t lend`` offset of last byte of hole 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.chMbhj!ubj)}(hhh]j9)}(hoffset of last byte of holeh]hoffset of last byte of hole}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"hMbhj"ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj"hMbhj!ubeh}(h]h ]h"]h$]h&]uh1jhjn!ubj9)}(h**Description**h]jz)}(hj@"h]h Description}(hjB"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.chMdhjn!ubj9)}(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.}(hjV"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:82: ./mm/truncate.chMchjn!ubeh}(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}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKHubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhj"hKHubh)}(hfilemap_set_wb_errh]h)}(hfilemap_set_wb_errh]hfilemap_set_wb_err}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj"hhhj"hKHubj)}(h((struct address_space *mapping, int err)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_set_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)}(hint errh](j)}(hinth]hint}(hj4#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0#ubj)}(h h]h }(hjB#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0#ubh)}(herrh]herr}(hjP#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0#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]jx"ah ](jjeh"]h$]h&]jj)jhuh1hhj"hKHhjz"hhubj )}(hhh]j9)}(h)set a writeback error on an address_spaceh]h)set a writeback error on an address_space}(hjz#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKHhjw#hhubah}(h]h ]h"]h$]h&]uh1jhjz"hhhj"hKHubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j#j4j#j5j6j7uh1hhhhjhNhNubjp)}(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)}(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.hhKLhj#ubj)}(hhh](j)}(hJ``struct address_space *mapping`` mapping in which to set writeback error 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.hhKIhj#ubj)}(hhh]j9)}(h'mapping in which to set writeback errorh]h'mapping in which to set writeback error}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj#hKIhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hKIhj#ubj)}(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 $hKJhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubj9)}(h**Description**h]jz)}(hj/$h]h Description}(hj1$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.hhKLhj#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.}(hjE$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKKhj#ubj9)}(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.}(hjT$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKPhj#ubeh}(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}(hj5%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2%ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj7%modnameN classnameNj\j_)}jb]j$c.filemap_check_wb_errasbuh1hhj.%ubj)}(h h]h }(hjS%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.%ubh)}(hsinceh]hsince}(hja%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.%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]jv$ah ](jjeh"]h$]h&]jj)jhuh1hhj$hK]hjx$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&]uh1jhjx$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}(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%ubeh}(h]h ]h"]h$]h&]uh1jhj%ubj9)}(h**Description**h]jz)}(hj@&h]h Description}(hjB&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%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.}(hjV&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.}(hje&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 }(hj"'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj2 )}(hj5 h]h*}(hj0'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&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}(hjg'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKmhjd'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 reftargetj-(modnameN classnameNj\j_)}jb]je)}jXfile_sample_sb_errsbc.file_sample_sb_errasbuh1hhj$(hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKyubj)}(h h]h }(hjM(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$(hhhjL(hKyubh)}(hfile_sample_sb_errh]h)}(hjI(h]hfile_sample_sb_err}(hj_(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[(ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj$(hhhjL(hKyubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j!)}(hj$h]hstruct}(hjz(hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjv(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv(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]jG(c.file_sample_sb_errasbuh1hhjv(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)}(hfileh]hfile}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjv(ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjr(ubah}(h]h ]h"]h$]h&]jj uh1jhj$(hhhjL(hKyubeh}(h]h ]h"]h$]h&]jj juh1hjjhj (hhhjL(hKyubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjL(hKyhj(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&]uh1jhj(hhhjL(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)}(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.hhK}hj)ubj)}(hhh]j)}(h1``struct file *file`` file pointer to be sampled 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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhKzhj6)ubj)}(hhh]j9)}(hfile pointer to be sampledh]hfile pointer to be sampled}(hjU)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQ)hKzhjR)ubah}(h]h ]h"]h$]h&]uh1jhj6)ubeh}(h]h ]h"]h$]h&]uh1jhjQ)hKzhj3)ubah}(h]h ]h"]h$]h&]uh1jhj)ubj9)}(h**Description**h]jz)}(hjw)h]h Description}(hjy)hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhju)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 }(hj7*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2 )}(hj5 h]h*}(hjE*hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj)ubh)}(hmappingh]hmapping}(hjR*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)ubj)}(h int errorh](j)}(hinth]hint}(hjk*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg*ubj)}(h h]h }(hjy*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg*ubh)}(herrorh]herror}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjg*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}(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)}(hthe error to set in the mappingh]hthe error to set in the mapping}(hjD+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@+hKhjA+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)}(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.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}(hjP,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.}(hjz,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjw,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)}(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.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.}(hj3-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)}(hPpgoff_t mapping_align_index (const struct address_space *mapping, pgoff_t index)h]h)}(hOpgoff_t mapping_align_index(const struct address_space *mapping, pgoff_t index)h](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hje-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjb-ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjg-modnameN classnameNj\j_)}jb]je)}jXmapping_align_indexsbc.mapping_align_indexasbuh1hhj^-hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^-hhhj-hMubh)}(hmapping_align_indexh]h)}(hj-h]hmapping_align_index}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj^-hhhj-hMubj)}(h4(const struct address_space *mapping, pgoff_t index)h](j)}(h#const struct address_space *mappingh](j!)}(hjh]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)}(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}(hjB.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?.ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjD.modnameN classnameNj\j_)}jb]j-c.mapping_align_indexasbuh1hhj;.ubj)}(h h]h }(hj`.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;.ubh)}(hindexh]hindex}(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 juh1hjjhjZ-hhhj-hMubah}(h]jU-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hMhjW-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&]uh1jhjW-hhhj-hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j.j4j.j5j6j7uh1hhhhjhNhNubjp)}(hX **Parameters** ``const struct address_space *mapping`` The address_space. ``pgoff_t index`` The page index. **Description** The index of a folio must be naturally aligned. If you are adding a new folio to the page cache and need to know what index to give it, call this function.h](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;``const struct address_space *mapping`` The address_space. h](j)}(h'``const struct address_space *mapping``h]j?)}(hj.h]h#const struct 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)}(hjM/h]h Description}(hjO/hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjK/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.}(hjc/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 0hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]h)}(hfolioh]hfolio}(hj*0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'0ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj,0modnameN classnameNj\j_)}jb]j/c.folio_flush_mappingasbuh1hhj0ubj)}(h h]h }(hjH0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2 )}(hj5 h]h*}(hjV0hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj0ubh)}(hfolioh]hfolio}(hjc0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj0ubah}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM-hj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hM-ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j0j4j0j5j6j7uh1hhhhjhNhNubjp)}(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)}(hj0h]h Parameters}(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.hhM1hj0ubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj0h]hstruct folio *folio}(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.hhM.hj0ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hM.hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM.hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubj9)}(h**Description**h]jz)}(hj 1h]h Description}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM0hj0ubj9)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM/hj0ubj9)}(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.1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM3hj0ubeh}(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}(hj]1hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjY1hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMAubj)}(h h]h }(hjk1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY1hhhjj1hMAubh)}(hhh]h)}(hinodeh]hinode}(hj|1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjy1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~1modnameN classnameNj\j_)}jb]je)}jX folio_inodesb c.folio_inodeasbuh1hhjY1hhhjj1hMAubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY1hhhjj1hMAubj2 )}(hj5 h]h*}(hj1hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjY1hhhjj1hMAubh)}(h folio_inodeh]h)}(hj1h]h folio_inode}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjY1hhhjj1hMAubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(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]j1 c.folio_inodeasbuh1hhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2 )}(hj5 h]h*}(hj!2hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj1ubh)}(hfolioh]hfolio}(hj.2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj1ubah}(h]h ]h"]h$]h&]jj uh1jhjY1hhhjj1hMAubeh}(h]h ]h"]h$]h&]jj juh1hjjhjU1hhhjj1hMAubah}(h]jP1ah ](jjeh"]h$]h&]jj)jhuh1hhjj1hMAhjR1hhubj )}(hhh]j9)}(h"Get the host inode for this folio.h]h"Get the host inode for this folio.}(hjX2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMAhjU2hhubah}(h]h ]h"]h$]h&]uh1jhjR1hhhjj1hMAubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jp2j4jp2j5j6j7uh1hhhhjhNhNubjp)}(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)}(hjz2h]h Parameters}(hj|2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjx2ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMEhjt2ubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj2h]hstruct folio *folio}(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.hhMBhj2ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hMBhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMBhj2ubah}(h]h ]h"]h$]h&]uh1jhjt2ubj9)}(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.hhMDhjt2ubj9)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMChjt2ubj9)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMFhjt2ubeh}(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(3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$3hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMOubj)}(h h]h }(hj73hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$3hhhj63hMOubh)}(hfolio_attach_privateh]h)}(hfolio_attach_privateh]hfolio_attach_private}(hjI3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjE3ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj$3hhhj63hMOubj)}(h!(struct folio *folio, void *data)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hje3hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hja3ubj)}(h h]h }(hjr3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja3ubh)}(hhh]h)}(hfolioh]hfolio}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3modnameN classnameNj\j_)}jb]je)}jXjK3sbc.folio_attach_privateasbuh1hhja3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja3ubj2 )}(hj5 h]h*}(hj3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hja3ubh)}(hfolioh]hfolio}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhja3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj]3ubj)}(h void *datah](j)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2 )}(hj5 h]h*}(hj3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj3ubh)}(hdatah]hdata}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj]3ubeh}(h]h ]h"]h$]h&]jj uh1jhj$3hhhj63hMOubeh}(h]h ]h"]h$]h&]jj juh1hjjhj 3hhhj63hMOubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1hhj63hMOhj3hhubj )}(hhh]j9)}(hAttach private data to a folio.h]hAttach private data to a folio.}(hj*4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMOhj'4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj63hMOubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jB4j4jB4j5j6j7uh1hhhhjhNhNubjp)}(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)}(hjL4h]h Parameters}(hjN4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJ4ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMShjF4ubj)}(hhh](j)}(h1``struct folio *folio`` Folio to attach data to. h](j)}(h``struct folio *folio``h]j?)}(hjk4h]hstruct folio *folio}(hjm4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hji4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMPhje4ubj)}(hhh]j9)}(hFolio to attach data to.h]hFolio to attach data to.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4hMPhj4ubah}(h]h ]h"]h$]h&]uh1jhje4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMPhjb4ubj)}(h(``void *data`` Data to attach to folio. h](j)}(h``void *data``h]j?)}(hj4h]h void *data}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMQhj4ubj)}(hhh]j9)}(hData to attach to folio.h]hData to attach to folio.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4hMQhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMQhjb4ubeh}(h]h ]h"]h$]h&]uh1jhjF4ubj9)}(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.hhMShjF4ubj9)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMRhjF4ubeh}(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}(hj$5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 5hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM^ubj)}(h h]h }(hj35hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 5hhhj25hM^ubj2 )}(hj5 h]h*}(hjA5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj 5hhhj25hM^ubh)}(hfolio_change_privateh]h)}(hfolio_change_privateh]hfolio_change_private}(hjR5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjN5ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj 5hhhj25hM^ubj)}(h!(struct folio *folio, void *data)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjn5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjj5ubj)}(h h]h }(hj{5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj5ubh)}(hhh]h)}(hfolioh]hfolio}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj5modnameN classnameNj\j_)}jb]je)}jXjT5sbc.folio_change_privateasbuh1hhjj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj5ubj2 )}(hj5 h]h*}(hj5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjj5ubh)}(hfolioh]hfolio}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjj5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjf5ubj)}(h void *datah](j)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2 )}(hj5 h]h*}(hj5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj5ubh)}(hdatah]hdata}(hj 6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjf5ubeh}(h]h ]h"]h$]h&]jj uh1jhj 5hhhj25hM^ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj5hhhj25hM^ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj25hM^hj5hhubj )}(hhh]j9)}(hChange private data on a folio.h]hChange private data on a folio.}(hj36hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM^hj06hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj25hM^ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jK6j4jK6j5j6j7uh1hhhhjhNhNubjp)}(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)}(hjU6h]h Parameters}(hjW6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjS6ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMbhjO6ubj)}(hhh](j)}(h5``struct folio *folio`` Folio to change the data on. h](j)}(h``struct folio *folio``h]j?)}(hjt6h]hstruct folio *folio}(hjv6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjr6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM_hjn6ubj)}(hhh]j9)}(hFolio to change the data on.h]hFolio to change the data on.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hM_hj6ubah}(h]h ]h"]h$]h&]uh1jhjn6ubeh}(h]h ]h"]h$]h&]uh1jhj6hM_hjk6ubj)}(h)``void *data`` Data to set on the folio. h](j)}(h``void *data``h]j?)}(hj6h]h void *data}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM`hj6ubj)}(hhh]j9)}(hData to set on the folio.h]hData to set on the folio.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hM`hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hM`hjk6ubeh}(h]h ]h"]h$]h&]uh1jhjO6ubj9)}(h**Description**h]jz)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMbhjO6ubj9)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMahjO6ubj9)}(h **Return**h]jz)}(hj7h]hReturn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj 7ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMehjO6ubj9)}(h/Data that was previously attached to the folio.h]h/Data that was previously attached to the folio.}(hj%7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMfhjO6ubeh}(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}(hjT7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP7hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMqubj)}(h h]h }(hjc7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP7hhhjb7hMqubj2 )}(hj5 h]h*}(hjq7hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjP7hhhjb7hMqubh)}(hfolio_detach_privateh]h)}(hfolio_detach_privateh]hfolio_detach_private}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~7ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjP7hhhjb7hMqubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj7hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]h)}(hfolioh]hfolio}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj7modnameN classnameNj\j_)}jb]je)}jXj7sbc.folio_detach_privateasbuh1hhj7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2 )}(hj5 h]h*}(hj7hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj7ubh)}(hfolioh]hfolio}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7ubah}(h]h ]h"]h$]h&]jj uh1jhjP7hhhjb7hMqubeh}(h]h ]h"]h$]h&]jj juh1hjjhjL7hhhjb7hMqubah}(h]jG7ah ](jjeh"]h$]h&]jj)jhuh1hhjb7hMqhjI7hhubj )}(hhh]j9)}(h!Detach private data from a folio.h]h!Detach private data from a folio.}(hj!8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMqhj8hhubah}(h]h ]h"]h$]h&]uh1jhjI7hhhjb7hMqubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j98j4j98j5j6j7uh1hhhhjhNhNubjp)}(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)}(hjC8h]h Parameters}(hjE8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjA8ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMuhj=8ubj)}(hhh]j)}(h3``struct folio *folio`` Folio to detach data from. h](j)}(h``struct folio *folio``h]j?)}(hjb8h]hstruct folio *folio}(hjd8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj`8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMrhj\8ubj)}(hhh]j9)}(hFolio to detach data from.h]hFolio to detach data from.}(hj{8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjw8hMrhjx8ubah}(h]h ]h"]h$]h&]uh1jhj\8ubeh}(h]h ]h"]h$]h&]uh1jhjw8hMrhjY8ubah}(h]h ]h"]h$]h&]uh1jhj=8ubj9)}(h**Description**h]jz)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj8ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMthj=8ubj9)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMshj=8ubj9)}(h **Return**h]jz)}(hj8h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj8ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMvhj=8ubj9)}(h$Data that was attached to the folio.h]h$Data that was attached to the folio.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMwhj=8ubeh}(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}(hj 9hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj9hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM|ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hM|ubh)}(hfgf_th]h)}(hj9h]hfgf_t}(hj*9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&9ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj9hhhj9hM|ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj9hhhj9hM|ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj9hM|hj8hhubj )}(hhh]j9)}(h-Flags for getting folios from the page cache.h]h-Flags for getting folios from the page cache.}(hjL9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjI9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj9hM|ubeh}(h]h ](j-typeeh"]h$]h&]j2j-j3jd9j4jd9j5j6j7uh1hhhhjhNhNubj9)}(h**Description**h]jz)}(hjj9h]h Description}(hjl9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjh9ubah}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjhhubj)}(hhh](jw,)}(h5``FGP_ACCESSED`` - The folio will be marked accessed.h]j9)}(hj9h](j?)}(h``FGP_ACCESSED``h]h FGP_ACCESSED}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubh% - The folio will be marked accessed.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj9ubah}(h]h ]h"]h$]h&]uh1jv,hj9ubjw,)}(h,``FGP_LOCK`` - The folio is returned locked.h]j9)}(hj9h](j?)}(h ``FGP_LOCK``h]hFGP_LOCK}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubh - The folio is returned locked.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj9ubah}(h]h ]h"]h$]h&]uh1jv,hj9ubjw,)}(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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubh - 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.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj9ubah}(h]h ]h"]h$]h&]uh1jv,hj9ubjw,)}(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}(hj :hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj :ubh - 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.}(hj :hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:ubah}(h]h ]h"]h$]h&]uh1jv,hj9ubjw,)}(h;``FGP_WRITE`` - The folio will be written to by the caller.h]j9)}(hj.:h](j?)}(h ``FGP_WRITE``h]h FGP_WRITE}(hj3:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0:ubh. - The folio will be written to by the caller.}(hj0:hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj,:ubah}(h]h ]h"]h$]h&]uh1jv,hj9ubjw,)}(h0``FGP_NOFS`` - __GFP_FS will get cleared in gfp.h]j9)}(hjT:h](j?)}(h ``FGP_NOFS``h]hFGP_NOFS}(hjY:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjV:ubh$ - __GFP_FS will get cleared in gfp.}(hjV:hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjR:ubah}(h]h ]h"]h$]h&]uh1jv,hj9ubjw,)}(h/``FGP_NOWAIT`` - Don't block on the folio lock.h]j9)}(hjz:h](j?)}(h``FGP_NOWAIT``h]h FGP_NOWAIT}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj|:ubh# - Don’t block on the folio lock.}(hj|:hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjx:ubah}(h]h ]h"]h$]h&]uh1jv,hj9ubjw,)}(hE``FGP_STABLE`` - Wait for the folio to be stable (finished writeback)h]j9)}(hj:h](j?)}(h``FGP_STABLE``h]h FGP_STABLE}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubh7 - Wait for the folio to be stable (finished writeback)}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:ubah}(h]h ]h"]h$]h&]uh1jv,hj9ubjw,)}(h(``FGP_DONTCACHE`` - Uncached buffered IOh]j9)}(hj:h](j?)}(h``FGP_DONTCACHE``h]h FGP_DONTCACHE}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubh - Uncached buffered IO}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:ubah}(h]h ]h"]h$]h&]uh1jv,hj9ubjw,)}(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}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj:ubhA - The flags to use in a filesystem write_begin() implementation.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:ubah}(h]h ]h"]h$]h&]uh1jv,hj9ubeh}(h]h ]h"]h$]h&]jŰj5 uh1jhj9hMhjhhubh)}(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}(hj3;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0;ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj5;modnameN classnameNj\j_)}jb]je)}jX fgf_set_ordersbc.fgf_set_orderasbuh1hhj,;hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjU;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,;hhhjT;hMubh)}(h fgf_set_orderh]h)}(hjQ;h]h fgf_set_order}(hjg;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjc;ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj,;hhhjT;hMubj)}(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]jO;c.fgf_set_orderasbuh1hhj~;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 uh1jhjz;ubah}(h]h ]h"]h$]h&]jj uh1jhj,;hhhjT;hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj(;hhhjT;hMubah}(h]j#;ah ](jjeh"]h$]h&]jj)jhuh1hhjT;hMhj%;hhubj )}(hhh]j9)}(h#Encode a length in the fgf_t flags.h]h#Encode a length in the fgf_t 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&]uh1jhj%;hhhjT;hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j;j4j;j5j6j7uh1hhhhjhNhNubjp)}(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)}(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;``size_t size`` The suggested size of the folio to create. 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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj<ubj)}(hhh]j9)}(h*The suggested size of the folio to create.h]h*The suggested size of the folio to create.}(hj5<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1<hMhj2<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj1<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj;ubj9)}(h**Description**h]jz)}(hjW<h]h Description}(hjY<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjU<ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj;ubj9)}(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.}(hjm<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Ռ"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}(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)}jXwrite_begin_get_foliosbc.write_begin_get_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)}(hwrite_begin_get_folioh]h)}(hj<h]hwrite_begin_get_folio}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj<hhhj<hMubj)}(hT(const struct kiocb *iocb, struct address_space *mapping, pgoff_t index, size_t len)h](j)}(hconst struct kiocb *iocbh](j!)}(hjh]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}(hj1=hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj=ubj)}(h h]h }(hj>=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]h)}(hkiocbh]hkiocb}(hjO=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjL=ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjQ=modnameN classnameNj\j_)}jb]j<c.write_begin_get_folioasbuh1hhj=ubj)}(h h]h }(hjm=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj2 )}(hj5 h]h*}(hj{=hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj=ubh)}(hiocbh]hiocb}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj=ubj)}(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.write_begin_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]j<c.write_begin_get_folioasbuh1hhj >ubj)}(h h]h }(hj2>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 uh1jhj=ubj)}(h size_t lenh](h)}(hhh]h)}(hsize_th]hsize_t}(hj\>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjY>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj^>modnameN classnameNj\j_)}jb]j<c.write_begin_get_folioasbuh1hhjU>ubj)}(h h]h }(hjz>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU>ubh)}(hlenh]hlen}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjU>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%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&]uh1jhj<hhhj<hMubeh}(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.}(hjE?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjA?hMhjB?ubah}(h]h ]h"]h$]h&]uh1jhj&?ubeh}(h]h ]h"]h$]h&]uh1jhjA?hMhj>ubj)}(h(``pgoff_t index`` The page cache index. h](j)}(h``pgoff_t index``h]j?)}(hje?h]h pgoff_t index}(hjg?hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjc?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 cache index.h]hThe page cache index.}(hj~?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjz?hMhj{?ubah}(h]h ]h"]h$]h&]uh1jhj_?ubeh}(h]h ]h"]h$]h&]uh1jhjz?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}(hjE@hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjA@hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjS@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA@hhhjR@hMubh)}(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)}jXfilemap_get_foliosbc.filemap_get_folioasbuh1hhjA@hhhjR@hMubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA@hhhjR@hMubj2 )}(hj5 h]h*}(hj@hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjA@hhhjR@hMubh)}(hfilemap_get_folioh]h)}(hj@h]hfilemap_get_folio}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjA@hhhjR@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.filemap_get_folioasbuh1hhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2 )}(hj5 h]h*}(hj AhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj@ubh)}(hmappingh]hmapping}(hjAhhhNhNubah}(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}(hj2AhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/Aubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4AmodnameN classnameNj\j_)}jb]j@c.filemap_get_folioasbuh1hhj+Aubj)}(h h]h }(hjPAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Aubh)}(hindexh]hindex}(hj^AhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+Aubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj@ubeh}(h]h ]h"]h$]h&]jj uh1jhjA@hhhjR@hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj=@hhhjR@hMubah}(h]j8@ah ](jjeh"]h$]h&]jj)jhuh1hhjR@hMhj:@hhubj )}(hhh]j9)}(hFind and get a folio.h]hFind and get a folio.}(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:@hhhjR@hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jAj4jAj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(h?``struct address_space *mapping`` The address_space to search. 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)}(hThe address_space to search.h]hThe address_space to search.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjAubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]j?)}(hjBh]h pgoff_t index}(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.hhMhjAubj)}(hhh]j9)}(hThe page index.h]hThe page index.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjBhMhjBubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjAubeh}(h]h ]h"]h$]h&]uh1jhjAubj9)}(h**Description**h]jz)}(hj=Bh]h Description}(hj?BhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj;Bubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjAubj9)}(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 }(hjSBhhhNhNubjz)}(h **mapping**h]hmapping}(hj[BhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSBubh & }(hjSBhhhNhNubjz)}(h **index**h]hindex}(hjmBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSBubhD. If a folio is present, it is returned with an increased refcount.}(hjSBhhhNhNubeh}(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{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.}(hjBhhhNhNubah}(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Ռ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}(hjBhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjBhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM&ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhM&ubh)}(hhh]h)}(hfolioh]hfolio}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjBmodnameN classnameNj\j_)}jb]je)}jXfilemap_lock_foliosbc.filemap_lock_folioasbuh1hhjBhhhjBhM&ubj)}(h h]h }(hj ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhM&ubj2 )}(hj5 h]h*}(hjChhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjBhhhjBhM&ubh)}(hfilemap_lock_folioh]h)}(hj Ch]hfilemap_lock_folio}(hj,ChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(Cubah}(h]h ](jjeh"]h$]h&]jj uh1hhjBhhhjBhM&ubj)}(h.(struct address_space *mapping, pgoff_t index)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjGChhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjCCubj)}(h h]h }(hjTChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCCubh)}(hhh]h)}(h address_spaceh]h address_space}(hjeChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbCubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjgCmodnameN classnameNj\j_)}jb]jCc.filemap_lock_folioasbuh1hhjCCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCCubj2 )}(hj5 h]h*}(hjChhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjCCubh)}(hmappingh]hmapping}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?Cubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjCmodnameN classnameNj\j_)}jb]jCc.filemap_lock_folioasbuh1hhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hindexh]hindex}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?Cubeh}(h]h ]h"]h$]h&]jj uh1jhjBhhhjBhM&ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjBhhhjBhM&ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjBhM&hjBhhubj )}(hhh]j9)}(hFind and lock a folio.h]hFind and lock a folio.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM&hj Dhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhM&ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j(Dj4j(Dj5j6j7uh1hhhhjhNhNubjp)}(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)}(hj2Dh]h Parameters}(hj4DhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0Dubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM*hj,Dubj)}(hhh](j)}(h?``struct address_space *mapping`` The address_space to search. h](j)}(h!``struct address_space *mapping``h]j?)}(hjQDh]hstruct address_space *mapping}(hjSDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjODubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM'hjKDubj)}(hhh]j9)}(hThe address_space to search.h]hThe address_space to search.}(hjjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjfDhM'hjgDubah}(h]h ]h"]h$]h&]uh1jhjKDubeh}(h]h ]h"]h$]h&]uh1jhjfDhM'hjHDubj)}(h"``pgoff_t index`` The page index. h](j)}(h``pgoff_t index``h]j?)}(hjDh]h pgoff_t index}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM(hjDubj)}(hhh]j9)}(hThe page index.h]hThe page index.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjDhM(hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhM(hjHDubeh}(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&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM*hj,Dubj9)}(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 }(hjDhhhNhNubjz)}(h **mapping**h]hmapping}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubh & }(hjDhhhNhNubjz)}(h **index**h]hindex}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubhK. If a folio is present, it is returned locked with an increased refcount.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM)hj,Dubj9)}(h **Context**h]jz)}(hjEh]hContext}(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.hhM,hj,Dubj9)}(h May sleep.h]h May sleep.}(hj&EhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM-hj,Dubj9)}(h **Return**h]jz)}(hj7Eh]hReturn}(hj9EhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5Eubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM/hj,Dubj9)}(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.}(hjMEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM.hj,Dubeh}(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}(hj|EhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjxEhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM8ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxEhhhjEhM8ubh)}(hhh]h)}(hfolioh]hfolio}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjEmodnameN classnameNj\j_)}jb]je)}jXfilemap_grab_foliosbc.filemap_grab_folioasbuh1hhjxEhhhjEhM8ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxEhhhjEhM8ubj2 )}(hj5 h]h*}(hjEhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxEhhhjEhM8ubh)}(hfilemap_grab_folioh]h)}(hjEh]hfilemap_grab_folio}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ](jjeh"]h$]h&]jj uh1hhjxEhhhjEhM8ubj)}(h.(struct address_space *mapping, pgoff_t index)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjEhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]h)}(h address_spaceh]h address_space}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFmodnameN classnameNj\j_)}jb]jEc.filemap_grab_folioasbuh1hhjEubj)}(h h]h }(hj2FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2 )}(hj5 h]h*}(hj@FhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjEubh)}(hmappingh]hmapping}(hjMFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjEubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjiFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfFubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjkFmodnameN classnameNj\j_)}jb]jEc.filemap_grab_folioasbuh1hhjbFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbFubh)}(hindexh]hindex}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjEubeh}(h]h ]h"]h$]h&]jj uh1jhjxEhhhjEhM8ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjtEhhhjEhM8ubah}(h]joEah ](jjeh"]h$]h&]jj)jhuh1hhjEhM8hjqEhhubj )}(hhh]j9)}(h grab a folio from the page cacheh]h grab a folio from the page cache}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM8hjFhhubah}(h]h ]h"]h$]h&]uh1jhjqEhhhjEhM8ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jFj4jFj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM<hjFubj)}(hhh](j)}(h>``struct address_space *mapping`` The address space to search h](j)}(h!``struct address_space *mapping``h]j?)}(hjGh]hstruct address_space *mapping}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjFubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM9hjFubj)}(hhh]j9)}(hThe address space to searchh]hThe address space to search}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhM9hjGubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjGhM9hjFubj)}(h!``pgoff_t index`` The page index h](j)}(h``pgoff_t index``h]j?)}(hj9Gh]h pgoff_t index}(hj;GhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7Gubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM:hj3Gubj)}(hhh]j9)}(hThe page indexh]hThe page index}(hjRGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjNGhM:hjOGubah}(h]h ]h"]h$]h&]uh1jhj3Gubeh}(h]h ]h"]h$]h&]uh1jhjNGhM:hjFubeh}(h]h ]h"]h$]h&]uh1jhjFubj9)}(h**Description**h]jz)}(hjtGh]h Description}(hjvGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrGubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM<hjFubj9)}(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 }(hjGhhhNhNubjz)}(h **mapping**h]hmapping}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubh & }(hjGhhhNhNubjz)}(h **index**h]hindex}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubhf. If no folio is found, a new folio is created. The folio is locked, marked as accessed, and returned.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM;hjFubj9)}(h **Return**h]jz)}(hjGh]hReturn}(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?hjFubj9)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM@hjFubeh}(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}(hjHhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjHhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMLubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhMLubh)}(hhh]h)}(hpageh]hpage}(hj#HhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Hubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj%HmodnameN classnameNj\j_)}jb]je)}jX find_get_pagesbc.find_get_pageasbuh1hhjHhhhjHhMLubj)}(h h]h }(hjDHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhMLubj2 )}(hj5 h]h*}(hjRHhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjHhhhjHhMLubh)}(h find_get_pageh]h)}(hjAHh]h find_get_page}(hjcHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_Hubah}(h]h ](jjeh"]h$]h&]jj uh1hhjHhhhjHhMLubj)}(h/(struct address_space *mapping, pgoff_t offset)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hj~HhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjzHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzHubh)}(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]j?Hc.find_get_pageasbuh1hhjzHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzHubj2 )}(hj5 h]h*}(hjHhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjzHubh)}(hmappingh]hmapping}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzHubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjvHubj)}(hpgoff_t offseth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjHmodnameN classnameNj\j_)}jb]j?Hc.find_get_pageasbuh1hhjHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hoffseth]hoffset}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjvHubeh}(h]h ]h"]h$]h&]jj uh1jhjHhhhjHhMLubeh}(h]h ]h"]h$]h&]jj juh1hjjhjGhhhjHhMLubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjHhMLhjGhhubj )}(hhh]j9)}(hfind and get a page referenceh]hfind and get a page reference}(hjGIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMLhjDIhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjHhMLubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j_Ij4j_Ij5j6j7uh1hhhhjhNhNubjp)}(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)}(hjiIh]h Parameters}(hjkIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjgIubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMPhjcIubj)}(hhh](j)}(h>``struct address_space *mapping`` the address_space to search h](j)}(h!``struct address_space *mapping``h]j?)}(hjIh]hstruct address_space *mapping}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMMhjIubj)}(hhh]j9)}(hthe address_space to searchh]hthe address_space to search}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhMMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMMhjIubj)}(h"``pgoff_t offset`` the page index h](j)}(h``pgoff_t offset``h]j?)}(hjIh]hpgoff_t offset}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMNhjIubj)}(hhh]j9)}(hthe page indexh]hthe page index}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhMNhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMNhjIubeh}(h]h ]h"]h$]h&]uh1jhjcIubj9)}(h**Description**h]jz)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjIubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMPhjcIubj9)}(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 }(hjJhhhNhNubjz)}(h **mapping**h]hmapping}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubh & }(hjJhhhNhNubjz)}(h **offset**h]hoffset}(hj,JhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubhL. If there is a page cache page, it is returned with an increased refcount.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMOhjcIubj9)}(h Otherwise, ``NULL`` is returned.h](h Otherwise, }(hjEJhhhNhNubj?)}(h``NULL``h]hNULL}(hjMJhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEJubh is returned.}(hjEJhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMRhjcIubeh}(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}(hjJhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjJhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMbubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhjJhMbubh)}(hhh]h)}(hpageh]hpage}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjJmodnameN classnameNj\j_)}jb]je)}jXfind_lock_pagesbc.find_lock_pageasbuh1hhjJhhhjJhMbubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhjJhMbubj2 )}(hj5 h]h*}(hjJhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjJhhhjJhMbubh)}(hfind_lock_pageh]h)}(hjJh]hfind_lock_page}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubah}(h]h ](jjeh"]h$]h&]jj uh1hhjJhhhjJhMbubj)}(h.(struct address_space *mapping, pgoff_t index)h](j)}(hstruct address_space *mappingh](j!)}(hj$h]hstruct}(hjKhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjJubj)}(h h]h }(hj KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]h)}(h address_spaceh]h address_space}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj KmodnameN classnameNj\j_)}jb]jJc.find_lock_pageasbuh1hhjJubj)}(h h]h }(hj ah"]h$]h&]uh1j1 hjJubh)}(hmappingh]hmapping}(hjWKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjJubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjsKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpKubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjuKmodnameN classnameNj\j_)}jb]jJc.find_lock_pageasbuh1hhjlKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlKubh)}(hindexh]hindex}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlKubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjJubeh}(h]h ]h"]h$]h&]jj uh1jhjJhhhjJhMbubeh}(h]h ]h"]h$]h&]jj juh1hjjhj~JhhhjJhMbubah}(h]jyJah ](jjeh"]h$]h&]jj)jhuh1hhjJhMbhj{Jhhubj )}(hhh]j9)}(h%locate, pin and lock a pagecache pageh]h%locate, pin and lock a pagecache page}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMbhjKhhubah}(h]h ]h"]h$]h&]uh1jhj{JhhhjJhMbubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jKj4jKj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.hhMfhjKubj)}(hhh](j)}(h>``struct address_space *mapping`` the address_space to search h](j)}(h!``struct address_space *mapping``h]j?)}(hj Lh]hstruct address_space *mapping}(hj LhhhNhNubah}(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.hhMchjLubj)}(hhh]j9)}(hthe address_space to searchh]hthe address_space to search}(hj#LhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLhMchj Lubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMchjLubj)}(h!``pgoff_t index`` the page index h](j)}(h``pgoff_t index``h]j?)}(hjCLh]h pgoff_t index}(hjELhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjALubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMdhj=Lubj)}(hhh]j9)}(hthe page indexh]hthe page index}(hj\LhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjXLhMdhjYLubah}(h]h ]h"]h$]h&]uh1jhj=Lubeh}(h]h ]h"]h$]h&]uh1jhjXLhMdhjLubeh}(h]h ]h"]h$]h&]uh1jhjKubj9)}(h**Description**h]jz)}(hj~Lh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|Lubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMfhjKubj9)}(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 }(hjLhhhNhNubjz)}(h **mapping**h]hmapping}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubh & }(hjLhhhNhNubjz)}(h **index**h]hindex}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubhW. If there is a page cache page, it 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.hhMehjKubj9)}(h **Context**h]jz)}(hjLh]hContext}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMihjKubj9)}(h May sleep.h]h May sleep.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMjhjKubj9)}(h **Return**h]jz)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMlhjKubj9)}(hJA struct page or ``NULL`` if there is no page in the cache for this index.h](hA struct page or }(hjMhhhNhNubj?)}(h``NULL``h]hNULL}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMubh1 if there is no page in the cache for this index.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMkhjKubeh}(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}(hjGMhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjCMhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMuubj)}(h h]h }(hjUMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCMhhhjTMhMuubh)}(hhh]h)}(hpageh]hpage}(hjfMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcMubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhMmodnameN classnameNj\j_)}jb]je)}jXfind_or_create_pagesbc.find_or_create_pageasbuh1hhjCMhhhjTMhMuubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCMhhhjTMhMuubj2 )}(hj5 h]h*}(hjMhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjCMhhhjTMhMuubh)}(hfind_or_create_pageh]h)}(hjMh]hfind_or_create_page}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubah}(h]h ](jjeh"]h$]h&]jj uh1hhjCMhhhjTMhMuubj)}(h>(struct address_space *mapping, pgoff_t index, gfp_t gfp_mask)h](j)}(hstruct address_space *mappingh](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)}(h address_spaceh]h address_space}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjMmodnameN classnameNj\j_)}jb]jMc.find_or_create_pageasbuh1hhjMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2 )}(hj5 h]h*}(hj NhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjMubh)}(hmappingh]hmapping}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjMubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hj4NhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1Nubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6NmodnameN classnameNj\j_)}jb]jMc.find_or_create_pageasbuh1hhj-Nubj)}(h h]h }(hjRNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Nubh)}(hindexh]hindex}(hj`NhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-Nubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjMubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj|NhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyNubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~NmodnameN classnameNj\j_)}jb]jMc.find_or_create_pageasbuh1hhjuNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuNubh)}(hgfp_maskh]hgfp_mask}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuNubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjMubeh}(h]h ]h"]h$]h&]jj uh1jhjCMhhhjTMhMuubeh}(h]h ]h"]h$]h&]jj juh1hjjhj?MhhhjTMhMuubah}(h]j:Mah ](jjeh"]h$]h&]jj)jhuh1hhjTMhMuhjhjOubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMvhj Oubj)}(hhh]j9)}(hthe page's address_spaceh]hthe page’s address_space}(hj,OhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj(OhMvhj)Oubah}(h]h ]h"]h$]h&]uh1jhj Oubeh}(h]h ]h"]h$]h&]uh1jhj(OhMvhj Oubj)}(h4``pgoff_t index`` the page's index into the mapping h](j)}(h``pgoff_t index``h]j?)}(hjLOh]h pgoff_t index}(hjNOhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJOubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMwhjFOubj)}(hhh]j9)}(h!the page's index into the mappingh]h#the page’s index into the mapping}(hjeOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjaOhMwhjbOubah}(h]h ]h"]h$]h&]uh1jhjFOubeh}(h]h ]h"]h$]h&]uh1jhjaOhMwhj Oubj)}(h(``gfp_t gfp_mask`` page allocation mode h](j)}(h``gfp_t gfp_mask``h]j?)}(hjOh]hgfp_t gfp_mask}(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.hhMxhjOubj)}(hhh]j9)}(hpage allocation modeh]hpage allocation mode}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjOhMxhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMxhj Oubeh}(h]h ]h"]h$]h&]uh1jhjNubj9)}(h**Description**h]jz)}(hjOh]h Description}(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.hhMzhjNubj9)}(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 }(hjOhhhNhNubjz)}(h **mapping**h]hmapping}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOubh & }(hjOhhhNhNubjz)}(h **offset**h]hoffset}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOubhW. If there is a page cache page, it is returned locked and with an increased refcount.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMyhjNubj9)}(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 }(hj PhhhNhNubjz)}(h **gfp_mask**h]hgfp_mask}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj Pubhr and added to the page cache and the VM’s LRU list. The page is returned locked and with an increased refcount.}(hj PhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM}hjNubj9)}(h+On memory exhaustion, ``NULL`` is returned.h](hOn memory exhaustion, }(hj*PhhhNhNubj?)}(h``NULL``h]hNULL}(hj2PhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj*Pubh is returned.}(hj*PhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjNubj9)}(hVfind_or_create_page() may sleep, even if **gfp_flags** specifies an atomic allocation!h](h)find_or_create_page() may sleep, even if }(hjKPhhhNhNubjz)}(h **gfp_flags**h]h gfp_flags}(hjSPhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKPubh specifies an atomic allocation!}(hjKPhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjNubeh}(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}(hjPhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjPhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjPhMubh)}(hhh]h)}(hpageh]hpage}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjPmodnameN classnameNj\j_)}jb]je)}jXgrab_cache_page_nowaitsbc.grab_cache_page_nowaitasbuh1hhjPhhhjPhMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjPhMubj2 )}(hj5 h]h*}(hjPhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjPhhhjPhMubh)}(hgrab_cache_page_nowaith]h)}(hjPh]hgrab_cache_page_nowait}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ](jjeh"]h$]h&]jj uh1hhjPhhhjPhMubj)}(h.(struct address_space *mapping, pgoff_t index)h](j)}(hstruct address_space *mappingh](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)}(h address_spaceh]h address_space}(hj$QhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!Qubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj&QmodnameN classnameNj\j_)}jb]jPc.grab_cache_page_nowaitasbuh1hhjQubj)}(h h]h }(hjBQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2 )}(hj5 h]h*}(hjPQhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjQubh)}(hmappingh]hmapping}(hj]QhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjyQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvQubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{QmodnameN classnameNj\j_)}jb]jPc.grab_cache_page_nowaitasbuh1hhjrQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrQubh)}(hindexh]hindex}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPubeh}(h]h ]h"]h$]h&]jj uh1jhjPhhhjPhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjPhhhjPhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjPhMhjPhhubj )}(hhh]j9)}(h1returns locked page at given index in given cacheh]h1returns locked page at given index in given cache}(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&]uh1jhjPhhhjPhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jQj4jQj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(h7``struct address_space *mapping`` target address_space h](j)}(h!``struct address_space *mapping``h]j?)}(hjRh]hstruct address_space *mapping}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj Rubj)}(hhh]j9)}(htarget address_spaceh]htarget address_space}(hj)RhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%RhMhj&Rubah}(h]h ]h"]h$]h&]uh1jhj Rubeh}(h]h ]h"]h$]h&]uh1jhj%RhMhjRubj)}(h!``pgoff_t index`` the page index h](j)}(h``pgoff_t index``h]j?)}(hjIRh]h pgoff_t index}(hjKRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGRubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjCRubj)}(hhh]j9)}(hthe page indexh]hthe page index}(hjbRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^RhMhj_Rubah}(h]h ]h"]h$]h&]uh1jhjCRubeh}(h]h ]h"]h$]h&]uh1jhj^RhMhjRubeh}(h]h ]h"]h$]h&]uh1jhjQubj9)}(h**Description**h]jz)}(hjRh]h Description}(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)}(hXHReturns locked page at given index in given cache, creating it if needed, but do not wait if the page is locked or to reclaim memory. This is intended for speculative data generators, where the data can be regenerated if the page couldn't be grabbed. This routine should be safe to call while holding the lock for another page.h]hXJReturns locked page at given index in given cache, creating it if needed, but do not wait if the page is locked or to reclaim memory. This is intended for speculative data generators, where the data can be regenerated if the page couldn’t be grabbed. This routine should be safe to call while holding the lock for another page.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjQubj9)}(huClear __GFP_FS when allocating the page to avoid recursion into the fs and deadlock against the caller's locked page.h]hwClear __GFP_FS when allocating the page to avoid recursion into the fs and deadlock against the caller’s locked page.}(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_next_index (C function)c.folio_next_indexhNtauh1hhjhhhNhNubh)}(hhh](h)}(h4pgoff_t folio_next_index (const struct folio *folio)h]h)}(h3pgoff_t folio_next_index(const struct folio *folio)h](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjRmodnameN classnameNj\j_)}jb]je)}jXfolio_next_indexsbc.folio_next_indexasbuh1hhjRhhhW/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_next_indexh]h)}(hjRh]hfolio_next_index}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Subah}(h]h ](jjeh"]h$]h&]jj uh1hhjRhhhjRhMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hj*ShhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj&Subj)}(h h]h }(hj7ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Subj!)}(hj$h]hstruct}(hjEShhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj&Subj)}(h h]h }(hjRShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Subh)}(hhh]h)}(hfolioh]hfolio}(hjcShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`Subah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjeSmodnameN classnameNj\j_)}jb]jRc.folio_next_indexasbuh1hhj&Subj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Subj2 )}(hj5 h]h*}(hjShhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj&Subh)}(hfolioh]hfolio}(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 Get the index of the next folio.h]h Get the index of the next folio.}(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** ``const 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)}(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)}(h1``const struct folio *folio`` The current folio. h](j)}(h``const struct folio *folio``h]j?)}(hjTh]hconst struct folio *folio}(hj ThhhNhNubah}(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.hhMhjTubj)}(hhh]j9)}(hThe current folio.h]hThe current folio.}(hj ThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjSubah}(h]h ]h"]h$]h&]uh1jhjSubj9)}(h **Return**h]jz)}(hjBTh]hReturn}(hjDThhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@Tubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjSubj9)}(h ah"]h$]h&]uh1j1 hjThhhjThMubh)}(hfolio_file_pageh]h)}(hjTh]hfolio_file_page}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubah}(h]h ](jjeh"]h$]h&]jj uh1hhjThhhjThMubj)}(h$(struct folio *folio, pgoff_t index)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjUhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjTubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]h)}(hfolioh]hfolio}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj!UmodnameN classnameNj\j_)}jb]jTc.folio_file_pageasbuh1hhjTubj)}(h h]h }(hj=UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2 )}(hj5 h]h*}(hjKUhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubh)}(hfolioh]hfolio}(hjXUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjTubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjtUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjvUmodnameN classnameNj\j_)}jb]jTc.folio_file_pageasbuh1hhjmUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmUubh)}(hindexh]hindex}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmUubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjTubeh}(h]h ]h"]h$]h&]jj uh1jhjThhhjThMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjThhhjThMubah}(h]jzTah ](jjeh"]h$]h&]jj)jhuh1hhjThMhj|Thhubj )}(hhh]j9)}(h The page for a particular index.h]h The page for a particular index.}(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&]uh1jhj|ThhhjThMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jUj4jUj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjUubj)}(hhh](j)}(h=``struct folio *folio`` The folio which contains this index. h](j)}(h``struct folio *folio``h]j?)}(hj Vh]hstruct folio *folio}(hj VhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj Vubah}(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 folio which contains this index.h]h$The folio which contains this index.}(hj$VhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj VhMhj!Vubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhj VhMhjVubj)}(h0``pgoff_t index`` The index we want to look up. h](j)}(h``pgoff_t index``h]j?)}(hjDVh]h pgoff_t index}(hjFVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBVubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj>Vubj)}(hhh]j9)}(hThe index we want to look up.h]hThe index we want to look up.}(hj]VhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjYVhMhjZVubah}(h]h ]h"]h$]h&]uh1jhj>Vubeh}(h]h ]h"]h$]h&]uh1jhjYVhMhjVubeh}(h]h ]h"]h$]h&]uh1jhjUubj9)}(h**Description**h]jz)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}Vubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjUubj9)}(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).}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjUubj9)}(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:85: ./include/linux/pagemap.hhMhjUubj9)}(h1The page containing the file data for this index.h]h1The page containing the file data for this index.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_contains (C function)c.folio_containshNtauh1hhjhhhNhNubh)}(hhh](h)}(h>bool folio_contains (const struct folio *folio, pgoff_t index)h]h)}(h=bool folio_contains(const struct folio *folio, pgoff_t index)h](j)}(hj*h]hbool}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjVhMubh)}(hfolio_containsh]h)}(hfolio_containsh]hfolio_contains}(hj WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ](jjeh"]h$]h&]jj uh1hhjVhhhjVhMubj)}(h*(const struct folio *folio, pgoff_t index)h](j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hj'WhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj#Wubj)}(h h]h }(hj4WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Wubj!)}(hj$h]hstruct}(hjBWhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj#Wubj)}(h h]h }(hjOWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Wubh)}(hhh]h)}(hfolioh]hfolio}(hj`WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]Wubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbWmodnameN classnameNj\j_)}jb]je)}jXj Wsbc.folio_containsasbuh1hhj#Wubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Wubj2 )}(hj5 h]h*}(hjWhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj#Wubh)}(hfolioh]hfolio}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#Wubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjWubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjWmodnameN classnameNj\j_)}jb]j|Wc.folio_containsasbuh1hhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hindexh]hindex}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjWubeh}(h]h ]h"]h$]h&]jj uh1jhjVhhhjVhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjVhhhjVhMubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjVhMhjVhhubj )}(hhh]j9)}(h#Does this folio contain this index?h]h#Does this folio contain this index?}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj Xhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j%Xj4j%Xj5j6j7uh1hhhhjhNhNubjp)}(hX**Parameters** ``const struct folio *folio`` The folio. ``pgoff_t index`` The page index within the file. **Context** The caller should have the folio locked and ensure e.g., shmem did not move this folio to the swap cache. **Return** true or false.h](j9)}(h**Parameters**h]jz)}(hj/Xh]h Parameters}(hj1XhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj-Xubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj)Xubj)}(hhh](j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hjNXh]hconst struct folio *folio}(hjPXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjLXubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjHXubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjgXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjcXhMhjdXubah}(h]h ]h"]h$]h&]uh1jhjHXubeh}(h]h ]h"]h$]h&]uh1jhjcXhMhjEXubj)}(h2``pgoff_t index`` The page index within the file. h](j)}(h``pgoff_t index``h]j?)}(hjXh]h pgoff_t index}(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)}(hThe page index within the file.h]hThe page index within the file.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjEXubeh}(h]h ]h"]h$]h&]uh1jhj)Xubj9)}(h **Context**h]jz)}(hjXh]hContext}(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.hhMhj)Xubj9)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj)Xubj9)}(h **Return**h]jz)}(hjXh]hReturn}(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.hhMhj)Xubj9)}(htrue or false.h]htrue or false.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj)Xubeh}(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}(hj1YhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.Yubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3YmodnameN classnameNj\j_)}jb]je)}jX page_pgoffsb c.page_pgoffasbuh1hhj*YhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjSYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*YhhhjRYhMubh)}(h page_pgoffh]h)}(hjOYh]h page_pgoff}(hjeYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaYubah}(h]h ](jjeh"]h$]h&]jj uh1hhj*YhhhjRYhMubj)}(h4(const struct folio *folio, const struct page *page)h](j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|Yubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Yubj!)}(hj$h]hstruct}(hjYhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj|Yubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Yubh)}(hhh]h)}(hfolioh]hfolio}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjYmodnameN classnameNj\j_)}jb]jMY c.page_pgoffasbuh1hhj|Yubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Yubj2 )}(hj5 h]h*}(hjYhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|Yubh)}(hfolioh]hfolio}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|Yubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjxYubj)}(hconst struct page *pageh](j!)}(hjh]hconst}(hj ZhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj!)}(hj$h]hstruct}(hj&ZhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjZubj)}(h h]h }(hj3ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]h)}(hpageh]hpage}(hjDZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAZubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFZmodnameN classnameNj\j_)}jb]jMY c.page_pgoffasbuh1hhjZubj)}(h h]h }(hjbZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2 )}(hj5 h]h*}(hjpZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZubh)}(hpageh]hpage}(hj}ZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjxYubeh}(h]h ]h"]h$]h&]jj uh1jhj*YhhhjRYhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj&YhhhjRYhMubah}(h]j!Yah ](jjeh"]h$]h&]jj)jhuh1hhjRYhMhj#Yhhubj )}(hhh]j9)}(h/Calculate the logical page offset of this page.h]h/Calculate the logical page offset of this page.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjZhhubah}(h]h ]h"]h$]h&]uh1jhj#YhhhjRYhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jZj4jZj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.hhMhjZubj)}(hhh](j)}(h>``const struct folio *folio`` The folio containing this page. h](j)}(h``const struct folio *folio``h]j?)}(hjZh]hconst struct folio *folio}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjZubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjZubj)}(hhh]j9)}(hThe folio containing this page.h]hThe folio containing this page.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubj)}(hB``const struct page *page`` The page which we need the offset 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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj[ubj)}(hhh]j9)}(h%The page which we need the offset of.h]h%The page which we need the offset of.}(hj:[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6[hMhj7[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj6[hMhjZubeh}(h]h ]h"]h$]h&]uh1jhjZubj9)}(h**Description**h]jz)}(hj\[h]h Description}(hj^[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZ[ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjZubj9)}(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.}(hjr[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjZubj9)}(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.hhMhjZubj9)}(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[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjZubj9)}(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.hhMhjZubj9)}(h!The offset in units of PAGE_SIZE.h]h!The offset in units of PAGE_SIZE.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjZubeh}(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}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj[modnameN classnameNj\j_)}jb]je)}jX folio_possb c.folio_posasbuh1hhj[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)}(h folio_posh]h)}(hj\h]h folio_pos}(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!)}(hjh]hconst}(hjA\hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj=\ubj)}(h h]h }(hjN\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 }(hji\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=\ubh)}(hhh]h)}(hfolioh]hfolio}(hjz\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjw\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj|\modnameN classnameNj\j_)}jb]j\ c.folio_posasbuh1hhj=\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 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)}(h4Returns the byte position of this folio in its file.h]h4Returns the byte position of this folio in its file.}(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)}(h:**Parameters** ``const struct folio *folio`` 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&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj\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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj]ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj7]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj4]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj3]hMhj]ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(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}(hjx]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt]hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMCubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt]hhhj]hMCubh)}(h folio_trylockh]h)}(h folio_trylockh]h folio_trylock}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjt]hhhj]hMCubj)}(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_trylockasbuh1hhj]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 uh1jhjt]hhhj]hMCubeh}(h]h ]h"]h$]h&]jj juh1hjjhjp]hhhj]hMCubah}(h]jk]ah ](jjeh"]h$]h&]jj)jhuh1hhj]hMChjm]hhubj )}(hhh]j9)}(hAttempt to lock a folio.h]hAttempt to lock a folio.}(hj7^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMChj4^hhubah}(h]h ]h"]h$]h&]uh1jhjm]hhhj]hMCubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jO^j4jO^j5j6j7uh1hhhhjhNhNubjp)}(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)}(hjY^h]h Parameters}(hj[^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjW^ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMGhjS^ubj)}(hhh]j)}(h6``struct folio *folio`` The folio to attempt to lock. 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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMDhjr^ubj)}(hhh]j9)}(hThe folio to attempt to lock.h]hThe folio to attempt to lock.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^hMDhj^ubah}(h]h ]h"]h$]h&]uh1jhjr^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMDhjo^ubah}(h]h ]h"]h$]h&]uh1jhjS^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.hhMFhjS^ubj9)}(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.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMEhjS^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.hhMJhjS^ubj9)}(h Any context.h]h Any context.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMKhjS^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.hhMMhjS^ubj9)}(h+Whether the lock was successfully acquired.h]h+Whether the lock was successfully acquired.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMLhjS^ubeh}(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}(hjF_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB_hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM\ubj)}(h h]h }(hjU_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB_hhhjT_hM\ubh)}(h folio_lockh]h)}(h folio_lockh]h folio_lock}(hjg_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjc_ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjB_hhhjT_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]je)}jXji_sb c.folio_lockasbuh1hhj_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 uh1jhjB_hhhjT_hM\ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj>_hhhjT_hM\ubah}(h]j9_ah ](jjeh"]h$]h&]jj)jhuh1hhjT_hM\hj;_hhubj )}(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.hhM\hj`hhubah}(h]h ]h"]h$]h&]uh1jhj;_hhhjT_hM\ubeh}(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.hhM`hj"`ubj)}(hhh]j)}(h+``struct folio *folio`` The folio to lock. h](j)}(h``struct folio *folio``h]j?)}(hjG`h]hstruct folio *folio}(hjI`hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjE`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM]hjA`ubj)}(hhh]j9)}(hThe folio to lock.h]hThe folio to lock.}(hj``hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj\`hM]hj]`ubah}(h]h ]h"]h$]h&]uh1jhjA`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)}(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.hhM^hj"`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.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMdhj"`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.hhMjhj"`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.hhMkhj"`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.hhMyubj)}(h h]h }(hj ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj ahMyubh)}(h lock_pageh]h)}(h lock_pageh]h lock_page}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubah}(h]h ](jjeh"]h$]h&]jj uh1hhj`hhhj ahMyubj)}(h(struct page *page)h]j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj:ahhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj6aubj)}(h h]h }(hjGahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6aubh)}(hhh]h)}(hpageh]hpage}(hjXahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUaubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjZamodnameN classnameNj\j_)}jb]je)}jXj asb c.lock_pageasbuh1hhj6aubj)}(h h]h }(hjxahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6aubj2 )}(hj5 h]h*}(hjahhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj6aubh)}(hpageh]hpage}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6aubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj2aubah}(h]h ]h"]h$]h&]jj uh1jhj`hhhj ahMyubeh}(h]h ]h"]h$]h&]jj juh1hjjhj`hhhj ahMyubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj ahMyhj`hhubj )}(hhh]j9)}(h$Lock the folio containing this page.h]h$Lock the folio containing this page.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMyhjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj ahMyubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jaj4jaj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.hhM}hjaubj)}(hhh]j)}(h(``struct page *page`` The page to lock. h](j)}(h``struct page *page``h]j?)}(hjah]hstruct page *page}(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.hhMzhjaubj)}(hhh]j9)}(hThe page to lock.h]hThe page to lock.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhMzhjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjbhMzhjaubah}(h]h ]h"]h$]h&]uh1jhjaubj9)}(h**Description**h]jz)}(hj9bh]h Description}(hj;bhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7bubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM|hjaubj9)}(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.}(hjObhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM{hjaubj9)}(h **Context**h]jz)}(hj`bh]hContext}(hjbbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj^bubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjaubj9)}(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.}(hjvbhhhNhNubah}(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Ռ 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}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhMubh)}(hfolio_lock_killableh]h)}(hfolio_lock_killableh]hfolio_lock_killable}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ](jjeh"]h$]h&]jj uh1hhjbhhhjbhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](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)}(hfolioh]hfolio}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjcmodnameN classnameNj\j_)}jb]je)}jXjbsbc.folio_lock_killableasbuh1hhjbubj)}(h h]h }(hj chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2 )}(hj5 h]h*}(hj.chhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjbubh)}(hfolioh]hfolio}(hj;chhhNhNubah}(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 juh1hjjhjbhhhjbhMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjbhMhjbhhubj )}(hhh]j9)}(h1Lock this folio, interruptible by a fatal signal.h]h1Lock this folio, interruptible by a fatal signal.}(hjechhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjbchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j}cj4j}cj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjch]h Parameters}(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.hhMhjcubj)}(hhh]j)}(h+``struct folio *folio`` The folio to lock. h](j)}(h``struct folio *folio``h]j?)}(hjch]hstruct folio *folio}(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.hhMhjcubj)}(hhh]j9)}(hThe folio to lock.h]hThe folio to lock.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjcubah}(h]h ]h"]h$]h&]uh1jhjcubj9)}(h**Description**h]jz)}(hjch]h Description}(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.hhMhjcubj9)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjcubj9)}(h **Context**h]jz)}(hjdh]hContext}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjdubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjcubj9)}(hMay sleep; see folio_lock().h]hMay sleep; see folio_lock().}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjcubj9)}(h **Return**h]jz)}(hj/dh]hReturn}(hj1dhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj-dubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjcubj9)}(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.}(hjEdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjcubeh}(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}(hjtdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpdhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpdhhhjdhMubh)}(hfilemap_range_needs_writebackh]h)}(hfilemap_range_needs_writebackh]hfilemap_range_needs_writeback}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ](jjeh"]h$]h&]jj uh1hhjpdhhhjdhMubj)}(hC(struct address_space *mapping, loff_t start_byte, loff_t end_byte)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}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjdmodnameN classnameNj\j_)}jb]je)}jXjdsbc.filemap_range_needs_writebackasbuh1hhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2 )}(hj5 h]h*}(hjdhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdubh)}(hmappingh]hmapping}(hj ehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(hloff_t start_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hj%ehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"eubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj'emodnameN classnameNj\j_)}jb]jdc.filemap_range_needs_writebackasbuh1hhjeubj)}(h h]h }(hjCehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(h start_byteh]h start_byte}(hjQehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(hloff_t end_byteh](h)}(hhh]h)}(hloff_th]hloff_t}(hjmehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjeubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjoemodnameN classnameNj\j_)}jb]jdc.filemap_range_needs_writebackasbuh1hhjfeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfeubh)}(hend_byteh]hend_byte}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfeubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubeh}(h]h ]h"]h$]h&]jj uh1jhjpdhhhjdhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjldhhhjdhMubah}(h]jgdah ](jjeh"]h$]h&]jj)jhuh1hhjdhMhjidhhubj )}(hhh]j9)}(h*check if range potentially needs writebackh]h*check if range potentially needs writeback}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjehhubah}(h]h ]h"]h$]h&]uh1jhjidhhhjdhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jej4jej5j6j7uh1hhhhjhNhNubjp)}(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)}(hjeh]h Parameters}(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.hhM hjeubj)}(hhh](j)}(hF``struct address_space *mapping`` address space within which to check h](j)}(h!``struct address_space *mapping``h]j?)}(hjfh]hstruct address_space *mapping}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjeubj)}(hhh]j9)}(h#address space within which to checkh]h#address space within which to check}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjfhM hjfubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjfhM hjeubj)}(h=``loff_t start_byte`` offset in bytes where the range starts h](j)}(h``loff_t start_byte``h]j?)}(hj=fh]hloff_t start_byte}(hj?fhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj;fubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hj7fubj)}(hhh]j9)}(h&offset in bytes where the range startsh]h&offset in bytes where the range starts}(hjVfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjRfhM hjSfubah}(h]h ]h"]h$]h&]uh1jhj7fubeh}(h]h ]h"]h$]h&]uh1jhjRfhM hjeubj)}(hE``loff_t end_byte`` offset in bytes where the range ends (inclusive) h](j)}(h``loff_t end_byte``h]j?)}(hjvfh]hloff_t end_byte}(hjxfhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjtfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjpfubj)}(hhh]j9)}(h0offset in bytes where the range ends (inclusive)h]h0offset in bytes where the range ends (inclusive)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjfhM hjfubah}(h]h ]h"]h$]h&]uh1jhjpfubeh}(h]h ]h"]h$]h&]uh1jhjfhM hjeubeh}(h]h ]h"]h$]h&]uh1jhjeubj9)}(h**Description**h]jz)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjfubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjeubj9)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjeubj9)}(h **Return**h]jz)}(hjfh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjfubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjeubj9)}(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}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubhg if the caller should do filemap_write_and_wait_range() before doing O_DIRECT to a page in this range, }(hjfhhhNhNubj?)}(h ``false``h]hfalse}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubh otherwise.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjeubeh}(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}(hj=ghhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj9ghhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjKghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ghhhjJghMubh)}(hreadahead_controlh]h)}(hj7gh]hreadahead_control}(hj]ghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYgubah}(h]h ](jjeh"]h$]h&]jj uh1hhj9ghhhjJghMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj5ghhhjJghMubah}(h]j0gah ](jjeh"]h$]h&]jj)jhuh1hhjJghMhj2ghhubj )}(hhh]j9)}(hDescribes a readahead request.h]hDescribes a readahead request.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM"hj|ghhubah}(h]h ]h"]h$]h&]uh1jhj2ghhhjJghMubeh}(h]h ](j-structeh"]h$]h&]j2j-j3jgj4jgj5j6j7uh1hhhhjhNhNubjp)}(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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjgubh:}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM&hjgubj)}(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; };}hjgsbah}(h]h ]h"]h$]h&]jj uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM(hjgubj9)}(h **Members**h]jz)}(hjgh]hMembers}(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``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?)}(hjgh]hfile}(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.hhM.hjgubj)}(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.3}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM-hjhubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhhM.hjgubj)}(h.``mapping`` Readahead this filesystem object. h](j)}(h ``mapping``h]j?)}(hj&hh]hmapping}(hj(hhhhNhNubah}(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/hj hubj)}(hhh]j9)}(h!Readahead this filesystem object.h]h!Readahead this filesystem object.}(hj?hhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj;hhM/hjhj]hubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM/hjYhubj)}(hhh]j9)}(h#File readahead state. May be NULL.h]h#File readahead state. May be NULL.}(hjxhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM0hjuhubah}(h]h ]h"]h$]h&]uh1jhjYhubeh}(h]h ]h"]h$]h&]uh1jhjthhM/hjgubeh}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubj9)}(h**Description**h]jz)}(hjhh]h Description}(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.hhM3hjhhubj9)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM#hjhhubj9)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM(hjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&page_cache_sync_readahead (C function)c.page_cache_sync_readaheadhNtauh1hhjhhhNhNubh)}(hhh](h)}(hvoid page_cache_sync_readahead (struct address_space *mapping, struct file_ra_state *ra, struct file *file, pgoff_t index, unsigned long req_count)h]h)}(hvoid page_cache_sync_readahead(struct address_space *mapping, struct file_ra_state *ra, struct file *file, pgoff_t index, unsigned long req_count)h](j)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMQubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMQubh)}(hpage_cache_sync_readaheadh]h)}(hpage_cache_sync_readaheadh]hpage_cache_sync_readahead}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj iubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhhjhhMQubj)}(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}(hj,ihhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj(iubj)}(h h]h }(hj9ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(iubh)}(hhh]h)}(h address_spaceh]h address_space}(hjJihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjLimodnameN classnameNj\j_)}jb]je)}jXjisbc.page_cache_sync_readaheadasbuh1hhj(iubj)}(h h]h }(hjjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(iubj2 )}(hj5 h]h*}(hjxihhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj(iubh)}(hmappingh]hmapping}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(iubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj$iubj)}(hstruct file_ra_state *rah](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 file_ra_stateh]h file_ra_state}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjimodnameN classnameNj\j_)}jb]jfic.page_cache_sync_readaheadasbuh1hhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj2 )}(hj5 h]h*}(hjihhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjiubh)}(hrah]hra}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj$iubj)}(hstruct file *fileh](j!)}(hj$h]hstruct}(hjjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj jubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj jubh)}(hhh]h)}(hfileh]hfile}(hj,jhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)jubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj.jmodnameN classnameNj\j_)}jb]jfic.page_cache_sync_readaheadasbuh1hhj jubj)}(h h]h }(hjJjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj jubj2 )}(hj5 h]h*}(hjXjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj jubh)}(hfileh]hfile}(hjejhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj jubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj$iubj)}(h pgoff_t indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~jubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjjmodnameN classnameNj\j_)}jb]jfic.page_cache_sync_readaheadasbuh1hhjzjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzjubh)}(hindexh]hindex}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj$iubj)}(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 uh1jhj$iubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhhjhhMQubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhhjhhMQubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhhMQhjhhhubj )}(hhh]j9)}(hgeneric file readaheadh]hgeneric file readahead}(hj(khhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMQhj%khhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhMQubeh}(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. ``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)}(hjJkh]h Parameters}(hjLkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHkubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMUhjDkubj)}(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?)}(hjikh]hstruct address_space *mapping}(hjkkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgkubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMRhjckubj)}(hhh]j9)}(h7address_space which holds the pagecache and I/O vectorsh]h7address_space which holds the pagecache and I/O vectors}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj~khMRhjkubah}(h]h ]h"]h$]h&]uh1jhjckubeh}(h]h ]h"]h$]h&]uh1jhj~khMRhj`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?)}(hjkh]hstruct file_ra_state *ra}(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.hhMShjkubj)}(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&]uh1j8hjkhMShjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMShj`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.hhMThjkubj)}(hhh]j9)}(h*Used by the filesystem for authentication.h]h*Used by the filesystem for authentication.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhMThjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMThj`kubj)}(h2``pgoff_t index`` Index of first page to be read. h](j)}(h``pgoff_t index``h]j?)}(hjlh]h pgoff_t index}(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.hhMUhjlubj)}(hhh]j9)}(hIndex of first page to be read.h]hIndex of first page to be read.}(hj-lhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj)lhMUhj*lubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhj)lhMUhj`kubj)}(hL``unsigned long req_count`` Total number of pages being read by the caller. h](j)}(h``unsigned long req_count``h]j?)}(hjMlh]hunsigned long req_count}(hjOlhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjKlubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMVhjGlubj)}(hhh]j9)}(h/Total number of pages being read by the caller.h]h/Total number of pages being read by the caller.}(hjflhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjblhMVhjclubah}(h]h ]h"]h$]h&]uh1jhjGlubeh}(h]h ]h"]h$]h&]uh1jhjblhMVhj`kubeh}(h]h ]h"]h$]h&]uh1jhjDkubj9)}(h**Description**h]jz)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMXhjDkubj9)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMWhjDkubeh}(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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMgubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhjlhMgubh)}(hpage_cache_async_readaheadh]h)}(hpage_cache_async_readaheadh]hpage_cache_async_readahead}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ](jjeh"]h$]h&]jj uh1hhjlhhhjlhMgubj)}(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}(hj mhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hhh]h)}(h address_spaceh]h address_space}(hj(mhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%mubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj*mmodnameN classnameNj\j_)}jb]je)}jXjlsbc.page_cache_async_readaheadasbuh1hhjmubj)}(h h]h }(hjHmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2 )}(hj5 h]h*}(hjVmhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjmubh)}(hmappingh]hmapping}(hjcmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubj)}(hstruct file_ra_state *rah](j!)}(hj$h]hstruct}(hj|mhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjxmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxmubh)}(hhh]h)}(h file_ra_stateh]h file_ra_state}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmmodnameN classnameNj\j_)}jb]jDmc.page_cache_async_readaheadasbuh1hhjxmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxmubj2 )}(hj5 h]h*}(hjmhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxmubh)}(hrah]hra}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxmubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubj)}(hstruct file *fileh](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)}(hfileh]hfile}(hj nhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj nmodnameN classnameNj\j_)}jb]jDmc.page_cache_async_readaheadasbuh1hhjmubj)}(h h]h }(hj(nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2 )}(hj5 h]h*}(hj6nhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjmubh)}(hfileh]hfile}(hjCnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubj)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj\nhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjXnubj)}(h h]h }(hjinhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXnubh)}(hhh]h)}(hfolioh]hfolio}(hjznhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj|nmodnameN classnameNj\j_)}jb]jDmc.page_cache_async_readaheadasbuh1hhjXnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXnubj2 )}(hj5 h]h*}(hjnhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjXnubh)}(hfolioh]hfolio}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubj)}(hunsigned long req_counth](j)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(h req_counth]h req_count}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubeh}(h]h ]h"]h$]h&]jj uh1jhjlhhhjlhMgubeh}(h]h ]h"]h$]h&]jj juh1hjjhjlhhhjlhMgubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhMghjlhhubj )}(hhh]j9)}(hfile readahead for marked pagesh]hfile readahead for marked pages}(hj.ohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMghj+ohhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhMgubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jFoj4jFoj5j6j7uh1hhhhjhNhNubjp)}(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)}(hjPoh]h Parameters}(hjRohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNoubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMkhjJoubj)}(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?)}(hjooh]hstruct address_space *mapping}(hjqohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhhjioubj)}(hhh]j9)}(h7address_space which holds the pagecache and I/O vectorsh]h7address_space which holds the pagecache and I/O vectors}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjohMhhjoubah}(h]h ]h"]h$]h&]uh1jhjioubeh}(h]h ]h"]h$]h&]uh1jhjohMhhjfoubj)}(hK``struct file_ra_state *ra`` file_ra_state which holds the readahead state h](j)}(h``struct file_ra_state *ra``h]j?)}(hjoh]hstruct file_ra_state *ra}(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.hhMihjoubj)}(hhh]j9)}(h-file_ra_state which holds the readahead stateh]h-file_ra_state which holds the readahead state}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjohMihjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMihjfoubj)}(hA``struct file *file`` Used by the filesystem for authentication. h](j)}(h``struct file *file``h]j?)}(hjoh]hstruct file *file}(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.hhMjhjoubj)}(hhh]j9)}(h*Used by the filesystem for authentication.h]h*Used by the filesystem for authentication.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjohMjhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMjhjfoubj)}(hF``struct folio *folio`` The folio which triggered the readahead call. 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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMkhjpubj)}(hhh]j9)}(h-The folio which triggered the readahead call.h]h-The folio which triggered the readahead call.}(hj3phhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj/phMkhj0pubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhj/phMkhjfoubj)}(hL``unsigned long req_count`` Total number of pages being read by the caller. h](j)}(h``unsigned long req_count``h]j?)}(hjSph]hunsigned long req_count}(hjUphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQpubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMlhjMpubj)}(hhh]j9)}(h/Total number of pages being read by the caller.h]h/Total number of pages being read by the caller.}(hjlphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhphMlhjipubah}(h]h ]h"]h$]h&]uh1jhjMpubeh}(h]h ]h"]h$]h&]uh1jhjhphMlhjfoubeh}(h]h ]h"]h$]h&]uh1jhjJoubj9)}(h**Description**h]jz)}(hjph]h Description}(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.hhMnhjJoubj9)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMmhjJoubeh}(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}(hjphhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjphhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphMubh)}(hhh]h)}(hfolioh]hfolio}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjpmodnameN classnameNj\j_)}jb]je)}jXreadahead_foliosbc.readahead_folioasbuh1hhjphhhjphMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphMubj2 )}(hj5 h]h*}(hj!qhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjphhhjphMubh)}(hreadahead_folioh]h)}(hjqh]hreadahead_folio}(hj2qhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.qubah}(h]h ](jjeh"]h$]h&]jj uh1hhjphhhjphMubj)}(h!(struct readahead_control *ractl)h]j)}(hstruct readahead_control *ractlh](j!)}(hj$h]hstruct}(hjMqhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjIqubj)}(h h]h }(hjZqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIqubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hjkqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhqubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmqmodnameN classnameNj\j_)}jb]jqc.readahead_folioasbuh1hhjIqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIqubj2 )}(hj5 h]h*}(hjqhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjIqubh)}(hractlh]hractl}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIqubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjEqubah}(h]h ]h"]h$]h&]jj uh1jhjphhhjphMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjphhhjphMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjphMhjphhubj )}(hhh]j9)}(hGet the next folio to read.h]hGet the next folio to read.}(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&]uh1jhjphhhjphMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jqj4jqj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(hC``struct readahead_control *ractl`` The current readahead request. h](j)}(h#``struct readahead_control *ractl``h]j?)}(hjrh]hstruct readahead_control *ractl}(hjrhhhNhNubah}(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.hhMhj rubj)}(hhh]j9)}(hThe current readahead request.h]hThe current readahead request.}(hj(rhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj$rhMhj%rubah}(h]h ]h"]h$]h&]uh1jhj rubeh}(h]h ]h"]h$]h&]uh1jhj$rhMhjrubah}(h]h ]h"]h$]h&]uh1jhjqubj9)}(h **Context**h]jz)}(hjJrh]hContext}(hjLrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHrubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjqubj9)}(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`rhhhNhNubah}(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)}(hjqrh]hReturn}(hjsrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjorubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjqubj9)}(h8A pointer to the next folio, or ``NULL`` if we are done.h](h A pointer to the next folio, or }(hjrhhhNhNubj?)}(h``NULL``h]hNULL}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubh if we are done.}(hjrhhhNhNubeh}(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Ռreadahead_pos (C function)c.readahead_poshNtauh1hhjhhhNhNubh)}(hhh](h)}(h:loff_t readahead_pos (const struct readahead_control *rac)h]h)}(h9loff_t readahead_pos(const struct readahead_control *rac)h](h)}(hhh]h)}(hloff_th]hloff_t}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjrmodnameN classnameNj\j_)}jb]je)}jX readahead_possbc.readahead_posasbuh1hhjrhhhW/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)}(h readahead_posh]h)}(hjrh]h readahead_pos}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubah}(h]h ](jjeh"]h$]h&]jj uh1hhjrhhhjrhMubj)}(h%(const struct readahead_control *rac)h]j)}(h#const struct readahead_control *rach](j!)}(hjh]hconst}(hjshhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjsubj)}(h h]h }(hj'shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj!)}(hj$h]hstruct}(hj5shhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjsubj)}(h h]h }(hjBshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hjSshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPsubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjUsmodnameN classnameNj\j_)}jb]jrc.readahead_posasbuh1hhjsubj)}(h h]h }(hjqshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2 )}(hj5 h]h*}(hjshhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjsubh)}(hrach]hrac}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjsubah}(h]h ]h"]h$]h&]jj uh1jhjrhhhjrhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjrhhhjrhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjrhMhjrhhubj )}(hhh]j9)}(h8The byte offset into the file of this readahead request.h]h8The byte offset into the file of 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)}(hP**Parameters** ``const 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)}(h>``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]j?)}(hjsh]h#const struct 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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj tubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj thMhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌreadahead_length (C function)c.readahead_lengthhNtauh1hhjhhhNhNubh)}(hhh](h)}(h=size_t readahead_length (const struct readahead_control *rac)h]h)}(h ah"]h$]h&]uh1j1 hjtubh)}(hrach]hrac}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubah}(h]h ]h"]h$]h&]jj uh1jhjMthhhjuthMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjIthhhjuthMubah}(h]jDtah ](jjeh"]h$]h&]jj)jhuh1hhjuthMhjFthhubj )}(hhh]j9)}(h.The number of bytes in this readahead request.h]h.The number of bytes in this readahead request.}(hj?uhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]j?)}(hjuh]h#const struct readahead_control *rac}(hjuhhhNhNubah}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjuubah}(h]h ]h"]h$]h&]uh1jhjzuubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjwuubah}(h]h ]h"]h$]h&]uh1jhj[uubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌreadahead_index (C function)c.readahead_indexhNtauh1hhjhhhNhNubh)}(hhh](h)}(h=pgoff_t readahead_index (const struct readahead_control *rac)h]h)}(h ah"]h$]h&]uh1j1 hj(vubh)}(hrach]hrac}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(vubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj$vubah}(h]h ]h"]h$]h&]jj uh1jhjuhhhjuhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjuhhhjuhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhjuhhubj )}(hhh]j9)}(h6The index of the first page in this readahead request.h]h6The index of the first page in this readahead request.}(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-j3jvj4jvj5j6j7uh1hhhhjhNhNubjp)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.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 readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]j?)}(hj wh]h#const struct readahead_control *rac}(hj whhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubj)}(hhh]j9)}(hThe readahead request.h]hThe readahead request.}(hj"whhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjwubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌreadahead_count (C function)c.readahead_counthNtauh1hhjhhhNhNubh)}(hhh](h)}(hBunsigned int readahead_count (const struct readahead_control *rac)h]h)}(hAunsigned int readahead_count(const struct readahead_control *rac)h](j)}(hunsignedh]hunsigned}(hjcwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_whhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjrwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_whhhjqwhMubj)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_whhhjqwhMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_whhhjqwhMubh)}(hreadahead_counth]h)}(hreadahead_counth]hreadahead_count}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubah}(h]h ](jjeh"]h$]h&]jj uh1hhj_whhhjqwhMubj)}(h%(const struct readahead_control *rac)h]j)}(h#const struct readahead_control *rach](j!)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj!)}(hj$h]hstruct}(hjwhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjwmodnameN classnameNj\j_)}jb]je)}jXjwsbc.readahead_countasbuh1hhjwubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2 )}(hj5 h]h*}(hj#xhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjwubh)}(hrach]hrac}(hj0xhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjwubah}(h]h ]h"]h$]h&]jj uh1jhj_whhhjqwhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj[whhhjqwhMubah}(h]jVwah ](jjeh"]h$]h&]jj)jhuh1hhjqwhMhjXwhhubj )}(hhh]j9)}(h.The number of pages in this readahead request.h]h.The number of pages in this readahead request.}(hjZxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjWxhhubah}(h]h ]h"]h$]h&]uh1jhjXwhhhjqwhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jrxj4jrxj5j6j7uh1hhhhjhNhNubjp)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.h](j9)}(h**Parameters**h]jz)}(hj|xh]h Parameters}(hj~xhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjzxubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjvxubj)}(hhh]j)}(h>``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]j?)}(hjxh]h#const struct readahead_control *rac}(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)}(hThe readahead request.h]hThe readahead request.}(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&]uh1jhjvxubeh}(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)}(hCsize_t readahead_batch_length (const struct readahead_control *rac)h]h)}(hBsize_t readahead_batch_length(const struct readahead_control *rac)h](h)}(hhh]h)}(hsize_th]hsize_t}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjxmodnameN classnameNj\j_)}jb]je)}jXreadahead_batch_lengthsbc.readahead_batch_lengthasbuh1hhjxhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjyhMubh)}(hreadahead_batch_lengthh]h)}(hjyh]hreadahead_batch_length}(hj,yhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(yubah}(h]h ](jjeh"]h$]h&]jj uh1hhjxhhhjyhMubj)}(h%(const struct readahead_control *rac)h]j)}(h#const struct readahead_control *rach](j!)}(hjh]hconst}(hjGyhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjCyubj)}(h h]h }(hjTyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCyubj!)}(hj$h]hstruct}(hjbyhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjCyubj)}(h h]h }(hjoyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCyubh)}(hhh]h)}(hreadahead_controlh]hreadahead_control}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}yubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjymodnameN classnameNj\j_)}jb]jyc.readahead_batch_lengthasbuh1hhjCyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCyubj2 )}(hj5 h]h*}(hjyhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjCyubh)}(hrach]hrac}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCyubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?yubah}(h]h ]h"]h$]h&]jj uh1jhjxhhhjyhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjxhhhjyhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhjxhhubj )}(hhh]j9)}(h)The number of bytes in the current batch.h]h)The number of bytes in the current batch.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjyhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jyj4jyj5j6j7uh1hhhhjhNhNubjp)}(hP**Parameters** ``const struct readahead_control *rac`` The readahead request.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.hhMhjyubj)}(hhh]j)}(h>``const struct readahead_control *rac`` The readahead request.h](j)}(h'``const struct readahead_control *rac``h]j?)}(hj$zh]h#const struct readahead_control *rac}(hj&zhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj"zubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjzubj)}(hhh]j9)}(hThe readahead request.h]hThe readahead request.}(hj=zhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj:zubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj9zhMhjzubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(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)}(h[ssize_t folio_mkwrite_check_truncate (const struct folio *folio, const struct inode *inode)h]h)}(hZssize_t folio_mkwrite_check_truncate(const struct folio *folio, const struct inode *inode)h](h)}(hhh]h)}(hssize_th]hssize_t}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~zubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjzmodnameN classnameNj\j_)}jb]je)}jXfolio_mkwrite_check_truncatesbc.folio_mkwrite_check_truncateasbuh1hhjzzhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzzhhhjzhMubh)}(hfolio_mkwrite_check_truncateh]h)}(hjzh]hfolio_mkwrite_check_truncate}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ](jjeh"]h$]h&]jj uh1hhjzzhhhjzhMubj)}(h6(const struct folio *folio, const struct inode *inode)h](j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjzhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj!)}(hj$h]hstruct}(hjzhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(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]jzc.folio_mkwrite_check_truncateasbuh1hhjzubj)}(h h]h }(hj'{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj2 )}(hj5 h]h*}(hj5{hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjzubh)}(hfolioh]hfolio}(hjB{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubj)}(hconst struct inode *inodeh](j!)}(hjh]hconst}(hj[{hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjW{ubj)}(h h]h }(hjh{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW{ubj!)}(hj$h]hstruct}(hjv{hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjW{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW{ubh)}(hhh]h)}(hinodeh]hinode}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{modnameN classnameNj\j_)}jb]jzc.folio_mkwrite_check_truncateasbuh1hhjW{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)}(hinodeh]hinode}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjW{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubeh}(h]h ]h"]h$]h&]jj uh1jhjzzhhhjzhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjvzhhhjzhMubah}(h]jqzah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjszhhubj )}(hhh]j9)}(hcheck if folio was truncatedh]hcheck if folio was truncated}(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&]uh1jhjszhhhjzhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j|j4j|j5j6j7uh1hhhhjhNhNubjp)}(h**Parameters** ``const struct folio *folio`` the folio to check ``const struct inode *inode`` the inode to check the folio against **Return** the number of bytes in the folio up to EOF, or -EFAULT if the folio was truncated.h](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)}(h1``const struct folio *folio`` the folio to check h](j)}(h``const struct folio *folio``h]j?)}(hj8|h]hconst struct folio *folio}(hj:|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj2|ubj)}(hhh]j9)}(hthe folio to checkh]hthe folio to check}(hjQ|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjM|hMhjN|ubah}(h]h ]h"]h$]h&]uh1jhj2|ubeh}(h]h ]h"]h$]h&]uh1jhjM|hMhj/|ubj)}(hC``const struct inode *inode`` the inode to check the folio against h](j)}(h``const struct inode *inode``h]j?)}(hjq|h]hconst struct inode *inode}(hjs|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjo|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhjk|ubj)}(hhh]j9)}(h$the inode to check the folio againsth]h$the inode to check the folio against}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhjk|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj/|ubeh}(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&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj|ubj9)}(hRthe number of bytes in the folio up to EOF, or -EFAULT if the folio was truncated.h]hRthe number of bytes in the folio up to EOF, or -EFAULT if the folio was truncated.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]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Ռi_blocks_per_folio (C function)c.i_blocks_per_foliohNtauh1hhjhhhNhNubh)}(hhh](h)}(hVunsigned int i_blocks_per_folio (const struct inode *inode, const struct folio *folio)h]h)}(hUunsigned int i_blocks_per_folio(const struct inode *inode, const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hM ubj)}(hinth]hint}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hM ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hM ubh)}(hi_blocks_per_folioh]h)}(hi_blocks_per_folioh]hi_blocks_per_folio}(hj.}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*}ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj|hhhj|hM ubj)}(h6(const struct inode *inode, const struct folio *folio)h](j)}(hconst struct inode *inodeh](j!)}(hjh]hconst}(hjJ}hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjF}ubj)}(h h]h }(hjW}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF}ubj!)}(hj$h]hstruct}(hje}hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjF}ubj)}(h h]h }(hjr}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF}ubh)}(hhh]h)}(hinodeh]hinode}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj}modnameN classnameNj\j_)}jb]je)}jXj0}sbc.i_blocks_per_folioasbuh1hhjF}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF}ubj2 )}(hj5 h]h*}(hj}hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjF}ubh)}(hinodeh]hinode}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjF}ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjB}ubj)}(hconst struct folio *folioh](j!)}(hjh]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]j}c.i_blocks_per_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)}(hfolioh]hfolio}(hjI~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjB}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"How many blocks fit in this folio.h]h"How many blocks fit in this folio.}(hjs~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhM hjp~hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j~j4j~j5j6j7uh1hhhhjhNhNubjp)}(hXy**Parameters** ``const struct inode *inode`` The inode which contains the blocks. ``const struct folio *folio`` The folio. **Description** If the block size is larger than the size of this folio, return zero. **Context** The caller should hold a refcount on the folio to prevent it from being split. **Return** The number of filesystem blocks covered by this folio.h](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)}(hC``const struct inode *inode`` The inode which contains the blocks. h](j)}(h``const struct inode *inode``h]j?)}(hj~h]hconst struct inode *inode}(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)}(h$The inode which contains the blocks.h]h$The inode which contains the blocks.}(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)``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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj~ubj)}(hhh]j9)}(h The folio.h]h 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)}(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)}(hEIf the block size is larger than the size of this folio, return zero.h]hEIf the block size is larger than the size of this folio, return zero.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj~ubj9)}(h **Context**h]jz)}(hjOh]hContext}(hjQhhhNhNubah}(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.hhMhj~ubj9)}(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.}(hjehhhNhNubah}(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)}(hjvh]hReturn}(hjxhhhNhNubah}(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.hhMhj~ubj9)}(h6The number of filesystem blocks covered by this folio.h]h6The number of filesystem blocks covered by this folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:85: ./include/linux/pagemap.hhMhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubeh}(h]truncateah ]h"]truncateah$]h&]uh1hhjhhhhhKPubeh}(h]file-mapping-and-page-cacheah ]h"]file mapping and page cacheah$]h&]uh1hhhhhhhhK8ubh)}(hhh](h)}(h Memory poolsh]h Memory pools}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKYubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_exit (C function)c.mempool_exithNtauh1hhjhhhNhNubh)}(hhh](h)}(h#void mempool_exit (mempool_t *pool)h]h)}(h"void mempool_exit(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.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(h mempool_exith]h)}(h mempool_exith]h mempool_exit}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(h(mempool_t *pool)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_exitasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjJhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpoolh]hpool}(hjWhhhNhNubah}(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.exit a mempool initialized with mempool_init()h]h.exit a mempool initialized with mempool_init()}(hjhhhNhNubah}(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&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(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>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj׀hKhjubah}(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)}(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 }(hjhhhNhNubjz)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh and }(hjhhhNhNubjz)}(h**pool**h]hpool}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhE itself. This function only sleeps if the free_fn() function sleeps.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj9)}(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()).}(hjGhhhNhNubah}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_destroy (C function)c.mempool_destroyhNtauh1hhjhhhNhNubh)}(hhh](h)}(h&void mempool_destroy (mempool_t *pool)h]h)}(h%void mempool_destroy(mempool_t *pool)h](j)}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhKubh)}(hmempool_destroyh]h)}(hmempool_destroyh]hmempool_destroy}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjrhhhjhKubj)}(h(mempool_t *pool)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_destroyasbuh1hhjubj)}(h h]h }(hjցhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjrhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjnhhhjhKubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjkhhubj )}(hhh]j9)}(hdeallocate a memory poolh]hdeallocate 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&]uh1jhjkhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j3j4j3j5j6j7uh1hhhhjhNhNubjp)}(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.chKhj7ubj)}(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>hjZubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjVubj)}(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().}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubj9)}(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.chKhj7ubj9)}(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 }(hjhhhNhNubjz)}(h**pool**h]hpool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh and }(hjhhhNhNubjz)}(h**pool**h]hpool}(hjȂhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhE itself. This function only sleeps if the free_fn() function sleeps.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_init (C function)c.mempool_inithNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(h mempool_inith]h)}(h mempool_inith]h mempool_init}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(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}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjCmodnameN classnameNj\j_)}jb]je)}jXj$sbc.mempool_initasbuh1hhj: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)}(hpoolh]hpool}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubj)}(h int min_nrh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hmin_nrh]hmin_nr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƃubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjƃubh)}(halloc_fnh]halloc_fn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjƃubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubj)}(hmempool_free_t *free_fnh](h)}(hhh]h)}(hmempool_free_th]hmempool_free_t}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj$modnameN classnameNj\j_)}jb]j]c.mempool_initasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjNhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfree_fnh]hfree_fn}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubj)}(hvoid *pool_datah](j)}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjpubh)}(h pool_datah]h pool_data}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(hinitialize a memory poolh]hinitialize a memory pool}(hjDŽ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&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j߄j4j߄j5j6j7uh1hhhhjhNhNubjp)}(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}(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.chKhjubj)}(hhh]j9)}(h5pointer to the memory pool that should be initializedh]h5pointer to the memory pool that should be initialized}(hj!hhhNhNubah}(h]h ]h"]h$]h&]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?)}(hjAh]h int min_nr}(hjChhhNhNubah}(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)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKhjubj)}(hH``mempool_alloc_t *alloc_fn`` user-defined element-allocation function. h](j)}(h``mempool_alloc_t *alloc_fn``h]j?)}(hj{h]hmempool_alloc_t *alloc_fn}(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:91: ./mm/mempool.chKhjuubj)}(hhh]j9)}(h)user-defined element-allocation function.h]h)user-defined element-allocation function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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.chKhjubj)}(hhh]j9)}(h&user-defined element-freeing function.h]h&user-defined element-freeing function.}(hjͅhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjɅhKhjʅubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɅhKhjubj)}(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.}(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)}(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.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).}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chKhjubj9)}(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.chKhjubj9)}(h0``0`` on success, negative error code otherwise.h](j?)}(h``0``h]h0}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubh+ on success, negative error code otherwise.}(hjehhhNhNubeh}(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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ mempool_create_node (C function)c.mempool_create_nodehNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXmempool_create_nodesbc.mempool_create_nodeasbuh1hhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjdžhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjƆhMubj2 )}(hj5 h]h*}(hjՆhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjƆhMubh)}(hmempool_create_nodeh]h)}(hjÆh]hmempool_create_node}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjƆhMubj)}(hn(int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data, gfp_t gfp_mask, int node_id)h](j)}(h int min_nrh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hmin_nrh]hmin_nr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hmempool_alloc_t *alloc_fnh](h)}(hhh]h)}(hmempool_alloc_th]hmempool_alloc_t}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;modnameN classnameNj\j_)}jb]jc.mempool_create_nodeasbuh1hhj2ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj2 )}(hj5 h]h*}(hjehhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj2ubh)}(halloc_fnh]halloc_fn}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hmempool_free_t *free_fnh](h)}(hhh]h)}(hmempool_free_th]hmempool_free_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&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfree_fnh]hfree_fn}(hjLJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hvoid *pool_datah](j)}(hvoidh]hvoid}(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)}(h pool_datah]h pool_data}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj܇ubeh}(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 reftargetj'modnameN classnameNj\j_)}jb]jc.mempool_create_nodeasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfp_maskh]hgfp_mask}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int node_idh](j)}(hinth]hint}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hnode_idh]hnode_id}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubeh}(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)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjƆhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jȈj4jȈj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(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.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.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hH``mempool_alloc_t *alloc_fn`` user-defined element-allocation function. h](j)}(h``mempool_alloc_t *alloc_fn``h]j?)}(hj+h]hmempool_alloc_t *alloc_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:91: ./mm/mempool.chMhj%ubj)}(hhh]j9)}(h)user-defined element-allocation function.h]h)user-defined element-allocation function.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubj)}(hC``mempool_free_t *free_fn`` user-defined element-freeing function. h](j)}(h``mempool_free_t *free_fn``h]j?)}(hjdh]hmempool_free_t *free_fn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubah}(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.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``gfp_t gfp_mask`` memory allocation flags 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.chMhjЉubj)}(hhh]j9)}(hmemory allocation flagsh]hmemory allocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjЉubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``int node_id`` numa node to allocate on h](j)}(h``int node_id``h]j?)}(hjh]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}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj$hMhj%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)}(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:91: ./mm/mempool.chM hj̈ubj9)}(hX>this function creates and allocates a guaranteed size, preallocated memory pool. The pool can be used from the mempool_alloc() and mempool_free() functions. This function might sleep. Both the alloc_fn() and the free_fn() functions might sleep - as long as the mempool_alloc() function is not called from IRQ contexts.h]hX>this function creates and allocates a guaranteed size, preallocated memory pool. The pool can be used from the mempool_alloc() and mempool_free() functions. This function might sleep. Both the alloc_fn() and the free_fn() functions might sleep - as long as the mempool_alloc() function is not called from IRQ contexts.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM hj̈ubj9)}(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:91: ./mm/mempool.chMhj̈ubj9)}(h?pointer to the created memory pool object or ``NULL`` on error.h](h-pointer to the created memory pool object 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:91: ./mm/mempool.chMhj̈ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_resize (C function)c.mempool_resizehNtauh1hhjhhhNhNubh)}(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}(hjȊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĊhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM'ubj)}(h h]h }(hj׊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĊhhhj֊hM'ubh)}(hmempool_resizeh]h)}(hmempool_resizeh]hmempool_resize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjĊhhhj֊hM'ubj)}(h!(mempool_t *pool, int new_min_nr)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 reftargetj modnameN classnameNj\j_)}jb]je)}jXjsbc.mempool_resizeasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj6hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpoolh]hpool}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint new_min_nrh](j)}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(h new_min_nrh]h new_min_nr}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjĊhhhj֊hM'ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj֊hM'ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj֊hM'hjhhubj )}(hhh]j9)}(hresize an existing memory poolh]hresize an existing memory pool}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM'hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj֊hM'ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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+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)hj݋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().}(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&]uh1jhj݋ubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjڋubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM*hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hM+hjڋubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjWubah}(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.}(hjohhhNhNubah}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM1hjubj9)}(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:91: ./mm/mempool.chM5hjubj9)}(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:91: ./mm/mempool.chM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_alloc (C function)c.mempool_allochNtauh1hhjhhhNhNubh)}(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&]uh1jhjތhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMwubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjތhhhjhMwubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjތhhhjhMwubh)}(h mempool_alloch]h)}(h mempool_alloch]h mempool_alloc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjތhhhjhMwubj)}(h!(mempool_t *pool, gfp_t gfp_mask)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 reftargetj1modnameN classnameNj\j_)}jb]je)}jXjsbc.mempool_allocasbuh1hhj(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)}(hpoolh]hpool}(hjjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jKc.mempool_allocasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj$ubeh}(h]h ]h"]h$]h&]jj uh1jhjތhhhjhMwubeh}(h]h ]h"]h$]h&]jj juh1hjjhjڌhhhjhMwubah}(h]jՌah ](jjeh"]h$]h&]jj)jhuh1hhjhMwhj׌hhubj )}(hhh]j9)}(h/allocate an element from a specific memory poolh]h/allocate an element from 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.chMwhjٍhhubah}(h]h ]h"]h$]h&]uh1jhj׌hhhjhMwubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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.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().}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMxhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMyhjubj)}(h1``gfp_t gfp_mask`` the usual allocation bitmask. h](j)}(h``gfp_t gfp_mask``h]j?)}(hjWh]hgfp_t gfp_mask}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMzhjQubj)}(hhh]j9)}(hthe usual allocation bitmask.h]hthe usual allocation bitmask.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjlhMzhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMzhjubeh}(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)}(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 }(hjhhhNhNubjK)}(h*never*h]hnever}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjubhX fails when called from process contexts. (it might fail if called from an IRQ context.)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chM{hjubj9)}(h**Note**h]jz)}(hjˎh]hNote}(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.chMhjubj9)}(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.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:91: ./mm/mempool.chMhjubj9)}(h6pointer to the allocated element or ``NULL`` on error.h](h$pointer to the allocated element 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:91: ./mm/mempool.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'mempool_alloc_preallocated (C function)c.mempool_alloc_preallocatedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h3void * mempool_alloc_preallocated (mempool_t *pool)h]h)}(h1void *mempool_alloc_preallocated(mempool_t *pool)h](j)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjWhMubj2 )}(hj5 h]h*}(hjfhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjEhhhjWhMubh)}(hmempool_alloc_preallocatedh]h)}(hmempool_alloc_preallocatedh]hmempool_alloc_preallocated}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ](jjeh"]h$]h&]jj uh1hhjEhhhjWhMubj)}(h(mempool_t *pool)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)}jXjysbc.mempool_alloc_preallocatedasbuh1hhjubj)}(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 uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjEhhhjWhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhj>hhubj )}(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}(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&]uh1jhj>hhhjWhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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}(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.chMhj6ubj)}(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().}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubah}(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&]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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.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: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&]uh1johjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmempool_free (C function)c.mempool_freehNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void mempool_free (void *element, mempool_t *pool)h]h)}(h1void mempool_free(void *element, 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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h mempool_freeh]h)}(h mempool_freeh]h mempool_free}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h (void *element, mempool_t *pool)h](j)}(h void *elementh](j)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/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)}(helementh]helement}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj+ubj)}(hmempool_t *poolh](h)}(hhh]h)}(h mempool_th]h mempool_t}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjzmodnameN classnameNj\j_)}jb]je)}jXjsbc.mempool_freeasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjqubh)}(hpoolh]hpool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubeh}(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)}(hreturn an element to the pool.h]hreturn an element to the 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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjhNhNubjp)}(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)}(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)}(h(``void *element`` pool element pointer. h](j)}(h``void *element``h]j?)}(hjh]h void *element}(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)}(hpool element pointer.h]hpool element pointer.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(hY``mempool_t *pool`` pointer to the memory pool which was allocated via mempool_create(). h](j)}(h``mempool_t *pool``h]j?)}(hjWh]hmempool_t *pool}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjQubj)}(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().}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:91: ./mm/mempool.chMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubeh}(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.chMhjubj9)}(h;this function only sleeps if the free_fn() function sleeps.h]h;this function only sleeps if the free_fn() function sleeps.}(hjhhhNhNubah}(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&]uh1johjhhhNhNubeh}(h] memory-poolsah ]h"] memory poolsah$]h&]uh1hhhhhhhhKYubh)}(hhh](h)}(h More Memory Management Functionsh]h More Memory Management Functions}(hjʒhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjǒhhhhhK_ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌzap_vma_ptes (C function)c.zap_vma_pteshNtauh1hhjǒhhhNhNubh)}(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.chM~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM~ubh)}(h zap_vma_ptesh]h)}(h zap_vma_ptesh]h zap_vma_ptes}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM~ubj)}(hG(struct vm_area_struct *vma, unsigned long address, unsigned long size)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}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjNmodnameN classnameNj\j_)}jb]je)}jXjsbc.zap_vma_ptesasbuh1hhj*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)}(hvmah]hvma}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjʓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddressh]haddress}(hjؓhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj&ubj)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(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&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)}(hremove ptes mapping the vmah]hremove ptes mapping the vma}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM~hjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM~ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jkj4jkj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:97: ./mm/memory.chMhjoubj)}(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?)}(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)}(h(vm_area_struct holding ptes to be zappedh]h(vm_area_struct holding ptes to be zapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``unsigned long address`` starting address of pages to zap 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&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjǔubj)}(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&]uh1jhjǔubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``unsigned long size`` number of bytes to zap h](j)}(h``unsigned long size``h]j?)}(hjh]hunsigned long 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:97: ./mm/memory.chMhjubj)}(hhh]j9)}(hnumber of bytes to zaph]hnumber of bytes to zap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjoubj9)}(h**Description**h]jz)}(hjAh]h Description}(hjChhhNhNubah}(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.chMhjoubj9)}(h:This function only unmaps ptes assigned to VM_PFNMAP vmas.h]h:This function only unmaps ptes assigned to VM_PFNMAP vmas.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjoubj9)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_insert_pages (C function)c.vm_insert_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hmint vm_insert_pages (struct vm_area_struct *vma, unsigned long addr, struct page **pages, unsigned long *num)h]h)}(hlint vm_insert_pages(struct vm_area_struct *vma, unsigned long addr, struct page **pages, unsigned long *num)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMj ubh)}(hvm_insert_pagesh]h)}(hvm_insert_pagesh]hvm_insert_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMj ubj)}(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}(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.vm_insert_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)}(hvmah]hvma}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjΕubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjʕubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(haddrh]haddr}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjʕubj)}(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&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]j c.vm_insert_pagesasbuh1hhjubj)}(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*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjʕubj)}(hunsigned long *numh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjJhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hnumh]hnum}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjʕubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMj ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMj ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMj hjhhubj )}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMj hj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMj ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.chMn hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map 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>hjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMk hjubj)}(hhh]j9)}(huser vma to map toh]huser vma to map to}(hjۗhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjחhMk hjؗubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjחhMk hjubj)}(h@``unsigned long addr`` target start user address of these pages 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.chMl hjubj)}(hhh]j9)}(h(target start user address of these pagesh]h(target start user address of these pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMl hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMl hjubj)}(h,``struct page **pages`` source kernel pages h](j)}(h``struct page **pages``h]j?)}(hj4h]hstruct page **pages}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMm hj.ubj)}(hhh]j9)}(hsource kernel pagesh]hsource kernel pages}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhMm hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMm hjubj)}(h``unsigned long *num`` in: number of pages to map. out: number of pages that were *not* mapped. (0 means all pages were successfully mapped). h](j)}(h``unsigned long *num``h]j?)}(hjmh]hunsigned long *num}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMo hjgubj)}(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 }(hjhhhNhNubjK)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jJhjubh6 mapped. (0 means all pages were successfully mapped).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMn hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMo 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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMq hjubj9)}(h>Preferred over vm_insert_page() when inserting multiple pages.h]h>Preferred over vm_insert_page() when inserting multiple pages.}(hjјhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMp hjubj9)}(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.chMr hjubj9)}(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.chMu hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_insert_page (C function)c.vm_insert_pagehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hVint vm_insert_page (struct vm_area_struct *vma, unsigned long addr, struct page *page)h]h)}(hUint vm_insert_page(struct vm_area_struct *vma, unsigned long addr, struct page *page)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj,hM ubh)}(hvm_insert_pageh]h)}(hvm_insert_pageh]hvm_insert_page}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj,hM 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 hjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{modnameN classnameNj\j_)}jb]je)}jXjAsbc.vm_insert_pageasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjWubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjSubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj͙hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjəubj)}(h h]h }(hjۙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjəubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjəubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjəubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjəubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjSubj)}(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}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj>modnameN classnameNj\j_)}jb]jc.vm_insert_pageasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjSubeh}(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 insert single page into user vmah]h insert single page into user vma}(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-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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}(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 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>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)}(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)}(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}(hj2hhhNhNubah}(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 page *page`` source kernel page h](j)}(h``struct page *page``h]j?)}(hjRh]hstruct page *page}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjLubj)}(hhh]j9)}(hsource kernel pageh]hsource kernel page}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghM hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM 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)}(hThis allows drivers to insert individual pages they've allocated into a user vma. The zeropage is supported in some VMAs, see vm_mixed_zeropage_allowed().h]hThis allows drivers to insert individual pages they’ve allocated into a user vma. The zeropage is supported in some VMAs, see vm_mixed_zeropage_allowed().}(hjhhhNhNubah}(h]h ]h"]h$]h&]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.}(hjЛhhhNhNubah}(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.}(hjߛhhhNhNubah}(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}(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)}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_map_pages (C function)c.vm_map_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hUint vm_map_pages (struct vm_area_struct *vma, struct page **pages, unsigned long num)h]h)}(hTint vm_map_pages(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j)}(hinth]hint}(hjChhhNhNubah}(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 }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhM ubh)}(h vm_map_pagesh]h)}(h vm_map_pagesh]h vm_map_pages}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj?hhhjQhM 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_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)}(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_pagesasbuh1hhjubj)}(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?hhhjQhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj;hhhjQhM ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhM hj8hhubj )}(hhh]j9)}(h6maps range of kernel pages starts with non zero offseth]h6maps range of kernel pages starts with non zero offset}(hjѝhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjΝhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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 hj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM 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.chM 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`hM hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hM 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.chM hj~ubj)}(hhh]j9)}(hnumber of pages in page arrayh]hnumber of pages in page array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(hVMaps an object consisting of **num** pages, catering for the user's requested vm_pgoffh](hMaps an object consisting of }(hj՞hhhNhNubjz)}(h**num**h]hnum}(hjݞhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj՞ubh4 pages, catering for the user’s requested vm_pgoff}(hj՞hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM 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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(h **Context**h]jz)}(hjh]hContext}(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)}(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}(hj0hhhNhNubah}(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.}(hjDhhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_map_pages_zero (C function)c.vm_map_pages_zerohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hZint vm_map_pages_zero (struct vm_area_struct *vma, struct page **pages, unsigned long num)h]h)}(hYint vm_map_pages_zero(struct vm_area_struct *vma, struct page **pages, unsigned long num)h](j)}(hinth]hint}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhM ubh)}(hvm_map_pages_zeroh]h)}(hvm_map_pages_zeroh]hvm_map_pages_zero}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjohhhjhM 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 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.vm_map_pages_zeroasbuh1hhjubj)}(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 uh1jhjubj)}(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}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjBmodnameN classnameNj\j_)}jb]jc.vm_map_pages_zeroasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjlhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubj2 )}(hj5 h]h*}(hjyhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpagesh]hpages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long numh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjɠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnumh]hnum}(hjנhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjohhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjkhhhjhM ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhhubj )}(hhh]j9)}(h1map range of kernel pages starts with zero offseth]h1map range of kernel pages starts with 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&]uh1jhjhhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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 hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjBh]hstruct vm_area_struct *vma}(hjDhhhNhNubah}(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)}(huser vma to map toh]huser vma to map to}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhM hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM hj9ubj)}(h@``struct page **pages`` pointer to array of source kernel pages h](j)}(h``struct page **pages``h]j?)}(hj{h]hstruct page **pages}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjuubj)}(hhh]j9)}(h'pointer to array of source kernel pagesh]h'pointer to array of source kernel pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM hj9ubj)}(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.chM hjubj)}(hhh]j9)}(hnumber of pages in page arrayh]hnumber of pages in page array}(hj͡hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjɡhM hjʡubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɡhM 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&]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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM 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.}(hj,hhhNhNubah}(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}(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)}(h&0 on success and error code otherwise.h]h&0 on success and error code otherwise.}(hjShhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ vmf_insert_pfn_prot (C function)c.vmf_insert_pfn_prothNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hsvm_fault_t vmf_insert_pfn_prot (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, pgprot_t pgprot)h]h)}(hrvm_fault_t vmf_insert_pfn_prot(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, pgprot_t pgprot)h](h)}(hhh]h)}(h vm_fault_th]h vm_fault_t}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXvmf_insert_pfn_protsbc.vmf_insert_pfn_protasbuh1hhj~hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM< ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhM< ubh)}(hvmf_insert_pfn_proth]h)}(hjh]hvmf_insert_pfn_prot}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj~hhhjhM< 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}(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.vmf_insert_pfn_protasbuh1hhjТ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 uh1jhj̢ubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(haddrh]haddr}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubeh}(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̢ubj)}(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]jc.vmf_insert_pfn_protasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hpgproth]hpgprot}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj̢ubeh}(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)}(h5insert single pfn into user vma with specified pgproth]h5insert single pfn into user vma with specified pgprot}(hj?hhhNhNubah}(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&]uh1jhjwhhhjhM< ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jWj4jWj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjah]h Parameters}(hjchhhNhNubah}(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>hj~ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM= hjzubj)}(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&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhM= hjwubj)}(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}(hjҤhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjΤhM> hjϤubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjΤhM> hjwubj)}(h(``unsigned long pfn`` source kernel 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&]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&]uh1j8hjhM? hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM? hjwubj)}(h7``pgprot_t pgprot`` pgprot flags for the inserted page h](j)}(h``pgprot_t pgprot``h]j?)}(hj+h]hpgprot_t pgprot}(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"pgprot flags for the inserted pageh]h"pgprot flags for the inserted page}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@hM@ hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hM@ hjwubeh}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMB 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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMA 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMD 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 }(hjhhhNhNubjz)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhG when drivers set caching- and encryption bits different than those of }(hjhhhNhNubjz)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhJ, because the caching- or encryption mode may not be known at mmap() time.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMI 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 }(hjͥhhhNhNubjz)}(h**vma->vm_page_prot**h]hvma->vm_page_prot}(hjեhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjͥubhX$ is not used by the core vm to set caching and encryption bits for those vmas (except for COW pages). This is ensured by core vm only modifying these page table entries using functions that don’t touch caching- or encryption bits, using pte_modify() if needed. (See for example mprotect()).}(hjͥhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMM 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.chMS 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.chMX 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.chMY hj[ubj9)}(h **Return**h]jz)}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6ubah}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMZ hj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmf_insert_pfn (C function)c.vmf_insert_pfnhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h]vm_fault_t vmf_insert_pfn (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)h]h)}(h\vm_fault_t vmf_insert_pfn(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)h](h)}(hhh]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)}jXvmf_insert_pfnsbc.vmf_insert_pfnasbuh1hhjyhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMx ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMx ubh)}(hvmf_insert_pfnh]h)}(hjh]hvmf_insert_pfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjyhhhjhMx ubj)}(hC(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn)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]jc.vmf_insert_pfnasbuh1hhj˦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)}(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 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 uh1jhjyhhhjhMx ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjuhhhjhMx ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhMx hjrhhubj )}(hhh]j9)}(hinsert single pfn into user vmah]hinsert single pfn into user vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMx hjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMx ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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| hjubj)}(hhh](j)}(h2``struct vm_area_struct *vma`` user vma to map to h](j)}(h``struct vm_area_struct *vma``h]j?)}(hj3h]hstruct vm_area_struct *vma}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMy hj-ubj)}(hhh]j9)}(huser vma to map toh]huser vma to map to}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjHhMy hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMy hj*ubj)}(h8``unsigned long addr`` target user address of this page h](j)}(h``unsigned long addr``h]j?)}(hjlh]hunsigned long addr}(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.chMz hjfubj)}(hhh]j9)}(h target user address of this pageh]h target user address of this page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMz hjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMz hj*ubj)}(h(``unsigned long pfn`` source kernel 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&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM{ hjubj)}(hhh]j9)}(hsource kernel pfnh]hsource kernel pfn}(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&]uh1jyhjިubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM} hjubj9)}(hSimilar to vm_insert_page, this allows drivers to insert individual pages they've allocated into a user vma. Same comments apply.h]hSimilar to vm_insert_page, this allows drivers to insert individual pages they’ve allocated into a user vma. Same comments apply.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM| hjubj9)}(hThis function should only be called from a vm_ops->fault handler, and in that case the handler should return the result of this function.h]hThis function should only be called from a vm_ops->fault handler, and in that case the handler should return the result of this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(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 hjubj9)}(htAs this is called only for pages that do not currently exist, we do not need to flush old virtual caches or the TLB.h]htAs this is called only for pages that do not currently exist, we do not need to flush old virtual caches or the TLB.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(h **Context**h]jz)}(hj4h]hContext}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjubj9)}(h4Process context. May allocate using ``GFP_KERNEL``.h](h%Process context. May allocate using }(hjJhhhNhNubj?)}(h``GFP_KERNEL``h]h GFP_KERNEL}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubh.}(hjJhhhNhNubeh}(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)}(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:97: ./mm/memory.chM hjubj9)}(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌremap_pfn_range (C function)c.remap_pfn_rangehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hzint remap_pfn_range (struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)h]h)}(hyint remap_pfn_range(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)h](j)}(hinth]hint}(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)}(hremap_pfn_rangeh]h)}(hremap_pfn_rangeh]hremap_pfn_range}(hjөhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjϩubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM 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 }(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 reftargetjmodnameN classnameNj\j_)}jb]je)}jXjթsbc.remap_pfn_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}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hlongh]hlong}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(haddrh]haddr}(hjhhhNhNubah}(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&]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)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgprot_t proth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjYmodnameN classnameNj\j_)}jb]j)c.remap_pfn_rangeasbuh1hhjPubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hproth]hprot}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(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 remap kernel memory to userspaceh]h remap kernel 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&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jūj4jūj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hD``unsigned long addr`` target page aligned user address to start at 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 hj!ubj)}(hhh]j9)}(h,target page aligned user address to start ath]h,target page aligned user address to start at}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<hM hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hM hjubj)}(hJ``unsigned long pfn`` page frame number of kernel physical memory address 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&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjZubj)}(hhh]j9)}(h3page frame number of kernel physical memory addressh]h3page frame number of kernel physical memory address}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjuhM hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM hjubj)}(h,``unsigned long size`` size of mapping area h](j)}(h``unsigned long size``h]j?)}(hjh]hunsigned long 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:97: ./mm/memory.chM hjubj)}(hhh]j9)}(hsize of mapping areah]hsize of mapping area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h9``pgprot_t prot`` page protection flags for this mapping h](j)}(h``pgprot_t prot``h]j?)}(hjҬh]h pgprot_t prot}(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&page protection flags for this mappingh]h&page protection flags for this mapping}(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&]uh1jhjɫubj9)}(h**Note**h]jz)}(hj h]hNote}(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 hjɫubj9)}(h:this is only safe if the mm semaphore is held when called.h]h:this is only safe if the mm semaphore is held when called.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM hjɫubj9)}(h **Return**h]jz)}(hj4h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(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}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubh+ on success, negative error code otherwise.}(hjJhhhNhNubeh}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_iomap_memory (C function)c.vm_iomap_memoryhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hVint vm_iomap_memory (struct vm_area_struct *vma, phys_addr_t start, unsigned long len)h]h)}(hUint vm_iomap_memory(struct vm_area_struct *vma, phys_addr_t start, unsigned long len)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hvm_iomap_memoryh]h)}(hvm_iomap_memoryh]hvm_iomap_memory}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM 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}(hjĭhhhNhNubah}(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&]uh1hhj߭ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.vm_iomap_memoryasbuh1hhjubj)}(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)}(hphys_addr_t starth](h)}(hhh]h)}(h phys_addr_th]h phys_addr_t}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;modnameN classnameNj\j_)}jb]jc.vm_iomap_memoryasbuh1hhj2ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hstarth]hstart}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM ubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjhM hj|hhubj )}(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 hjݮhhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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?)}(hj!h]hstruct vm_area_struct *vma}(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)}(huser vma to map toh]huser vma to map to}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hM hj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hM hjubj)}(h@``phys_addr_t start`` start of the physical memory to be mapped h](j)}(h``phys_addr_t start``h]j?)}(hjZh]hphys_addr_t start}(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:97: ./mm/memory.chM hjTubj)}(hhh]j9)}(h)start of the physical memory to be mappedh]h)start of the physical memory to be mapped}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjohM hjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohM hjubj)}(h#``unsigned long len`` size of area 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&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.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 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 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 hjubj9)}(hrNOTE! Some drivers might want to tweak vma->vm_page_prot first to get whatever write-combining details or similar.h]hrNOTE! Some drivers might want to tweak vma->vm_page_prot first to get whatever write-combining details or similar.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM 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.chM 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.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ unmap_mapping_pages (C function)c.unmap_mapping_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hcvoid unmap_mapping_pages (struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)h]h)}(hbvoid unmap_mapping_pages(struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)h](j)}(hvoidh]hvoid}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMnubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjehMnubh)}(hunmap_mapping_pagesh]h)}(hunmap_mapping_pagesh]hunmap_mapping_pages}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubah}(h]h ](jjeh"]h$]h&]jj uh1hhjShhhjehMnubj)}(hJ(struct address_space *mapping, pgoff_t start, pgoff_t nr, bool even_cows)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)}jXjzsbc.unmap_mapping_pagesasbuh1hhjubj)}(h h]h }(hjҰhhhNhNubah}(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 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]jΰc.unmap_mapping_pagesasbuh1hhjubj)}(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)}(h pgoff_t nrh](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]jΰc.unmap_mapping_pagesasbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hnrh]hnr}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hbool even_cowsh](j)}(hj*h]hbool}(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 uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjShhhjehMnubeh}(h]h ]h"]h$]h&]jj juh1hjjhjOhhhjehMnubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjehMnhjLhhubj )}(hhh]j9)}(hUnmap pages from processes.h]hUnmap pages from processes.}(hj۱hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMnhjرhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjehMnubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.chMrhjubj)}(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.chMohjubj)}(hhh]j9)}(h2The address space containing pages to be unmapped.h]h2The address space containing pages to be unmapped.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hMohj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMohjubj)}(h6``pgoff_t start`` Index of first page to be unmapped. h](j)}(h``pgoff_t start``h]j?)}(hjUh]h pgoff_t start}(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.chMphjOubj)}(hhh]j9)}(h#Index of first page to be unmapped.h]h#Index of first page to be unmapped.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhMphjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMphjubj)}(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?)}(hjh]h pgoff_t nr}(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.chMqhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubj)}(h>``bool even_cows`` Whether to unmap even private COWed pages. h](j)}(h``bool even_cows``h]j?)}(hjDzh]hbool even_cows}(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.chMrhjubj)}(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&]uh1j8hjܲhMrhjݲubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܲhMrhjubeh}(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.chMthjubj9)}(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.chMshjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ unmap_mapping_range (C function)c.unmap_mapping_rangehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(huvoid unmap_mapping_range (struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)h]h)}(htvoid unmap_mapping_range(struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)h](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhMubh)}(hunmap_mapping_rangeh]h)}(hunmap_mapping_rangeh]hunmap_mapping_range}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ](jjeh"]h$]h&]jj uh1hhjChhhjUhMubj)}(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}(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)}jXjjsbc.unmap_mapping_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)}(hmappingh]hmapping}(hjݳhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(hloff_t const holebeginh](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.unmap_mapping_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj!)}(hjh]hconst}(hj%hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h holebeginh]h holebegin}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(hloff_t const holelenh](h)}(hhh]h)}(hloff_th]hloff_t}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj^modnameN classnameNj\j_)}jb]jc.unmap_mapping_rangeasbuh1hhjUubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj!)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hholelenh]hholelen}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(h int even_cowsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjʴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h even_cowsh]h even_cows}(hjشhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(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]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.}(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<hhhjUhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.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?)}(hjCh]hstruct address_space *mapping}(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.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&]uh1j8hjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj: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?)}(hj|h]hloff_t const holebegin}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjzubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjvubj)}(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.}(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&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhj: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.}(hjϵhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj̵ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˵hMhj: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}(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{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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ follow_pfnmap_start (C function)c.follow_pfnmap_starthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h9int follow_pfnmap_start (struct follow_pfnmap_args *args)h]h)}(h8int follow_pfnmap_start(struct follow_pfnmap_args *args)h](j)}(hinth]hint}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjWhMubh)}(hfollow_pfnmap_starth]h)}(hfollow_pfnmap_starth]hfollow_pfnmap_start}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubah}(h]h ](jjeh"]h$]h&]jj uh1hhjEhhhjWhMubj)}(h!(struct follow_pfnmap_args *args)h]j)}(hstruct follow_pfnmap_args *argsh](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)}(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)}jXjlsbc.follow_pfnmap_startasbuh1hhjubj)}(h h]h }(hjĶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjҶhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hargsh]hargs}(hj߶hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~ubah}(h]h ]h"]h$]h&]jj uh1jhjEhhhjWhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjWhMhj>hhubj )}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j!j4j!j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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)}(hM``struct follow_pfnmap_args *args`` Pointer to struct **follow_pfnmap_args** h](j)}(h#``struct follow_pfnmap_args *args``h]j?)}(hjJh]hstruct follow_pfnmap_args *args}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhjDubj)}(hhh]j9)}(h(Pointer to struct **follow_pfnmap_args**h](hPointer to struct }(hjchhhNhNubjz)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubeh}(h]h ]h"]h$]h&]uh1j8hj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubah}(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)}(hThe caller needs to setup args->vma and args->address to point to the virtual address as the target of such lookup. On a successful return, the results will be put into other output fields.h]hThe caller needs to setup args->vma and args->address to point to the virtual address as the target of such lookup. On a successful return, the results will be put into other output fields.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj%ubj9)}(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.chMhj%ubj9)}(hXtDuring the start() and end() calls, the results in **args** will be valid as proper locks will be held. After the end() is called, all the fields in **follow_pfnmap_args** will be invalid to be further accessed. Further use of such information after end() may require proper synchronizations by the caller with page table updates, otherwise it can create a security bug.h](h3During the start() and end() calls, the results in }(hjǷhhhNhNubjz)}(h**args**h]hargs}(hjϷhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjǷubh[ will be valid as proper locks will be held. After the end() is called, all the fields in }(hjǷhhhNhNubjz)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjǷubh will be invalid to be further accessed. Further use of such information after end() may require proper synchronizations by the caller with page table updates, otherwise it can create a security bug.}(hjǷhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj%ubj9)}(hIf the PTE maps a refcounted page, callers are responsible to protect against invalidation with MMU notifiers; otherwise access to the PFN at a later point in time can trigger use-after-free.h]hIf the PTE maps a refcounted page, callers are responsible to protect against invalidation with MMU notifiers; otherwise access to the PFN at a later point in time can trigger use-after-free.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMhj%ubj9)}(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.chMhj%ubj9)}(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.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:97: ./mm/memory.chMhj%ubj9)}(h$zero on success, negative otherwise.h]h$zero on success, negative otherwise.}(hj?hhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfollow_pfnmap_end (C function)c.follow_pfnmap_endhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h8void follow_pfnmap_end (struct follow_pfnmap_args *args)h]h)}(h7void follow_pfnmap_end(struct follow_pfnmap_args *args)h](j)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMGubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhj|hMGubh)}(hfollow_pfnmap_endh]h)}(hfollow_pfnmap_endh]hfollow_pfnmap_end}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjjhhhj|hMGubj)}(h!(struct follow_pfnmap_args *args)h]j)}(hstruct follow_pfnmap_args *argsh](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)}(hfollow_pfnmap_argsh]hfollow_pfnmap_args}(hjɸhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjƸubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj˸modnameN classnameNj\j_)}jb]je)}jXjsbc.follow_pfnmap_endasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjjhhhj|hMGubeh}(h]h ]h"]h$]h&]jj juh1hjjhjfhhhj|hMGubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj|hMGhjchhubj )}(hhh]j9)}(h#End a follow_pfnmap_start() processh]h#End a follow_pfnmap_start() process}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMGhj+hhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|hMGubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jFj4jFj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMKhjJubj)}(hhh]j)}(hM``struct follow_pfnmap_args *args`` Pointer to struct **follow_pfnmap_args** h](j)}(h#``struct follow_pfnmap_args *args``h]j?)}(hjoh]hstruct follow_pfnmap_args *args}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMHhjiubj)}(hhh]j9)}(h(Pointer to struct **follow_pfnmap_args**h](hPointer to struct }(hjhhhNhNubjz)}(h**follow_pfnmap_args**h]hfollow_pfnmap_args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjfubah}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMJhjJubj9)}(hdMust be used in pair of follow_pfnmap_start(). See the start() function above for more information.h]hdMust be used in pair of follow_pfnmap_start(). See the start() function above for more information.}(hjιhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMIhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ generic_access_phys (C function)c.generic_access_physhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hgint generic_access_phys (struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h]h)}(hfint generic_access_phys(struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMXubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMXubh)}(hgeneric_access_physh]h)}(hgeneric_access_physh]hgeneric_access_phys}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj hMXubj)}(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 hj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjZmodnameN classnameNj\j_)}jb]je)}jXj sbc.generic_access_physasbuh1hhj6ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj6ubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj2ubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjȺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjֺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj2ubj)}(h void *bufh](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)}(hbufh]hbuf}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj2ubj)}(hint lenh](j)}(hinth]hint}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hlenh]hlen}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj2ubj)}(h int writeh](j)}(hinth]hint}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hwriteh]hwrite}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj2ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj hMXubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj hMXubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj hMXhjhhubj )}(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.chMXhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMXubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jһj4jһj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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)}(h1``struct vm_area_struct *vma`` the vma to access 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.chMYhjubj)}(hhh]j9)}(hthe vma to accessh]hthe vma to access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjubj)}(hM``unsigned long addr`` userspace address, not relative offset within **vma** h](j)}(h``unsigned long addr``h]j?)}(hj4h]hunsigned long addr}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMZhj.ubj)}(hhh]j9)}(h5userspace address, not relative offset within **vma**h](h.userspace address, not relative offset within }(hjMhhhNhNubjz)}(h**vma**h]hvma}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubeh}(h]h ]h"]h$]h&]uh1j8hjIhMZhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMZhjubj)}(h#``void *buf`` buffer to read/write h](j)}(h ``void *buf``h]j?)}(hj{h]h void *buf}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chM[hjuubj)}(hhh]j9)}(hbuffer to read/writeh]hbuffer to read/write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjubj)}(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.chM\hjubj)}(hhh]j9)}(hlength of transferh]hlength of transfer}(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)}(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.chM]hjubj)}(hhh]j9)}(h1set to FOLL_WRITE when writing, otherwise readingh]h1set to FOLL_WRITE when writing, otherwise reading}(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&]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.chM_hjֻubj9)}(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 }(hj>hhhNhNubh)}(h<:c:type:`vm_operations_struct.access `h]j?)}(hjHh]hvm_operations_struct.access}(hjJhhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hjFubah}(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.chM^hj>ubhM for an iomem mapping. This callback is used by access_process_vm() when the }(hj>hhhNhNubjz)}(h**vma**h]hvma}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj>ubh is not page based.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjehM^hjֻubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcopy_remote_vm_str (C function)c.copy_remote_vm_strhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hpint copy_remote_vm_str (struct task_struct *tsk, unsigned long addr, void *buf, int len, unsigned int gup_flags)h]h)}(hoint copy_remote_vm_str(struct task_struct *tsk, unsigned long addr, void *buf, int len, unsigned int gup_flags)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMcubh)}(hcopy_remote_vm_strh]h)}(hcopy_remote_vm_strh]hcopy_remote_vm_str}(hjýhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMcubj)}(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}(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 task_structh]h task_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjŽsbc.copy_remote_vm_strasbuh1hhj۽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)}(htskh]htsk}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj۽ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj׽ubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hlongh]hlong}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj׽ubj)}(h void *bufh](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)}(hbufh]hbuf}(hj˾hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj׽ubj)}(hint lenh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(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 uh1jhj׽ubj)}(hunsigned int gup_flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h gup_flagsh]h gup_flags}(hjQhhhNhNubah}(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)}(h3copy a string from another process's address space.h]h5copy a string from another process’s address space.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMchjxhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMcubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.chMghjubj)}(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.chMdhjubj)}(hhh]j9)}(h$the task of the target address spaceh]h$the task of the target address space}(hjտhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjѿhMdhjҿubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѿhMdhjubj)}(h2``unsigned long addr`` start address to read from 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.chMehjubj)}(hhh]j9)}(hstart address to read fromh]hstart address to read from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMehj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMehjubj)}(h!``void *buf`` destination buffer h](j)}(h ``void *buf``h]j?)}(hj.h]h void *buf}(hj0hhhNhNubah}(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.chMfhj(ubj)}(hhh]j9)}(hdestination bufferh]hdestination buffer}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjChMfhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMfhjubj)}(h$``int len`` number of bytes to copy h](j)}(h ``int len``h]j?)}(hjgh]hint len}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMghjaubj)}(hhh]j9)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|hMghj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMghjubj)}(h<``unsigned int gup_flags`` flags modifying lookup behaviour h](j)}(h``unsigned int gup_flags``h]j?)}(hjh]hunsigned int gup_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:97: ./mm/memory.chMhhjubj)}(hhh]j9)}(h flags modifying lookup behaviourh]h flags modifying lookup behaviour}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubeh}(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.chMjhjubj9)}(h+The caller must hold a reference on **mm**.h](h$The caller must hold a reference on }(hjhhhNhNubjz)}(h**mm**h]hmm}(hjhhhNhNubah}(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.chMihjubj9)}(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.chMkhjubj9)}(hnumber of bytes copied from **addr** (source) to **buf** (destination); not including the trailing NUL. Always guaranteed to leave NUL-terminated buffer. On any error, return -EFAULT.h](hnumber of bytes copied from }(hj*hhhNhNubjz)}(h**addr**h]haddr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubh (source) to }(hj*hhhNhNubjz)}(h**buf**h]hbuf}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*ubh (destination); not including the trailing NUL. Always guaranteed to leave NUL-terminated buffer. On any error, return -EFAULT.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:97: ./mm/memory.chMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&__get_pfnblock_flags_mask (C function)c.__get_pfnblock_flags_maskhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hhunsigned long __get_pfnblock_flags_mask (const struct page *page, unsigned long pfn, unsigned long mask)h]h)}(hgunsigned long __get_pfnblock_flags_mask(const struct page *page, unsigned long pfn, unsigned long mask)h](j)}(hunsignedh]hunsigned}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMubh)}(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 uh1hhjyhhhjhMubj)}(h@(const struct page *page, unsigned long pfn, unsigned long mask)h](j)}(hconst struct page *pageh](j!)}(hjh]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&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.__get_pfnblock_flags_maskasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj=hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hpfnh]hpfn}(hjhhhNhNubah}(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 uh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjrhhubj )}(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&]uh1jhjrhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j.j4j.j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj2ubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]j?)}(hjWh]hconst struct page *page}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjQubj)}(hhh]j9)}(h%The page within the block of interesth]h%The page within the block of interest}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjNubj)}(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&]uh1jhjhMhjNubj)}(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&]uh1jhjhMhjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubj9)}(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.chMhj2ubj9)}(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.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌget_pfnblock_bit (C function)c.get_pfnblock_bithNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h^bool get_pfnblock_bit (const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h]h)}(h]bool get_pfnblock_bit(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hj*h]hbool}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjVhMubh)}(hget_pfnblock_bith]h)}(hget_pfnblock_bith]hget_pfnblock_bit}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubah}(h]h ](jjeh"]h$]h&]jj uh1hhjEhhhjVhMubj)}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hconst struct page *pageh](j!)}(hjh]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)}jXjksbc.get_pfnblock_bitasbuh1hhjubj)}(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 uh1jhj}ubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hpfnh]hpfn}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj}ubj)}(henum pageblock_bits pb_bith](j!)}(henumh]henum}(hjchhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj_ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(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.get_pfnblock_bitasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hpb_bith]hpb_bit}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj}ubeh}(h]h ]h"]h$]h&]jj uh1jhjEhhhjVhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjAhhhjVhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhjVhMhj>hhubj )}(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&]uh1jhj>hhhjVhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(h3``unsigned long pfn`` The target page frame number h](j)}(h``unsigned long pfn``h]j?)}(hjRh]hunsigned long pfn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjLubj)}(hhh]j9)}(hThe target page frame numberh]hThe target page frame number}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjubj)}(h6``enum pageblock_bits pb_bit`` pageblock bit to check h](j)}(h``enum pageblock_bits pb_bit``h]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 checkh]hpageblock bit to check}(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)}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%get_pfnblock_migratetype (C function)c.get_pfnblock_migratetypehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hVenum migratetype get_pfnblock_migratetype (const struct page *page, unsigned long pfn)h]h)}(hUenum migratetype get_pfnblock_migratetype(const struct page *page, unsigned long pfn)h](j!)}(hjeh]henum}(hj hhhNhNubah}(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}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj,modnameN classnameNj\j_)}jb]je)}jXget_pfnblock_migratetypesbc.get_pfnblock_migratetypeasbuh1hhjhhhjhMubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hget_pfnblock_migratetypeh]h)}(hjHh]hget_pfnblock_migratetype}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h,(const struct page *page, unsigned long pfn)h](j)}(hconst struct page *pageh](j!)}(hjh]hconst}(hjxhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jFc.get_pfnblock_migratetypeasbuh1hhjtubj)}(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 uh1jhjpubj)}(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 uh1jhjpubeh}(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}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j}j4j}j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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}(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)}(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 The migratetype of the pageblockh]h The migratetype of the pageblock}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(h**Description**h]jz)}(hjAh]h Description}(hjChhhNhNubah}(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)}(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 }(hjWhhhNhNubjz)}(h**page**h]hpage}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjWubh and }(hjWhhhNhNubjz)}(h**pfn**h]hpfn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjWubh! to save a call to page_to_pfn().}(hjWhhhNhNubeh}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&__set_pfnblock_flags_mask (C function)c.__set_pfnblock_flags_maskhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hnvoid __set_pfnblock_flags_mask (struct page *page, unsigned long pfn, unsigned long flags, unsigned long mask)h]h)}(hmvoid __set_pfnblock_flags_mask(struct page *page, unsigned long pfn, unsigned long flags, unsigned long mask)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h__set_pfnblock_flags_maskh]h)}(h__set_pfnblock_flags_maskh]h__set_pfnblock_flags_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(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 }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj3hhhNhNubah}(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}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long maskh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hmaskh]hmask}(hj3hhhNhNubah}(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)}(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.chMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3juj4juj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjh]h Parameters}(hjhhhNhNubah}(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.chMhjyubj)}(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>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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhj ubj)}(hhh]j9)}(hThe flags to seth]hThe flags to set}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(hD``unsigned long mask`` mask of bits that the caller is interested inh](j)}(h``unsigned long mask``h]j?)}(hjIh]hunsigned long mask}(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.chMhjCubj)}(hhh]j9)}(h-mask of bits that the caller is interested inh]h-mask of bits that the caller is interested in}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhjubeh}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌset_pfnblock_bit (C function)c.set_pfnblock_bithNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h^void set_pfnblock_bit (const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h]h)}(h]void set_pfnblock_bit(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hset_pfnblock_bith]h)}(hset_pfnblock_bith]hset_pfnblock_bit}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hconst struct page *pageh](j!)}(hjh]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 }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjGhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum pageblock_bits pb_bith](j!)}(hjeh]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]j5c.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 uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h#Set a standalone bit of a pageblockh]h#Set a standalone bit of a pageblock}(hj2hhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jJj4jJj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjNubj)}(hhh](j)}(hB``const struct page *page`` The page within the block of interest h](j)}(h``const struct page *page``h]j?)}(hjsh]hconst struct page *page}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjqubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjmubj)}(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&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubj)}(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&]uh1jhjhMhjjubj)}(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&]uh1jhjhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclear_pfnblock_bit (C function)c.clear_pfnblock_bithNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h`void clear_pfnblock_bit (const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h]h)}(h_void clear_pfnblock_bit(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhMubh)}(hclear_pfnblock_bith]h)}(hclear_pfnblock_bith]hclear_pfnblock_bit}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj;hhhjMhMubj)}(hH(const struct page *page, unsigned long pfn, enum pageblock_bits pb_bit)h](j)}(hconst struct page *pageh](j!)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]h)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjbsbc.clear_pfnblock_bitasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hpfnh]hpfn}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubj)}(henum pageblock_bits pb_bith](j!)}(hjeh]henum}(hjZhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]h)}(hpageblock_bitsh]hpageblock_bits}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjzmodnameN classnameNj\j_)}jb]jc.clear_pfnblock_bitasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hpb_bith]hpb_bit}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtubeh}(h]h ]h"]h$]h&]jj uh1jhj;hhhjMhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj7hhhjMhMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhjMhMhj4hhubj )}(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&]uh1jhj4hhhjMhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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>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?)}(hjHh]hunsigned long pfn}(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)}(hThe target page frame numberh]hThe target page frame number}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(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?)}(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.chMhj{ubj)}(hhh]j9)}(hpageblock bit to clearh]hpageblock bit to clear}(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&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&set_pageblock_migratetype (C function)c.set_pageblock_migratetypehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hPvoid set_pageblock_migratetype (struct page *page, enum migratetype migratetype)h]h)}(hOvoid set_pageblock_migratetype(struct page *page, enum migratetype migratetype)h](j)}(hvoidh]hvoid}(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 }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hpageh]hpage}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]je)}jXjsbc.set_pageblock_migratetypeasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjdhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum migratetype migratetypeh](j!)}(hjeh]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h migratetypeh]h migratetype}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jRc.set_pageblock_migratetypeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h migratetypeh]h migratetype}(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"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-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(h**Parameters** ``struct page *page`` The page within the block of interest ``enum migratetype migratetype`` migratetype to seth](j9)}(h**Parameters**h]jz)}(hj h]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)}(h<``struct page *page`` The page within the block of interest h](j)}(h``struct page *page``h]j?)}(hj?h]hstruct page *page}(hjAhhhNhNubah}(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 hj9ubj)}(hhh]j9)}(h%The page within the block of interesth]h%The page within the block of interest}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjThM hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM hj6ubj)}(h3``enum migratetype migratetype`` migratetype to seth](j)}(h ``enum migratetype migratetype``h]j?)}(hjxh]henum migratetype migratetype}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjrubj)}(hhh]j9)}(hmigratetype to seth]hmigratetype 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&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhj6ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+__move_freepages_block_isolate (C function) c.__move_freepages_block_isolatehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hXbool __move_freepages_block_isolate (struct zone *zone, struct page *page, bool isolate)h]h)}(hWbool __move_freepages_block_isolate(struct zone *zone, struct page *page, bool isolate)h](j)}(hj*h]hbool}(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 hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(hzoneh]hzone}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj.modnameN classnameNj\j_)}jb]je)}jXjsb c.__move_freepages_block_isolateasbuh1hhj 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)}(hzoneh]hzone}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct page *pageh](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)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jH c.__move_freepages_block_isolateasbuh1hhj|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)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubeh}(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}(hj hhhNhNubah}(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}(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-j3jMj4jMj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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)}(h``struct zone *zone`` the zone h](j)}(h``struct zone *zone``h]j?)}(hjvh]hstruct zone *zone}(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)}(hthe zoneh]hthe zone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubj)}(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>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 pageblock pageh]hthe pageblock page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubj)}(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&]uh1jhjhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjQubj9)}(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:100: ./mm/page_alloc.chMhjQubj9)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjQubj9)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM hjQubj9)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM$hjQubj9)}(h>Returns ``true`` if pages could be moved, ``false`` otherwise.h](hReturns }(hjfhhhNhNubj?)}(h``true``h]htrue}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubh if pages could be moved, }(hjfhhhNhNubj?)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubh otherwise.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM'hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$__putback_isolated_page (C function)c.__putback_isolated_pagehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hLvoid __putback_isolated_page (struct page *page, unsigned int order, int mt)h]h)}(hKvoid __putback_isolated_page(struct page *page, unsigned int order, int mt)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.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 }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjBhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(horderh]horder}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubeh}(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]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM& hjhhubj )}(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&]uh1jhjhhhjhM& ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj!h]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.chM* hjubj)}(hhh](j)}(h-``struct page *page`` Page that was isolated h](j)}(h``struct page *page``h]j?)}(hj@h]hstruct page *page}(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.chM' hj:ubj)}(hhh]j9)}(hPage that was isolatedh]hPage that was isolated}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjUhM' hjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhM' hj7ubj)}(h2``unsigned int order`` Order of the isolated page h](j)}(h``unsigned int order``h]j?)}(hjyh]hunsigned int order}(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.chM( hjsubj)}(hhh]j9)}(hOrder of the isolated pageh]hOrder of the isolated page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM( hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM( hj7ubj)}(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) hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM) hj7ubeh}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__free_pages (C function)c.__free_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h9void __free_pages (struct page *page, unsigned int order)h]h)}(h8void __free_pages(struct page *page, unsigned int order)h](j)}(hvoidh]hvoid}(hj2hhhNhNubah}(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 }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj@hMubh)}(h __free_pagesh]h)}(h __free_pagesh]h __free_pages}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubah}(h]h ](jjeh"]h$]h&]jj uh1hhj.hhhj@hMubj)}(h'(struct page *page, unsigned int order)h](j)}(hstruct page *pageh](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)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjUsbc.__free_pagesasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjkubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjgubj)}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(horderh]horder}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjgubeh}(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 pages allocated with alloc_pages().h]h(Free pages allocated with alloc_pages().}(hjChhhNhNubah}(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&]uh1jhj'hhhj@hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j[j4j[j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj_ubj)}(hhh](j)}(hD``struct page *page`` The page pointer returned from alloc_pages(). h](j)}(h``struct page *page``h]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.chMhj~ubj)}(hhh]j9)}(h-The page pointer returned from alloc_pages().h]h-The page pointer returned from alloc_pages().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj{ubj)}(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.chMhjubj)}(hhh]j9)}(hThe order of the allocation.h]hThe order of the allocation.}(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 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)}(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.chMhj_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().}(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 **Context**h]jz)}(hj@h]hContext}(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.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.}(hjVhhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfree_pages (C function) c.free_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h8void free_pages (unsigned long addr, unsigned int order)h]h)}(h7void free_pages(unsigned long addr, unsigned int order)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h free_pagesh]h)}(h free_pagesh]h free_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h((unsigned long addr, unsigned int order)h](j)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(horderh]horder}(hjKhhhNhNubah}(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 juh1hjjhj}hhhjhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjzhhubj )}(hhh]j9)}(h-Free pages allocated with __get_free_pages().h]h-Free pages allocated with __get_free_pages().}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(hXg**Parameters** ``unsigned long addr`` The virtual address tied to a page returned from __get_free_pages(). ``unsigned int order`` The order of the allocation. **Description** This function behaves the same as __free_pages(). Use this function to free pages when you only have a valid virtual address. If you have the page, call __free_pages() instead.h](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 addr`` The virtual address tied to a page returned from __get_free_pages(). 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj)}(hhh]j9)}(hDThe virtual address tied to a page returned from __get_free_pages().h]hDThe virtual address tied to a page returned from __get_free_pages().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``unsigned int order`` The order of the allocation. h](j)}(h``unsigned int order``h]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.chMhjubj)}(hhh]j9)}(hThe order of the allocation.h]hThe order of the allocation.}(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)}(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:100: ./mm/page_alloc.chMhjubj9)}(hThis function behaves the same as __free_pages(). Use this function to free pages when you only have a valid virtual address. If you have the page, call __free_pages() instead.h]hThis function behaves the same as __free_pages(). Use this function to free pages when you only have a valid virtual address. If you have the page, call __free_pages() instead.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_pages_exact (C function)c.alloc_pages_exacthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h6void * alloc_pages_exact (size_t size, gfp_t gfp_mask)h]h)}(h4void *alloc_pages_exact(size_t size, gfp_t gfp_mask)h](j)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhj}hMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjkhhhj}hMubh)}(halloc_pages_exacth]h)}(halloc_pages_exacth]halloc_pages_exact}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjkhhhj}hMubj)}(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}(hj2hhhNhNubah}(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)}(h5allocate an exact number physically-contiguous pages.h]h5allocate an exact number physically-contiguous pages.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj}hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jtj4jtj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj~h]h Parameters}(hjhhhNhNubah}(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.chMhjxubj)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjxubj9)}(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.chMhjxubj9)}(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.chMhjxubj9)}(h0This function is also limited by MAX_PAGE_ORDER.h]h0This function is also limited by MAX_PAGE_ORDER.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjxubj9)}(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().}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjxubj9)}(h **Return**h]jz)}(hjVh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjTubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjxubj9)}(h;pointer to the allocated area or ``NULL`` in case of error.h](h!pointer to the allocated area or }(hjlhhhNhNubj?)}(h``NULL``h]hNULL}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjlubh in case of error.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"alloc_pages_exact_nid (C function)c.alloc_pages_exact_nidhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hCvoid * alloc_pages_exact_nid (int nid, size_t size, gfp_t gfp_mask)h]h)}(hAvoid *alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.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}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]je)}jXjsbc.alloc_pages_exact_nidasbuh1hhj(ubj)}(h h]h }(hjOhhhNhNubah}(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)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{modnameN classnameNj\j_)}jb]jKc.alloc_pages_exact_nidasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubeh}(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-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.chM hjubj)}(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.chM hj ubj)}(hhh]j9)}(h6the preferred node ID where memory should be allocatedh]h6the preferred node ID where memory should be allocated}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%hM hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hM hjubj)}(h0``size_t size`` the number of bytes to allocate h](j)}(h``size_t size``h]j?)}(hjIh]h size_t size}(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)}(hthe number of bytes to allocateh]hthe number of bytes to allocate}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^hM hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM hjubj)}(hM``gfp_t gfp_mask`` GFP flags for the allocation, must not contain __GFP_COMP h](j)}(h``gfp_t gfp_mask``h]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.chM hj|ubj)}(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&]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.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.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.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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfree_pages_exact (C function)c.free_pages_exacthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h/void free_pages_exact (void *virt, size_t size)h]h)}(h.void free_pages_exact(void *virt, size_t size)h](j)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM"ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhjIhM"ubh)}(hfree_pages_exacth]h)}(hfree_pages_exacth]hfree_pages_exact}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubah}(h]h ](jjeh"]h$]h&]jj uh1hhj7hhhjIhM"ubj)}(h(void *virt, size_t size)h](j)}(h void *virth](j)}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjtubh)}(hvirth]hvirt}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpubj)}(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^sbc.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 uh1jhjpubeh}(h]h ]h"]h$]h&]jj uh1jhj7hhhjIhM"ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj3hhhjIhM"ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhjIhM"hj0hhubj )}(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.chM"hjhhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjIhM"ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j-j4j-j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM&hj1ubj)}(hhh](j)}(h8``void *virt`` the value returned by alloc_pages_exact. h](j)}(h``void *virt``h]j?)}(hjVh]h void *virt}(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.chM#hjPubj)}(hhh]j9)}(h(the value returned by alloc_pages_exact.h]h(the value returned by alloc_pages_exact.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhM#hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM#hjMubj)}(hQ``size_t size`` size of allocation, same value as passed to alloc_pages_exact(). 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.chM$hjubj)}(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&]uh1j8hjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM&hj1ubj9)}(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.chM%hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌnr_free_zone_pages (C function)c.nr_free_zone_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h-unsigned long nr_free_zone_pages (int offset)h]h)}(h,unsigned long nr_free_zone_pages(int offset)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhM5ubj)}(hlongh]hlong}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhM5ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhM5ubh)}(hnr_free_zone_pagesh]h)}(hnr_free_zone_pagesh]hnr_free_zone_pages}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhjhM5ubj)}(h (int offset)h]j)}(h int offseth](j)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubah}(h]h ]h"]h$]h&]jj uh1jhj hhhjhM5ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM5hjhhubj )}(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.chM5hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM5ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.chM9hjubj)}(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.chM6hjubj)}(hhh]j9)}(h"The zone index of the highest zoneh]h"The zone index of the highest zone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubah}(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:100: ./mm/page_alloc.chM8hjubj9)}(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.chM7hjubjU)}(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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chM;hjOubah}(h]h ]h"]h$]h&]uh1jThjahM;hjubj9)}(h **Return**h]jz)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(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.}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!nr_free_buffer_pages (C function)c.nr_free_buffer_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h)unsigned long nr_free_buffer_pages (void)h]h)}(h(unsigned long nr_free_buffer_pages(void)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMUubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMUubh)}(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 uh1hhjhhhjhMUubj)}(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 uh1jhjhhhjhMUubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMUubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMUhjhhubj )}(hhh]j9)}(h+count number of pages beyond high watermarkh]h+count number of pages beyond high watermark}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMUhj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMUubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jJj4jJj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMYhjNubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j?)}(hjsh]hvoid}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjqubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhjmubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhjjubah}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chKhjNubj9)}(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.chMVhjNubj9)}(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.chMYhjNubj9)}(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.chMZhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ find_next_best_node (C function)c.find_next_best_nodehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h>int find_next_best_node (int node, nodemask_t *used_node_mask)h]h)}(h=int find_next_best_node(int node, nodemask_t *used_node_mask)h](j)}(hinth]hint}(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)}(hfind_next_best_nodeh]h)}(hfind_next_best_nodeh]hfind_next_best_node}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj(hMubj)}(h&(int node, nodemask_t *used_node_mask)h](j)}(hint nodeh](j)}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hnodeh]hnode}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjOubj)}(hnodemask_t *used_node_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.find_next_best_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hused_node_maskh]hused_node_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjOubeh}(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)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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.chMhjubj)}(hhh](j)}(h6``int node`` node whose fallback list we're appending h](j)}(h ``int node``h]j?)}(hj5h]hint node}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj3ubah}(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(node whose fallback list we're appendingh]h*node whose fallback list we’re appending}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,ubj)}(h@``nodemask_t *used_node_mask`` nodemask_t of already used nodes h](j)}(h``nodemask_t *used_node_mask``h]j?)}(hjnh]hnodemask_t *used_node_mask}(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 nodemask_t of already used nodesh]h nodemask_t of already used nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(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.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)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"setup_per_zone_wmarks (C function)c.setup_per_zone_wmarkshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h!void setup_per_zone_wmarks (void)h]h)}(h void setup_per_zone_wmarks(void)h](j)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhjGhMubh)}(hsetup_per_zone_wmarksh]h)}(hsetup_per_zone_wmarksh]hsetup_per_zone_wmarks}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubah}(h]h ](jjeh"]h$]h&]jj uh1hhj5hhhjGhMubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]noemphjj uh1jhjnubah}(h]h ]h"]h$]h&]jj uh1jhj5hhhjGhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj1hhhjGhMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhj.hhubj )}(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&]uh1jhj.hhhjGhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.chM hjubj)}(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.}(hj2hhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_contig_range (C function)c.alloc_contig_rangehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hhint alloc_contig_range (unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h]h)}(hgint alloc_contig_range(unsigned long start, unsigned long end, acr_flags_t alloc_flags, gfp_t gfp_mask)h](j)}(hinth]hint}(hjahhhNhNubah}(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 }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhjohMubh)}(halloc_contig_rangeh]h)}(halloc_contig_rangeh]halloc_contig_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj]hhhjohMubj)}(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 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}(hj hhhNhNubah}(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)}(hacr_flags_t alloc_flagsh](h)}(hhh]h)}(h acr_flags_th]h acr_flags_t}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjEmodnameN classnameNj\j_)}jb]je)}jXjsbc.alloc_contig_rangeasbuh1hhj<ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(h alloc_flagsh]h alloc_flags}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubeh}(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]j_c.alloc_contig_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(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 uh1jhj]hhhjohMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjYhhhjohMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjVhhubj )}(hhh]j)}(hhh]jw,)}(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&]uh1jv,hjhhhjhNubah}(h]h ]h"]h$]h&]jŰjưuh1jhjhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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?)}(hj6h]hunsigned long start}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj0ubj)}(hhh]j9)}(hstart PFN to allocateh]hstart PFN to allocate}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj-ubj)}(h8``unsigned long end`` one-past-the-last PFN to allocate h](j)}(h``unsigned long end``h]j?)}(hjoh]hunsigned long end}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjiubj)}(hhh]j9)}(h!one-past-the-last PFN to allocateh]h!one-past-the-last PFN to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhj-ubj)}(h3``acr_flags_t alloc_flags`` allocation information h](j)}(h``acr_flags_t alloc_flags``h]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&]uh1jhjhMhj-ubj)}(h``gfp_t gfp_mask`` GFP mask. Node/zone/placement hints are ignored; only some action and reclaim modifiers are supported. Reclaim modifiers control allocation behavior during compaction/migration/reclaim. h](j)}(h``gfp_t gfp_mask``h]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&]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&]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.}(hj3hhhNhNubah}(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.}(hjBhhhNhNubah}(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)}(hjSh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQubah}(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().}(hjihhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_contig_pages (C function)c.alloc_contig_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hhstruct page * alloc_contig_pages (unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h]h)}(hfstruct page *alloc_contig_pages(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j!)}(hj$h]hstruct}(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)}(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_pagesasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(halloc_contig_pagesh]h)}(hjh]halloc_contig_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hG(unsigned long nr_pages, gfp_t gfp_mask, int nid, nodemask_t *nodemask)h](j)}(hunsigned long nr_pagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnr_pagesh]hnr_pages}(hjJhhhNhNubah}(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}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]jc.alloc_contig_pagesasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(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 uh1jhj ubj)}(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 uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j)}(hhh]jw,)}(h4tries to find and allocate contiguous range of pagesh]j9)}(hjKh]h4tries to find and allocate contiguous range of pages}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjIubah}(h]h ]h"]h$]h&]uh1jv,hjFhhhjZhNubah}(h]h ]h"]h$]h&]jŰjưuh1jhjZhMhjChhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jpj4jpj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjtubj)}(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>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&Number of contiguous pages to allocateh]h&Number of contiguous pages 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_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.chMhjubj)}(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.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int nid`` Target node h](j)}(h ``int nid``h]j?)}(hj h]hint nid}(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.chMhjubj)}(hhh]j9)}(h Target nodeh]h Target node}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(h7``nodemask_t *nodemask`` Mask for other possible nodes h](j)}(h``nodemask_t *nodemask``h]j?)}(hjEh]hnodemask_t *nodemask}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhj?ubj)}(hhh]j9)}(hMask for other possible nodesh]hMask for other possible nodes}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjubeh}(h]h ]h"]h$]h&]uh1jhjtubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(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.chMhjtubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjtubj9)}(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.chMhjtubj9)}(hrAllocated pages can be freed with free_contig_range() or by manually calling __free_page() on each allocated page.h]hrAllocated pages can be freed with free_contig_range() or by manually calling __free_page() on each allocated page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjtubj9)}(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.chMhjtubj9)}(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.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_pages_nolock (C function)c.alloc_pages_nolockhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hOstruct page * alloc_pages_nolock (gfp_t gfp_flags, int nid, unsigned int order)h]h)}(hMstruct page *alloc_pages_nolock(gfp_t gfp_flags, int nid, unsigned int order)h](j!)}(hj$h]hstruct}(hj hhhNhNubah}(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)}(hpageh]hpage}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj+modnameN classnameNj\j_)}jb]je)}jXalloc_pages_nolocksbc.alloc_pages_nolockasbuh1hhjhhhjhMubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjXhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(halloc_pages_nolockh]h)}(hjGh]halloc_pages_nolock}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h.(gfp_t gfp_flags, int nid, unsigned int order)h](j)}(hgfp_t gfp_flagsh](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]jEc.alloc_pages_nolockasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h gfp_flagsh]h gfp_flags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(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 uh1jhj|ubj)}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(horderh]horder}(hj9hhhNhNubah}(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)}(h3opportunistic reentrant allocation from any contexth]h3opportunistic reentrant allocation from any context}(hjchhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j{j4j{j5j6j7uh1hhhhjǒhNhNubjp)}(hX**Parameters** ``gfp_t gfp_flags`` GFP flags. Only __GFP_ACCOUNT allowed. ``int nid`` node to allocate from ``unsigned int order`` allocation order size **Description** Allocates pages of a given order from the given node. This is safe to call from any context (from atomic, NMI, and also reentrant allocator -> tracepoint -> alloc_pages_nolock_noprof). Allocation is best effort and to be expected to fail easily so nobody should rely on the success. Failures are not reported via warn_alloc(). See always fail conditions below. **Return** allocated page or NULL on failure. NULL does not mean EBUSY or EAGAIN. It means ENOMEM. There is no reason to call it again and expect !NULL.h](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;``gfp_t gfp_flags`` GFP flags. Only __GFP_ACCOUNT allowed. h](j)}(h``gfp_t gfp_flags``h]j?)}(hjh]hgfp_t gfp_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)}(h&GFP flags. Only __GFP_ACCOUNT allowed.h]h&GFP flags. Only __GFP_ACCOUNT allowed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``int nid`` node to allocate from 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)}(hnode to allocate fromh]hnode to allocate from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``unsigned int order`` allocation order size 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.chMhjubj)}(hhh]j9)}(hallocation order sizeh]hallocation order size}(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)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(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.}(hjghhhNhNubah}(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)}(hjxh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:100: ./mm/page_alloc.chMhjubj9)}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌnuma_nearest_node (C function)c.numa_nearest_nodehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h4int numa_nearest_node (int node, unsigned int state)h]h)}(h3int numa_nearest_node(int node, unsigned int state)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hnuma_nearest_nodeh]h)}(hnuma_nearest_nodeh]hnuma_nearest_node}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(int node, unsigned int state)h](j)}(hint nodeh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned int stateh](j)}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hinth]hint}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(hstateh]hstate}(hjghhhNhNubah}(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)}(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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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?)}(hjh]hint node}(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.chMhjubj)}(hhh]j9)}(hNode id to start the searchh]hNode id to start the search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``unsigned int state`` State to filter the search h](j)}(h``unsigned int state``h]j?)}(hj h]hunsigned int state}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMhjubj)}(hhh]j9)}(hState to filter the searchh]hState to filter the search}(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)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubah}(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 }(hj\hhhNhNubjz)}(h**nid**h]hnid}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj\ubh is not in state.}(hj\hhhNhNubeh}(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&]uh1jyhj}ubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"nearest_node_nodemask (C function)c.nearest_node_nodemaskhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h6int nearest_node_nodemask (int node, nodemask_t *mask)h]h)}(h5int nearest_node_nodemask(int node, nodemask_t *mask)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM5ubh)}(hnearest_node_nodemaskh]h)}(hnearest_node_nodemaskh]hnearest_node_nodemask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM5ubj)}(h(int node, nodemask_t *mask)h](j)}(hint nodeh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnodeh]hnode}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hnodemask_t *maskh](h)}(hhh]h)}(h nodemask_th]h nodemask_t}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjMmodnameN classnameNj\j_)}jb]je)}jXjsbc.nearest_node_nodemaskasbuh1hhjDubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2 )}(hj5 h]h*}(hjyhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjDubh)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM5ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM5hjhhubj )}(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}(hjhhhNhNubah}(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&]uh1jhjhhhjhM5ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.chM9hjubj)}(hhh](j)}(h7``int node`` a valid node ID to start the search from. h](j)}(h ``int node``h]j?)}(hjh]hint node}(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.chM8hjubj)}(hhh]j9)}(h)a valid node ID to start the search from.h]h)a valid node ID to start the search from.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*hM8hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hM8hj ubj)}(hM``nodemask_t *mask`` a pointer to a nodemask representing the allowed nodes. h](j)}(h``nodemask_t *mask``h]j?)}(hjNh]hnodemask_t *mask}(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.chM9hjHubj)}(hhh]j9)}(h7a pointer to a nodemask representing the allowed nodes.h]h7a pointer to a nodemask representing the allowed nodes.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjchM9hjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchM9hj 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)}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(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:hjubj9)}(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 }(hjhhhNhNubjz)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh must be a valid node ID usable with node_distance(), providing an invalid node ID (e.g., NUMA_NO_NODE) may result in crashes or unexpected behavior.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM>hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_pages_mpol (C function)c.alloc_pages_mpolhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hkstruct page * alloc_pages_mpol (gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid)h]h)}(histruct page *alloc_pages_mpol(gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid)h](j!)}(hj$h]hstruct}(hj%hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj!hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM: ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj2hM: ubh)}(hhh]h)}(hpageh]hpage}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjFmodnameN classnameNj\j_)}jb]je)}jXalloc_pages_mpolsbc.alloc_pages_mpolasbuh1hhj!hhhj2hM: ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj2hM: ubj2 )}(hj5 h]h*}(hjshhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj!hhhj2hM: ubh)}(halloc_pages_mpolh]h)}(hjbh]halloc_pages_mpol}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj!hhhj2hM: 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 reftargetjmodnameN classnameNj\j_)}jb]j`c.alloc_pages_mpolasbuh1hhjubj)}(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)}(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 uh1jhjubj)}(hstruct mempolicy *polh](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 mempolicyh]h mempolicy}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjXmodnameN classnameNj\j_)}jb]j`c.alloc_pages_mpolasbuh1hhj4ubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4ubh)}(hpolh]hpol}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h pgoff_t ilxh](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.alloc_pages_mpolasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hilxh]hilx}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj!hhhj2hM: ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj2hM: ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj2hM: hjhhubj )}(hhh]j9)}(h+Allocate pages according to NUMA mempolicy.h]h+Allocate pages according to NUMA mempolicy.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM: hj3hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hM: ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jNj4jNj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM> hjRubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags. h](j)}(h ``gfp_t gfp``h]j?)}(hjwh]h gfp_t gfp}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjuubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM; hjqubj)}(hhh]j9)}(h GFP flags.h]h GFP flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM; hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhM; hjnubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM< hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM< hjnubj)}(h9``struct mempolicy *pol`` Pointer to the NUMA mempolicy. 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)}(hPointer to the NUMA mempolicy.h]hPointer to the NUMA mempolicy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM= hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM= hjnubj)}(hS``pgoff_t ilx`` Index for interleave mempolicy (also distinguishes alloc_pages()). h](j)}(h``pgoff_t ilx``h]j?)}(hj"h]h pgoff_t ilx}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(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()).}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hM> hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hM> hjnubj)}(hR``int nid`` Preferred node (usually numa_node_id() but **mpol** may override it). h](j)}(h ``int nid``h]j?)}(hj[h]hint nid}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjYubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM? hjUubj)}(hhh]j9)}(hEPreferred node (usually numa_node_id() but **mpol** may override it).h](h+Preferred node (usually numa_node_id() but }(hjthhhNhNubjz)}(h**mpol**h]hmpol}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubh may override it).}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjphM? hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphM? hjnubeh}(h]h ]h"]h$]h&]uh1jhjRubj9)}(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.chMA hjRubj9)}(h0The page on success or NULL if allocation fails.h]h0The page 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.chMA hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvma_alloc_folio (C function)c.vma_alloc_foliohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hestruct folio * vma_alloc_folio (gfp_t gfp, int order, struct vm_area_struct *vma, unsigned long addr)h]h)}(hcstruct folio *vma_alloc_folio(gfp_t gfp, int order, struct vm_area_struct *vma, unsigned long addr)h](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)}(hfolioh]hfolio}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXvma_alloc_foliosbc.vma_alloc_folioasbuh1hhjhhhjhM ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubj2 )}(hj5 h]h*}(hj;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhM ubh)}(hvma_alloc_folioh]h)}(hj*h]hvma_alloc_folio}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM 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}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjlmodnameN classnameNj\j_)}jb]j(c.vma_alloc_folioasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj_ubj)}(h int orderh](j)}(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 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]j(c.vma_alloc_folioasbuh1hhjubj)}(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 uh1jhj_ubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hlongh]hlong}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(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)}(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&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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&]uh1j8hj hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h"``int order`` Order of the folio. h](j)}(h ``int order``h]j?)}(hj0h]h int order}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj.ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj*ubj)}(hhh]j9)}(hOrder of the folio.h]hOrder of the folio.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEhM hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM hjubj)}(h/``struct vm_area_struct *vma`` Pointer to VMA. h](j)}(h``struct vm_area_struct *vma``h]j?)}(hjih]hstruct vm_area_struct *vma}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjcubj)}(hhh]j9)}(hPointer to VMA.h]hPointer to VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj~hM hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hM hjubj)}(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}(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;Virtual address of the allocation. Must be inside **vma**.h](h3Virtual address of the allocation. Must be inside }(hjhhhNhNubjz)}(h**vma**h]hvma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(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**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)}(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 }(hjhhhNhNubjz)}(h**vma**h]hvma}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhX6, 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.}(hjhhhNhNubeh}(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)}(h1The folio on success or NULL if allocation fails.h]h1The folio on success or NULL if allocation fails.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌalloc_pages (C function) c.alloc_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h9struct page * alloc_pages (gfp_t gfp, unsigned int order)h]h)}(h7struct page *alloc_pages(gfp_t gfp, unsigned int order)h](j!)}(hj$h]hstruct}(hjmhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjihhhO/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&]uh1jhjihhhjzhM 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_pagesasbuh1hhjihhhjzhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjzhM ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjihhhjzhM ubh)}(h alloc_pagesh]h)}(hjh]h alloc_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjihhhjzhM ubj)}(h(gfp_t gfp, unsigned int order)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]j c.alloc_pagesasbuh1hhjubj)}(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)}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hinth]hint}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(horderh]horder}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjihhhjzhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjehhhjzhM ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhjzhM hjbhhubj )}(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&]uh1jhjbhhhjzhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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?)}(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)}(hD``unsigned int order`` Power of two of number of pages to allocate. 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&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjubj)}(hhh]j9)}(h,Power of two of number of pages to allocate.h]h,Power of two of number of pages to allocate.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]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)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjDubah}(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 << }(hj\hhhNhNubjz)}(h **order**h]horder}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj\ubh contiguous pages. The physical address of the first page is naturally aligned (eg an order-3 allocation will be aligned to a multiple of 8 * PAGE_SIZE bytes). The NUMA policy of the current process is honoured when in process context.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]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&]uh1jyhj}ubah}(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)}(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)}(h0The page on success or NULL if allocation fails.h]h0The page 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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmpol_misplaced (C function)c.mpol_misplacedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hRint mpol_misplaced (struct folio *folio, struct vm_fault *vmf, unsigned long addr)h]h)}(hQint mpol_misplaced(struct folio *folio, struct vm_fault *vmf, unsigned long addr)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMP ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMP ubh)}(hmpol_misplacedh]h)}(hmpol_misplacedh]hmpol_misplaced}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMP ubj)}(h?(struct folio *folio, struct vm_fault *vmf, unsigned long addr)h](j)}(hstruct folio *folioh](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)}(hfolioh]hfolio}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjHmodnameN classnameNj\j_)}jb]je)}jXjsbc.mpol_misplacedasbuh1hhj$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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hstruct vm_fault *vmfh](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_faulth]hvm_fault}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jbc.mpol_misplacedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmfh]hvmf}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMP ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMP ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMP hjhhubj )}(hhh]j9)}(h3check whether current folio node is valid in policyh]h3check whether current folio node is valid in policy}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chMP hjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMP ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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 hjubj)}(hhh]j9)}(hfolio to be checkedh]hfolio to be checked}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMR hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMR hjubj)}(h8``struct vm_fault *vmf`` structure describing the fault h](j)}(h``struct vm_fault *vmf``h]j?)}(hjh]hstruct vm_fault *vmf}(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.chMS hjubj)}(hhh]j9)}(hstructure describing the faulth]hstructure describing the fault}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMS hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMS hjubj)}(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}(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.chMT hjubj)}(hhh]j9)}(hIvirtual address in **vma** for shared policy lookup and interleave policyh](hvirtual address in }(hj8hhhNhNubjz)}(h**vma**h]hvma}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj8ubh/ for shared policy lookup and interleave policy}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj4hMT hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMT hjubeh}(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&]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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$mpol_shared_policy_init (C function)c.mpol_shared_policy_inithNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hOvoid mpol_shared_policy_init (struct shared_policy *sp, struct mempolicy *mpol)h]h)}(hNvoid mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM6 ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM6 ubh)}(hmpol_shared_policy_inith]h)}(hmpol_shared_policy_inith]hmpol_shared_policy_init}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM6 ubj)}(h2(struct shared_policy *sp, struct mempolicy *mpol)h](j)}(hstruct shared_policy *sph](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 shared_policyh]h shared_policy}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj5modnameN classnameNj\j_)}jb]je)}jXjsbc.mpol_shared_policy_initasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjahhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsph]hsp}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jOc.mpol_shared_policy_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmpolh]hmpol}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM6 ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM6 ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM6 hjhhubj )}(hhh]j9)}(h"initialize shared policy for inodeh]h"initialize shared policy for inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM6 hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM6 ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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: hj$ubj)}(hhh](j)}(h<``struct shared_policy *sp`` pointer to inode shared policy h](j)}(h``struct shared_policy *sp``h]j?)}(hjIh]hstruct shared_policy *sp}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM7 hjCubj)}(hhh]j9)}(hpointer to inode shared policyh]hpointer to inode shared policy}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^hM7 hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM7 hj@ubj)}(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 hj|ubj)}(hhh]j9)}(hstruct mempolicy to installh]hstruct mempolicy to install}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM8 hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM8 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&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM: hj$ubj9)}(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 }(hjhhhNhNubjz)}(h**mpol**h]hmpol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh^ in inode’s shared policy rb-tree. On entry, the current task has a reference on a non-NULL }(hjhhhNhNubjz)}(h**mpol**h]hmpol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh_. This must be released on exit. This is called at get_inode() calls and we can use GFP_KERNEL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM9 hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmpol_parse_str (C function)c.mpol_parse_strhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h7int mpol_parse_str (char *str, struct mempolicy **mpol)h]h)}(h6int mpol_parse_str(char *str, struct mempolicy **mpol)h](j)}(hinth]hint}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhj4hM ubh)}(hmpol_parse_strh]h)}(hmpol_parse_strh]hmpol_parse_str}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ](jjeh"]h$]h&]jj uh1hhj"hhhj4hM ubj)}(h$(char *str, struct mempolicy **mpol)h](j)}(h char *strh](j)}(hcharh]hchar}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_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)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj[ubj)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjIsbc.mpol_parse_strasbuh1hhjubj)}(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)}(hmpolh]hmpol}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj[ubeh}(h]h ]h"]h$]h&]jj uh1jhj"hhhj4hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj4hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj4hM hjhhubj )}(hhh]j9)}(h7parse string to mempolicy, for tmpfs mpol mount option.h]h7parse string to mempolicy, for tmpfs mpol mount option.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj2hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj4hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jMj4jMj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjQubj)}(hhh](j)}(h3``char *str`` string containing mempolicy to parse h](j)}(h ``char *str``h]j?)}(hjvh]h char *str}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjtubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjpubj)}(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&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM hjmubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM 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&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjQubj)}(hhh]j)}(h/Format of input: [=][:] h](j)}(hFormat of input:h]hFormat of input:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj ubj)}(hhh]j9)}(h[=][:]h]h[=][:]}(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&]uh1jhjQubj9)}(h **Return**h]jz)}(hj; h]hReturn}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj9 ubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjQubj9)}(h``0`` on success, else ``1``h](j?)}(h``0``h]h0}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQ ubh on success, else }(hjQ hhhNhNubj?)}(h``1``h]h1}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQ ubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmpol_to_str (C function) c.mpol_to_strhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hBvoid mpol_to_str (char *buffer, int maxlen, struct mempolicy *pol)h]h)}(hAvoid mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hM ubh)}(h mpol_to_strh]h)}(h mpol_to_strh]h mpol_to_str}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj hM 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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj ubh)}(hbufferh]hbuffer}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(h int maxlenh](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj) hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hmaxlenh]hmaxlen}(hj7 hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(hstruct mempolicy *polh](j!)}(hj$h]hstruct}(hjP hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjL ubj)}(h h]h }(hj] hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL ubh)}(hhh]h)}(h mempolicyh]h mempolicy}(hjn hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjk ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjp modnameN classnameNj\j_)}jb]je)}jXj sb c.mpol_to_strasbuh1hhjL ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjL ubh)}(hpolh]hpol}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjL 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)format a mempolicy structure for printingh]h)format a mempolicy structure for printing}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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 hj ubj)}(hhh](j)}(h7``char *buffer`` to contain formatted mempolicy string h](j)}(h``char *buffer``h]j?)}(hj h]h char *buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj ubj)}(hhh]j9)}(h%to contain formatted mempolicy stringh]h%to contain formatted mempolicy string}(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 maxlen`` length of **buffer** h](j)}(h``int maxlen``h]j?)}(hjM h]h int maxlen}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjK ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hjG ubj)}(hhh]j9)}(hlength of **buffer**h](h length of }(hjf hhhNhNubjz)}(h **buffer**h]hbuffer}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjf ubeh}(h]h ]h"]h$]h&]uh1j8hjb hM hjc ubah}(h]h ]h"]h$]h&]uh1jhjG ubeh}(h]h ]h"]h$]h&]uh1jhjb hM hj ubj)}(h?``struct mempolicy *pol`` pointer to mempolicy to be formatted h](j)}(h``struct mempolicy *pol``h]j?)}(hj h]hstruct mempolicy *pol}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj ubj)}(hhh]j9)}(h$pointer to mempolicy to be formattedh]h$pointer to mempolicy to be formatted}(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)}(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 hj ubj9)}(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 }(hj hhhNhNubjz)}(h**pol**h]hpol}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh into a string. If }(hj hhhNhNubjz)}(h **buffer**h]hbuffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh0 is too short, truncate the string. Recommend a }(hj hhhNhNubjz)}(h **maxlen**h]hmaxlen}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh of at least 51 for the longest mode, “weighted interleave”, plus the longest flag flags, “relative|balancing”, and to display at least a few node ids.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hO/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:101: ./mm/mempolicy.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio (C struct)c.foliohNtauh1hhjǒhhhY/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}(hjK hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjG hhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhKubj)}(h h]h }(hjY hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG hhhjX hKubh)}(hfolioh]h)}(hjE h]hfolio}(hjk hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjg ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjG hhhjX hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjC hhhjX hKubah}(h]j= ah ](jjeh"]h$]h&]jj)jhuh1hhjX hKhj@ hhubj )}(hhh]j9)}(h%Represents a contiguous set of bytes.h]h%Represents a contiguous set of bytes.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMLhj hhubah}(h]h ]h"]h$]h&]uh1jhj@ hhhjX hKubeh}(h]h ](j-structeh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhj? hNubjp)}(hXv**Definition**:: struct folio { memdesc_flags_t flags; union { struct list_head lru; unsigned int mlock_count; struct dev_pagemap *pgmap; }; struct address_space *mapping; union { pgoff_t index; unsigned long share; }; union { void *private; swp_entry_t swap; }; atomic_t _mapcount; atomic_t _refcount; #ifdef CONFIG_MEMCG; unsigned long memcg_data; #elif defined(CONFIG_SLAB_OBJ_EXT); unsigned long _unused_slab_obj_exts; #endif; #if defined(WANT_PAGE_VIRTUAL); void *virtual; #endif; #ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS; int _last_cpupid; #endif; atomic_t _large_mapcount; atomic_t _nr_pages_mapped; #ifdef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif; mm_id_mapcount_t _mm_id_mapcount[2]; union { mm_id_t _mm_id[2]; unsigned long _mm_ids; }; #ifdef NR_PAGES_IN_LARGE_FOLIO; unsigned int _nr_pages; #endif; struct list_head _deferred_list; #ifndef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif; void *_hugetlb_subpool; void *_hugetlb_cgroup; void *_hugetlb_cgroup_rsvd; void *_hugetlb_hwpoison; }; **Members** ``flags`` Identical to the page flags. ``{unnamed_union}`` anonymous ``lru`` Least Recently Used list; tracks how recently this folio was used. ``mlock_count`` Number of times this folio has been pinned by mlock(). ``pgmap`` Metadata for ZONE_DEVICE mappings ``mapping`` The file this page belongs to, or refers to the anon_vma for anonymous memory. ``{unnamed_union}`` anonymous ``index`` Offset within the file, in units of pages. For anonymous memory, this is the index from the beginning of the mmap. ``share`` number of DAX mappings that reference this folio. See dax_associate_entry. ``{unnamed_union}`` anonymous ``private`` Filesystem per-folio data (see folio_attach_private()). ``swap`` Used for swp_entry_t if folio_test_swapcache(). ``_mapcount`` Do not access this member directly. Use folio_mapcount() to find out how many times this folio is mapped by userspace. ``_refcount`` Do not access this member directly. Use folio_ref_count() to find how many references there are to this folio. ``memcg_data`` Memory Control Group data. ``_unused_slab_obj_exts`` Placeholder to match obj_exts in struct slab. ``virtual`` Virtual address in the kernel direct map. ``_last_cpupid`` IDs of last CPU and last process that accessed the folio. ``_large_mapcount`` Do not use directly, call folio_mapcount(). ``_nr_pages_mapped`` Do not use outside of rmap and debug code. ``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). ``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). ``_mm_id_mapcount`` Do not use outside of rmap code. ``{unnamed_union}`` anonymous ``_mm_id`` Do not use outside of rmap code. ``_mm_ids`` Do not use outside of rmap code. ``_nr_pages`` Do not use directly, call folio_nr_pages(). ``_deferred_list`` Folios to be split under memory pressure. ``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). ``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). ``_hugetlb_subpool`` Do not use directly, use accessor in hugetlb.h. ``_hugetlb_cgroup`` Do not use directly, use accessor in hugetlb_cgroup.h. ``_hugetlb_cgroup_rsvd`` Do not use directly, use accessor in hugetlb_cgroup.h. ``_hugetlb_hwpoison`` Do not use directly, call raw_hwp_list_head().h](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.hhMPhj ubj)}(hXstruct folio { memdesc_flags_t flags; union { struct list_head lru; unsigned int mlock_count; struct dev_pagemap *pgmap; }; struct address_space *mapping; union { pgoff_t index; unsigned long share; }; union { void *private; swp_entry_t swap; }; atomic_t _mapcount; atomic_t _refcount; #ifdef CONFIG_MEMCG; unsigned long memcg_data; #elif defined(CONFIG_SLAB_OBJ_EXT); unsigned long _unused_slab_obj_exts; #endif; #if defined(WANT_PAGE_VIRTUAL); void *virtual; #endif; #ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS; int _last_cpupid; #endif; atomic_t _large_mapcount; atomic_t _nr_pages_mapped; #ifdef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif; mm_id_mapcount_t _mm_id_mapcount[2]; union { mm_id_t _mm_id[2]; unsigned long _mm_ids; }; #ifdef NR_PAGES_IN_LARGE_FOLIO; unsigned int _nr_pages; #endif; struct list_head _deferred_list; #ifndef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif; void *_hugetlb_subpool; void *_hugetlb_cgroup; void *_hugetlb_cgroup_rsvd; void *_hugetlb_hwpoison; };h]hXstruct folio { memdesc_flags_t flags; union { struct list_head lru; unsigned int mlock_count; struct dev_pagemap *pgmap; }; struct address_space *mapping; union { pgoff_t index; unsigned long share; }; union { void *private; swp_entry_t swap; }; atomic_t _mapcount; atomic_t _refcount; #ifdef CONFIG_MEMCG; unsigned long memcg_data; #elif defined(CONFIG_SLAB_OBJ_EXT); unsigned long _unused_slab_obj_exts; #endif; #if defined(WANT_PAGE_VIRTUAL); void *virtual; #endif; #ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS; int _last_cpupid; #endif; atomic_t _large_mapcount; atomic_t _nr_pages_mapped; #ifdef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif; mm_id_mapcount_t _mm_id_mapcount[2]; union { mm_id_t _mm_id[2]; unsigned long _mm_ids; }; #ifdef NR_PAGES_IN_LARGE_FOLIO; unsigned int _nr_pages; #endif; struct list_head _deferred_list; #ifndef CONFIG_64BIT; atomic_t _entire_mapcount; atomic_t _pincount; #endif; void *_hugetlb_subpool; void *_hugetlb_cgroup; void *_hugetlb_cgroup_rsvd; void *_hugetlb_hwpoison; };}hj sbah}(h]h ]h"]h$]h&]jj uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMRhj 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.hhMhj ubj)}(hhh](j)}(h'``flags`` Identical to the page flags. h](j)}(h ``flags``h]j?)}(hj h]hflags}(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)}(hIdentical to the page flags.h]hIdentical to the page flags.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMNhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMNhj ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hj3 h]h{unnamed_union}}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1 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}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjH hKhjI ubah}(h]h ]h"]h$]h&]uh1jhj- ubeh}(h]h ]h"]h$]h&]uh1jhjH hKhj ubj)}(hK``lru`` Least Recently Used list; tracks how recently this folio was used. h](j)}(h``lru``h]j?)}(hjl h]hlru}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMOhjf ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMOhj ubah}(h]h ]h"]h$]h&]uh1jhjf ubeh}(h]h ]h"]h$]h&]uh1jhj hMOhj ubj)}(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>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)}(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&]uh1j8hj hMPhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMPhj ubj)}(h,``pgmap`` Metadata for ZONE_DEVICE mappings h](j)}(h ``pgmap``h]j?)}(hj h]hpgmap}(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!Metadata for ZONE_DEVICE mappingsh]h!Metadata for ZONE_DEVICE mappings}(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[``mapping`` The file this page belongs to, or refers to the anon_vma for anonymous memory. h](j)}(h ``mapping``h]j?)}(hjh]hmapping}(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.hhMRhjubj)}(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.}(hj0hhhNhNubah}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMRhj ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hjQh]h{unnamed_union}}(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.hhKhjKubj)}(hhh]j9)}(h anonymoush]h anonymous}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjfhKhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKhj ubj)}(h~``index`` Offset within the file, in units of pages. For anonymous memory, this is the index from the beginning of the mmap. h](j)}(h ``index``h]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.hhMThjubj)}(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.hhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMThj ubj)}(hU``share`` number of DAX mappings that reference this folio. See dax_associate_entry. h](j)}(h ``share``h]j?)}(hjh]hshare}(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.hhMVhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMVhj 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)}(hD``private`` Filesystem per-folio data (see folio_attach_private()). h](j)}(h ``private``h]j?)}(hj7h]hprivate}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMWhj1ubj)}(hhh]j9)}(h7Filesystem per-folio data (see folio_attach_private()).h]h7Filesystem per-folio data (see folio_attach_private()).}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLhMWhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMWhj ubj)}(h9``swap`` Used for swp_entry_t if folio_test_swapcache(). h](j)}(h``swap``h]j?)}(hjph]hswap}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjnubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMXhjjubj)}(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&]uh1j8hjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMXhj ubj)}(h``_mapcount`` Do not access this member directly. Use folio_mapcount() to find out how many times this folio is mapped by userspace. h](j)}(h ``_mapcount``h]j?)}(hjh]h _mapcount}(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.hhMZhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhj ubj)}(h~``_refcount`` Do not access this member directly. Use folio_ref_count() to find how many references there are to this folio. h](j)}(h ``_refcount``h]j?)}(hjh]h _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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hj ubj)}(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.hhM]hjubj)}(hhh]j9)}(hMemory Control Group data.h]hMemory Control Group data.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hM]hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hM]hj ubj)}(hH``_unused_slab_obj_exts`` Placeholder to match obj_exts in struct slab. h](j)}(h``_unused_slab_obj_exts``h]j?)}(hjVh]h_unused_slab_obj_exts}(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.hhMnhjPubj)}(hhh]j9)}(h-Placeholder to match obj_exts in struct slab.h]h-Placeholder to match obj_exts in struct slab.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhMnhjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMnhj ubj)}(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.hhM_hjubj)}(hhh]j9)}(h)Virtual address in the kernel direct map.h]h)Virtual address in the kernel direct map.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hj ubj)}(hK``_last_cpupid`` IDs of last CPU and last process that accessed the folio. h](j)}(h``_last_cpupid``h]j?)}(hjh]h _last_cpupid}(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)}(h9IDs of last CPU and last process that accessed the folio.h]h9IDs of last CPU and last process that accessed the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hj ubj)}(h@``_large_mapcount`` Do not use directly, call folio_mapcount(). h](j)}(h``_large_mapcount``h]j?)}(hjh]h_large_mapcount}(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.hhMbhjubj)}(hhh]j9)}(h+Do not use directly, call folio_mapcount().h]h+Do not use directly, call folio_mapcount().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhj ubj)}(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>hj8ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMchj4ubj)}(hhh]j9)}(h*Do not use outside of rmap and debug code.h]h*Do not use outside of rmap and debug code.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjOhMchjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMchj ubj)}(hH``_entire_mapcount`` Do not use directly, call folio_entire_mapcount(). h](j)}(h``_entire_mapcount``h]j?)}(hjsh]h_entire_mapcount}(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.hhMahjmubj)}(hhh]j9)}(h2Do not use directly, call folio_entire_mapcount().h]h2Do not use directly, call folio_entire_mapcount().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMahjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMahj ubj)}(hB``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). h](j)}(h ``_pincount``h]j?)}(hjh]h _pincount}(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)}(h3Do not use directly, call folio_maybe_dma_pinned().h]h3Do not use directly, call folio_maybe_dma_pinned().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhj ubj)}(h5``_mm_id_mapcount`` Do not use outside of rmap code. h](j)}(h``_mm_id_mapcount``h]j?)}(hjh]h_mm_id_mapcount}(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.hhMhhjubj)}(hhh]j9)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhj ubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hjh]h{unnamed_union}}(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.hhKhjubj)}(hhh]j9)}(h anonymoush]h anonymous}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj3hKhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hKhj ubj)}(h,``_mm_id`` Do not use outside of rmap code. h](j)}(h ``_mm_id``h]j?)}(hjWh]h_mm_id}(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.hhMfhjQubj)}(hhh]j9)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjlhMfhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMfhj ubj)}(h-``_mm_ids`` Do not use outside of rmap code. h](j)}(h ``_mm_ids``h]j?)}(hjh]h_mm_ids}(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.hhMghjubj)}(hhh]j9)}(h Do not use outside of rmap code.h]h Do not use outside of rmap code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghj ubj)}(h:``_nr_pages`` Do not use directly, call folio_nr_pages(). h](j)}(h ``_nr_pages``h]j?)}(hjh]h _nr_pages}(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.hhMehjubj)}(hhh]j9)}(h+Do not use directly, call folio_nr_pages().h]h+Do not use directly, call folio_nr_pages().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehj ubj)}(h=``_deferred_list`` Folios to be split under memory pressure. h](j)}(h``_deferred_list``h]j?)}(hjh]h_deferred_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.hhMmhjubj)}(hhh]j9)}(h)Folios to be split under memory pressure.h]h)Folios to be split under memory pressure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhj ubj)}(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>hj9ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMahj5ubj)}(hhh]j9)}(h2Do not use directly, call folio_entire_mapcount().h]h2Do not use directly, call folio_entire_mapcount().}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhMahjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhMahj ubj)}(hB``_pincount`` Do not use directly, call folio_maybe_dma_pinned(). h](j)}(h ``_pincount``h]j?)}(hjth]h _pincount}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMdhjnubj)}(hhh]j9)}(h3Do not use directly, call folio_maybe_dma_pinned().h]h3Do not use directly, call folio_maybe_dma_pinned().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMdhj ubj)}(hE``_hugetlb_subpool`` Do not use directly, use accessor in hugetlb.h. h](j)}(h``_hugetlb_subpool``h]j?)}(hjh]h_hugetlb_subpool}(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.hhMihjubj)}(hhh]j9)}(h/Do not use directly, use accessor in hugetlb.h.h]h/Do not use directly, use accessor in hugetlb.h.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMihj ubj)}(hK``_hugetlb_cgroup`` Do not use directly, use accessor in hugetlb_cgroup.h. h](j)}(h``_hugetlb_cgroup``h]j?)}(hjh]h_hugetlb_cgroup}(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.hhMjhjubj)}(hhh]j9)}(h6Do not use directly, use accessor in hugetlb_cgroup.h.h]h6Do not use directly, use accessor in hugetlb_cgroup.h.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhj ubj)}(hP``_hugetlb_cgroup_rsvd`` Do not use directly, use accessor in hugetlb_cgroup.h. h](j)}(h``_hugetlb_cgroup_rsvd``h]j?)}(hjh]h_hugetlb_cgroup_rsvd}(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.hhMkhjubj)}(hhh]j9)}(h6Do not use directly, use accessor in hugetlb_cgroup.h.h]h6Do not use directly, use accessor in hugetlb_cgroup.h.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4hMkhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMkhj ubj)}(hD``_hugetlb_hwpoison`` Do not use directly, call raw_hwp_list_head().h](j)}(h``_hugetlb_hwpoison``h]j?)}(hjXh]h_hugetlb_hwpoison}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMkhjRubj)}(hhh]j9)}(h.Do not use directly, call raw_hwp_list_head().h]h.Do not use directly, call raw_hwp_list_head().}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMlhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMkhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhj? hNubj9)}(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.hhMohjǒhhubj9)}(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 }(hjhhhNhNubj?)}(h ``PAGE_SIZE``h]h PAGE_SIZE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh. 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMnhjǒhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌptdesc (C struct)c.ptdeschNtauh1hhjǒhhhj? hNubh)}(hhh](h)}(hptdesch]h)}(h struct ptdesch](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.hhMyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMyubh)}(hptdesch]h)}(hjh]hptdesc}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMyubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMyubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMyhjhhubj )}(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.hhM hj*hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMyubeh}(h]h ](j-structeh"]h$]h&]j2j-j3jEj4jEj5j6j7uh1hhhhjǒhj? hNubjp)}(hX**Definition**:: struct ptdesc { memdesc_flags_t pt_flags; union { struct rcu_head pt_rcu_head; struct list_head pt_list; struct { unsigned long _pt_pad_1; pgtable_t pmd_huge_pte; }; }; unsigned long __page_mapping; union { pgoff_t pt_index; struct mm_struct *pt_mm; atomic_t pt_frag_refcount; #ifdef CONFIG_HUGETLB_PMD_PAGE_TABLE_SHARING; atomic_t pt_share_count; #endif; }; union { unsigned long _pt_pad_2; #if ALLOC_SPLIT_PTLOCKS; spinlock_t *ptl; #else; spinlock_t ptl; #endif; }; unsigned int __page_type; atomic_t __page_refcount; #ifdef CONFIG_MEMCG; unsigned long pt_memcg_data; #endif; }; **Members** ``pt_flags`` enum pt_flags plus zone/node/section. ``{unnamed_union}`` anonymous ``pt_rcu_head`` For freeing page table pages. ``pt_list`` List of used page tables. Used for s390 gmap shadow pages (which are not linked into the user page tables) and x86 pgds. ``{unnamed_struct}`` anonymous ``_pt_pad_1`` Padding that aliases with page's compound head. ``pmd_huge_pte`` Protected by ptdesc->ptl, used for THPs. ``__page_mapping`` Aliases with page->mapping. Unused for page tables. ``{unnamed_union}`` anonymous ``pt_index`` Used for s390 gmap. ``pt_mm`` Used for x86 pgds. ``pt_frag_refcount`` For fragmented page table tracking. Powerpc only. ``pt_share_count`` Used for HugeTLB PMD page table share count. ``{unnamed_union}`` anonymous ``_pt_pad_2`` Padding to ensure proper alignment. ``ptl`` Lock for the page table. ``ptl`` Lock for the page table. ``__page_type`` Same as page->page_type. Unused for page tables. ``__page_refcount`` Same as page refcount. ``pt_memcg_data`` Memcg data. Tracked for page tables here.h](j9)}(h**Definition**::h](jz)}(h**Definition**h]h Definition}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubh:}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjIubj)}(hXstruct ptdesc { memdesc_flags_t pt_flags; union { struct rcu_head pt_rcu_head; struct list_head pt_list; struct { unsigned long _pt_pad_1; pgtable_t pmd_huge_pte; }; }; unsigned long __page_mapping; union { pgoff_t pt_index; struct mm_struct *pt_mm; atomic_t pt_frag_refcount; #ifdef CONFIG_HUGETLB_PMD_PAGE_TABLE_SHARING; atomic_t pt_share_count; #endif; }; union { unsigned long _pt_pad_2; #if ALLOC_SPLIT_PTLOCKS; spinlock_t *ptl; #else; spinlock_t ptl; #endif; }; unsigned int __page_type; atomic_t __page_refcount; #ifdef CONFIG_MEMCG; unsigned long pt_memcg_data; #endif; };h]hXstruct ptdesc { memdesc_flags_t pt_flags; union { struct rcu_head pt_rcu_head; struct list_head pt_list; struct { unsigned long _pt_pad_1; pgtable_t pmd_huge_pte; }; }; unsigned long __page_mapping; union { pgoff_t pt_index; struct mm_struct *pt_mm; atomic_t pt_frag_refcount; #ifdef CONFIG_HUGETLB_PMD_PAGE_TABLE_SHARING; atomic_t pt_share_count; #endif; }; union { unsigned long _pt_pad_2; #if ALLOC_SPLIT_PTLOCKS; spinlock_t *ptl; #else; spinlock_t ptl; #endif; }; unsigned int __page_type; atomic_t __page_refcount; #ifdef CONFIG_MEMCG; unsigned long pt_memcg_data; #endif; };}hjjsbah}(h]h ]h"]h$]h&]jj uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjIubj9)}(h **Members**h]jz)}(hj{h]hMembers}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM4hjIubj)}(hhh](j)}(h3``pt_flags`` enum pt_flags plus zone/node/section. h](j)}(h ``pt_flags``h]j?)}(hjh]hpt_flags}(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%enum pt_flags plus zone/node/section.h]h%enum pt_flags plus zone/node/section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjhKhjubj)}(h.``pt_rcu_head`` For freeing page table pages. h](j)}(h``pt_rcu_head``h]j?)}(hj h]h pt_rcu_head}(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)}(hFor freeing page table pages.h]hFor freeing page table pages.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubj)}(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?)}(hjEh]hpt_list}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCubah}(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)}(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.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjubj)}(h``{unnamed_struct}`` anonymous h](j)}(h``{unnamed_struct}``h]j?)}(hjh]h{unnamed_struct}}(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.hhKhjyubj)}(hhh]j9)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h:``pmd_huge_pte`` Protected by ptdesc->ptl, used for THPs. h](j)}(h``pmd_huge_pte``h]j?)}(hjh]h pmd_huge_pte}(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(Protected by ptdesc->ptl, used for THPs.h]h(Protected by ptdesc->ptl, used for THPs.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hG``__page_mapping`` Aliases with page->mapping. Unused for page tables. h](j)}(h``__page_mapping``h]j?)}(hj*h]h__page_mapping}(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)}(h3Aliases with page->mapping. Unused for page tables.h]h3Aliases with page->mapping. Unused for page tables.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjubj)}(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&]uh1jhjxhKhjubj)}(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&]uh1jhjhMhjubj)}(h``pt_mm`` Used for x86 pgds. h](j)}(h ``pt_mm``h]j?)}(hjh]hpt_mm}(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 x86 pgds.h]hUsed for x86 pgds.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hG``pt_frag_refcount`` For fragmented page table tracking. Powerpc only. h](j)}(h``pt_frag_refcount``h]j?)}(hjh]hpt_frag_refcount}(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)}(h1For fragmented page table tracking. Powerpc only.h]h1For fragmented page table tracking. Powerpc only.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(h@``pt_share_count`` Used for HugeTLB PMD page table share count. h](j)}(h``pt_share_count``h]j?)}(hjGh]hpt_share_count}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjAubj)}(hhh]j9)}(h,Used for HugeTLB PMD page table share count.h]h,Used for HugeTLB PMD page table share count.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j?)}(hjh]h{unnamed_union}}(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.hhKhjzubj)}(hhh]j9)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h2``_pt_pad_2`` Padding to ensure proper alignment. h](j)}(h ``_pt_pad_2``h]j?)}(hjh]h _pt_pad_2}(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 to ensure proper alignment.h]h#Padding to ensure proper alignment.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``ptl`` Lock for the page table. h](j)}(h``ptl``h]j?)}(hj+h]hptl}(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)}(hLock for the page table.h]hLock for the page table.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubj)}(hA``__page_type`` Same as page->page_type. Unused for page tables. h](j)}(h``__page_type``h]j?)}(hjdh]h __page_type}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubah}(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)}(h0Same as page->page_type. Unused for page tables.h]h0Same as page->page_type. Unused for page tables.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubj)}(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.hhMhjubj)}(hhh]j9)}(hSame as page refcount.h]hSame as page refcount.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``pt_memcg_data`` Memcg data. Tracked for page tables here.h](j)}(h``pt_memcg_data``h]j?)}(hjh]h pt_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.hhMhjubj)}(hhh]j9)}(h)Memcg data. Tracked for page tables here.h]h)Memcg data. Tracked for page tables here.}(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&]uh1jhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhj? hNubj9)}(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.hhM!hjǒhhubj9)}(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.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjǒhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_fault_t (C type) c.vm_fault_thNtauh1hhjǒhhhj? hNubh)}(hhh](h)}(h vm_fault_th]h)}(htype vm_fault_th](j!)}(hj 9h]htype}(hjWhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjShhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM$ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjdhM$ubh)}(h vm_fault_th]h)}(hjQh]h vm_fault_t}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ](jjeh"]h$]h&]jj uh1hhjShhhjdhM$ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjOhhhjdhM$ubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjdhM$hjLhhubj )}(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&]uh1jhjLhhhjdhM$ubeh}(h]h ](j-typeeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhj? hNubj9)}(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.hhMhjǒhhubj9)}(hhjubh values.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjǒhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvm_fault_reason (C enum)c.vm_fault_reasonhNtauh1hhjǒhhhj? hNubh)}(hhh](h)}(hvm_fault_reasonh]h)}(henum vm_fault_reasonh](j!)}(hjeh]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hvm_fault_reasonh]h)}(hjh]hvm_fault_reason}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-enumeh"]h$]h&]j2j-j3jaj4jaj5j6j7uh1hhhhjǒhj? hNubjp)}(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)}(hjkh]h Constants}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjeubj)}(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?)}(hjh]hVM_FAULT_SIGBUS}(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 Bad accessh]h Bad access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``VM_FAULT_MAJOR`` Page read from storage h](j)}(h``VM_FAULT_MAJOR``h]j?)}(hjh]hVM_FAULT_MAJOR}(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)}(hPage read from storageh]hPage read from storage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``VM_FAULT_HWPOISON`` Hit poisoned small page h](j)}(h``VM_FAULT_HWPOISON``h]j?)}(hj5h]hVM_FAULT_HWPOISON}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj3ubah}(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)}(hHit poisoned small pageh]hHit poisoned small page}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubj)}(hQ``VM_FAULT_HWPOISON_LARGE`` Hit poisoned large page. Index encoded in upper bits h](j)}(h``VM_FAULT_HWPOISON_LARGE``h]j?)}(hjnh]hVM_FAULT_HWPOISON_LARGE}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjlubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhjhubj)}(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&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``VM_FAULT_SIGSEGV`` segmentation fault h](j)}(h``VM_FAULT_SIGSEGV``h]j?)}(hjh]hVM_FAULT_SIGSEGV}(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)}(hsegmentation faulth]hsegmentation fault}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``VM_FAULT_NOPAGE`` ->fault installed the pte, not return page h](j)}(h``VM_FAULT_NOPAGE``h]j?)}(hjh]hVM_FAULT_NOPAGE}(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 installed the pte, not return pageh]h*->fault installed the pte, not return page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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>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 locked the returned pageh]h ->fault locked the returned page}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubj)}(h/``VM_FAULT_RETRY`` ->fault blocked, must retry h](j)}(h``VM_FAULT_RETRY``h]j?)}(hjSh]hVM_FAULT_RETRY}(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)}(h->fault blocked, must retryh]h->fault blocked, must retry}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubj)}(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}(hjhhhNhNubah}(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?)}(hjh]hVM_FAULT_DONE_COW}(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 has fully handled COWh]h->fault has fully handled COW}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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?)}(hjh]hVM_FAULT_NEEDDSYNC}(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)}(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)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hG``VM_FAULT_COMPLETED`` ->fault completed, meanwhile mmap lock released h](j)}(h``VM_FAULT_COMPLETED``h]j?)}(hj8h]hVM_FAULT_COMPLETED}(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.hhMhj2ubj)}(hhh]j9)}(h/->fault completed, meanwhile mmap lock releasedh]h/->fault completed, meanwhile mmap lock released}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubj)}(h*``VM_FAULT_HINDEX_MASK`` mask HINDEX valueh](j)}(h``VM_FAULT_HINDEX_MASK``h]j?)}(hjqh]hVM_FAULT_HINDEX_MASK}(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)}(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&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhj? hNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfault_flag (C enum) c.fault_flaghNtauh1hhjǒhhhj? hNubh)}(hhh](h)}(h fault_flagh]h)}(henum fault_flagh](j!)}(hjeh]henum}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h fault_flagh]h)}(hjh]h fault_flag}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(hFault flag definitions.h]hFault flag definitions.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMFhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-enumeh"]h$]h&]j2j-j3j%j4j%j5j6j7uh1hhhhjǒhj? hNubjp)}(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)}(hj/h]h Constants}(hj1hhhNhNubah}(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.hhMJhj)ubj)}(hhh](j)}(h.``FAULT_FLAG_WRITE`` Fault was a write fault. h](j)}(h``FAULT_FLAG_WRITE``h]j?)}(hjNh]hFAULT_FLAG_WRITE}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjLubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMMhjHubj)}(hhh]j9)}(hFault was a write fault.h]hFault was a write fault.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjchMMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMMhjEubj)}(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.hhMPhjubj)}(hhh]j9)}(h"Fault was mkwrite of existing PTE.h]h"Fault was mkwrite of existing PTE.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjEubj)}(h@``FAULT_FLAG_ALLOW_RETRY`` Allow to retry the fault if blocked. h](j)}(h``FAULT_FLAG_ALLOW_RETRY``h]j?)}(hjh]hFAULT_FLAG_ALLOW_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.hhMShjubj)}(hhh]j9)}(h$Allow to retry the fault if blocked.h]h$Allow to retry the fault if blocked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjEubj)}(hI``FAULT_FLAG_RETRY_NOWAIT`` Don't drop mmap_lock and wait when retrying. h](j)}(h``FAULT_FLAG_RETRY_NOWAIT``h]j?)}(hjh]hFAULT_FLAG_RETRY_NOWAIT}(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.hhMVhjubj)}(hhh]j9)}(h,Don't drop mmap_lock and wait when retrying.h]h.Don’t drop mmap_lock and wait when retrying.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMVhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMVhjEubj)}(hF``FAULT_FLAG_KILLABLE`` The fault task is in SIGKILL killable region. h](j)}(h``FAULT_FLAG_KILLABLE``h]j?)}(hj2 h]hFAULT_FLAG_KILLABLE}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0 ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMYhj, ubj)}(hhh]j9)}(h-The fault task is in SIGKILL killable region.h]h-The fault task is in SIGKILL killable region.}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjG hMYhjH ubah}(h]h ]h"]h$]h&]uh1jhj, ubeh}(h]h ]h"]h$]h&]uh1jhjG hMYhjEubj)}(h4``FAULT_FLAG_TRIED`` The fault has been tried once. h](j)}(h``FAULT_FLAG_TRIED``h]j?)}(hjk h]hFAULT_FLAG_TRIED}(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.hhM\hje ubj)}(hhh]j9)}(hThe fault has been tried once.h]hThe fault has been tried once.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hM\hj ubah}(h]h ]h"]h$]h&]uh1jhje ubeh}(h]h ]h"]h$]h&]uh1jhj hM\hjEubj)}(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>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 originated in userspace.h]h"The fault originated in userspace.}(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_hjEubj)}(h<``FAULT_FLAG_REMOTE`` The fault is not for current task/mm. h](j)}(h``FAULT_FLAG_REMOTE``h]j?)}(hj h]hFAULT_FLAG_REMOTE}(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.hhMbhj 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&]uh1j8hj hMbhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMbhjEubj)}(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>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)}(h*The fault was during an instruction fetch.h]h*The fault was during an instruction fetch.}(hj/!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+!hMehj,!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj+!hMehjEubj)}(hP``FAULT_FLAG_INTERRUPTIBLE`` The fault can be interrupted by non-fatal signals. h](j)}(h``FAULT_FLAG_INTERRUPTIBLE``h]j?)}(hjO!h]hFAULT_FLAG_INTERRUPTIBLE}(hjQ!hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjM!ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMhhjI!ubj)}(hhh]j9)}(h2The fault can be interrupted by non-fatal signals.h]h2The fault can be interrupted by non-fatal signals.}(hjh!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjd!hMhhje!ubah}(h]h ]h"]h$]h&]uh1jhjI!ubeh}(h]h ]h"]h$]h&]uh1jhjd!hMhhjEubj)}(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?)}(hj!h]hFAULT_FLAG_UNSHARE}(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.hhMmhj!ubj)}(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.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMkhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMmhjEubj)}(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.hhMqhj!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.hhMphj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMqhjEubj)}(h<``FAULT_FLAG_VMA_LOCK`` The fault is handled under VMA lock.h](j)}(h``FAULT_FLAG_VMA_LOCK``h]j?)}(hj!h]hFAULT_FLAG_VMA_LOCK}(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.hhMshj!ubj)}(hhh]j9)}(h$The fault is handled under VMA lock.h]h$The fault is handled under VMA lock.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMthj"ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj"hMshjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhj? hNubj9)}(h**Description**h]jz)}(hj?"h]h Description}(hjA"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.hhMvhjǒhhubj9)}(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 }(hjU"hhhNhNubjz)}(h**FAULT_FLAG_ALLOW_RETRY**h]hFAULT_FLAG_ALLOW_RETRY}(hj]"hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjU"ubh and }(hjU"hhhNhNubjz)}(h**FAULT_FLAG_TRIED**h]hFAULT_FLAG_TRIED}(hjo"hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjU"ubh: 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:}(hjU"hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMWhjǒhhubjr,)}(hhh](jw,)}(htALLOW_RETRY and !TRIED: this means the page fault allows retry, and this is the first try h]j)}(hhh]j)}(h[ALLOW_RETRY and !TRIED: this means the page fault allows retry, and this is the first try h](j)}(hDALLOW_RETRY and !TRIED: this means the page fault allows retry, andh]hDALLOW_RETRY and !TRIED: this means the page fault allows retry, and}(hj"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)}(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&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM\hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jv,hj"ubjw,)}(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}(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"ubah}(h]h ]h"]h$]h&]uh1jv,hj"ubjw,)}(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}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMahj#ubah}(h]h ]h"]h$]h&]uh1jv,hj"ubeh}(h]h ]h"]h$]h&]j, loweralphaj,j!j,jD!uh1jq,hjǒhhhj? hNubj9)}(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.}(hj1#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMchjǒhhubj9)}(hThe combination FAULT_FLAG_WRITE|FAULT_FLAG_UNSHARE is illegal. FAULT_FLAG_UNSHARE is ignored and treated like an ordinary read fault when applied to mappings that are not COW mappings.h]hThe combination FAULT_FLAG_WRITE|FAULT_FLAG_UNSHARE is illegal. FAULT_FLAG_UNSHARE is ignored and treated like an ordinary read fault when applied to mappings that are not COW mappings.}(hj@#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:102: ./include/linux/mm_types.hhMjhjǒhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_is_file_lru (C function)c.folio_is_file_lruhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h1int folio_is_file_lru (const struct folio *folio)h]h)}(h0int folio_is_file_lru(const struct folio *folio)h](j)}(hinth]hint}(hjh#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd#hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKubj)}(h h]h }(hjw#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd#hhhjv#hKubh)}(hfolio_is_file_lruh]h)}(hfolio_is_file_lruh]hfolio_is_file_lru}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjd#hhhjv#hKubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]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_is_file_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 uh1jhjd#hhhjv#hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj`#hhhjv#hKubah}(h]j[#ah ](jjeh"]h$]h&]jj)jhuh1hhjv#hKhj]#hhubj )}(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?}(hjC$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhj@$hhubah}(h]h ]h"]h$]h&]uh1jhj]#hhhjv#hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j[$j4j[$j5j6j7uh1hhhhjǒhNhNubjp)}(hXX**Parameters** ``const struct folio *folio`` The folio to test. **Description** We would like to get this info without a page flag, but the state needs to survive until the folio is last deleted from the LRU, which could be as far down as __page_cache_release. **Return** An integer (not a boolean!) used to sort a folio onto the right LRU list and to account folios correctly. 1 if **folio** is a regular filesystem backed page cache folio or a lazily freed anonymous folio (e.g. via MADV_FREE). 0 if **folio** is a normal anonymous folio, a tmpfs folio or otherwise ram or swap backed folio.Vh](j9)}(h**Parameters**h]jz)}(hje$h]h Parameters}(hjg$hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjc$ubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhj_$ubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to test. 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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhj~$ubj)}(hhh]j9)}(hThe folio to test.h]hThe folio to test.}(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&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhj_$ubj9)}(hWe would like to get this info without a page flag, but the state needs to survive until the folio is last deleted from the LRU, which could be as far down as __page_cache_release.h]hWe would like to get this info without a page flag, but the state needs to survive until the folio is last deleted from the LRU, which could be as far down as __page_cache_release.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhj_$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:104: ./include/linux/mm_inline.hhKhj_$ubj9)}(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 }(hj$hhhNhNubjz)}(h **folio**h]hfolio}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj$ubhn is a regular filesystem backed page cache folio or a lazily freed anonymous folio (e.g. via MADV_FREE). 0 if }(hj$hhhNhNubjz)}(h **folio**h]hfolio}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj$ubhR is a normal anonymous folio, a tmpfs folio or otherwise ram or swap backed folio.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKhj_$ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$__folio_clear_lru_flags (C function)c.__folio_clear_lru_flagshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h2void __folio_clear_lru_flags (struct folio *folio)h]h)}(h1void __folio_clear_lru_flags(struct folio *folio)h](j)}(hvoidh]hvoid}(hjO%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK%hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK?ubj)}(h h]h }(hj^%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK%hhhj]%hK?ubh)}(h__folio_clear_lru_flagsh]h)}(h__folio_clear_lru_flagsh]h__folio_clear_lru_flags}(hjp%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjl%ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjK%hhhj]%hK?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]je)}jXjr%sbc.__folio_clear_lru_flagsasbuh1hhj%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 uh1jhjK%hhhj]%hK?ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjG%hhhj]%hK?ubah}(h]jB%ah ](jjeh"]h$]h&]jj)jhuh1hhj]%hK?hjD%hhubj )}(hhh]j9)}(h-Clear page lru flags before releasing a page.h]h-Clear page lru flags before releasing a page.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK?hj &hhubah}(h]h ]h"]h$]h&]uh1jhjD%hhhj]%hK?ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j'&j4j'&j5j6j7uh1hhhhjǒhNhNubjp)}(ha**Parameters** ``struct folio *folio`` The folio that was on lru and now has a zero reference.h](j9)}(h**Parameters**h]jz)}(hj1&h]h Parameters}(hj3&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.hhKChj+&ubj)}(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?)}(hjP&h]hstruct folio *folio}(hjR&hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjN&ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKEhjJ&ubj)}(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.}(hji&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhK@hjf&ubah}(h]h ]h"]h$]h&]uh1jhjJ&ubeh}(h]h ]h"]h$]h&]uh1jhje&hKEhjG&ubah}(h]h ]h"]h$]h&]uh1jhj+&ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_lru_list (C function)c.folio_lru_listhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h8enum lru_list folio_lru_list (const struct folio *folio)h]h)}(h7enum lru_list folio_lru_list(const struct folio *folio)h](j!)}(hjeh]henum}(hj&hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj&hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKQubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hKQubh)}(hhh]h)}(hlru_listh]hlru_list}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj&modnameN classnameNj\j_)}jb]je)}jXfolio_lru_listsbc.folio_lru_listasbuh1hhj&hhhj&hKQubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hKQubh)}(hfolio_lru_listh]h)}(hj&h]hfolio_lru_list}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj&hhhj&hKQubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]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}(hj2'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}(hjP'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjM'ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjR'modnameN classnameNj\j_)}jb]j&c.folio_lru_listasbuh1hhj'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)}(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&hKQubeh}(h]h ]h"]h$]h&]jj juh1hjjhj&hhhj&hKQubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj&hKQhj&hhubj )}(hhh]j9)}(h$Which LRU list should a folio be on?h]h$Which LRU list should a folio be on?}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKQhj'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hKQubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j'j4j'j5j6j7uh1hhhhjǒhNhNubjp)}(h**Parameters** ``const struct folio *folio`` The folio to test. **Return** The LRU list a folio should be on, as an index into the array of LRU lists.h](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.hhKUhj'ubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to test. 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&]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&]uh1j8hj (hKRhj (ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj (hKRhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubj9)}(h **Return**h]jz)}(hj/(h]hReturn}(hj1(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.hhKThj'ubj9)}(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.}(hjE(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhKThj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!num_pages_contiguous (C function)c.num_pages_contiguoushNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hBsize_t num_pages_contiguous (struct page **pages, size_t nr_pages)h]h)}(hAsize_t num_pages_contiguous(struct page **pages, size_t nr_pages)h](h)}(hhh]h)}(hsize_th]hsize_t}(hjw(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjt(ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjy(modnameN classnameNj\j_)}jb]je)}jXnum_pages_contiguoussbc.num_pages_contiguousasbuh1hhjp(hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMmubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp(hhhj(hMmubh)}(hnum_pages_contiguoush]h)}(hj(h]hnum_pages_contiguous}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjp(hhhj(hMmubj)}(h&(struct page **pages, size_t nr_pages)h](j)}(hstruct page **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)}(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.num_pages_contiguousasbuh1hhj(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(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(ubj)}(hsize_t nr_pagesh](h)}(hhh]h)}(hsize_th]hsize_t}(hjF)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjC)ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjH)modnameN classnameNj\j_)}jb]j(c.num_pages_contiguousasbuh1hhj?)ubj)}(h h]h }(hjd)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?)ubh)}(hnr_pagesh]hnr_pages}(hjr)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?)ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj(ubeh}(h]h ]h"]h$]h&]jj uh1jhjp(hhhj(hMmubeh}(h]h ]h"]h$]h&]jj juh1hjjhjl(hhhj(hMmubah}(h]jg(ah ](jjeh"]h$]h&]jj)jhuh1hhj(hMmhji(hhubj )}(hhh]j9)}(hGdetermine the number of contiguous pages that represent contiguous PFNsh]hGdetermine the number of contiguous pages that represent contiguous PFNs}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMmhj)hhubah}(h]h ]h"]h$]h&]uh1jhji(hhhj(hMmubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j)j4j)j5j6j7uh1hhhhjǒhNhNubjp)}(hX6**Parameters** ``struct page **pages`` an array of page pointers ``size_t nr_pages`` length of the array, at least 1 **Description** Determine the number of contiguous pages that represent contiguous PFNs in **pages**, starting from the first page. In some kernel configs contiguous PFNs will not have contiguous struct pages. In these configurations num_pages_contiguous() will return a num smaller than ideal number. The caller should continue to check for pfn contiguity after each call to num_pages_contiguous(). Returns the number of contiguous pages.h](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.hhMqhj)ubj)}(hhh](j)}(h2``struct page **pages`` an array of page pointers h](j)}(h``struct page **pages``h]j?)}(hj)h]hstruct page **pages}(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.hhMohj)ubj)}(hhh]j9)}(han array of page pointersh]han array of page pointers}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj)hMohj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMohj)ubj)}(h4``size_t nr_pages`` length of the array, at least 1 h](j)}(h``size_t nr_pages``h]j?)}(hj*h]hsize_t nr_pages}(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.hhMphj*ubj)}(hhh]j9)}(hlength of the array, at least 1h]hlength of the array, at least 1}(hj/*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+*hMphj,*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj+*hMphj)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:104: ./include/linux/mm_inline.hhMrhj)ubj9)}(hsDetermine the number of contiguous pages that represent contiguous PFNs in **pages**, starting from the first page.h](hKDetermine the number of contiguous pages that represent contiguous PFNs in }(hjg*hhhNhNubjz)}(h **pages**h]hpages}(hjo*hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjg*ubh, starting from the first page.}(hjg*hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMqhj)ubj9)}(hX In some kernel configs contiguous PFNs will not have contiguous struct pages. In these configurations num_pages_contiguous() will return a num smaller than ideal number. The caller should continue to check for pfn contiguity after each call to num_pages_contiguous().h]hX In some kernel configs contiguous PFNs will not have contiguous struct pages. In these configurations num_pages_contiguous() will return a num smaller than ideal number. The caller should continue to check for pfn contiguity after each call to num_pages_contiguous().}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMthj)ubj9)}(h'Returns the number of contiguous pages.h]h'Returns the number of contiguous pages.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hZ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:104: ./include/linux/mm_inline.hhMyhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpage_folio (C macro) c.page_foliohNtauh1hhjǒhhhNhNubh)}(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*j5j6j7uh1hhhhjǒhNhNubj9)}(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(hjǒhhubjU)}(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&hjǒhhubjp)}(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)}(hj1+h]h Parameters}(hj3+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?)}(hjP+h]hp}(hjR+hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjN+ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM'hjJ+ubj)}(hhh]j9)}(h The page.h]h The page.}(hji+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hje+hM'hjf+ubah}(h]h ]h"]h$]h&]uh1jhjJ+ubeh}(h]h ]h"]h$]h&]uh1jhje+hM'hjG+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)}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_page (C macro) c.folio_pagehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h folio_pageh]h)}(h folio_pageh]h)}(h folio_pageh]h)}(hj*,h]h folio_page}(hj4,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0,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(,hhhjG,hM7ubah}(h]j#,ah ](jjeh"]h$]h&]jj)jhuh1hhjG,hM7hj%,hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhj%,hhhjG,hM7ubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3j`,j4j`,j5j6j7uh1hhhhjǒhNhNubj9)}(h``folio_page (folio, n)``h]j?)}(hjf,h]hfolio_page (folio, n)}(hjh,hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjd,ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM9hjǒhhubjU)}(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.hhM7hj|,ubah}(h]h ]h"]h$]h&]uh1jThj,hM7hjǒhhubjp)}(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)}(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``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&]uh1jhj,ubj9)}(h**Description**h]jz)}(hj.-h]h Description}(hj0-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**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}(hjH-hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjD-ubhg is relative to the start of the folio. This function does not check that the page number lies within }(hjD-hhhNhNubjz)}(h **folio**h]hfolio}(hjZ-hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjD-ubh9; the caller is presumed to have a reference to the page.}(hjD-hhhNhNubeh}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(folio_xor_flags_has_waiters (C function)c.folio_xor_flags_has_waitershNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hJbool folio_xor_flags_has_waiters (struct folio *folio, unsigned long mask)h]h)}(hIbool folio_xor_flags_has_waiters(struct folio *folio, unsigned long mask)h](j)}(hj*h]hbool}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj-hMubh)}(hfolio_xor_flags_has_waitersh]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 uh1hhj-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}(hjA.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=.ubj)}(h h]h }(hjO.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)}(hmaskh]hmask}(hjy.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)}(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&]uh1jhj-hhhj-hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j.j4j.j5j6j7uh1hhhhjǒhNhNubjp)}(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.}(hj6/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2/hMhj3/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj2/hMhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.ubj9)}(h**Description**h]jz)}(hjX/h]h Description}(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.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.}(hjn/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&]uh1jyhj}/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.}(hj/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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_test_uptodate (C function)c.folio_test_uptodatehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h4bool folio_test_uptodate (const struct folio *folio)h]h)}(h3bool folio_test_uptodate(const struct folio *folio)h](j)}(hj*h]hbool}(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!)}(hjh]hconst}(hj0hhhNhNubah}(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)}(hfolioh]hfolio}(hj90hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj60ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;0modnameN classnameNj\j_)}jb]je)}jXj/sbc.folio_test_uptodateasbuh1hhj/ubj)}(h h]h }(hjY0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2 )}(hj5 h]h*}(hjg0hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj/ubh)}(hfolioh]hfolio}(hjt0hhhNhNubah}(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?}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j0j4j0j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hj0ubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hj0h]hconst struct folio *folio}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hj0ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hM hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubj9)}(h**Description**h]jz)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hj0ubj9)}(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.}(hj01hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_test_large (C function)c.folio_test_largehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h1bool folio_test_large (const struct folio *folio)h]h)}(h0bool folio_test_large(const struct folio *folio)h](j)}(hj*h]hbool}(hj_1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[1hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMZubj)}(h h]h }(hjm1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[1hhhjl1hMZubh)}(hfolio_test_largeh]h)}(hfolio_test_largeh]hfolio_test_large}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{1ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj[1hhhjl1hMZubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]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)}jXj1sbc.folio_test_largeasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2 )}(hj5 h]h*}(hj2hhhNhNubah}(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 uh1jhj[1hhhjl1hMZubeh}(h]h ]h"]h$]h&]jj juh1hjjhjW1hhhjl1hMZubah}(h]jR1ah ](jjeh"]h$]h&]jj)jhuh1hhjl1hMZhjT1hhubj )}(hhh]j9)}(h+Does this folio contain more than one page?h]h+Does this folio contain more than one page?}(hj92hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMZhj62hhubah}(h]h ]h"]h$]h&]uh1jhjT1hhhjl1hMZubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jQ2j4jQ2j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj[2h]h Parameters}(hj]2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjY2ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM^hjU2ubj)}(hhh]j)}(h1``const struct folio *folio`` The folio to test. h](j)}(h``const struct folio *folio``h]j?)}(hjz2h]hconst struct folio *folio}(hj|2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjx2ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM[hjt2ubj)}(hhh]j9)}(hThe folio to test.h]hThe folio to test.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hM[hj2ubah}(h]h ]h"]h$]h&]uh1jhjt2ubeh}(h]h ]h"]h$]h&]uh1jhj2hM[hjq2ubah}(h]h ]h"]h$]h&]uh1jhjU2ubj9)}(h **Return**h]jz)}(hj2h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM]hjU2ubj9)}(h*True if the folio is larger than one page.h]h*True if the folio is larger than one page.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM]hjU2ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌPageSlab (C function) c.PageSlabhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h'bool PageSlab (const struct page *page)h]h)}(h&bool PageSlab(const struct page *page)h](j)}(hj*h]hbool}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj3hMubh)}(hPageSlabh]h)}(hPageSlabh]hPageSlab}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj2hhhj3hMubj)}(h(const struct page *page)h]j)}(hconst struct page *pageh](j!)}(hjh]hconst}(hj63hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj23ubj)}(h h]h }(hjC3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj23ubj!)}(hj$h]hstruct}(hjQ3hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj23ubj)}(h h]h }(hj^3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj23ubh)}(hhh]h)}(hpageh]hpage}(hjo3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjl3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjq3modnameN classnameNj\j_)}jb]je)}jXj3sb c.PageSlabasbuh1hhj23ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj23ubj2 )}(hj5 h]h*}(hj3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj23ubh)}(hpageh]hpage}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj23ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj.3ubah}(h]h ]h"]h$]h&]jj uh1jhj2hhhj3hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj2hhhj3hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj3hMhj2hhubj )}(hhh]j9)}(h3Determine if the page belongs to the slab allocatorh]h3Determine if the page belongs to the slab allocator}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj3hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j3j4j3j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM"hj3ubj)}(hhh]j)}(h.``const struct page *page`` The page to test. h](j)}(h``const struct page *page``h]j?)}(hj4h]hconst struct page *page}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj4ubj)}(hhh]j9)}(hThe page to test.h]hThe page to test.}(hj.4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj*4hMhj+4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj*4hMhj 4ubah}(h]h ]h"]h$]h&]uh1jhj3ubj9)}(h **Context**h]jz)}(hjP4h]hContext}(hjR4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjN4ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM!hj3ubj9)}(h Any context.h]h Any context.}(hjf4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM!hj3ubj9)}(h **Return**h]jz)}(hjw4h]hReturn}(hjy4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhju4ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM#hj3ubj9)}(h6True for slab pages, false for any other kind of page.h]h6True for slab pages, false for any other kind of page.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM"hj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌPageHuge (C function) c.PageHugehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h'bool PageHuge (const struct page *page)h]h)}(h&bool PageHuge(const struct page *page)h](j)}(hj*h]hbool}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM:ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj4hM:ubh)}(hPageHugeh]h)}(hPageHugeh]hPageHuge}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj4hhhj4hM:ubj)}(h(const struct page *page)h]j)}(hconst struct page *pageh](j!)}(hjh]hconst}(hj4hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj!)}(hj$h]hstruct}(hj5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4ubj)}(h h]h }(hj 5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]h)}(hpageh]hpage}(hj15hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj35modnameN classnameNj\j_)}jb]je)}jXj4sb c.PageHugeasbuh1hhj4ubj)}(h h]h }(hjQ5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2 )}(hj5 h]h*}(hj_5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4ubh)}(hpageh]hpage}(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*Determine if the page belongs to hugetlbfsh]h*Determine if the page belongs to hugetlbfs}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM:hj5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hM:ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j5j4j5j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM>hj5ubj)}(hhh]j)}(h.``const struct page *page`` The page to test. h](j)}(h``const struct page *page``h]j?)}(hj5h]hconst struct page *page}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM;hj5ubj)}(hhh]j9)}(hThe page to test.h]hThe page to test.}(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 **Context**h]jz)}(hj6h]hContext}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM=hj5ubj9)}(h Any context.h]h Any context.}(hj(6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM=hj5ubj9)}(h **Return**h]jz)}(hj96h]hReturn}(hj;6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj76ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM?hj5ubj9)}(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.}(hjO6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhM>hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!page_has_movable_ops (C function)c.page_has_movable_opshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h3bool page_has_movable_ops (const struct page *page)h]h)}(h2bool page_has_movable_ops(const struct page *page)h](j)}(hj*h]hbool}(hj~6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz6hhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz6hhhj6hMubh)}(hpage_has_movable_opsh]h)}(hpage_has_movable_opsh]hpage_has_movable_ops}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjz6hhhj6hMubj)}(h(const struct page *page)h]j)}(hconst struct page *pageh](j!)}(hjh]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)}(hpageh]hpage}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6modnameN classnameNj\j_)}jb]je)}jXj6sbc.page_has_movable_opsasbuh1hhj6ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2 )}(hj5 h]h*}(hj!7hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj6ubh)}(hpageh]hpage}(hj.7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubah}(h]h ]h"]h$]h&]jj uh1jhjz6hhhj6hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjv6hhhj6hMubah}(h]jq6ah ](jjeh"]h$]h&]jj)jhuh1hhj6hMhjs6hhubj )}(hhh]j9)}(htest for a movable_ops pageh]htest for a movable_ops page}(hjX7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjU7hhubah}(h]h ]h"]h$]h&]uh1jhjs6hhhj6hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jp7j4jp7j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjz7h]h Parameters}(hj|7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjx7ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjt7ubj)}(hhh]j)}(h.``const struct page *page`` The page to test. h](j)}(h``const struct page *page``h]j?)}(hj7h]hconst struct page *page}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj7ubj)}(hhh]j9)}(hThe page to test.h]hThe page to test.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjt7ubj9)}(h**Description**h]jz)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjt7ubj9)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhjt7ubj9)}(h ah"]h$]h&]uh1j1 hja8ubh)}(hfolioh]hfolio}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhja8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj]8ubah}(h]h ]h"]h$]h&]jj uh1jhj$8hhhj68hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj 8hhhj68hMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj68hMhj8hhubj )}(hhh]j9)}(h$Determine if folio has private stuffh]h$Determine if folio has private stuff}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj68hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j9j4j9j5j6j7uh1hhhhjǒhNhNubjp)}(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%9h]h Parameters}(hj'9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#9ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj9ubj)}(hhh]j)}(h6``const struct folio *folio`` The folio to be checked h](j)}(h``const struct folio *folio``h]j?)}(hjD9h]hconst struct folio *folio}(hjF9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjB9ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj>9ubj)}(hhh]j9)}(hThe folio to be checkedh]hThe folio to be checked}(hj]9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjY9hMhjZ9ubah}(h]h ]h"]h$]h&]uh1jhj>9ubeh}(h]h ]h"]h$]h&]uh1jhjY9hMhj;9ubah}(h]h ]h"]h$]h&]uh1jhj9ubj9)}(h**Description**h]jz)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj}9ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj9ubj9)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:105: ./include/linux/page-flags.hhMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_page_idx (C function)c.folio_page_idxhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hQunsigned long folio_page_idx (const struct folio *folio, const struct page *page)h]h)}(hPunsigned long folio_page_idx(const struct folio *folio, const struct page *page)h](j)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhKubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hKubj)}(hlongh]hlong}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hKubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hKubh)}(hfolio_page_idxh]h)}(hfolio_page_idxh]hfolio_page_idx}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj9hhhj9hKubj)}(h4(const struct folio *folio, const struct page *page)h](j)}(hconst struct folio *folioh](j!)}(hjh]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}(hj8:hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjE:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]h)}(hfolioh]hfolio}(hjV:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjS:ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjX:modnameN classnameNj\j_)}jb]je)}jXj:sbc.folio_page_idxasbuh1hhj:ubj)}(h h]h }(hjv: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)}(hconst struct page *pageh](j!)}(hjh]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]jr:c.folio_page_idxasbuh1hhj: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:ubeh}(h]h ]h"]h$]h&]jj uh1jhj9hhhj9hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj9hhhj9hKubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1hhj9hKhj9hhubj )}(hhh]j9)}(h'Return the number of a page in a folio.h]h'Return the number of a page in a folio.}(hjF;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhKhjC;hhubah}(h]h ]h"]h$]h&]uh1jhj9hhhj9hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j^;j4j^;j5j6j7uh1hhhhjǒhNhNubjp)}(h**Parameters** ``const struct folio *folio`` The folio. ``const struct page *page`` The folio page. **Description** This function expects that the page is actually part of the folio. The returned number is relative to the start of the folio.h](j9)}(h**Parameters**h]jz)}(hjh;h]h Parameters}(hjj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjf;ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhKhjb;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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhKhj;ubj)}(hhh]j9)}(h The folio.h]h The folio.}(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,``const struct page *page`` The folio page. 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhKhj;ubj)}(hhh]j9)}(hThe folio page.h]hThe folio page.}(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&]uh1jhjb;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.hhKhjb;ubj9)}(h}This function expects that the page is actually part of the folio. The returned number is relative to the start of the folio.h]h}This function expects that the page is actually part of the folio. The returned number is relative to the start of the folio.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhKhjb;ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)fault_flag_allow_retry_first (C function)c.fault_flag_allow_retry_firsthNtauh1hhjǒhhhNhNubh)}(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.hhM ubj)}(h h]h }(hjN<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<<hhhjM<hM ubh)}(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<<hhhjM<hM ubj)}(h(enum fault_flag flags)h]j)}(henum fault_flag flagsh](j!)}(hjeh]henum}(hj|<hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjx<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx<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)}jXjb<sbc.fault_flag_allow_retry_firstasbuh1hhjx<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx<ubh)}(hflagsh]hflags}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjx<ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjt<ubah}(h]h ]h"]h$]h&]jj uh1jhj<<hhhjM<hM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj8<hhhjM<hM ubah}(h]j3<ah ](jjeh"]h$]h&]jj)jhuh1hhjM<hM hj5<hhubj )}(hhh]j9)}(h check ALLOW_RETRY the first timeh]h check ALLOW_RETRY the first time}(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&]uh1jhj5<hhhjM<hM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j =j4j =j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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'``enum fault_flag flags`` Fault flags. h](j)}(h``enum fault_flag flags``h]j?)}(hj3=h]henum fault_flag flags}(hj5=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1=ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj-=ubj)}(hhh]j9)}(h Fault flags.h]h Fault flags.}(hjL=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjH=hM hjI=ubah}(h]h ]h"]h$]h&]uh1jhj-=ubeh}(h]h ]h"]h$]h&]uh1jhjH=hM hj*=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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj=ubj9)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj=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)}(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=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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_order (C function) c.folio_orderhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h4unsigned int folio_order (const struct folio *folio)h]h)}(h3unsigned int folio_order(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(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=hMubj)}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMubh)}(h folio_orderh]h)}(h folio_orderh]h folio_order}(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!)}(hjh]hconst}(hj3>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}(hjN>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}(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.folio_orderasbuh1hhj/>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 The allocation order of a folio.h]h The allocation order of a folio.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j>j4j>j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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)``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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.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)}(hjM?h]h Description}(hjO?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjK?ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj>ubj9)}(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.}(hjc?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj>ubj9)}(h **Return**h]jz)}(hjt?h]hReturn}(hjv?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjr?ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj>ubj9)}(hThe order of the folio.h]hThe order of the folio.}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_reset_order (C function)c.folio_reset_orderhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h,void folio_reset_order (struct folio *folio)h]h)}(h+void folio_reset_order(struct folio *folio)h](j)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM)ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj?hM)ubh)}(hfolio_reset_orderh]h)}(hfolio_reset_orderh]hfolio_reset_order}(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]je)}jXj?sbc.folio_reset_orderasbuh1hhj?ubj)}(h h]h }(hj4@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2 )}(hj5 h]h*}(hjB@hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj?ubh)}(hfolioh]hfolio}(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?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+Reset the folio order and derived _nr_pagesh]h+Reset the folio order and derived _nr_pages}(hjy@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM)hjv@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hM)ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j@j4j@j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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>hj@ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM*hj@ubj)}(hhh]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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM,hj@ubj9)}(hgReset the order and derived _nr_pages to 0. Must only be used in the process of splitting large folios.h]hgReset the order and derived _nr_pages to 0. Must only be used in the process of splitting large folios.}(hj AhhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mapcount (C function)c.folio_mapcounthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h.int folio_mapcount (const struct folio *folio)h]h)}(h-int folio_mapcount(const struct folio *folio)h](j)}(hinth]hint}(hj:AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6AhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjIAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6AhhhjHAhMubh)}(hfolio_mapcounth]h)}(hfolio_mapcounth]hfolio_mapcount}(hj[AhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWAubah}(h]h ](jjeh"]h$]h&]jj uh1hhj6AhhhjHAhMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjwAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjsAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsAubj!)}(hj$h]hstruct}(hjAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjsAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsAubh)}(hhh]h)}(hfolioh]hfolio}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjAmodnameN classnameNj\j_)}jb]je)}jXj]Asbc.folio_mapcountasbuh1hhjsAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsAubj2 )}(hj5 h]h*}(hjAhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjsAubh)}(hfolioh]hfolio}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoAubah}(h]h ]h"]h$]h&]jj uh1jhj6AhhhjHAhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj2AhhhjHAhMubah}(h]j-Aah ](jjeh"]h$]h&]jj)jhuh1hhjHAhMhj/Ahhubj )}(hhh]j9)}(h!Number of mappings of this folio.h]h!Number of mappings of this folio.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj/AhhhjHAhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j-Bj4j-Bj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj7Bh]h Parameters}(hj9BhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5Bubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj1Bubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hjVBh]hconst struct folio *folio}(hjXBhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjTBubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjPBubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjoBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkBhMhjlBubah}(h]h ]h"]h$]h&]uh1jhjPBubeh}(h]h ]h"]h$]h&]uh1jhjkBhMhjMBubah}(h]h ]h"]h$]h&]uh1jhj1Bubj9)}(h**Description**h]jz)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj1Bubj9)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj1Bubj9)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj1Bubj9)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj1Bubj9)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj1Bubj9)}(h **Return**h]jz)}(hjBh]hReturn}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj1Bubj9)}(h)The number of times this folio is mapped.h]h)The number of times this folio is mapped.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj1Bubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mapped (C function)c.folio_mappedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h-bool folio_mapped (const struct folio *folio)h]h)}(h,bool folio_mapped(const struct folio *folio)h](j)}(hj*h]hbool}(hj*ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ChhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj8ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Chhhj7ChMubh)}(h folio_mappedh]h)}(h folio_mappedh]h folio_mapped}(hjJChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFCubah}(h]h ](jjeh"]h$]h&]jj uh1hhj&Chhhj7ChMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjfChhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjbCubj)}(h h]h }(hjsChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbCubj!)}(hj$h]hstruct}(hjChhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjbCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbCubh)}(hhh]h)}(hfolioh]hfolio}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjCmodnameN classnameNj\j_)}jb]je)}jXjLCsbc.folio_mappedasbuh1hhjbCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbCubj2 )}(hj5 h]h*}(hjChhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjbCubh)}(hfolioh]hfolio}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbCubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj^Cubah}(h]h ]h"]h$]h&]jj uh1jhj&Chhhj7ChMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj"Chhhj7ChMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhj7ChMhjChhubj )}(hhh]j9)}(h$Is this folio mapped into userspace?h]h$Is this folio mapped into userspace?}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj7ChMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jDj4jDj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj&Dh]h Parameters}(hj(DhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj$Dubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj Dubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hjEDh]hconst struct folio *folio}(hjGDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjCDubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj?Dubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj^DhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjZDhMhj[Dubah}(h]h ]h"]h$]h&]uh1jhj?Dubeh}(h]h ]h"]h$]h&]uh1jhjZDhMhjEmodnameN classnameNj\j_)}jb]je)}jXjEsb c.thp_orderasbuh1hhjEubj)}(h h]h }(hj\EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2 )}(hj5 h]h*}(hjjEhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjEubh)}(hpageh]hpage}(hjwEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjEubah}(h]h ]h"]h$]h&]jj uh1jhjDhhhjDhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjDhhhjDhMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhjDhhubj )}(hhh]j9)}(h!Order of a transparent huge page.h]h!Order of a transparent huge page.}(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&]uh1jhjDhhhjDhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jEj4jEj5j6j7uh1hhhhjǒhNhNubjp)}(hM**Parameters** ``struct page *page`` Head page of a transparent huge page.h](j9)}(h**Parameters**h]jz)}(hjEh]h Parameters}(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.hhMhjEubj)}(hhh]j)}(h;``struct page *page`` Head page of a transparent huge page.h](j)}(h``struct page *page``h]j?)}(hjEh]hstruct page *page}(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)}(h%Head page of a transparent huge page.h]h%Head page of a transparent huge page.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌthp_size (C function) c.thp_sizehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h*unsigned long thp_size (struct page *page)h]h)}(h)unsigned long thp_size(struct page *page)h](j)}(hunsignedh]hunsigned}(hj ah"]h$]h&]uh1j1 hjFubh)}(hpageh]hpage}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubah}(h]h ]h"]h$]h&]jj uh1jhj8FhhhjJFhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4FhhhjJFhMubah}(h]j/Fah ](jjeh"]h$]h&]jj)jhuh1hhjJFhMhj1Fhhubj )}(hhh]j9)}(h Size of a transparent huge page.h]h Size of a transparent huge page.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjGhhubah}(h]h ]h"]h$]h&]uh1jhj1FhhhjJFhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j0Gj4j0Gj5j6j7uh1hhhhjǒhNhNubjp)}(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:Gh]h Parameters}(hjhjWGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjSGubj)}(hhh]j9)}(h%Head page of a transparent huge page.h]h%Head page of a transparent huge page.}(hjrGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnGhMhjoGubah}(h]h ]h"]h$]h&]uh1jhjSGubeh}(h]h ]h"]h$]h&]uh1jhjnGhMhjPGubah}(h]h ]h"]h$]h&]uh1jhj4Gubj9)}(h **Return**h]jz)}(hjGh]hReturn}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj4Gubj9)}(hNumber of bytes in this page.h]hNumber of bytes in this page.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj4Gubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_get (C function) c.folio_gethNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h$void folio_get (struct folio *folio)h]h)}(h#void folio_get(struct folio *folio)h](j)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMaubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjGhMaubh)}(h folio_geth]h)}(h folio_geth]h folio_get}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubah}(h]h ](jjeh"]h$]h&]jj uh1hhjGhhhjGhMaubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjHhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjHubj)}(h h]h }(hj#HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]h)}(hfolioh]hfolio}(hj4HhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1Hubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6HmodnameN classnameNj\j_)}jb]je)}jXjGsb c.folio_getasbuh1hhjHubj)}(h h]h }(hjTHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2 )}(hj5 h]h*}(hjbHhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjHubh)}(hfolioh]hfolio}(hjoHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjHubah}(h]h ]h"]h$]h&]jj uh1jhjGhhhjGhMaubeh}(h]h ]h"]h$]h&]jj juh1hjjhjGhhhjGhMaubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjGhMahjGhhubj )}(hhh]j9)}(h)Increment the reference count on a folio.h]h)Increment the reference count on a folio.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMahjHhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhMaubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jHj4jHj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMehjHubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjHh]hstruct folio *folio}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMbhjHubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjHhMbhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMbhjHubah}(h]h ]h"]h$]h&]uh1jhjHubj9)}(h **Context**h]jz)}(hjIh]hContext}(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.hhMdhjHubj9)}(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+IhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMdhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_put (C function) c.folio_puthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h$void folio_put (struct folio *folio)h]h)}(h#void folio_put(struct folio *folio)h](j)}(hvoidh]hvoid}(hjZIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVIhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjiIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVIhhhjhIhMubh)}(h folio_puth]h)}(h folio_puth]h folio_put}(hj{IhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwIubah}(h]h ](jjeh"]h$]h&]jj uh1hhjVIhhhjhIhMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](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)}(hfolioh]hfolio}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjImodnameN classnameNj\j_)}jb]je)}jXj}Isb c.folio_putasbuh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjIubh)}(hfolioh]hfolio}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjIubah}(h]h ]h"]h$]h&]jj uh1jhjVIhhhjhIhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjRIhhhjhIhMubah}(h]jMIah ](jjeh"]h$]h&]jj)jhuh1hhjhIhMhjOIhhubj )}(hhh]j9)}(h)Decrement the reference count on a folio.h]h)Decrement the reference count on a folio.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjJhhubah}(h]h ]h"]h$]h&]uh1jhjOIhhhjhIhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j2Jj4j2Jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj:Jubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj6Jubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj[Jh]hstruct folio *folio}(hj]JhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjYJubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjUJubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjtJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjpJhMhjqJubah}(h]h ]h"]h$]h&]uh1jhjUJubeh}(h]h ]h"]h$]h&]uh1jhjpJhMhjRJubah}(h]h ]h"]h$]h&]uh1jhj6Jubj9)}(h**Description**h]jz)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj6Jubj9)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj6Jubj9)}(h **Context**h]jz)}(hjJh]hContext}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj6Jubj9)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj6Jubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_put_refs (C function)c.folio_put_refshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h3void folio_put_refs (struct folio *folio, int refs)h]h)}(h2void folio_put_refs(struct folio *folio, int refs)h](j)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhjKhMubh)}(hfolio_put_refsh]h)}(hfolio_put_refsh]hfolio_put_refs}(hj#KhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubah}(h]h ](jjeh"]h$]h&]jj uh1hhjJhhhjKhMubj)}(h(struct folio *folio, int refs)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj?KhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj;Kubj)}(h h]h }(hjLKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Kubh)}(hhh]h)}(hfolioh]hfolio}(hj]KhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZKubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_KmodnameN classnameNj\j_)}jb]je)}jXj%Ksbc.folio_put_refsasbuh1hhj;Kubj)}(h h]h }(hj}KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Kubj2 )}(hj5 h]h*}(hjKhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj;Kubh)}(hfolioh]hfolio}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;Kubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7Kubj)}(hint refsh](j)}(hinth]hint}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hrefsh]hrefs}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7Kubeh}(h]h ]h"]h$]h&]jj uh1jhjJhhhjKhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjJhhhjKhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjKhMhjJhhubj )}(hhh]j9)}(h&Reduce the reference count on a folio.h]h&Reduce the reference count on a folio.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjKhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jLj4jLj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjLubj)}(hhh](j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hj8Lh]hstruct folio *folio}(hj:LhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6Lubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj2Lubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjQLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMLhMhjNLubah}(h]h ]h"]h$]h&]uh1jhj2Lubeh}(h]h ]h"]h$]h&]uh1jhjMLhMhj/Lubj)}(hF``int refs`` The amount to subtract from the folio's reference count. h](j)}(h ``int refs``h]j?)}(hjqLh]hint refs}(hjsLhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjoLubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjkLubj)}(hhh]j9)}(h8The amount to subtract from the folio's reference count.h]h:The amount to subtract from the folio’s reference count.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjkLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj/Lubeh}(h]h ]h"]h$]h&]uh1jhjLubj9)}(h**Description**h]jz)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjLubj9)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjLubj9)}(h **Context**h]jz)}(hjLh]hContext}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjLubj9)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolios_put (C function) c.folios_puthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h,void folios_put (struct folio_batch *folios)h]h)}(h+void folios_put(struct folio_batch *folios)h](j)}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj'MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj&MhMubh)}(h folios_puth]h)}(h folios_puth]h folios_put}(hj9MhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5Mubah}(h]h ](jjeh"]h$]h&]jj uh1hhjMhhhj&MhMubj)}(h(struct folio_batch *folios)h]j)}(hstruct folio_batch *foliosh](j!)}(hj$h]hstruct}(hjUMhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjQMubj)}(h h]h }(hjbMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQMubh)}(hhh]h)}(h folio_batchh]h folio_batch}(hjsMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpMubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjuMmodnameN classnameNj\j_)}jb]je)}jXj;Msb c.folios_putasbuh1hhjQMubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQMubj2 )}(hj5 h]h*}(hjMhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjQMubh)}(hfoliosh]hfolios}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQMubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjMMubah}(h]h ]h"]h$]h&]jj uh1jhjMhhhj&MhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjMhhhj&MhMubah}(h]j Mah ](jjeh"]h$]h&]jj)jhuh1hhj&MhMhj Mhhubj )}(hhh]j9)}(h4Decrement the reference count on an array of folios.h]h4Decrement the reference count on an array of folios.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjMhhubah}(h]h ]h"]h$]h&]uh1jhj Mhhhj&MhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jMj4jMj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.hhMhjMubj)}(hhh]j)}(h+``struct folio_batch *folios`` The folios. h](j)}(h``struct folio_batch *folios``h]j?)}(hjNh]hstruct folio_batch *folios}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjNubj)}(hhh]j9)}(h The folios.h]h The folios.}(hj2NhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj.NhMhj/Nubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhj.NhMhjNubah}(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&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjMubj9)}(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.}(hjjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjMubj9)}(h **Context**h]jz)}(hj{Nh]hContext}(hj}NhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjMubj9)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_pfn (C function) c.folio_pfnhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h3unsigned long folio_pfn (const struct folio *folio)h]h)}(h2unsigned long folio_pfn(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM4ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhM4ubj)}(hlongh]hlong}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhM4ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhM4ubh)}(h folio_pfnh]h)}(h folio_pfnh]h folio_pfn}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ](jjeh"]h$]h&]jj uh1hhjNhhhjNhM4ubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjOubj)}(h h]h }(hj&OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj!)}(hj$h]hstruct}(hj4OhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjOubj)}(h h]h }(hjAOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]h)}(hfolioh]hfolio}(hjROhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOOubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjTOmodnameN classnameNj\j_)}jb]je)}jXjNsb c.folio_pfnasbuh1hhjOubj)}(h h]h }(hjrOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2 )}(hj5 h]h*}(hjOhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjOubh)}(hfolioh]hfolio}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjOubah}(h]h ]h"]h$]h&]jj uh1jhjNhhhjNhM4ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjNhhhjNhM4ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhM4hjNhhubj )}(hhh]j9)}(h(Return the Page Frame Number of a folio.h]h(Return the Page Frame Number of a folio.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM4hjOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhM4ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jOj4jOj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjOh]h Parameters}(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.hhM8hjOubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hjOh]hconst struct folio *folio}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjOubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM5hjOubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj PhM5hjPubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhj PhM5hjOubah}(h]h ]h"]h$]h&]uh1jhjOubj9)}(h**Description**h]jz)}(hj3Ph]h Description}(hj5PhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1Pubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM7hjOubj9)}(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.}(hjIPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM6hjOubj9)}(h **Return**h]jz)}(hjZPh]hReturn}(hj\PhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXPubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM9hjOubj9)}(h5The Page Frame Number of the first page in the folio.h]h5The Page Frame Number of the first page in the folio.}(hjpPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM:hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mk_pte (C function)c.folio_mk_ptehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h?pte_t folio_mk_pte (const struct folio *folio, pgprot_t pgprot)h]h)}(h>pte_t folio_mk_pte(const struct folio *folio, pgprot_t pgprot)h](h)}(hhh]h)}(hpte_th]hpte_t}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjPmodnameN classnameNj\j_)}jb]je)}jX folio_mk_ptesbc.folio_mk_pteasbuh1hhjPhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMMubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjPhMMubh)}(h folio_mk_pteh]h)}(hjPh]h folio_mk_pte}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ](jjeh"]h$]h&]jj uh1hhjPhhhjPhMMubj)}(h,(const struct folio *folio, pgprot_t pgprot)h](j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj!)}(hj$h]hstruct}(hj QhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]h)}(hfolioh]hfolio}(hj*QhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'Qubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj,QmodnameN classnameNj\j_)}jb]jPc.folio_mk_pteasbuh1hhjPubj)}(h h]h }(hjHQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2 )}(hj5 h]h*}(hjVQhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjPubh)}(hfolioh]hfolio}(hjcQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPubj)}(hpgprot_t pgproth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|Qubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjQmodnameN classnameNj\j_)}jb]jPc.folio_mk_pteasbuh1hhjxQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxQubh)}(hpgproth]hpgprot}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPubeh}(h]h ]h"]h$]h&]jj uh1jhjPhhhjPhMMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjPhhhjPhMMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjPhMMhjPhhubj )}(hhh]j9)}(hCreate a PTE for this folioh]hCreate a PTE for this folio}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMMhjQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jQj4jQj5j6j7uh1hhhhjǒhNhNubjp)}(hX?**Parameters** ``const struct folio *folio`` The folio to create a PTE for ``pgprot_t pgprot`` The page protection bits to use **Description** Create a page table entry for the first page of this folio. This is suitable for passing to set_ptes(). **Return** A page table entry suitable for mapping this folio.h](j9)}(h**Parameters**h]jz)}(hjQh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMQhjQubj)}(hhh](j)}(h<``const struct folio *folio`` The folio to create a PTE for h](j)}(h``const struct folio *folio``h]j?)}(hjRh]hconst struct 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.hhMNhjRubj)}(hhh]j9)}(hThe folio to create a PTE forh]hThe folio to create a PTE for}(hj/RhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+RhMNhj,Rubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhj+RhMNhj Rubj)}(h4``pgprot_t pgprot`` The page protection bits to use h](j)}(h``pgprot_t pgprot``h]j?)}(hjORh]hpgprot_t pgprot}(hjQRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMOhjIRubj)}(hhh]j9)}(hThe page protection bits to useh]hThe page protection bits to use}(hjhRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjdRhMOhjeRubah}(h]h ]h"]h$]h&]uh1jhjIRubeh}(h]h ]h"]h$]h&]uh1jhjdRhMOhj Rubeh}(h]h ]h"]h$]h&]uh1jhjQubj9)}(h**Description**h]jz)}(hjRh]h Description}(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.hhMQhjQubj9)}(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().}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMPhjQubj9)}(h **Return**h]jz)}(hjRh]hReturn}(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.hhMShjQubj9)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping this folio.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMThjQubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mk_pmd (C function)c.folio_mk_pmdhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h?pmd_t folio_mk_pmd (const struct folio *folio, pgprot_t pgprot)h]h)}(h>pmd_t folio_mk_pmd(const struct folio *folio, pgprot_t pgprot)h](h)}(hhh]h)}(hpmd_th]hpmd_t}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjRmodnameN classnameNj\j_)}jb]je)}jX folio_mk_pmdsbc.folio_mk_pmdasbuh1hhjRhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM]ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjShM]ubh)}(h folio_mk_pmdh]h)}(hjSh]h folio_mk_pmd}(hj-ShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)Subah}(h]h ](jjeh"]h$]h&]jj uh1hhjRhhhjShM]ubj)}(h,(const struct folio *folio, pgprot_t pgprot)h](j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjHShhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjDSubj)}(h h]h }(hjUShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDSubj!)}(hj$h]hstruct}(hjcShhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjDSubj)}(h h]h }(hjpShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDSubh)}(hhh]h)}(hfolioh]hfolio}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~Subah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjSmodnameN classnameNj\j_)}jb]jSc.folio_mk_pmdasbuh1hhjDSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDSubj2 )}(hj5 h]h*}(hjShhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjDSubh)}(hfolioh]hfolio}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj@Subj)}(hpgprot_t pgproth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjSmodnameN classnameNj\j_)}jb]jSc.folio_mk_pmdasbuh1hhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hpgproth]hpgprot}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj@Subeh}(h]h ]h"]h$]h&]jj uh1jhjRhhhjShM]ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjRhhhjShM]ubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1hhjShM]hjRhhubj )}(hhh]j9)}(hCreate a PMD for this folioh]hCreate a PMD for this folio}(hj,ThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM]hj)Thhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjShM]ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jDTj4jDTj5j6j7uh1hhhhjǒhNhNubjp)}(hXA**Parameters** ``const struct folio *folio`` The folio to create a PMD for ``pgprot_t pgprot`` The page protection bits to use **Description** Create a page table entry for the first page of this folio. This is suitable for passing to set_pmd_at(). **Return** A page table entry suitable for mapping this folio.h](j9)}(h**Parameters**h]jz)}(hjNTh]h Parameters}(hjPThhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjLTubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMahjHTubj)}(hhh](j)}(h<``const struct folio *folio`` The folio to create a PMD for h](j)}(h``const struct folio *folio``h]j?)}(hjmTh]hconst struct folio *folio}(hjoThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkTubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM^hjgTubj)}(hhh]j9)}(hThe folio to create a PMD forh]hThe folio to create a PMD for}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjThM^hjTubah}(h]h ]h"]h$]h&]uh1jhjgTubeh}(h]h ]h"]h$]h&]uh1jhjThM^hjdTubj)}(h4``pgprot_t pgprot`` The page protection bits to use h](j)}(h``pgprot_t pgprot``h]j?)}(hjTh]hpgprot_t pgprot}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjTubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM_hjTubj)}(hhh]j9)}(hThe page protection bits to useh]hThe page protection bits to use}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjThM_hjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThM_hjdTubeh}(h]h ]h"]h$]h&]uh1jhjHTubj9)}(h**Description**h]jz)}(hjTh]h Description}(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.hhMahjHTubj9)}(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().}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM`hjHTubj9)}(h **Return**h]jz)}(hjUh]hReturn}(hj UhhhNhNubah}(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.hhMchjHTubj9)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping this folio.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMdhjHTubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mk_pud (C function)c.folio_mk_pudhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h?pud_t folio_mk_pud (const struct folio *folio, pgprot_t pgprot)h]h)}(h>pud_t folio_mk_pud(const struct folio *folio, pgprot_t pgprot)h](h)}(hhh]h)}(hpud_th]hpud_t}(hjPUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjRUmodnameN classnameNj\j_)}jb]je)}jX folio_mk_pudsbc.folio_mk_pudasbuh1hhjIUhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMmubj)}(h h]h }(hjrUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIUhhhjqUhMmubh)}(h folio_mk_pudh]h)}(hjnUh]h folio_mk_pud}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ](jjeh"]h$]h&]jj uh1hhjIUhhhjqUhMmubj)}(h,(const struct folio *folio, pgprot_t pgprot)h](j)}(hconst struct folio *folioh](j!)}(hjh]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)}(hfolioh]hfolio}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjUmodnameN classnameNj\j_)}jb]jlUc.folio_mk_pudasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjUubh)}(hfolioh]hfolio}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjUubj)}(hpgprot_t pgproth](h)}(hhh]h)}(hpgprot_th]hpgprot_t}(hj-VhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*Vubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj/VmodnameN classnameNj\j_)}jb]jlUc.folio_mk_pudasbuh1hhj&Vubj)}(h h]h }(hjKVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Vubh)}(hpgproth]hpgprot}(hjYVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&Vubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjUubeh}(h]h ]h"]h$]h&]jj uh1jhjIUhhhjqUhMmubeh}(h]h ]h"]h$]h&]jj juh1hjjhjEUhhhjqUhMmubah}(h]j@Uah ](jjeh"]h$]h&]jj)jhuh1hhjqUhMmhjBUhhubj )}(hhh]j9)}(hCreate a PUD for this folioh]hCreate a PUD for this folio}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMmhjVhhubah}(h]h ]h"]h$]h&]uh1jhjBUhhhjqUhMmubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jVj4jVj5j6j7uh1hhhhjǒhNhNubjp)}(hXA**Parameters** ``const struct folio *folio`` The folio to create a PUD for ``pgprot_t pgprot`` The page protection bits to use **Description** Create a page table entry for the first page of this folio. This is suitable for passing to set_pud_at(). **Return** A page table entry suitable for mapping this folio.h](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.hhMqhjVubj)}(hhh](j)}(h<``const struct folio *folio`` The folio to create a PUD for 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMnhjVubj)}(hhh]j9)}(hThe folio to create a PUD forh]hThe folio to create a PUD for}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjVhMnhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMnhjVubj)}(h4``pgprot_t pgprot`` The page protection bits to use h](j)}(h``pgprot_t pgprot``h]j?)}(hjVh]hpgprot_t pgprot}(hjVhhhNhNubah}(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.hhMohjVubj)}(hhh]j9)}(hThe page protection bits to useh]hThe page protection bits to use}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhMohjWubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjWhMohjVubeh}(h]h ]h"]h$]h&]uh1jhjVubj9)}(h**Description**h]jz)}(hj8Wh]h Description}(hj:WhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6Wubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMqhjVubj9)}(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().}(hjNWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMphjVubj9)}(h **Return**h]jz)}(hj_Wh]hReturn}(hjaWhhhNhNubah}(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.hhMshjVubj9)}(h3A page table entry suitable for mapping this folio.h]h3A page table entry suitable for mapping this folio.}(hjuWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMthjVubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#folio_maybe_dma_pinned (C function)c.folio_maybe_dma_pinnedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h1bool folio_maybe_dma_pinned (struct folio *folio)h]h)}(h0bool folio_maybe_dma_pinned(struct folio *folio)h](j)}(hj*h]hbool}(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_dma_pinnedh]h)}(hfolio_maybe_dma_pinnedh]hfolio_maybe_dma_pinned}(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}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjXmodnameN classnameNj\j_)}jb]je)}jXjWsbc.folio_maybe_dma_pinnedasbuh1hhjWubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2 )}(hj5 h]h*}(hj,XhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjWubh)}(hfolioh]hfolio}(hj9XhhhNhNubah}(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)}(h(Report if a folio may be pinned for DMA.h]h(Report if a folio may be pinned for DMA.}(hjcXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj`Xhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j{Xj4j{Xj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubj9)}(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”.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubj9)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubj9)}(hFor most large folios, the result will be exactly correct. That's because we have more tracking data available: the _pincount field is used instead of the GUP_PIN_COUNTING_BIAS scheme.h]hFor most large folios, the result will be exactly correct. That’s because we have more tracking data available: the _pincount field is used instead of the GUP_PIN_COUNTING_BIAS scheme.}(hj"YhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubj9)}(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.}(hj1YhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubj9)}(h **Return**h]jz)}(hjBYh]hReturn}(hjDYhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj@Yubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubj9)}(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.}(hjXYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌis_zero_page (C function)c.is_zero_pagehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h+bool is_zero_page (const struct page *page)h]h)}(h*bool is_zero_page(const struct page *page)h](j)}(hj*h]hbool}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjYhMubh)}(h is_zero_pageh]h)}(h is_zero_pageh]h is_zero_page}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ](jjeh"]h$]h&]jj uh1hhjYhhhjYhMubj)}(h(const struct page *page)h]j)}(hconst struct page *pageh](j!)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj!)}(hj$h]hstruct}(hjYhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]h)}(hpageh]hpage}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjYmodnameN classnameNj\j_)}jb]je)}jXjYsbc.is_zero_pageasbuh1hhjYubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2 )}(hj5 h]h*}(hj*ZhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjYubh)}(hpageh]hpage}(hj7ZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjYubah}(h]h ]h"]h$]h&]jj uh1jhjYhhhjYhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjYhhhjYhMubah}(h]jzYah ](jjeh"]h$]h&]jj)jhuh1hhjYhMhj|Yhhubj )}(hhh]j9)}(hQuery if a page is a zero pageh]hQuery if a page is a zero page}(hjaZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj^Zhhubah}(h]h ]h"]h$]h&]uh1jhj|YhhhjYhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jyZj4jyZj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj}Zubj)}(hhh]j)}(h.``const struct page *page`` The page to query h](j)}(h``const struct page *page``h]j?)}(hjZh]hconst struct page *page}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjZubj)}(hhh]j9)}(hThe page to queryh]hThe page to query}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jhj}Zubj9)}(h**Description**h]jz)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj}Zubj9)}(hAThis returns true if **page** is one of the permanent zero pages.h](hThis returns true if }(hjZhhhNhNubjz)}(h**page**h]hpage}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubh$ is one of the permanent zero pages.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj}Zubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌis_zero_folio (C function)c.is_zero_foliohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h.bool is_zero_folio (const struct folio *folio)h]h)}(h-bool is_zero_folio(const struct folio *folio)h](j)}(hj*h]hbool}(hj4[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0[hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjB[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0[hhhjA[hMubh)}(h is_zero_folioh]h)}(h is_zero_folioh]h is_zero_folio}(hjT[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjP[ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj0[hhhjA[hMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjp[hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjl[ubj)}(h h]h }(hj}[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl[ubj!)}(hj$h]hstruct}(hj[hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjl[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl[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)}jXjV[sbc.is_zero_folioasbuh1hhjl[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl[ubj2 )}(hj5 h]h*}(hj[hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjl[ubh)}(hfolioh]hfolio}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjl[ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjh[ubah}(h]h ]h"]h$]h&]jj uh1jhj0[hhhjA[hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj,[hhhjA[hMubah}(h]j'[ah ](jjeh"]h$]h&]jj)jhuh1hhjA[hMhj)[hhubj )}(hhh]j9)}(hQuery if a folio is a zero pageh]hQuery if a folio is a zero page}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj \hhubah}(h]h ]h"]h$]h&]uh1jhj)[hhhjA[hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j&\j4j&\j5j6j7uh1hhhhjǒhNhNubjp)}(h**Parameters** ``const struct folio *folio`` The folio to query **Description** This returns true if **folio** is one of the permanent zero pages.h](j9)}(h**Parameters**h]jz)}(hj0\h]h Parameters}(hj2\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)}(h1``const struct folio *folio`` The folio to query h](j)}(h``const struct folio *folio``h]j?)}(hjO\h]hconst struct folio *folio}(hjQ\hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjM\ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjI\ubj)}(hhh]j9)}(hThe folio to queryh]hThe folio to query}(hjh\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjd\hMhje\ubah}(h]h ]h"]h$]h&]uh1jhjI\ubeh}(h]h ]h"]h$]h&]uh1jhjd\hMhjF\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.hhMhj*\ubj9)}(hBThis returns true if **folio** is one of the permanent zero pages.h](hThis returns true if }(hj\hhhNhNubjz)}(h **folio**h]hfolio}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj\ubh$ is one of the permanent zero pages.}(hj\hhhNhNubeh}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_nr_pages (C function)c.folio_nr_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h8unsigned long folio_nr_pages (const struct folio *folio)h]h)}(h7unsigned long folio_nr_pages(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(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\hMubj)}(hlongh]hlong}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hMubj)}(h h]h }(hj ]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj\hMubh)}(hfolio_nr_pagesh]h)}(hfolio_nr_pagesh]hfolio_nr_pages}(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!)}(hjh]hconst}(hj:]hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj6]ubj)}(h h]h }(hjG]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6]ubj!)}(hj$h]hstruct}(hjU]hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj6]ubj)}(h h]h }(hjb]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6]ubh)}(hhh]h)}(hfolioh]hfolio}(hjs]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjp]ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetju]modnameN classnameNj\j_)}jb]je)}jXj ]sbc.folio_nr_pagesasbuh1hhj6]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6]ubj2 )}(hj5 h]h*}(hj]hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj6]ubh)}(hfolioh]hfolio}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6]ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj2]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!The number of pages in the folio.h]h!The number of pages in the folio.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj]hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j]j4j]j5j6j7uh1hhhhjǒhNhNubjp)}(h`**Parameters** ``const struct folio *folio`` The folio. **Return** A positive power of two.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)``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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj^ubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj2^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)}(hjT^h]hReturn}(hjV^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjR^ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj]ubj9)}(hA positive power of two.h]hA positive power of two.}(hjj^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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_next (C function) c.folio_nexthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h/struct folio * folio_next (struct folio *folio)h]h)}(h-struct folio *folio_next(struct folio *folio)h](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.hhMCubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj^hMCubh)}(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)}jX folio_nextsb c.folio_nextasbuh1hhj^hhhj^hMCubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj^hMCubj2 )}(hj5 h]h*}(hj^hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj^hhhj^hMCubh)}(h folio_nexth]h)}(hj^h]h folio_next}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj^hhhj^hMCubj)}(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}(hj1_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj._ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3_modnameN classnameNj\j_)}jb]j^ c.folio_nextasbuh1hhj_ubj)}(h h]h }(hjO_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2 )}(hj5 h]h*}(hj]_hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj_ubh)}(hfolioh]hfolio}(hjj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj _ubah}(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 Move to the next physical folio.h]h Move to the next physical folio.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMChj_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hMCubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j_j4j_j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.hhMGhj_ubj)}(hhh]j)}(h@``struct folio *folio`` The folio we're currently operating on. 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.hhMDhj_ubj)}(hhh]j9)}(h'The folio we're currently operating on.h]h)The folio we’re currently operating on.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_hMDhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMDhj_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.hhMFhj_ubj9)}(hXZIf you have physically contiguous memory which may span more than one folio (eg a :c:type:`struct bio_vec `), use this function to move from one folio to the next. Do not use it if the memory is only virtually contiguous as the folios are almost certainly not adjacent to each other. This is the folio equivalent to writing ``page++``.h](hRIf you have physically contiguous memory which may span more than one folio (eg a }(hj&`hhhNhNubh)}(h":c:type:`struct bio_vec `h]j?)}(hj0`h]hstruct bio_vec}(hj2`hhhNhNubah}(h]h ](j%j-c-typeeh"]h$]h&]uh1j>hj.`ubah}(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.hhMEhj&`ubh), use this function to move from one folio to the next. Do not use it if the memory is only virtually contiguous as the folios are almost certainly not adjacent to each other. This is the folio equivalent to writing }(hj&`hhhNhNubj?)}(h ``page++``h]hpage++}(hjR`hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj&`ubh.}(hj&`hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjM`hMEhj_ubj9)}(h **Context**h]jz)}(hjl`h]hContext}(hjn`hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjj`ubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMKhj_ubj9)}(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.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMLhj_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.hhMOhj_ubj9)}(hThe next struct folio.h]hThe next struct folio.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMNhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_shift (C function) c.folio_shifthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h4unsigned int folio_shift (const struct folio *folio)h]h)}(h3unsigned int folio_shift(const struct folio *folio)h](j)}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMVubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hMVubj)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hMVubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hMVubh)}(h folio_shifth]h)}(h folio_shifth]h folio_shift}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubah}(h]h ](jjeh"]h$]h&]jj uh1hhj`hhhj`hMVubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hj1ahhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj-aubj)}(h h]h }(hj>ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-aubj!)}(hj$h]hstruct}(hjLahhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj-aubj)}(h h]h }(hjYahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-aubh)}(hhh]h)}(hfolioh]hfolio}(hjjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgaubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjlamodnameN classnameNj\j_)}jb]je)}jXjasb c.folio_shiftasbuh1hhj-aubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-aubj2 )}(hj5 h]h*}(hjahhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj-aubh)}(hfolioh]hfolio}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-aubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)aubah}(h]h ]h"]h$]h&]jj uh1jhj`hhhj`hMVubeh}(h]h ]h"]h$]h&]jj juh1hjjhj`hhhj`hMVubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj`hMVhj`hhubj )}(hhh]j9)}(h/The size of the memory described by this folio.h]h/The size of the memory described by this folio.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMVhjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hMVubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jaj4jaj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.hhMZhjaubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hjbh]hconst struct folio *folio}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMWhj bubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj)bhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj%bhMWhj&bubah}(h]h ]h"]h$]h&]uh1jhj bubeh}(h]h ]h"]h$]h&]uh1jhj%bhMWhjbubah}(h]h ]h"]h$]h&]uh1jhjaubj9)}(h**Description**h]jz)}(hjKbh]h Description}(hjMbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjIbubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMYhjaubj9)}(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().}(hjabhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMXhjaubj9)}(h **Context**h]jz)}(hjrbh]hContext}(hjtbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjpbubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM\hjaubj9)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM]hjaubj9)}(h **Return**h]jz)}(hjbh]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjbubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM`hjaubj9)}(h/The base-2 logarithm of the size of this folio.h]h/The base-2 logarithm of the size of this folio.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM_hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_size (C function) c.folio_sizehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h-size_t folio_size (const struct folio *folio)h]h)}(h,size_t folio_size(const struct folio *folio)h](h)}(hhh]h)}(hsize_th]hsize_t}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbmodnameN classnameNj\j_)}jb]je)}jX folio_sizesb c.folio_sizeasbuh1hhjbhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMgubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjchMgubh)}(h folio_sizeh]h)}(hjbh]h folio_size}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ](jjeh"]h$]h&]jj uh1hhjbhhhjchMgubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hj0chhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj,cubj)}(h h]h }(hj=chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,cubj!)}(hj$h]hstruct}(hjKchhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj,cubj)}(h h]h }(hjXchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,cubh)}(hhh]h)}(hfolioh]hfolio}(hjichhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfcubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjkcmodnameN classnameNj\j_)}jb]jb c.folio_sizeasbuh1hhj,cubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,cubj2 )}(hj5 h]h*}(hjchhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj,cubh)}(hfolioh]hfolio}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,cubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj(cubah}(h]h ]h"]h$]h&]jj uh1jhjbhhhjchMgubeh}(h]h ]h"]h$]h&]jj juh1hjjhjbhhhjchMgubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjchMghjbhhubj )}(hhh]j9)}(hThe number of bytes in a folio.h]hThe number of bytes in a folio.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMghjchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjchMgubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jcj4jcj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjch]h Parameters}(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.hhMkhjcubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hj dh]hconst struct folio *folio}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj dubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhhjdubj)}(hhh]j9)}(h The folio.h]h The folio.}(hj&dhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"dhMhhj#dubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhj"dhMhhjdubah}(h]h ]h"]h$]h&]uh1jhjcubj9)}(h **Context**h]jz)}(hjHdh]hContext}(hjJdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFdubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMjhjcubj9)}(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^dhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMjhjcubj9)}(h **Return**h]jz)}(hjodh]hReturn}(hjqdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjmdubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMmhjcubj9)}(h"The number of bytes in this folio.h]h"The number of bytes in this folio.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMlhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&folio_maybe_mapped_shared (C function)c.folio_maybe_mapped_sharedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h4bool folio_maybe_mapped_shared (struct folio *folio)h]h)}(h3bool folio_maybe_mapped_shared(struct folio *folio)h](j)}(hj*h]hbool}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMtubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhMtubh)}(hfolio_maybe_mapped_sharedh]h)}(hfolio_maybe_mapped_sharedh]hfolio_maybe_mapped_shared}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ](jjeh"]h$]h&]jj uh1hhjdhhhjdhMtubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](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)}(hfolioh]hfolio}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj eubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjemodnameN classnameNj\j_)}jb]je)}jXjdsbc.folio_maybe_mapped_sharedasbuh1hhjdubj)}(h h]h }(hj.ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2 )}(hj5 h]h*}(hj ah"]h$]h&]uh1j1 hjdubh)}(hfolioh]hfolio}(hjIehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubah}(h]h ]h"]h$]h&]jj uh1jhjdhhhjdhMtubeh}(h]h ]h"]h$]h&]jj juh1hjjhjdhhhjdhMtubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjdhMthjdhhubj )}(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}(hjsehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMthjpehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhMtubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jej4jej5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjeh]h Parameters}(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.hhMxhjeubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjeh]hstruct folio *folio}(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.hhMvhjeubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehMvhjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehMvhjeubah}(h]h ]h"]h$]h&]uh1jhjeubj9)}(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.hhMxhjeubj9)}(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”).}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMwhjeubj9)}(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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM{hjeubj9)}(hXFor small anonymous folios and anonymous hugetlb folios, the return value will be exactly correct: non-KSM folios can only be mapped at most once into an MM, and they cannot be partially mapped. KSM folios are considered shared even if mapped multiple times into the same MM.h]hXFor small anonymous folios and anonymous hugetlb folios, the return value will be exactly correct: non-KSM folios can only be mapped at most once into an MM, and they cannot be partially mapped. KSM folios are considered shared even if mapped multiple times into the same MM.}(hj#fhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjeubj)}(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:}(hj9fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj5fubj)}(hhh]jr,)}(hhh](jw,)}(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.}(hjRfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjNfubah}(h]h ]h"]h$]h&]uh1jv,hjKfubjw,)}(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.}(hjkfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjgfubah}(h]h ]h"]h$]h&]uh1jv,hjKfubeh}(h]h ]h"]h$]h&]j,j,j,hj,j,uh1jq,hjHfubah}(h]h ]h"]h$]h&]uh1jhj5fubeh}(h]h ]h"]h$]h&]uh1jhjGfhMhj2fubah}(h]h ]h"]h$]h&]uh1jhjeubj9)}(hoFurther, this function only considers current page table mappings that are tracked using the folio mapcount(s).h]hoFurther, this function only considers current page table mappings that are tracked using the folio mapcount(s).}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjeubj)}(hhh]j)}(hX-This function does not consider: #. If the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration). #. If the folio is mapped differently (VM_PFNMAP). #. If hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared(). h](j)}(h This function does not consider:h]h This function does not consider:}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjfubj)}(hhh]jr,)}(hhh](jw,)}(hsIf the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration).h]j9)}(hsIf the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration).h]hsIf the folio might get mapped in the (near) future (e.g., swapcache, pagecache, temporary unmapping for migration).}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjfubah}(h]h ]h"]h$]h&]uh1jv,hjfubjw,)}(h/If the folio is mapped differently (VM_PFNMAP).h]j9)}(hjfh]h/If the folio is mapped differently (VM_PFNMAP).}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjfubah}(h]h ]h"]h$]h&]uh1jv,hjfubjw,)}(hYIf hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared(). h]j9)}(hXIf hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared().h]hXIf hugetlb page table sharing applies. Callers might want to check hugetlb_pmd_shared().}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjfubah}(h]h ]h"]h$]h&]uh1jv,hjfubeh}(h]h ]h"]h$]h&]j,j,j,hj,j,uh1jq,hjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjeubj9)}(h **Return**h]jz)}(hj'gh]hReturn}(hj)ghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%gubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjeubj9)}(hBWhether the folio is estimated to be mapped into more than one MM.h]hBWhether the folio is estimated to be mapped into more than one MM.}(hj=ghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%folio_expected_ref_count (C function)c.folio_expected_ref_counthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h8int folio_expected_ref_count (const struct folio *folio)h]h)}(h7int folio_expected_ref_count(const struct folio *folio)h](j)}(hinth]hint}(hjlghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhghhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hj{ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhghhhjzghMubh)}(hfolio_expected_ref_counth]h)}(hfolio_expected_ref_counth]hfolio_expected_ref_count}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhghhhjzghMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjghhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj!)}(hj$h]hstruct}(hjghhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]h)}(hfolioh]hfolio}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjgmodnameN classnameNj\j_)}jb]je)}jXjgsbc.folio_expected_ref_countasbuh1hhjgubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2 )}(hj5 h]h*}(hjhhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjgubh)}(hfolioh]hfolio}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjgubah}(h]h ]h"]h$]h&]jj uh1jhjhghhhjzghMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjdghhhjzghMubah}(h]j_gah ](jjeh"]h$]h&]jj)jhuh1hhjzghMhjaghhubj )}(hhh]j9)}(h%calculate the expected folio refcounth]h%calculate the expected folio refcount}(hjGhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjDhhhubah}(h]h ]h"]h$]h&]uh1jhjaghhhjzghMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j_hj4j_hj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjihh]h Parameters}(hjkhhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjghubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjchubj)}(hhh]j)}(h(``const struct folio *folio`` the folio h](j)}(h``const struct folio *folio``h]j?)}(hjhh]hconst struct folio *folio}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjhubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjhubj)}(hhh]j9)}(h the folioh]h the folio}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjchubj9)}(h**Description**h]jz)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjchubj9)}(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).}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjchubj9)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjchubj9)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjchubj9)}(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()).}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjchubj9)}(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.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjchubj9)}(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$ihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjchubj9)}(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.}(hj3ihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjchubj9)}(h$Returns the expected folio refcount.h]h$Returns the expected folio refcount.}(hjBihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhjchubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌptdesc_address (C function)c.ptdesc_addresshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h/void * ptdesc_address (const struct ptdesc *pt)h]h)}(h-void *ptdesc_address(const struct ptdesc *pt)h](j)}(hvoidh]hvoid}(hjqihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmihhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmihhhjihM ubj2 )}(hj5 h]h*}(hjihhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjmihhhjihM ubh)}(hptdesc_addressh]h)}(hptdesc_addressh]hptdesc_address}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ](jjeh"]h$]h&]jj uh1hhjmihhhjihM ubj)}(h(const struct ptdesc *pt)h]j)}(hconst struct ptdesc *pth](j!)}(hjh]hconst}(hjihhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj!)}(hj$h]hstruct}(hjihhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]h)}(hptdesch]hptdesc}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjimodnameN classnameNj\j_)}jb]je)}jXjisbc.ptdesc_addressasbuh1hhjiubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj2 )}(hj5 h]h*}(hj"jhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjiubh)}(hpth]hpt}(hj/jhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjiubah}(h]h ]h"]h$]h&]jj uh1jhjmihhhjihM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjiihhhjihM ubah}(h]jdiah ](jjeh"]h$]h&]jj)jhuh1hhjihM hjfihhubj )}(hhh]j9)}(hVirtual address of page table.h]hVirtual address of page table.}(hjYjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjVjhhubah}(h]h ]h"]h$]h&]uh1jhjfihhhjihM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jqjj4jqjj5j6j7uh1hhhhjǒhNhNubjp)}(h**Parameters** ``const struct ptdesc *pt`` Page table descriptor. **Return** The first byte of the page table described by **pt**.h](j9)}(h**Parameters**h]jz)}(hj{jh]h Parameters}(hj}jhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjujubj)}(hhh]j)}(h3``const struct ptdesc *pt`` Page table descriptor. h](j)}(h``const struct ptdesc *pt``h]j?)}(hjjh]hconst struct ptdesc *pt}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjjubj)}(hhh]j9)}(hPage table descriptor.h]hPage table descriptor.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhM hjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhM hjjubah}(h]h ]h"]h$]h&]uh1jhjujubj9)}(h **Return**h]jz)}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjjubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjujubj9)}(h5The first byte of the page table described by **pt**.h](h.The first byte of the page table described by }(hjjhhhNhNubjz)}(h**pt**h]hpt}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjjubh.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjujubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpagetable_alloc (C function)c.pagetable_allochNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h?struct ptdesc * pagetable_alloc (gfp_t gfp, unsigned int order)h]h)}(h=struct ptdesc *pagetable_alloc(gfp_t gfp, unsigned int order)h](j!)}(hj$h]hstruct}(hj,khhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj(khhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hj:khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(khhhj9khM ubh)}(hhh]h)}(hptdesch]hptdesc}(hjKkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHkubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjMkmodnameN classnameNj\j_)}jb]je)}jXpagetable_allocsbc.pagetable_allocasbuh1hhj(khhhj9khM ubj)}(h h]h }(hjlkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(khhhj9khM ubj2 )}(hj5 h]h*}(hjzkhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj(khhhj9khM ubh)}(hpagetable_alloch]h)}(hjikh]hpagetable_alloc}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubah}(h]h ](jjeh"]h$]h&]jj uh1hhj(khhhj9khM ubj)}(h(gfp_t gfp, unsigned int order)h](j)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjkmodnameN classnameNj\j_)}jb]jgkc.pagetable_allocasbuh1hhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hgfph]hgfp}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjkubj)}(hunsigned int orderh](j)}(hunsignedh]hunsigned}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hinth]hint}(hj lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(horderh]horder}(hj&lhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjkubeh}(h]h ]h"]h$]h&]jj uh1jhj(khhhj9khM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj$khhhj9khM ubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhj9khM hj!khhubj )}(hhh]j9)}(hAllocate pagetablesh]hAllocate pagetables}(hjPlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjMlhhubah}(h]h ]h"]h$]h&]uh1jhj!khhhj9khM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jhlj4jhlj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjrlh]h Parameters}(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.hhM hjllubj)}(hhh](j)}(h``gfp_t gfp`` GFP flags h](j)}(h ``gfp_t gfp``h]j?)}(hjlh]h gfp_t gfp}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjlubj)}(hhh]j9)}(h GFP flagsh]h GFP flags}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjlhM hjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhM hjlubj)}(h/``unsigned int order`` desired pagetable order h](j)}(h``unsigned int order``h]j?)}(hjlh]hunsigned int order}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjlubj)}(hhh]j9)}(hdesired pagetable orderh]hdesired pagetable order}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjlhM hjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhM hjlubeh}(h]h ]h"]h$]h&]uh1jhjllubj9)}(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.hhM hjllubj9)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjllubj9)}(h **Return**h]jz)}(hj,mh]hReturn}(hj.mhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj*mubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjllubj9)}(h0The ptdesc describing the allocated page tables.h]h0The ptdesc describing the allocated page tables.}(hjBmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjllubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpagetable_free (C function)c.pagetable_freehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h'void pagetable_free (struct ptdesc *pt)h]h)}(h&void pagetable_free(struct ptdesc *pt)h](j)}(hvoidh]hvoid}(hjqmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmmhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmmhhhjmhM ubh)}(hpagetable_freeh]h)}(hpagetable_freeh]hpagetable_free}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubah}(h]h ](jjeh"]h$]h&]jj uh1hhjmmhhhjmhM ubj)}(h(struct ptdesc *pt)h]j)}(hstruct ptdesc *pth](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)}(hptdesch]hptdesc}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmmodnameN classnameNj\j_)}jb]je)}jXjmsbc.pagetable_freeasbuh1hhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2 )}(hj5 h]h*}(hjmhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjmubh)}(hpth]hpt}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubah}(h]h ]h"]h$]h&]jj uh1jhjmmhhhjmhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjimhhhjmhM ubah}(h]jdmah ](jjeh"]h$]h&]jj)jhuh1hhjmhM hjfmhhubj )}(hhh]j9)}(hFree pagetablesh]hFree pagetables}(hj1nhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj.nhhubah}(h]h ]h"]h$]h&]uh1jhjfmhhhjmhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jInj4jInj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjSnh]h Parameters}(hjUnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQnubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjMnubj)}(hhh]j)}(h0``struct ptdesc *pt`` The page table descriptor h](j)}(h``struct ptdesc *pt``h]j?)}(hjrnh]hstruct ptdesc *pt}(hjtnhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjpnubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjlnubj)}(hhh]j9)}(hThe page table descriptorh]hThe page table descriptor}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnhM hjnubah}(h]h ]h"]h$]h&]uh1jhjlnubeh}(h]h ]h"]h$]h&]uh1jhjnhM hjinubah}(h]h ]h"]h$]h&]uh1jhjMnubj9)}(h**Description**h]jz)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjMnubj9)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjMnubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvma_lookup (C function) c.vma_lookuphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hMstruct vm_area_struct * vma_lookup (struct mm_struct *mm, unsigned long addr)h]h)}(hKstruct vm_area_struct *vma_lookup(struct mm_struct *mm, unsigned long addr)h](j!)}(hj$h]hstruct}(hjnhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjnhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhM ubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjomodnameN classnameNj\j_)}jb]je)}jX vma_lookupsb c.vma_lookupasbuh1hhjnhhhjnhM ubj)}(h h]h }(hj2ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhhjnhM ubj2 )}(hj5 h]h*}(hj@ohhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjnhhhjnhM ubh)}(h vma_lookuph]h)}(hj/oh]h vma_lookup}(hjQohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMoubah}(h]h ](jjeh"]h$]h&]jj uh1hhjnhhhjnhM ubj)}(h*(struct mm_struct *mm, unsigned long addr)h](j)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hjlohhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhoubj)}(h h]h }(hjyohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhoubh)}(hhh]h)}(h mm_structh]h mm_struct}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjomodnameN classnameNj\j_)}jb]j-o c.vma_lookupasbuh1hhjhoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhoubj2 )}(hj5 h]h*}(hjohhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhoubh)}(hmmh]hmm}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhoubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdoubj)}(hunsigned long addrh](j)}(hunsignedh]hunsigned}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hlongh]hlong}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(haddrh]haddr}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdoubeh}(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 Find a VMA at a specific addressh]h Find a VMA at a specific address}(hj>phhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj;phhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jVpj4jVpj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj`ph]h Parameters}(hjbphhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj^pubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjZpubj)}(hhh](j)}(h4``struct mm_struct *mm`` The process address space. h](j)}(h``struct mm_struct *mm``h]j?)}(hjph]hstruct mm_struct *mm}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj}pubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjypubj)}(hhh]j9)}(hThe process address space.h]hThe process address space.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphM hjpubah}(h]h ]h"]h$]h&]uh1jhjypubeh}(h]h ]h"]h$]h&]uh1jhjphM hjvpubj)}(h)``unsigned long addr`` The user address. h](j)}(h``unsigned long addr``h]j?)}(hjph]hunsigned long addr}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjpubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjpubj)}(hhh]j9)}(hThe user address.h]hThe user address.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphM hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphM hjvpubeh}(h]h ]h"]h$]h&]uh1jhjZpubj9)}(h **Return**h]jz)}(hjph]hReturn}(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.hhM hjZpubj9)}(hhj qubh otherwise.}(hj qhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hjZpubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ vma_is_special_huge (C function)c.vma_is_special_hugehNtauh1hhjǒhhhNhNubh)}(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}(hjJqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFqhhhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMubj)}(h h]h }(hjXqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFqhhhjWqhMubh)}(hvma_is_special_hugeh]h)}(hvma_is_special_hugeh]hvma_is_special_huge}(hjjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfqubah}(h]h ](jjeh"]h$]h&]jj uh1hhjFqhhhjWqhMubj)}(h"(const struct vm_area_struct *vma)h]j)}(h const struct vm_area_struct *vmah](j!)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj!)}(hj$h]hstruct}(hjqhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjqmodnameN classnameNj\j_)}jb]je)}jXjlqsbc.vma_is_special_hugeasbuh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2 )}(hj5 h]h*}(hjqhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjqubh)}(hvmah]hvma}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~qubah}(h]h ]h"]h$]h&]jj uh1jhjFqhhhjWqhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjBqhhhjWqhMubah}(h]j=qah ](jjeh"]h$]h&]jj)jhuh1hhjWqhMhj?qhhubj )}(hhh]j9)}(h4Are transhuge page-table entries considered special?h]h4Are transhuge page-table entries considered special?}(hj$rhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj!rhhubah}(h]h ]h"]h$]h&]uh1jhj?qhhhjWqhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jhjcrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhMhj_rubj)}(hhh]j9)}(h0Pointer to the struct vm_area_struct to considerh]h0Pointer to the struct vm_area_struct to consider}(hj~rhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjzrhMhj{rubah}(h]h ]h"]h$]h&]uh1jhj_rubeh}(h]h ]h"]h$]h&]uh1jhjzrhMhj\rubah}(h]h ]h"]h$]h&]uh1jhj@rubj9)}(h**Description**h]jz)}(hjrh]h Description}(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.hhM!hj@rubj9)}(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().}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM hj@rubj9)}(h **Return**h]jz)}(hjrh]hReturn}(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.hhM#hj@rubj9)}(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.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hS/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:106: ./include/linux/mm.hhM$hj@rubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_ref_count (C function)c.folio_ref_counthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h/int folio_ref_count (const struct folio *folio)h]h)}(h.int folio_ref_count(const struct folio *folio)h](j)}(hinth]hint}(hj shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKGubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjshKGubh)}(hfolio_ref_counth]h)}(hfolio_ref_counth]hfolio_ref_count}(hj-shhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)subah}(h]h ](jjeh"]h$]h&]jj uh1hhjshhhjshKGubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjIshhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjEsubj)}(h h]h }(hjVshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEsubj!)}(hj$h]hstruct}(hjdshhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjEsubj)}(h h]h }(hjqshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEsubh)}(hhh]h)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjsmodnameN classnameNj\j_)}jb]je)}jXj/ssbc.folio_ref_countasbuh1hhjEsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEsubj2 )}(hj5 h]h*}(hjshhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjEsubh)}(hfolioh]hfolio}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEsubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAsubah}(h]h ]h"]h$]h&]jj uh1jhjshhhjshKGubeh}(h]h ]h"]h$]h&]jj juh1hjjhjshhhjshKGubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjshKGhjshhubj )}(hhh]j9)}(h"The reference count on this folio.h]h"The reference count on this folio.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKGhjshhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshKGubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jsj4jsj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj th]h Parameters}(hj thhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKKhjtubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hj(th]hconst struct folio *folio}(hj*thhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj&tubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKHhj"tubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjAthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj=thKHhj>tubah}(h]h ]h"]h$]h&]uh1jhj"tubeh}(h]h ]h"]h$]h&]uh1jhj=thKHhjtubah}(h]h ]h"]h$]h&]uh1jhjtubj9)}(h**Description**h]jz)}(hjcth]h Description}(hjethhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjatubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKJhjtubj9)}(hThe refcount is usually incremented by calls to folio_get() and decremented by calls to folio_put(). Some typical users of the folio refcount:h]hThe refcount is usually incremented by calls to folio_get() and decremented by calls to folio_put(). Some typical users of the folio refcount:}(hjythhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKIhjtubj)}(hhh](jw,)}(h Each reference from a page tableh]j9)}(hjth]h Each reference from a page table}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKMhjtubah}(h]h ]h"]h$]h&]uh1jv,hjtubjw,)}(hThe page cacheh]j9)}(hjth]hThe page cache}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKNhjtubah}(h]h ]h"]h$]h&]uh1jv,hjtubjw,)}(hFilesystem private datah]j9)}(hjth]hFilesystem private data}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKOhjtubah}(h]h ]h"]h$]h&]uh1jv,hjtubjw,)}(h The LRU listh]j9)}(hjth]h The LRU list}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKPhjtubah}(h]h ]h"]h$]h&]uh1jv,hjtubjw,)}(hPipesh]j9)}(hjth]hPipes}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKQhjtubah}(h]h ]h"]h$]h&]uh1jv,hjtubjw,)}(hBDirect IO which references this page in the process address space h]j9)}(hADirect IO which references this page in the process address spaceh]hADirect IO which references this page in the process address space}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKRhjuubah}(h]h ]h"]h$]h&]uh1jv,hjtubeh}(h]h ]h"]h$]h&]jŰjưuh1jhjthKMhjtubj9)}(h **Return**h]jz)}(hj$uh]hReturn}(hj&uhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"uubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKThjtubj9)}(h'The number of references to this folio.h]h'The number of references to this folio.}(hj:uhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKUhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_try_get (C function)c.folio_try_gethNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h(bool folio_try_get (struct folio *folio)h]h)}(h'bool folio_try_get(struct folio *folio)h](j)}(hj*h]hbool}(hjiuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeuhhhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKubj)}(h h]h }(hjwuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeuhhhjvuhKubh)}(h folio_try_geth]h)}(h folio_try_geth]h folio_try_get}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ](jjeh"]h$]h&]jj uh1hhjeuhhhjvuhKubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjuhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hhh]h)}(hfolioh]hfolio}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjumodnameN classnameNj\j_)}jb]je)}jXjusbc.folio_try_getasbuh1hhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2 )}(hj5 h]h*}(hjuhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjuubh)}(hfolioh]hfolio}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjuubah}(h]h ]h"]h$]h&]jj uh1jhjeuhhhjvuhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjauhhhjvuhKubah}(h]j\uah ](jjeh"]h$]h&]jj)jhuh1hhjvuhKhj^uhhubj )}(hhh]j9)}(h,Attempt to increase the refcount on a folio.h]h,Attempt to increase the refcount on a folio.}(hj(vhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhj%vhhubah}(h]h ]h"]h$]h&]uh1jhj^uhhhjvuhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j@vj4j@vj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjJvh]h Parameters}(hjLvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjHvubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhMhjDvubj)}(hhh]j)}(h#``struct folio *folio`` The folio. h](j)}(h``struct folio *folio``h]j?)}(hjivh]hstruct folio *folio}(hjkvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjcvubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj~vhKhjvubah}(h]h ]h"]h$]h&]uh1jhjcvubeh}(h]h ]h"]h$]h&]uh1jhj~vhKhj`vubah}(h]h ]h"]h$]h&]uh1jhjDvubj9)}(h**Description**h]jz)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjDvubj9)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhKhjDvubj9)}(h **Return**h]jz)}(hjvh]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjvubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhMhjDvubj9)}(h9True if the reference count was successfully incremented.h]h9True if the reference count was successfully incremented.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hY/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:108: ./include/linux/page_ref.hhMhjDvubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌis_highmem (C function) c.is_highmemhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h(int is_highmem (const struct zone *zone)h]h)}(h'int is_highmem(const struct zone *zone)h](j)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj whhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMlubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj whhhjwhMlubh)}(h is_highmemh]h)}(h is_highmemh]h is_highmem}(hj1whhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-wubah}(h]h ](jjeh"]h$]h&]jj uh1hhj whhhjwhMlubj)}(h(const struct zone *zone)h]j)}(hconst struct zone *zoneh](j!)}(hjh]hconst}(hjMwhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjIwubj)}(h h]h }(hjZwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIwubj!)}(hj$h]hstruct}(hjhwhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjIwubj)}(h h]h }(hjuwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIwubh)}(hhh]h)}(hzoneh]hzone}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjwmodnameN classnameNj\j_)}jb]je)}jXj3wsb c.is_highmemasbuh1hhjIwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIwubj2 )}(hj5 h]h*}(hjwhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjIwubh)}(hzoneh]hzone}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIwubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjEwubah}(h]h ]h"]h$]h&]jj uh1jhj whhhjwhMlubeh}(h]h ]h"]h$]h&]jj juh1hjjhjwhhhjwhMlubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjwhMlhjwhhubj )}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMlhjwhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhMlubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jxj4jxj5j6j7uh1hhhhjǒhNhNubjp)}(h|**Parameters** ``const struct zone *zone`` pointer to struct zone variable **Return** 1 for a highmem zone, 0 otherwiseh](j9)}(h**Parameters**h]jz)}(hj xh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj xubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMphjxubj)}(hhh]j)}(h<``const struct zone *zone`` pointer to struct zone variable h](j)}(h``const struct zone *zone``h]j?)}(hj,xh]hconst struct zone *zone}(hj.xhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj*xubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMohj&xubj)}(hhh]j9)}(hpointer to struct zone variableh]hpointer to struct zone variable}(hjExhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjAxhMohjBxubah}(h]h ]h"]h$]h&]uh1jhj&xubeh}(h]h ]h"]h$]h&]uh1jhjAxhMohj#xubah}(h]h ]h"]h$]h&]uh1jhjxubj9)}(h **Return**h]jz)}(hjgxh]hReturn}(hjixhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjexubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMqhjxubj9)}(h!1 for a highmem zone, 0 otherwiseh]h!1 for a highmem zone, 0 otherwise}(hj}xhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMphjxubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfor_each_online_pgdat (C macro)c.for_each_online_pgdathNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hfor_each_online_pgdath]h)}(hfor_each_online_pgdath]h)}(hfor_each_online_pgdath]h)}(hjxh]hfor_each_online_pgdat}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubah}(h]h ](jjeh"]h$]h&]jj uh1hhjxhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubah}(h]h ]h"]h$]h&]jj juh1hjjhjxhhhjxhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjxhMhjxhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jxj4jxj5j6j7uh1hhhhjǒhNhNubj9)}(h!``for_each_online_pgdat (pgdat)``h]j?)}(hjxh]hfor_each_online_pgdat (pgdat)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjǒhhubjU)}(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}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjxubah}(h]h ]h"]h$]h&]uh1jThj yhMhjǒhhubjp)}(h;**Parameters** ``pgdat`` pointer to a pg_data_t variableh](j9)}(h**Parameters**h]jz)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjyubj)}(hhh]j)}(h)``pgdat`` pointer to a pg_data_t variableh](j)}(h ``pgdat``h]j?)}(hj6yh]hpgdat}(hj8yhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4yubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj0yubj)}(hhh]j9)}(hpointer to a pg_data_t variableh]hpointer to a pg_data_t variable}(hjOyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjLyubah}(h]h ]h"]h$]h&]uh1jhj0yubeh}(h]h ]h"]h$]h&]uh1jhjKyhMhj-yubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfor_each_zone (C macro)c.for_each_zonehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h for_each_zoneh]h)}(h for_each_zoneh]h)}(h for_each_zoneh]h)}(hjyh]h for_each_zone}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ](jjeh"]h$]h&]jj uh1hhjyhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubah}(h]h ]h"]h$]h&]jj juh1hjjhjyhhhjyhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhjyhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjyhhhjyhMubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jyj4jyj5j6j7uh1hhhhjǒhNhNubj9)}(h``for_each_zone (zone)``h]j?)}(hjyh]hfor_each_zone (zone)}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjǒhhubjU)}(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}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjyubah}(h]h ]h"]h$]h&]uh1jThjyhMhjǒhhubjp)}(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)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjyubj)}(hhh]j)}(h)``zone`` pointer to struct zone variable h](j)}(h``zone``h]j?)}(hjzh]hzone}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjzubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjzubj)}(hhh]j9)}(hpointer to struct zone variableh]hpointer to struct zone variable}(hj3zhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj/zhMhj0zubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj/zhMhjzubah}(h]h ]h"]h$]h&]uh1jhjyubj9)}(h**Description**h]jz)}(hjUzh]h Description}(hjWzhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjSzubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjyubj9)}(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.}(hjkzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ next_zones_zonelist (C function)c.next_zones_zonelisthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hkstruct zoneref * next_zones_zonelist (struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h]h)}(histruct zoneref *next_zones_zonelist(struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j!)}(hj$h]hstruct}(hjzhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjzhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhMubh)}(hhh]h)}(hzonerefh]hzoneref}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjzmodnameN classnameNj\j_)}jb]je)}jXnext_zones_zonelistsbc.next_zones_zonelistasbuh1hhjzhhhjzhMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjzhMubj2 )}(hj5 h]h*}(hjzhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjzhhhjzhMubh)}(hnext_zones_zonelisth]h)}(hjzh]hnext_zones_zonelist}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ](jjeh"]h$]h&]jj uh1hhjzhhhjzhMubj)}(hF(struct zoneref *z, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j)}(hstruct zoneref *zh](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)}(hzonerefh]hzoneref}(hj2{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4{modnameN classnameNj\j_)}jb]jzc.next_zones_zonelistasbuh1hhj{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)}(hzh]hz}(hjk{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj {ubj)}(henum zone_type highest_zoneidxh](j!)}(hjeh]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 zone_typeh]h zone_type}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{modnameN classnameNj\j_)}jb]jzc.next_zones_zonelistasbuh1hhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhighest_zoneidxh]hhighest_zoneidx}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj {ubj)}(hnodemask_t *nodesh](h)}(hhh]h)}(h nodemask_th]h nodemask_t}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{modnameN classnameNj\j_)}jb]jzc.next_zones_zonelistasbuh1hhj{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)}(hnodesh]hnodes}(hj#|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{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)}(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}(hjM|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjJ|hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3je|j4je|j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjo|h]h Parameters}(hjq|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjm|ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhji|ubj)}(hhh](j)}(hI``struct zoneref *z`` The cursor used as a starting point for the search h](j)}(h``struct zoneref *z``h]j?)}(hj|h]hstruct zoneref *z}(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:109: ./include/linux/mmzone.hhMhj|ubj)}(hhh]j9)}(h2The cursor used as a starting point for the searchh]h2The cursor used as a starting point for the search}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj|ubj)}(hP``enum zone_type highest_zoneidx`` The zone index of the highest zone to return h](j)}(h"``enum zone_type highest_zoneidx``h]j?)}(hj|h]henum zone_type highest_zoneidx}(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:109: ./include/linux/mmzone.hhMhj|ubj)}(hhh]j9)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj|ubj)}(hG``nodemask_t *nodes`` An optional nodemask to filter the zonelist with h](j)}(h``nodemask_t *nodes``h]j?)}(hj}h]hnodemask_t *nodes}(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:109: ./include/linux/mmzone.hhMhj|ubj)}(hhh]j9)}(h0An optional nodemask to filter the zonelist withh]h0An optional nodemask to filter the zonelist with}(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&]uh1jhji|ubj9)}(h**Description**h]jz)}(hj;}h]h Description}(hj=}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj9}ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhji|ubj9)}(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.}(hjQ}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhji|ubj9)}(h **Return**h]jz)}(hjb}h]hReturn}(hjd}hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj`}ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhji|ubj9)}(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}(hjx}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhji|ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!first_zones_zonelist (C function)c.first_zones_zonelisthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(htstruct zoneref * first_zones_zonelist (struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h]h)}(hrstruct zoneref *first_zones_zonelist(struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h](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:109: ./include/linux/mmzone.hhMubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}hhhj}hMubh)}(hhh]h)}(hzonerefh]hzoneref}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj}modnameN classnameNj\j_)}jb]je)}jXfirst_zones_zonelistsbc.first_zones_zonelistasbuh1hhj}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)}(hfirst_zones_zonelisth]h)}(hj}h]hfirst_zones_zonelist}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj}hhhj}hMubj)}(hN(struct zonelist *zonelist, enum zone_type highest_zoneidx, nodemask_t *nodes)h](j)}(hstruct zonelist *zonelisth](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)}(hzonelisth]hzonelist}(hj?~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<~ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjA~modnameN classnameNj\j_)}jb]j}c.first_zones_zonelistasbuh1hhj~ubj)}(h h]h }(hj]~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj2 )}(hj5 h]h*}(hjk~hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj~ubh)}(hzonelisth]hzonelist}(hjx~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~ubj)}(henum zone_type highest_zoneidxh](j!)}(hjeh]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 zone_typeh]h zone_type}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]j}c.first_zones_zonelistasbuh1hhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhighest_zoneidxh]hhighest_zoneidx}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj~ubj)}(hnodemask_t *nodesh](h)}(hhh]h)}(h nodemask_th]h nodemask_t}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]j}c.first_zones_zonelistasbuh1hhj~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)}(hnodesh]hnodes}(hj0hhhNhNubah}(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\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}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjWhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jrj4jrj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjzubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjvubj)}(hhh](j)}(hI``struct zonelist *zonelist`` The zonelist to search for a suitable zone h](j)}(h``struct zonelist *zonelist``h]j?)}(hjh]hstruct zonelist *zonelist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j9)}(h*The zonelist to search for a suitable zoneh]h*The zonelist to search for a suitable zone}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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?)}(hjh]henum zone_type highest_zoneidx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j9)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hG``nodemask_t *nodes`` An optional nodemask to filter the zonelist with h](j)}(h``nodemask_t *nodes``h]j?)}(hj h]hnodemask_t *nodes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j9)}(h0An optional nodemask to filter the zonelist withh]h0An optional nodemask to filter the zonelist with}(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&]uh1jhjvubj9)}(h**Description**h]jz)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjvubj9)}(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^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjvubj9)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjvubj9)}(h **Return**h]jz)}(hj~h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjvubj9)}(h1Zoneref pointer for the first suitable zone foundh]h1Zoneref pointer for the first suitable zone found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)for_each_zone_zonelist_nodemask (C macro)!c.for_each_zone_zonelist_nodemaskhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hfor_each_zone_zonelist_nodemaskh]h)}(hfor_each_zone_zonelist_nodemaskh]h)}(hfor_each_zone_zonelist_nodemaskh]h)}(hjh]hfor_each_zone_zonelist_nodemask}(hjǀhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjÀubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMubah}(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-macroeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubj9)}(hG``for_each_zone_zonelist_nodemask (zone, z, zlist, highidx, nodemask)``h]j?)}(hjh]hCfor_each_zone_zonelist_nodemask (zone, z, zlist, highidx, nodemask)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjǒhhubjU)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubah}(h]h ]h"]h$]h&]uh1jThj!hMhjǒhhubjp)}(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)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,ubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj(ubj)}(hhh](j)}(h*``zone`` The current zone in the iterator h](j)}(h``zone``h]j?)}(hjMh]hzone}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjGubj)}(hhh]j9)}(h The current zone in the iteratorh]h The current zone in the iterator}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubj)}(hD``z`` The current pointer within zonelist->_zonerefs being iterated h](j)}(h``z``h]j?)}(hjh]hz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j9)}(h=The current pointer within zonelist->_zonerefs being iteratedh]h=The current pointer within zonelist->_zonerefs being iterated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubj)}(h&``zlist`` The zonelist being iterated h](j)}(h ``zlist``h]j?)}(hjh]hzlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j9)}(hThe zonelist being iteratedh]hThe zonelist being iterated}(hj؁hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjԁhMhjՁubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԁhMhjDubj)}(h9``highidx`` The zone index of the highest zone to return h](j)}(h ``highidx``h]j?)}(hjh]hhighidx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j9)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjDubj)}(h/``nodemask`` Nodemask allowed by the allocator h](j)}(h ``nodemask``h]j?)}(hj1h]hnodemask}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj+ubj)}(hhh]j9)}(h!Nodemask allowed by the allocatorh]h!Nodemask allowed by the allocator}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubj9)}(h**Description**h]jz)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjjubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj(ubj9)}(hbThis iterator iterates though all zones at or below a given zone index and within a given nodemaskh]hbThis iterator iterates though all zones at or below a given zone index and within a given nodemask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ for_each_zone_zonelist (C macro)c.for_each_zone_zonelisthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hfor_each_zone_zonelisth]h)}(hfor_each_zone_zonelisth]h)}(hfor_each_zone_zonelisth]h)}(hjh]hfor_each_zone_zonelist}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM ubah}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjȂhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjȂhM hjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjȂhM ubeh}(h]h ](j-macroeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubj9)}(h4``for_each_zone_zonelist (zone, z, zlist, highidx)``h]j?)}(hjh]h0for_each_zone_zonelist (zone, z, zlist, highidx)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjǒhhubjU)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM hjubah}(h]h ]h"]h$]h&]uh1jThjhM hjǒhhubjp)}(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)}(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:109: ./include/linux/mmzone.hhMhjubj)}(hhh](j)}(h*``zone`` The current zone in the iterator h](j)}(h``zone``h]j?)}(hj;h]hzone}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhM hj5ubj)}(hhh]j9)}(h The current zone in the iteratorh]h The current zone in the iterator}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhM hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhM hj2ubj)}(h@``z`` The current pointer within zonelist->zones being iterated h](j)}(h``z``h]j?)}(hjth]hz}(hjvhhhNhNubah}(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.hhMhjnubj)}(hhh]j9)}(h9The current pointer within zonelist->zones being iteratedh]h9The current pointer within zonelist->zones being iterated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubj)}(h&``zlist`` The zonelist being iterated h](j)}(h ``zlist``h]j?)}(hjh]hzlist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j9)}(hThe zonelist being iteratedh]hThe zonelist being iterated}(hjƃhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjƒhMhjÃubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjƒhMhj2ubj)}(h9``highidx`` The zone index of the highest zone to return h](j)}(h ``highidx``h]j?)}(hjh]hhighidx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj)}(hhh]j9)}(h,The zone index of the highest zone to returnh]h,The zone index of the highest zone to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj2ubeh}(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&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubj9)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpfn_valid (C function) c.pfn_validhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h!int pfn_valid (unsigned long pfn)h]h)}(h int pfn_valid(unsigned long pfn)h](j)}(hinth]hint}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMpubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjthMpubh)}(h pfn_validh]h)}(h pfn_validh]h pfn_valid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjbhhhjthMpubj)}(h(unsigned long pfn)h]j)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj̈́hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hpfnh]hpfn}(hjۄhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjbhhhjthMpubeh}(h]h ]h"]h$]h&]jj juh1hjjhj^hhhjthMpubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1hhjthMphj[hhubj )}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMphjhhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjthMpubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:109: ./include/linux/mmzone.hhMthj!ubj)}(hhh]j)}(h5``unsigned long pfn`` the page frame number to check h](j)}(h``unsigned long pfn``h]j?)}(hjFh]hunsigned long pfn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMqhj@ubj)}(hhh]j9)}(hthe page frame number to checkh]hthe page frame number to check}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hMqhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMqhj=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&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMshj!ubj9)}(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 }(hjhhhNhNubjz)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhl. Note, that availability of the memory map entry does not imply that there is actual usable memory at that }(hjhhhNhNubjz)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhA. The struct page may represent a hole or an unusable page frame.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMrhj!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:109: ./include/linux/mmzone.hhMwhj!ubj9)}(h71 for PFNs that have memory map entries and 0 otherwiseh]h71 for PFNs that have memory map entries and 0 otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hW/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:109: ./include/linux/mmzone.hhMxhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_mapping (C function)c.folio_mappinghNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h@struct address_space * folio_mapping (const struct folio *folio)h]h)}(h>struct address_space *folio_mapping(const struct folio *folio)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubh)}(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)}jX folio_mappingsbc.folio_mappingasbuh1hhj hhhjhMubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubj2 )}(hj5 h]h*}(hj_hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj hhhjhMubh)}(h folio_mappingh]h)}(hjNh]h folio_mapping}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhjhMubj)}(h(const struct folio *folio)h]j)}(hconst struct folio *folioh](j!)}(hjh]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)}(hfolioh]hfolio}(hjĆhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjƆmodnameN classnameNj\j_)}jb]jLc.folio_mappingasbuh1hhjubj)}(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 uh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h,Find the mapping where this folio is stored.h]h,Find the mapping where this folio is stored.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j?j4j?j5j6j7uh1hhhhjǒhNhNubjp)}(hX**Parameters** ``const struct folio *folio`` The folio. **Description** For folios which are in the page cache, return the mapping that this page belongs to. Folios in the swap cache return the swap mapping this page is stored in (which is different from the mapping for the swap file or swap device where the data is stored). You can call this for folios which aren't in the swap cache or page cache and it will return NULL.h](j9)}(h**Parameters**h]jz)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjCubj)}(hhh]j)}(h)``const struct folio *folio`` The folio. h](j)}(h``const struct folio *folio``h]j?)}(hjhh]hconst struct folio *folio}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjbubj)}(hhh]j9)}(h The folio.h]h The folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubj9)}(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:110: ./mm/util.chMhjCubj9)}(hFor folios which are in the page cache, return the mapping that this page belongs to. Folios in the swap cache return the swap mapping this page is stored in (which is different from the mapping for the swap file or swap device where the data is stored).h]hFor folios which are in the page cache, return the mapping that this page belongs to. Folios in the swap cache return the swap mapping this page is stored in (which is different from the mapping for the swap file or swap device where the data is stored).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjCubj9)}(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.}(hjȇhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:110: ./mm/util.chMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__anon_vma_prepare (C function)c.__anon_vma_preparehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h3int __anon_vma_prepare (struct vm_area_struct *vma)h]h)}(h2int __anon_vma_prepare(struct vm_area_struct *vma)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(h__anon_vma_prepareh]h)}(h__anon_vma_prepareh]h__anon_vma_prepare}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKubj)}(h(struct vm_area_struct *vma)h]j)}(hstruct vm_area_struct *vmah](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)}(hvm_area_structh]hvm_area_struct}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjTmodnameN classnameNj\j_)}jb]je)}jXjsbc.__anon_vma_prepareasbuh1hhj0ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj0ubh)}(hvmah]hvma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj,ubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(hhh]j9)}(h%attach an anon_vma to a memory regionh]h%attach an anon_vma to a memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jψj4jψj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.chKhjӈubj)}(hhh]j)}(h=``struct vm_area_struct *vma`` the memory region in question 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.chKhjubj)}(hhh]j9)}(hthe memory region in questionh]hthe memory region in question}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubah}(h]h ]h"]h$]h&]uh1jhjӈubj9)}(h**Description**h]jz)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjӈubj9)}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjӈubj9)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjӈubj9)}(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).}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjӈubj9)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chKhjӈubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ page_address_in_vma (C function)c.page_address_in_vmahNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hxunsigned long page_address_in_vma (const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h]h)}(hwunsigned long page_address_in_vma(const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h](j)}(hunsignedh]hunsigned}(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&]uh1jhjhhhjhMubj)}(hlongh]hlong}(hj‰hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h h]h }(hjЉhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpage_address_in_vmah]h)}(hpage_address_in_vmah]hpage_address_in_vma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjމubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hV(const struct folio *folio, const struct page *page, const struct vm_area_struct *vma)h](j)}(hconst struct folio *folioh](j!)}(hjh]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)}(hfolioh]hfolio}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj9modnameN classnameNj\j_)}jb]je)}jXjsbc.page_address_in_vmaasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjehhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hconst struct page *pageh](j!)}(hjh]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&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjƊmodnameN classnameNj\j_)}jb]jSc.page_address_in_vmaasbuh1hhjubj)}(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)}(h const struct vm_area_struct *vmah](j!)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj!)}(hj$h]hstruct}(hj1hhhNhNubah}(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}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjQmodnameN classnameNj\j_)}jb]jSc.page_address_in_vmaasbuh1hhjubj)}(h h]h }(hjmhhhNhNubah}(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 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*The virtual address of a page in this VMA.h]h*The virtual address of a page in this VMA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]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ʋj5j6j7uh1hhhhjǒhNhNubjp)}(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?)}(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.chMhjubj)}(hhh]j9)}(hThe folio containing the page.h]hThe folio containing the page.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(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 page within the folio.h]hThe page within the folio.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubj)}(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?)}(hjeh]h const struct vm_area_struct *vma}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjcubah}(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 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&]uh1j8hjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjubeh}(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)}(hX$Calculates the user virtual address of this page in the specified VMA. It is the caller's responsibility to check the page is actually within the VMA. There may not currently be a PTE pointing at this page, but if a page fault occurs at this address, this is the page which will be accessed.h]hX&Calculates the user virtual address of this page in the specified VMA. It is the caller’s responsibility to check the page is actually within the VMA. There may not currently be a PTE pointing at this page, but if a page fault occurs at this address, this is the page which will be accessed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj΋ubj9)}(h **Context**h]jz)}(hjnjh]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.chM hj΋ubj9)}(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.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.}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_referenced (C function)c.folio_referencedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hiint folio_referenced (struct folio *folio, int is_locked, struct mem_cgroup *memcg, vm_flags_t *vm_flags)h]h)}(hhint folio_referenced(struct folio *folio, int is_locked, struct mem_cgroup *memcg, vm_flags_t *vm_flags)h](j)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhjAhMubh)}(hfolio_referencedh]h)}(hfolio_referencedh]hfolio_referenced}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ](jjeh"]h$]h&]jj uh1hhj/hhhjAhMubj)}(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}(hjphhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(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_referencedasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjlubh)}(hfolioh]hfolio}(hjɍhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(h int is_lockedh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjލubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjލubh)}(h is_lockedh]h is_locked}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjލubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(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}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj7modnameN classnameNj\j_)}jb]jc.folio_referencedasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjahhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmemcgh]hmemcg}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(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]jc.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}(hjÎhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubeh}(h]h ]h"]h$]h&]jj uh1jhj/hhhjAhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhj(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(hhhjAhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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&]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+``struct folio *folio`` The folio to test. h](j)}(h``struct folio *folio``h]j?)}(hj.h]hstruct folio *folio}(hj0hhhNhNubah}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhj%ubj)}(h2``int is_locked`` Caller holds lock on the folio. h](j)}(h``int is_locked``h]j?)}(hjgh]h int is_locked}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjaubj)}(hhh]j9)}(hCaller holds lock on the folio.h]hCaller holds lock on the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj%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)}(h 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}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4modnameN classnameNj\j_)}jb]jc.mapping_wrprotect_rangeasbuh1hhj+ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubh)}(hpgoffh]hpgoff}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hpfnh]hpfn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubeh}(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 uh1jhj|hhhjhM~ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjxhhhjhM~ubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhM~hjuhhubj )}(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.chM~hj'hhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhM~ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jBj4jBj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjFubj)}(hhh](j)}(hY``struct address_space *mapping`` The mapping whose reverse mapping should be traversed. h](j)}(h!``struct address_space *mapping``h]j?)}(hjkh]hstruct address_space *mapping}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjeubj)}(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&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(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&]uh1jhjhMhjbubj)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(hS``unsigned long nr_pages`` The number of physically contiguous base pages spanned. 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.chMhjXubj)}(hhh]j9)}(h7The number of physically contiguous base pages spanned.h]h7The number of physically contiguous base pages spanned.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjbubeh}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjFubj9)}(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.chMhjFubj9)}(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.chMhjFubj9)}(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.chMhjFubj9)}(h0the number of write-protected PTEs, or an error.h]h0the number of write-protected PTEs, or an error.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpfn_mkclean_range (C function)c.pfn_mkclean_rangehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hlint pfn_mkclean_range (unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff, struct vm_area_struct *vma)h]h)}(hkint pfn_mkclean_range(unsigned long pfn, unsigned long nr_pages, pgoff_t pgoff, struct vm_area_struct *vma)h](j)}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjjhMubh)}(hpfn_mkclean_rangeh]h)}(hpfn_mkclean_rangeh]hpfn_mkclean_range}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ](jjeh"]h$]h&]jj uh1hhjXhhhjjhMubj)}(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}(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 uh1jhjubj)}(h pgoff_t 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]je)}jXjsbc.pfn_mkclean_rangeasbuh1hhj7ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hpgoffh]hpgoff}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubeh}(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]jZc.pfn_mkclean_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}(hjܕhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjXhhhjjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjThhhjjhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjQhhubj )}(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 [}(hjhhhNhNubjz)}(h**pfn**h]hpfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh, }(hjhhhNhNubjz)}(h**pfn**h]hpfn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh + }(hjhhhNhNubjz)}(h **nr_pages**h]hnr_pages}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh) at the specific offset (}(hjhhhNhNubjz)}(h **pgoff**h]hpgoff}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh ) within the }(hjhhhNhNubjz)}(h**vma**h]hvma}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh[ of shared mappings. And since clean PTEs should also be readonly, write protects them too.}(hjhhhNhNubeh}(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&]uh1jhjQhhhjjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jxj4jxj5j6j7uh1hhhhjǒhNhNubjp)}(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.chMhj|ubj)}(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.chMhjubj)}(hhh]j9)}(h)page offset that the **pfn** mapped with.h](hpage offset that the }(hj>hhhNhNubjz)}(h**pfn**h]hpfn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj>ubh mapped with.}(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 vm_area_struct *vma`` vma that **pfn** mapped within. 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&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjjubj)}(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&]uh1jhjjubeh}(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&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj|ubj9)}(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.chMhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!folio_move_anon_rmap (C function)c.folio_move_anon_rmaphNtauh1hhjǒhhhNhNubh)}(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.chM0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM0ubh)}(hfolio_move_anon_rmaph]h)}(hfolio_move_anon_rmaph]hfolio_move_anon_rmap}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM0ubj)}(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 }(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 reftargetj_modnameN classnameNj\j_)}jb]je)}jXj%sbc.folio_move_anon_rmapasbuh1hhj;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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7ubj)}(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]jyc.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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM0ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM0hjhhubj )}(hhh]j9)}(hmove a folio to our anon_vmah]hmove a folio to our anon_vma}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM0hj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jJj4jJj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM4hjNubj)}(hhh](j)}(h:``struct folio *folio`` The folio to move to our anon_vma 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&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM1hjmubj)}(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&]uh1j8hjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjjubj)}(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.chM2hjubj)}(hhh]j9)}(hThe vma the folio belongs toh]hThe vma the folio belongs to}(hjřhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM2hj™ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjjubeh}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM4hjNubj9)}(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.chM3hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__folio_set_anon (C function)c.__folio_set_anonhNtauh1hhjǒhhhNhNubh)}(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.chMIubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj:hMIubh)}(h__folio_set_anonh]h)}(h__folio_set_anonh]h__folio_set_anon}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ](jjeh"]h$]h&]jj uh1hhj(hhhj:hMIubj)}(hX(struct folio *folio, struct vm_area_struct *vma, unsigned long address, bool exclusive)h](j)}(hstruct folio *folioh](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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjOsbc.__folio_set_anonasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjeubh)}(hfolioh]hfolio}(hjšhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjaubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjךubj2 )}(hj5 h]h*}(hj%hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjךubh)}(hvmah]hvma}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjךubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjaubj)}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hlongh]hlong}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjaubj)}(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 uh1jhjaubeh}(h]h ]h"]h$]h&]jj uh1jhj(hhhj:hMIubeh}(h]h ]h"]h$]h&]jj juh1hjjhj$hhhj:hMIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj:hMIhj!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.chMIhjޛhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hMIubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.chMMhjubj)}(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.chMJhjubj)}(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&]uh1j8hj7hMJhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMJhjubj)}(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>hjYubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMKhjUubj)}(hhh]j9)}(hVM area to add the folio to.h]hVM area to add the folio to.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjphMKhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMKhjubj)}(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.chMLhjubj)}(hhh]j9)}(h#User virtual address of the mappingh]h#User virtual address of the mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjubj)}(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.chMNhjǜ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.chMMhjubah}(h]h ]h"]h$]h&]uh1jhjǜubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__page_check_anon_rmap (C function)c.__page_check_anon_rmaphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hvoid __page_check_anon_rmap (const struct folio *folio, const struct page *page, struct vm_area_struct *vma, unsigned long address)h]h)}(hvoid __page_check_anon_rmap(const struct folio *folio, const struct page *page, struct vm_area_struct *vma, unsigned long address)h](j)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMiubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj5hMiubh)}(h__page_check_anon_rmaph]h)}(h__page_check_anon_rmaph]h__page_check_anon_rmap}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubah}(h]h ](jjeh"]h$]h&]jj uh1hhj#hhhj5hMiubj)}(hg(const struct folio *folio, const struct page *page, struct vm_area_struct *vma, unsigned long address)h](j)}(hconst struct folio *folioh](j!)}(hjh]hconst}(hjdhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj!)}(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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjJsbc.__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)}(hfolioh]hfolio}(hj؝hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubj)}(hconst struct page *pageh](j!)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj!)}(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]jc.__page_check_anon_rmapasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj\ubj)}(hstruct vm_area_struct *vmah](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)}(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_rmapasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2 )}(hj5 h]h*}(hjƞhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjxubh)}(hvmah]hvma}(hjӞhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubeh}(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}(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 uh1jhj\ubeh}(h]h ]h"]h$]h&]jj uh1jhj#hhhj5hMiubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj5hMiubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj5hMihjhhubj )}(hhh]j9)}(h$sanity check anonymous rmap additionh]h$sanity check anonymous rmap addition}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMihjKhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMiubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jfj4jfj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMmhjjubj)}(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.chMjhjubj)}(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&]uh1j8hjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubj)}(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.chMkhjԟ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&]uh1j8hjhMkhjubah}(h]h ]h"]h$]h&]uh1jhjԟubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjubj)}(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.chMlhj ubj)}(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(hMlhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMlhjubj)}(h9``unsigned long address`` the user virtual address mappedh](j)}(h``unsigned long address``h]j?)}(hjLh]hunsigned long address}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjJubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMnhjFubj)}(hhh]j9)}(hthe user virtual address mappedh]hthe user virtual address mapped}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMmhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMnhjubeh}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%folio_add_anon_rmap_ptes (C function)c.folio_add_anon_rmap_pteshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hvoid folio_add_anon_rmap_ptes (struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h]h)}(hvoid folio_add_anon_rmap_ptes(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hvoidh]hvoid}(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 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.folio_add_anon_rmap_ptesasbuh1hhjߠ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 page *pageh](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)}(hpageh]hpage}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjumodnameN classnameNj\j_)}jb]jc.folio_add_anon_rmap_ptesasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjQubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj۠ubj)}(h int nr_pagesh](j)}(hinth]hint}(hjšhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjӡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(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 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_anon_rmap_ptesasbuh1hhjubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjDhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj۠ubj)}(hunsigned long addressh](j)}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubeh}(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 reftargetjmodnameN classnameNj\j_)}jb]jc.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,j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj0ubj)}(hhh](j)}(h9``struct folio *folio`` The folio to add the mappings to h](j)}(h``struct folio *folio``h]j?)}(hjUh]hstruct folio *folio}(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)}(h The folio to add the mappings toh]h The folio to add the mappings to}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubj)}(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&]uh1jhjhMhjLubj)}(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.chMhjubj)}(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ܣhMhjݣubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܣhMhjLubj)}(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&]uh1jhjhMhjLubj)}(hL``unsigned long address`` The user virtual address of the first page to map h](j)}(h``unsigned long address``h]j?)}(hj9h]hunsigned long address}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj3ubj)}(hhh]j9)}(h1The user virtual address of the first page to maph]h1The user virtual address of the first page to map}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjNhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjLubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]j?)}(hjrh]h rmap_t flags}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjpubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjlubj)}(hhh]j9)}(hThe rmap flagsh]hThe rmap flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubj9)}(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.chMhj0ubj9)}(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.chMhj0ubj9)}(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.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$folio_add_anon_rmap_pmd (C function)c.folio_add_anon_rmap_pmdhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hvoid folio_add_anon_rmap_pmd (struct folio *folio, struct page *page, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h]h)}(hvoid folio_add_anon_rmap_pmd(struct folio *folio, struct page *page, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.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&]uh1hhjubah}(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}(hj>hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]h)}(hfolioh]hfolio}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj^modnameN classnameNj\j_)}jb]je)}jXj$sbc.folio_add_anon_rmap_pmdasbuh1hhj: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)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubj)}(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]jxc.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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj6ubj)}(hstruct vm_area_struct *vmah](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)}(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]jxc.folio_add_anon_rmap_pmdasbuh1hhjubj)}(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 uh1jhj6ubj)}(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 uh1jhj6ubj)}(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]jxc.folio_add_anon_rmap_pmdasbuh1hhjݦ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 uh1jhj6ubeh}(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.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jRj4jRj5j6j7uh1hhhhjǒhNhNubjp)}(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}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjZubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjVubj)}(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}(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:113: ./mm/rmap.chMhjuubj)}(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&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(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ɧhMhjrubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(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}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjrubj)}(h ``rmap_t flags`` The rmap flags h](j)}(h``rmap_t flags``h]j?)}(hj_h]h rmap_t flags}(hjahhhNhNubah}(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.chMhjYubj)}(hhh]j9)}(hThe rmap flagsh]hThe rmap flags}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjrubeh}(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:113: ./mm/rmap.chMhjVubj9)}(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.chMhjVubj9)}(hThe caller needs to hold the page table lock, and the page must be locked in the anon_vma case: to serialize mapping,index checking after setting.h]hThe caller needs to hold the page table lock, and the page must be locked in the anon_vma case: to serialize mapping,index checking after setting.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$folio_add_new_anon_rmap (C function)c.folio_add_new_anon_rmaphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hsvoid folio_add_new_anon_rmap (struct folio *folio, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h]h)}(hrvoid folio_add_new_anon_rmap(struct folio *folio, struct vm_area_struct *vma, unsigned long address, rmap_t flags)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.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&]uh1hhj ubah}(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 }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]h)}(hfolioh]hfolio}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjKmodnameN classnameNj\j_)}jb]je)}jXjsbc.folio_add_new_anon_rmapasbuh1hhj'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)}(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]jec.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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(haddressh]haddress}(hjEhhhNhNubah}(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}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjcmodnameN classnameNj\j_)}jb]jec.folio_add_new_anon_rmapasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(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Ϫj5j6j7uh1hhhhjǒhNhNubjp)}(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&]uh1j8hj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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?)}(hj1h]hstruct vm_area_struct *vma}(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)}(h)the vm area in which the mapping is addedh]h)the vm area in which the mapping is added}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjubj)}(h:``unsigned long address`` the user virtual address mapped h](j)}(h``unsigned long address``h]j?)}(hjjh]hunsigned long address}(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)}(hthe user virtual address mappedh]hthe user virtual address mapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(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)}(hjޫh]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.chMhjӪ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.chMhjӪ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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%folio_add_file_rmap_ptes (C function)c.folio_add_file_rmap_pteshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hpvoid folio_add_file_rmap_ptes (struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h]h)}(hovoid folio_add_file_rmap_ptes(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMOubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjRhMOubh)}(hfolio_add_file_rmap_ptesh]h)}(hfolio_add_file_rmap_ptesh]hfolio_add_file_rmap_ptes}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubah}(h]h ](jjeh"]h$]h&]jj uh1hhj@hhhjRhMOubj)}(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 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)}jXjgsbc.folio_add_file_rmap_ptesasbuh1hhj}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 uh1jhjyubj)}(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 }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj=hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjyubj)}(h int nr_pagesh](j)}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjqhhhNhNubah}(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 uh1jhjyubj)}(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 uh1jhjyubeh}(h]h ]h"]h$]h&]jj uh1jhj@hhhjRhMOubeh}(h]h ]h"]h$]h&]jj juh1hjjhj<hhhjRhMOubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMOhj9hhubj )}(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.chMOhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhMOubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j1j4j1j5j6j7uh1hhhhjǒhNhNubjp)}(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&]uh1jyhj9ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMShj5ubj)}(hhh](j)}(h9``struct folio *folio`` The folio to add the mappings 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.chMPhjTubj)}(hhh]j9)}(h The folio to add the mappings toh]h The folio to add the mappings to}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjohMPhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMPhjQubj)}(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.chMQhjubj)}(hhh]j9)}(hThe first page to addh]hThe first page to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMQhjQubj)}(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.chMRhjƮ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&]uh1j8hjhMRhjubah}(h]h ]h"]h$]h&]uh1jhjƮubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjQubj)}(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.chMShjubj)}(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&]uh1j8hjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubj9)}(h**Description**h]jz)}(hj@h]h Description}(hjBhhhNhNubah}(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.chMUhj5ubj9)}(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)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMThj5ubj9)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMVhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$folio_add_file_rmap_pmd (C function)c.folio_add_file_rmap_pmdhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(havoid folio_add_file_rmap_pmd (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h`void folio_add_file_rmap_pmd(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM`ubh)}(hfolio_add_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 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_add_file_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}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjͯubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjɯubj)}(hstruct page *pageh](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)}(hpageh]hpage}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjcmodnameN classnameNj\j_)}jb]j c.folio_add_file_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)}(hpageh]hpage}(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_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 uh1jhjhhhjhM`ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM`ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM`hjhhubj )}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM`hj1hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM`ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jLj4jLj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjVh]h Parameters}(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.chMdhjPubj)}(hhh](j)}(h8``struct folio *folio`` The folio to add the mapping to h](j)}(h``struct folio *folio``h]j?)}(hjuh]hstruct folio *folio}(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.chMahjoubj)}(hhh]j9)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMahjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMahjlubj)}(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.chMbhjubj)}(hhh]j9)}(hThe first page to addh]hThe first page to add}(hjDZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjñhMbhjıubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjñhMbhjlubj)}(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.chMchjubj)}(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&]uh1j8hjhMchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjlubeh}(h]h ]h"]h$]h&]uh1jhjPubj9)}(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.chMehjPubj9)}(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)}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMdhjPubj9)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMfhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$folio_add_file_rmap_pud (C function)c.folio_add_file_rmap_pudhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(havoid folio_add_file_rmap_pud (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h`void folio_add_file_rmap_pud(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMtubh)}(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 uh1hhjrhhhjhMtubj)}(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}(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}(hj hhhNhNubah}(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 }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]h)}(hpageh]hpage}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjEmodnameN classnameNj\j_)}jb]jc.folio_add_file_rmap_pudasbuh1hhj!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)}(hpageh]hpage}(hj|hhhNhNubah}(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*}(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 uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjrhhhjhMtubeh}(h]h ]h"]h$]h&]jj juh1hjjhjnhhhjhMtubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhMthjkhhubj )}(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.chMthjhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMtubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j.j4j.j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMxhj2ubj)}(hhh](j)}(h8``struct folio *folio`` The folio to add the mapping to h](j)}(h``struct folio *folio``h]j?)}(hjWh]hstruct folio *folio}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjUubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMuhjQubj)}(hhh]j9)}(hThe folio to add the mapping toh]hThe folio to add the mapping to}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjlhMuhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMuhjNubj)}(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.chMvhjubj)}(hhh]j9)}(hThe first page to addh]hThe first page to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjNubj)}(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.chMwhjô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&]uh1j8hj޴hMwhjߴubah}(h]h ]h"]h$]h&]uh1jhjôubeh}(h]h ]h"]h$]h&]uh1jhj޴hMwhjNubeh}(h]h ]h"]h$]h&]uh1jhj2ubj9)}(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.chMyhj2ubj9)}(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.chMxhj2ubj9)}(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.chMzhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#folio_remove_rmap_ptes (C function)c.folio_remove_rmap_pteshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hnvoid folio_remove_rmap_ptes (struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h]h)}(hmvoid folio_remove_rmap_ptes(struct folio *folio, struct page *page, int nr_pages, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjfhMubh)}(hfolio_remove_rmap_ptesh]h)}(hfolio_remove_rmap_ptesh]hfolio_remove_rmap_ptes}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ](jjeh"]h$]h&]jj uh1hhjThhhjfhMubj)}(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}(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_remove_rmap_ptesasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjQhhhNhNubah}(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)}(h int nr_pagesh](j)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hnr_pagesh]hnr_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubeh}(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 uh1jhjThhhjfhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjPhhhjfhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjMhhubj )}(hhh]j9)}(h0remove PTE mappings from a page range of a folioh]h0remove PTE mappings from a page range of a folio}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhj*hhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jEj4jEj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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)}(h>``struct folio *folio`` The folio to remove the mappings 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.chMhjhubj)}(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&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(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>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)}(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&]uh1jhjhMhjeubj)}(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}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjeubeh}(h]h ]h"]h$]h&]uh1jhjIubj9)}(h**Description**h]jz)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8.hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjIubj9)}(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)}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjIubj9)}(h-The caller needs to hold the page table lock.h]h-The caller needs to hold the page table lock.}(hjyhhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"folio_remove_rmap_pmd (C function)c.folio_remove_rmap_pmdhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h_void folio_remove_rmap_pmd (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h^void folio_remove_rmap_pmd(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(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*}(hj1hhhNhNubah}(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}(hjWhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjSubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hhh]h)}(hpageh]hpage}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjwmodnameN classnameNj\j_)}jb]jc.folio_remove_rmap_pmdasbuh1hhjSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjSubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjݸubj)}(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]jc.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}(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)}(h1remove a PMD mapping from a page range of a folioh]h1remove a PMD mapping from a page range of a folio}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j`j4j`j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjdubj)}(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>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&]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&]uh1jhjdubj9)}(h**Description**h]jz)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM hjdubj9)}(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)}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjdubj9)}(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 hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"folio_remove_rmap_pud (C function)c.folio_remove_rmap_pudhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h_void folio_remove_rmap_pud (struct folio *folio, struct page *page, struct vm_area_struct *vma)h]h)}(h^void folio_remove_rmap_pud(struct folio *folio, struct page *page, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolio_remove_rmap_pudh]h)}(hfolio_remove_rmap_pudh]hfolio_remove_rmap_pud}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(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}(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 uh1jhjubj)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hj9hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]h)}(hpageh]hpage}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjYmodnameN classnameNj\j_)}jb]jc.folio_remove_rmap_pudasbuh1hhj5ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj5ubh)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubeh}(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]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 uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(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.chMhj'hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jBj4jBj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjFubj)}(hhh](j)}(h=``struct folio *folio`` The folio to remove the mapping from h](j)}(h``struct folio *folio``h]j?)}(hjkh]hstruct folio *folio}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjeubj)}(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&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubj)}(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?)}(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 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&]uh1jhj׽ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubeh}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjFubj9)}(hEThe page range of the folio is defined by [page, page + HPAGE_PUD_NR)h]hEThe page range of the folio is defined by [page, page + HPAGE_PUD_NR)}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjFubj9)}(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.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtry_to_unmap (C function)c.try_to_unmaphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h=void try_to_unmap (struct folio *folio, enum ttu_flags flags)h]h)}(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!)}(hjeh]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}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;modnameN classnameNj\j_)}jb]jc.try_to_unmapasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhhjzhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjdhhhjzhMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhjahhubj )}(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&]uh1jhjahhhjzhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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}(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.chMhjubj)}(hhh]j9)}(haction and flagsh]haction and flags}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjǿubeh}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubah}(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).}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMhjubj9)}(h **Context**h]jz)}(hjkh]hContext}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtry_to_migrate (C function)c.try_to_migratehNtauh1hhjǒhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(htry_to_migrateh]h)}(htry_to_migrateh]htry_to_migrate}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjsbc.try_to_migrateasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj9hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum ttu_flags flagsh](j!)}(hjeh]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 ttu_flagsh]h ttu_flags}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(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}(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&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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}(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*``enum ttu_flags flags`` action and flags h](j)}(h``enum ttu_flags flags``h]j?)}(hjMh]henum ttu_flags flags}(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.chM" hjGubj)}(hhh]j9)}(haction and flagsh]haction and flags}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhM" hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM" 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&]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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"make_device_exclusive (C function)c.make_device_exclusivehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hrstruct page * make_device_exclusive (struct mm_struct *mm, unsigned long addr, void *owner, struct folio **foliop)h]h)}(hpstruct page *make_device_exclusive(struct mm_struct *mm, unsigned long addr, void *owner, struct folio **foliop)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMO ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMO 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_exclusiveasbuh1hhjhhhjhMO ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMO ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMO 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 uh1hhjhhhjhMO ubj)}(hN(struct mm_struct *mm, unsigned long addr, void *owner, struct folio **foliop)h](j)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hjGhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]h)}(h mm_structh]h mm_struct}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjgmodnameN classnameNj\j_)}jb]jc.make_device_exclusiveasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjCubh)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubeh}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?ubj)}(h void *ownerh](j)}(hvoidh]hvoid}(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)}(hownerh]howner}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?ubj)}(hstruct folio **folioph](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)}(hfolioh]hfolio}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjjmodnameN classnameNj\j_)}jb]jc.make_device_exclusiveasbuh1hhjFubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjFubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjFubh)}(hfolioph]hfoliop}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj?ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMO ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMO ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMO hjhhubj )}(hhh]j9)}(h)Mark a page for exclusive use by a deviceh]h)Mark a page for exclusive use by a device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMO hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMO ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.chMS 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.chMP hjubj)}(hhh]j9)}(h&mm_struct of associated target processh]h&mm_struct of associated target process}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj.hMP hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMP hjubj)}(hO``unsigned long addr`` the virtual address to mark for exclusive device access h](j)}(h``unsigned long addr``h]j?)}(hjRh]hunsigned long addr}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjPubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMQ hjLubj)}(hhh]j9)}(h7the virtual address to mark for exclusive device accessh]h7the virtual address to mark for exclusive device access}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghMQ hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMQ 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.chMR 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&]uh1j8hjhMR hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMR hjubj)}(hH``struct folio **foliop`` folio pointer will be stored here on success. 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&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMS 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&]uh1j8hjhMS hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMS 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.chMU 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.chMT 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.chMY 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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM\ 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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMa hjubj9)}(h **Notes**h]jz)}(hjSh]hNotes}(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.chMf 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]jr,)}(hhh](jw,)}(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 }(hjthhhNhNubjz)}(h**addr**h]haddr}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chMg hjpubah}(h]h ]h"]h$]h&]uh1jv,hjmubjw,)}(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.chMj hjubah}(h]h ]h"]h$]h&]uh1jv,hjmubjw,)}(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.chMm hjubah}(h]h ]h"]h$]h&]uh1jv,hjmubeh}(h]h ]h"]h$]h&]j,j,j,hj,j,uh1jq,hjiubah}(h]h ]h"]h$]h&]uh1jThjhMg hjubj9)}(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.chMq 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.chMr hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__rmap_walk_file (C function)c.__rmap_walk_filehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hvoid __rmap_walk_file (struct folio *folio, struct address_space *mapping, pgoff_t pgoff_start, unsigned long nr_pages, struct rmap_walk_control *rwc, bool locked)h]h)}(hvoid __rmap_walk_file(struct folio *folio, struct address_space *mapping, pgoff_t pgoff_start, unsigned long nr_pages, struct rmap_walk_control *rwc, bool locked)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM2 ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj.hM2 ubh)}(h__rmap_walk_fileh]h)}(h__rmap_walk_fileh]h__rmap_walk_file}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj.hM2 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]hstruct}(hj]hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]h)}(hfolioh]hfolio}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj}modnameN classnameNj\j_)}jb]je)}jXjCsbc.__rmap_walk_fileasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjYubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjUubj)}(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]jc.__rmap_walk_fileasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(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 uh1jhjUubj)}(hpgoff_t pgoff_starth](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjDmodnameN classnameNj\j_)}jb]jc.__rmap_walk_fileasbuh1hhj;ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(h pgoff_starth]h pgoff_start}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjUubj)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjUubj)}(hstruct rmap_walk_control *rwch](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)}(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_fileasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj"hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hrwch]hrwc}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjUubj)}(h bool lockedh](j)}(hj*h]hbool}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hlockedh]hlocked}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjUubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj.hM2 ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj.hM2 ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj.hM2 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.chM2 hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj.hM2 ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.chM6 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?)}(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.chM7 hjubj)}(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.chM5 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7 hjubj)}(h``struct address_space *mapping`` The page cache object whose mapping VMAs we intend to traverse. If **folio** is non-NULL, this should be equal to folio_mapping(folio). h](j)}(h!``struct address_space *mapping``h]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 }(hj3hhhNhNubjz)}(h **folio**h]hfolio}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj3ubh; is non-NULL, this should be equal to folio_mapping(folio).}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM8 hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hM: hjubj)}(h``pgoff_t pgoff_start`` The offset within **mapping** of the page which we are looking up. If **folio** is non-NULL, this should be equal to folio_pgoff(folio). h](j)}(h``pgoff_t pgoff_start``h]j?)}(hjfh]hpgoff_t pgoff_start}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjdubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:113: ./mm/rmap.chM= hj`ubj)}(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; hj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hM= hjubj)}(h``unsigned long nr_pages`` The number of pages mapped by the mapping. If **folio** is non-NULL, this should be equal to folio_nr_pages(folio). h](j)}(h``unsigned long nr_pages``h]j?)}(hjh]hunsigned long 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.chM? 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.chM> hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM? hjubj)}(hw``struct rmap_walk_control *rwc`` The reverse mapping walk control object describing how the traversal should proceed. h](j)}(h!``struct rmap_walk_control *rwc``h]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.chMA 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.chM@ hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMA hjubj)}(hO``bool locked`` Is the **mapping** already locked? If not, we acquire the lock.h](j)}(h``bool locked``h]j?)}(hjJh]h bool 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.chMB hjDubj)}(hhh]j9)}(h?Is the **mapping** already locked? If not, we acquire the lock.h](hIs the }(hjchhhNhNubjz)}(h **mapping**h]hmapping}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubh- already locked? If not, we acquire the lock.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hj_hMB hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMB hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%isolate_movable_ops_page (C function)c.isolate_movable_ops_pagehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hFbool isolate_movable_ops_page (struct page *page, isolate_mode_t mode)h]h)}(hEbool isolate_movable_ops_page(struct page *page, isolate_mode_t mode)h](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKdubh)}(hisolate_movable_ops_pageh]h)}(hisolate_movable_ops_pageh]hisolate_movable_ops_page}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKdubj)}(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&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.isolate_movable_ops_pageasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj=hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpageh]hpage}(hjJhhhNhNubah}(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}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]j+c.isolate_movable_ops_pageasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(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 uh1jhjhhhjhKdubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKdubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKdhjhhubj )}(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.chKdhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKdubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhhjubj)}(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.chKehjubj)}(hhh]j9)}(h The page.h]h The page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKehjubj)}(h,``isolate_mode_t mode`` The isolation mode. h](j)}(h``isolate_mode_t mode``h]j?)}(hj6h]hisolate_mode_t mode}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKfhj0ubj)}(hhh]j9)}(hThe isolation mode.h]hThe isolation mode.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjKhKfhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhKfhjubeh}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhhjubj9)}(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.chKghjubj9)}(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.chKkhjubj9)}(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.chKnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%putback_movable_ops_page (C function)c.putback_movable_ops_pagehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h1void putback_movable_ops_page (struct page *page)h]h)}(h0void putback_movable_ops_page(struct page *page)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(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 uh1hhjhhhjhKubj)}(h(struct page *page)h]j)}(hstruct page *pageh](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)}(hpageh]hpage}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]je)}jXjsbc.putback_movable_ops_pageasbuh1hhj 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)}(hpageh]hpage}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj )}(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&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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?)}(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.chKhjubj)}(hhh]j9)}(hThe isolated page.h]hThe isolated page.}(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&]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.}(hj5hhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%migrate_movable_ops_page (C function)c.migrate_movable_ops_pagehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hYint migrate_movable_ops_page (struct page *dst, struct page *src, enum migrate_mode mode)h]h)}(hXint migrate_movable_ops_page(struct page *dst, struct page *src, enum migrate_mode mode)h](j)}(hinth]hint}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjrhKubh)}(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 uh1hhj`hhhjrhKubj)}(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}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3modnameN classnameNj\j_)}jb]jc.migrate_movable_ops_pageasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj]hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsrch]hsrc}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(henum migrate_mode modeh](j!)}(hjeh]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 uh1jhj`hhhjrhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj\hhhjrhKubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjrhKhjYhhubj )}(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&]uh1jhjYhhhjrhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(hX**Parameters** ``struct page *dst`` The destination page. ``struct page *src`` The source page. ``enum migrate_mode mode`` The migration mode. **Description** Migrate an isolated movable_ops page. If the src page was already released by its owner, the src page is un-isolated (putback) and migration succeeds; the migration core will be the owner of both pages. If the src page was not released by its owner and the migration was successful, the owner of the src page and the dst page are swapped and the src page is un-isolated. If migration fails, the ownership stays unmodified and the src page remains isolated: migration may be retried later or the page can be putback. TODO: migration core will treat both pages as folios and lock them before this call to unlock them after this call. Further, the folio refcounts on src and dst are also released by migration core. These pages will not be folios in the future, so that must be reworked. Returns 0 on success, otherwise a negative error code.h](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?)}(hj8h]hstruct page *dst}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhj2ubj)}(hhh]j9)}(hThe destination page.h]hThe destination page.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubj)}(h&``struct page *src`` The source page. h](j)}(h``struct page *src``h]j?)}(hjqh]hstruct page *src}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjoubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjkubj)}(hhh]j9)}(hThe source page.h]hThe source page.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhKhj/ubj)}(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&]uh1jhjhKhj/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: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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chKhjubj9)}(h6Returns 0 on success, otherwise a negative error code.h]h6Returns 0 on success, otherwise a negative error code.}(hjFhhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmigrate_folio (C function)c.migrate_foliohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hoint migrate_folio (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h]h)}(hnint migrate_folio(struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hinth]hint}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhMhubh)}(h migrate_folioh]h)}(h migrate_folioh]h migrate_folio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjqhhhjhMhubj)}(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}(hj hhhNhNubah}(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 }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]h)}(hfolioh]hfolio}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjDmodnameN classnameNj\j_)}jb]jc.migrate_folioasbuh1hhj 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)}(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!)}(hjeh]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&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj$modnameN classnameNj\j_)}jb]jc.migrate_folioasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hmodeh]hmode}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjqhhhjhMhubeh}(h]h ]h"]h$]h&]jj juh1hjjhjmhhhjhMhubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhMhhjjhhubj )}(hhh]j9)}(hSimple folio migration.h]hSimple folio migration.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhhjuhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhMhubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.chMlhjubj)}(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.chMihjubj)}(hhh]j9)}(h'The address_space containing the folio.h]h'The address_space containing the folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubj)}(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.chMjhjubj)}(hhh]j9)}(h!The folio to migrate the data to.h]h!The folio to migrate the data to.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubj)}(h=``struct folio *src`` The folio containing the current data. h](j)}(h``struct folio *src``h]j?)}(hj+h]hstruct folio *src}(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.chMkhj%ubj)}(hhh]j9)}(h&The folio containing the current data.h]h&The folio containing the current data.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj@hMkhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMkhjubj)}(h4``enum migrate_mode mode`` How to migrate the page. h](j)}(h``enum migrate_mode mode``h]j?)}(hjdh]henum migrate_mode mode}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMlhj^ubj)}(hhh]j9)}(hHow to migrate the page.h]hHow to migrate the page.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjyhMlhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMlhjubeh}(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.chMnhjubj9)}(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.chMmhjubj9)}(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.chMphjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!buffer_migrate_folio (C function)c.buffer_migrate_foliohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hvint buffer_migrate_folio (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h]h)}(huint buffer_migrate_folio(struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hinth]hint}(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}(hj0hhhNhNubah}(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}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjPmodnameN classnameNj\j_)}jb]je)}jXjsbc.buffer_migrate_folioasbuh1hhj,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)}(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]jjc.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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2modnameN classnameNj\j_)}jb]jjc.buffer_migrate_folioasbuh1hhjubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj\hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hsrch]hsrc}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj(ubj)}(henum migrate_mode modeh](j!)}(hjeh]henum}(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_modeh]h migrate_mode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jjc.buffer_migrate_folioasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hmodeh]hmode}(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+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-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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?)}(hj7h]hstruct address_space *mapping}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhj1ubj)}(hhh]j9)}(h%The address space containing **src**.h](hThe address space containing }(hjPhhhNhNubjz)}(h**src**h]hsrc}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjPubh.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj.ubj)}(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.chMhj|ubj)}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj.ubj)}(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&]uh1jhjhMhj.ubj)}(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.}(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)}(hj/h]h Description}(hj1hhhNhNubah}(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.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 }(hjEhhhNhNubjz)}(h**src**h]hsrc}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubh 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.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjubj9)}(h **Return**h]jz)}(hjhh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjfubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(buffer_migrate_folio_norefs (C function)c.buffer_migrate_folio_norefshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h}int buffer_migrate_folio_norefs (struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h]h)}(h|int buffer_migrate_folio_norefs(struct address_space *mapping, struct folio *dst, struct folio *src, enum migrate_mode mode)h](j)}(hinth]hint}(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}(hjhhhNhNubah}(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*}(hj6hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjChhhNhNubah}(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 hjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]h)}(hfolioh]hfolio}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj|modnameN classnameNj\j_)}jb]j$c.buffer_migrate_folio_norefsasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjXubh)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubeh}(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 }(hjhhhNhNubah}(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!)}(hjeh]henum}(hj<hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]h)}(h migrate_modeh]h migrate_mode}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj\modnameN classnameNj\j_)}jb]j$c.buffer_migrate_folio_norefsasbuh1hhj8ubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubeh}(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-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``struct folio *dst`` The folio to migrate to. h](j)}(h``struct folio *dst``h]j?)}(hj<h]hstruct folio *dst}(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.chMhj6ubj)}(hhh]j9)}(hThe folio to migrate to.h]hThe folio to migrate to.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubj)}(h1``struct folio *src`` The folio to migrate from. h](j)}(h``struct folio *src``h]j?)}(hjuh]hstruct folio *src}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:114: ./mm/migrate.chMhjoubj)}(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&]uh1jhjoubeh}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdo_mmap (C function) c.do_mmaphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hunsigned long do_mmap (struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, vm_flags_t vm_flags, unsigned long pgoff, unsigned long *populate, struct list_head *uf)h]h)}(hunsigned long do_mmap(struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, vm_flags_t vm_flags, unsigned long pgoff, unsigned long *populate, struct list_head *uf)h](j)}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjchMubj)}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjchMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjchMubh)}(hdo_mmaph]h)}(hdo_mmaph]hdo_mmap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjQhhhjchMubj)}(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}(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 }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long lenh](j)}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubeh}(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}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjKhhhNhNubah}(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}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjimodnameN classnameNj\j_)}jb]j c.do_mmapasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hvm_flagsh]hvm_flags}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubeh}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpopulateh]hpopulate}(hjBhhhNhNubah}(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 hjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]h)}(h list_headh]h list_head}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{modnameN classnameNj\j_)}jb]j c.do_mmapasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjWubh)}(hufh]huf}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubeh}(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)}(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}(hjhhhNhNubah}(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}(hj>hhhNhNubah}(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&]uh1jhjJhhhjchMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j`j4j`j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjdubj)}(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>hj ubah}(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?)}(hjIh]hunsigned long prot}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM>hjCubj)}(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.}(hjbhhhNhNubah}(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&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM>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@hj}ubj)}(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&]uh1jhj}ubeh}(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&]uh1j8hj hMBhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMBhjubj)}(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?)}(hjAh]hunsigned long *populate}(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: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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMChjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMFhjubj)}(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}(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:115: ./mm/mmap.chMIhjuubj)}(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&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubeh}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMKhjdubj9)}(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.chMhjdubj9)}(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}(hjhhhNhNubah}(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.chMhjdubj9)}(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.chMhjdubj9)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM#hjdubj9)}(hThose which require this behaviour less security checks, userfaultfd and populate behaviour, and who handle the mmap write lock themselves, should call this function.h]hThose which require this behaviour less security checks, userfaultfd and populate behaviour, and who handle the mmap write lock themselves, should call this function.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM&hjdubj9)}(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 }(hjNhhhNhNubjz)}(h**len**h]hlen}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubh. bytes, rounded down to the nearest page size.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM*hjdubj9)}(h2The caller must write-lock current->mm->mmap_lock.h]h2The caller must write-lock current->mm->mmap_lock.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chM/hjdubj9)}(h **Return**h]jz)}(hjh]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:115: ./mm/mmap.chM1hjdubj9)}(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.chMKhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"find_vma_intersection (C function)c.find_vma_intersectionhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hvstruct vm_area_struct * find_vma_intersection (struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr)h]h)}(htstruct vm_area_struct *find_vma_intersection(struct mm_struct *mm, unsigned long start_addr, unsigned long end_addr)h](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}(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 mm_structh]h mm_struct}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_modnameN 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 uh1jhj7ubj)}(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 uh1jhj7ubj)}(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}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7ubeh}(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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMmhj_hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMmubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jzj4jzj5j6j7uh1hhhhjǒhNhNubjp)}(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.chMqhj~ubj)}(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.}(hj.hhhNhNubah}(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&]uh1jhj~ubj9)}(h **Return**h]jz)}(hjPh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMrhj~ubj9)}(h\The first VMA within the provided range, ``NULL`` otherwise. Assumes start_addr < end_addr.h](h)The first VMA within the provided range, }(hjfhhhNhNubj?)}(h``NULL``h]hNULL}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubh+ otherwise. Assumes start_addr < end_addr.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMrhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfind_vma (C function) c.find_vmahNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hKstruct vm_area_struct * find_vma (struct mm_struct *mm, unsigned long addr)h]h)}(hIstruct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)h](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}(hjhhhNhNubah}(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 hjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h mm_structh]h mm_struct}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjAmodnameN classnameNj\j_)}jb]j c.find_vmaasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjkhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmmh]hmm}(hjxhhhNhNubah}(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 }(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-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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?)}(hj4h]hstruct mm_struct *mm}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhj.ubj)}(hhh]j9)}(hThe mm_struct to checkh]hThe mm_struct to check}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubj)}(h#``unsigned long addr`` The address h](j)}(h``unsigned long addr``h]j?)}(hjmh]hunsigned long addr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjkubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjgubj)}(hhh]j9)}(h The addressh]h The address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfind_vma_prev (C function)c.find_vma_prevhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hostruct vm_area_struct * find_vma_prev (struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)h]h)}(hmstruct vm_area_struct *find_vma_prev(struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)h](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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubh)}(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)}jX find_vma_prevsbc.find_vma_prevasbuh1hhjhhhj hMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj2 )}(hj5 h]h*}(hjMhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhj hMubh)}(h find_vma_prevh]h)}(hj<h]h find_vma_prev}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj hMubj)}(hI(struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)h](j)}(hstruct mm_struct *mmh](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 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_prevasbuh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjuubh)}(hmmh]hmm}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjqubj)}(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 uh1jhjqubj)}(hstruct vm_area_struct **pprevh](j!)}(hj$h]hstruct}(hj:hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]h)}(hvm_area_structh]hvm_area_struct}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjZmodnameN classnameNj\j_)}jb]j:c.find_vma_prevasbuh1hhj6ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj6ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj6ubh)}(hpprevh]hpprev}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubeh}(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)}(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&]uh1jhjhhhj hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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}(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)}(hThe mm_struct to checkh]hThe mm_struct to check}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(h#``unsigned long addr`` The address h](j)}(h``unsigned long addr``h]j?)}(hjTh]hunsigned long addr}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:115: ./mm/mmap.chMhjNubj)}(hhh]j9)}(h The addressh]h The address}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh, 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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_alloc (C function)c.kmemleak_allochNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hRvoid __ref kmemleak_alloc (const void *ptr, size_t size, int min_count, gfp_t gfp)h]h)}(hQvoid __ref kmemleak_alloc(const void *ptr, size_t size, int min_count, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM7ubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjfhM7ubh__ref}(hjThhhNhNubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjfhM7ubh)}(hkmemleak_alloch]h)}(hkmemleak_alloch]hkmemleak_alloc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjThhhjfhM7ubj)}(h8(const void *ptr, size_t size, int min_count, gfp_t gfp)h](j)}(hconst void *ptrh](j!)}(hjh]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 reftargetj modnameN classnameNj\j_)}jb]je)}jXjsbc.kmemleak_allocasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int min_counth](j)}(hinth]hint}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(h min_counth]h min_count}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(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 uh1jhjThhhjfhM7ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjPhhhjfhM7ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhM7hjMhhubj )}(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.chM7hjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhM7ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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?)}(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.chM8hjubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hM8hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hM8hjubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]j?)}(hjVh]h size_t size}(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.chM9hjPubj)}(hhh]j9)}(hsize of the objecth]hsize of the object}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhM9hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM9hjubj)}(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&]uh1jyhj8ubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMAhjubj9)}(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.).}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM@hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"kmemleak_alloc_percpu (C function)c.kmemleak_alloc_percpuhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hSvoid __ref kmemleak_alloc_percpu (const void __percpu *ptr, size_t size, gfp_t gfp)h]h)}(hRvoid __ref kmemleak_alloc_percpu(const void __percpu *ptr, size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhMOubh__ref}(hj{hhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhMOubh)}(hkmemleak_alloc_percpuh]h)}(hkmemleak_alloc_percpuh]hkmemleak_alloc_percpu}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj{hhhjhMOubj)}(h2(const void __percpu *ptr, size_t size, gfp_t gfp)h](j)}(hconst void __percpu *ptrh](j!)}(hjh]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}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjBmodnameN classnameNj\j_)}jb]je)}jXjsbc.kmemleak_alloc_percpuasbuh1hhj9ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hsizeh]hsize}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubeh}(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{hhhjhMOubeh}(h]h ]h"]h$]h&]jj juh1hjjhjwhhhjhMOubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhMOhjthhubj )}(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.chMOhjhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhMOubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.chMShjubj)}(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>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMPhjubj)}(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&]uh1j8hj6hMPhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMPhjubj)}(h#``size_t size`` size of the object h](j)}(h``size_t size``h]j?)}(hjZh]h size_t size}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjXubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMQhjTubj)}(hhh]j9)}(hsize of the objecth]hsize of the object}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjohMQhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMQhjubj)}(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.chMRhjubj)}(hhh]j9)}(h3flags used for kmemleak internal memory allocationsh]h3flags used for kmemleak internal memory allocations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjubeh}(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.chMThjubj9)}(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.chMShjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_vmalloc (C function)c.kmemleak_vmallochNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hRvoid __ref kmemleak_vmalloc (const struct vm_struct *area, size_t size, gfp_t gfp)h]h)}(hQvoid __ref kmemleak_vmalloc(const struct vm_struct *area, size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMbubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hMbubh__ref}(hjhhhNhNubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hMbubh)}(hkmemleak_vmalloch]h)}(hkmemleak_vmalloch]hkmemleak_vmalloc}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj!hMbubj)}(h6(const struct vm_struct *area, size_t size, gfp_t gfp)h](j)}(hconst struct vm_struct *areah](j!)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj!)}(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 vm_structh]h vm_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjHsbc.kmemleak_vmallocasbuh1hhj^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)}(hareah]harea}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjZubj)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjZubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj<modnameN classnameNj\j_)}jb]jc.kmemleak_vmallocasbuh1hhj3ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hgfph]hgfp}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjZubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj!hMbubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj!hMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj!hMbhjhhubj )}(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.chMbhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hMbubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.chMfhjubj)}(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.chMchjubj)}(hhh]j9)}(hpointer to vm_structh]hpointer to vm_struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubj)}(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>hjubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMdhjubj)}(hhh]j9)}(hsize of the objecth]hsize of the object}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMdhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubj)}(hN``gfp_t gfp`` __vmalloc() flags used for kmemleak internal memory allocations h](j)}(h ``gfp_t gfp``h]j?)}(hjCh]h gfp_t gfp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjAubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMehj=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&]uh1j8hjXhMehjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMehjubeh}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMghjubj9)}(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.chMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_free (C function)c.kmemleak_freehNtauh1hhjǒhhhNhNubh)}(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.chM{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM{ubh__ref}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM{ubh)}(h kmemleak_freeh]h)}(h kmemleak_freeh]h kmemleak_free}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM{ubj)}(h(const void *ptr)h]j)}(hconst void *ptrh](j!)}(hjh]hconst}(hjhhhNhNubah}(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 }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubah}(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)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.chM{hj}hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM{ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.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.chM|hjubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM~hjubj9)}(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.chM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_free_part (C function)c.kmemleak_free_parthNtauh1hhjǒhhhNhNubh)}(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)}jXjvsbc.kmemleak_free_partasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]u.h1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj=hhhjOhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj9hhhjOhMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhjOhMhj6hhubj )}(hhh]j9)}(h3partially unregister a previously registered objecth]h3partially unregister a previously registered object}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjOhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j`j4j`j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjhubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjdubj)}(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.chMhjubj)}(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.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]j9)}(hsize to be unregisteredh]hsize to be unregistered}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjdubj9)}(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.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!kmemleak_free_percpu (C function)c.kmemleak_free_percpuhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h:void __ref kmemleak_free_percpu (const void __percpu *ptr)h]h)}(h9void __ref kmemleak_free_percpu(const void __percpu *ptr)h](j)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMubh__ref}(hj?hhhNhNubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhMubh)}(hkmemleak_free_percpuh]h)}(hkmemleak_free_percpuh]hkmemleak_free_percpu}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubah}(h]h ](jjeh"]h$]h&]jj uh1hhj?hhhjQhMubj)}(h(const void __percpu *ptr)h]j)}(hconst void __percpu *ptrh](j!)}(hjh]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 uh1jhj?hhhjQhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjQhMhj8hhubj )}(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&]uh1jhj8hhhjQhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j*j4j*j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj.ubj)}(hhh]j)}(hI``const void __percpu *ptr`` __percpu pointer to beginning of the object h](j)}(h``const void __percpu *ptr``h]j?)}(hjSh]hconst void __percpu *ptr}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjMubj)}(hhh]j9)}(h+__percpu pointer to beginning of the objecth]h+__percpu pointer to beginning of the object}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjJubah}(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)}(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.chMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"kmemleak_update_trace (C function)c.kmemleak_update_tracehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h2void __ref kmemleak_update_trace (const void *ptr)h]h)}(h1void __ref kmemleak_update_trace(const void *ptr)h](j)}(hvoidh]hvoid}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(const void *ptr)h]j)}(hconst void *ptrh](j!)}(hjh]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 }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjYhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjfhhhNhNubah}(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$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-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj h]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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_not_leak (C function)c.kmemleak_not_leakhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h.void __ref kmemleak_not_leak (const void *ptr)h]h)}(h-void __ref kmemleak_not_leak(const void *ptr)h](j)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj_hMubh__ref}(hjMhhhNhNubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj_hMubh)}(hkmemleak_not_leakh]h)}(hkmemleak_not_leakh]hkmemleak_not_leak}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjMhhhj_hMubj)}(h(const void *ptr)h]j)}(hconst void *ptrh](j!)}(hjh]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 uh1jhjMhhhj_hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjIhhhj_hMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj_hMhjFhhubj )}(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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj_hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j&j4j&j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj0h]h Parameters}(hj2hhhNhNubah}(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)}(h7``const void *ptr`` pointer to beginning of the object h](j)}(h``const void *ptr``h]j?)}(hjOh]hconst void *ptr}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjIubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjFubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$kmemleak_transient_leak (C function)c.kmemleak_transient_leakhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h4void __ref kmemleak_transient_leak (const void *ptr)h]h)}(h3void __ref kmemleak_transient_leak(const void *ptr)h](j)}(hvoidh]hvoid}(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!)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvoidh]hvoid}(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)}(hptrh]hptr}(hjbhhhNhNubah}(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-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjh]h Description}(hj hhhNhNubah}(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)}(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.}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#kmemleak_ignore_percpu (C function)c.kmemleak_ignore_percpuhNtauh1hhjǒhhhNhNubh)}(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 uh1jhjIhhhj[hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjEhhhj[hMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj[hMhjBhhubj )}(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&]uh1jhjBhhhj[hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j4j4j4j5j6j7uh1hhhhjǒhNhNubjp)}(hK**Parameters** ``const void __percpu *ptr`` percpu address of the objecth](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:116: ./mm/kmemleak.chMhj8ubj)}(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}(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.chMhjWubj)}(hhh]j9)}(hpercpu address of the objecth]hpercpu address of the object}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_ignore (C function)c.kmemleak_ignorehNtauh1hhjǒhhhNhNubh)}(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!)}(hjh]hconst}(hjhhhNhNubah}(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 }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj=hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjJhhhNhNubah}(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}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_scan_area (C function)c.kmemleak_scan_areahNtauh1hhjǒhhhNhNubh)}(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}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjChMubh__ref}(hj1hhhNhNubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjChMubh)}(hkmemleak_scan_areah]h)}(hkmemleak_scan_areah]hkmemleak_scan_area}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ](jjeh"]h$]h&]jj uh1hhj1hhhjChMubj)}(h)(const void *ptr, size_t size, gfp_t gfp)h](j)}(hconst void *ptrh](j!)}(hjh]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 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]je)}jXjjsbc.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 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 reftargetj0modnameN classnameNj\j_)}jb]jc.kmemleak_scan_areaasbuh1hhj'ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hgfph]hgfp}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubeh}(h]h ]h"]h$]h&]jj uh1jhj1hhhjChMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj-hhhjChMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhjChMhj*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*hhhjChMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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?)}(hj8h]h gfp_t gfp}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMhj2ubj)}(hhh]j9)}(h=kmalloc() flags used for kmemleak internal memory allocationsh]h=kmalloc() flags used for kmemleak internal memory allocations}(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&]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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌkmemleak_no_scan (C function)c.kmemleak_no_scanhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h-void __ref kmemleak_no_scan (const void *ptr)h]h)}(h,void __ref kmemleak_no_scan(const void *ptr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM&ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM&ubh__ref}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM&ubh)}(hkmemleak_no_scanh]h)}(hkmemleak_no_scanh]hkmemleak_no_scan}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM&ubj)}(h(const void *ptr)h]j)}(hconst void *ptrh](j!)}(hjh]hconst}(hjhhhNhNubah}(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 }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj>hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hjKhhhNhNubah}(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)}(hdo not scan an allocated objecth]hdo not scan an allocated object}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM&hjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM&ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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.chM*hjubj)}(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.chM'hjubj)}(hhh]j9)}(h"pointer to beginning of the objecth]h"pointer to beginning of the object}(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&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM)hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM(hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ kmemleak_alloc_phys (C function)c.kmemleak_alloc_physhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hIvoid __ref kmemleak_alloc_phys (phys_addr_t phys, size_t size, gfp_t gfp)h]h)}(hHvoid __ref kmemleak_alloc_phys(phys_addr_t phys, size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM8ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjDhM8ubh__ref}(hj2hhhNhNubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjDhM8ubh)}(hkmemleak_alloc_physh]h)}(hkmemleak_alloc_physh]hkmemleak_alloc_phys}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubah}(h]h ](jjeh"]h$]h&]jj uh1hhj2hhhjDhM8ubj)}(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)}jXjksbc.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 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_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 uh1jhj}ubj)}(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 }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hgfph]hgfp}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj}ubeh}(h]h ]h"]h$]h&]jj uh1jhj2hhhjDhM8ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj.hhhjDhM8ubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhjDhM8hj+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}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM8hjmhhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhM8ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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=hjubj)}(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<hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hM=hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$kmemleak_free_part_phys (C function)c.kmemleak_free_part_physhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hBvoid __ref kmemleak_free_part_phys (phys_addr_t phys, size_t size)h]h)}(hAvoid __ref kmemleak_free_part_phys(phys_addr_t phys, size_t size)h](j)}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMLubh__ref}(hjyhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMLubh)}(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 uh1hhjyhhhjhMLubj)}(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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]jc.kmemleak_free_part_physasbuh1hhj ubj)}(h h]h }(hj7 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hsizeh]hsize}(hjE hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjyhhhjhMLubeh}(h]h ]h"]h$]h&]jj juh1hjjhjuhhhjhMLubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhMLhjrhhubj )}(hhh]j9)}(hDsimilar to kmemleak_free_part but taking a physical address argumenth]hDsimilar to kmemleak_free_part but taking a physical address argument}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMLhjl hhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMLubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:116: ./mm/kmemleak.chMPhj ubj)}(hhh](j)}(h``phys_addr_t phys`` physical address if the beginning or inside an object. This also represents the start of the range to be freed h](j)}(h``phys_addr_t phys``h]j?)}(hj h]hphys_addr_t phys}(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.chMOhj ubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMNhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMOhj ubj)}(h'``size_t size`` size to be unregisteredh](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.chMQhj ubj)}(hhh]j9)}(hsize to be unregisteredh]hsize to be unregistered}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chMPhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMQhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!kmemleak_ignore_phys (C function)c.kmemleak_ignore_physhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h2void __ref kmemleak_ignore_phys (phys_addr_t phys)h]h)}(h1void __ref kmemleak_ignore_phys(phys_addr_t phys)h](j)}(hvoidh]hvoid}(hjD hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM\ubj)}(h h]h }(hjS hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ hhhjR hM\ubh__ref}(hj@ hhhNhNubj)}(h h]h }(hje hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ hhhjR hM\ubh)}(hkmemleak_ignore_physh]h)}(hkmemleak_ignore_physh]hkmemleak_ignore_phys}(hjw hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjs ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj@ hhhjR hM\ubj)}(h(phys_addr_t phys)h]j)}(hphys_addr_t physh](h)}(hhh]h)}(h phys_addr_th]h phys_addr_t}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjy sbc.kmemleak_ignore_physasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hphysh]hphys}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubah}(h]h ]h"]h$]h&]jj uh1jhj@ hhhjR hM\ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj< hhhjR hM\ubah}(h]j7 ah ](jjeh"]h$]h&]jj)jhuh1hhjR hM\hj9 hhubj )}(hhh]j9)}(hAsimilar to kmemleak_ignore but taking a physical address argumenth]hAsimilar to kmemleak_ignore but taking a physical address argument}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM\hj hhubah}(h]h ]h"]h$]h&]uh1jhj9 hhhjR hM\ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(hE**Parameters** ``phys_addr_t phys`` physical address of the objecth](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:116: ./mm/kmemleak.chM`hj ubj)}(hhh]j)}(h3``phys_addr_t phys`` physical address of the objecth](j)}(h``phys_addr_t phys``h]j?)}(hj/ h]hphys_addr_t phys}(hj1 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.chMbhj) ubj)}(hhh]j9)}(hphysical address of the objecth]hphysical address of the object}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:116: ./mm/kmemleak.chM^hjE ubah}(h]h ]h"]h$]h&]uh1jhj) ubeh}(h]h ]h"]h$]h&]uh1jhjD hMbhj& ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubhcomment)}(h'#kernel-doc:: mm/hmm.c (build warnings)h]h'#kernel-doc:: mm/hmm.c (build warnings)}hjr sbah}(h]h ]h"]h$]h&]jj uh1jp hjǒhhhhhKuubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ devm_memremap_pages (C function)c.devm_memremap_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hJvoid * devm_memremap_pages (struct device *dev, struct dev_pagemap *pgmap)h]h)}(hHvoid *devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMcubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMcubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj hhhj hMcubh)}(hdevm_memremap_pagesh]h)}(hdevm_memremap_pagesh]hdevm_memremap_pages}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj hMcubj)}(h/(struct device *dev, struct dev_pagemap *pgmap)h](j)}(hstruct device *devh](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)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXj sbc.devm_memremap_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)}(hdevh]hdev}(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}(hjU hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjQ ubj)}(h h]h }(hjb hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ ubh)}(hhh]h)}(h dev_pagemaph]h dev_pagemap}(hjs hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjp ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetju modnameN classnameNj\j_)}jb]j c.devm_memremap_pagesasbuh1hhjQ ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ ubj2 )}(hj5 h]h*}(hj hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjQ ubh)}(hpgmaph]hpgmap}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQ ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubeh}(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)}(h7remap and provide memmap backing for the given resourceh]h7remap and provide memmap backing for the given resource}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMchj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMcubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.chMghj ubj)}(hhh](j)}(h2``struct device *dev`` hosting device for **res** h](j)}(h``struct device *dev``h]j?)}(hj h]hstruct device *dev}(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:118: ./mm/memremap.chMdhj ubj)}(hhh]j9)}(hhosting device for **res**h](hhosting device for }(hj0 hhhNhNubjz)}(h**res**h]hres}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj0 ubeh}(h]h ]h"]h$]h&]uh1j8hj, hMdhj- ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj, hMdhj ubj)}(h>``struct dev_pagemap *pgmap`` pointer to a struct dev_pagemap h](j)}(h``struct dev_pagemap *pgmap``h]j?)}(hj^ h]hstruct dev_pagemap *pgmap}(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:118: ./mm/memremap.chMehjX ubj)}(hhh]j9)}(hpointer to a struct dev_pagemaph]hpointer to a struct dev_pagemap}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjs hMehjt ubah}(h]h ]h"]h$]h&]uh1jhjX ubeh}(h]h ]h"]h$]h&]uh1jhjs hMehj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj9)}(h **Notes**h]jz)}(hj h]hNotes}(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.chMghj ubj)}(hhh](j)}(h}1/ At a minimum the range and type members of **pgmap** must be initialized by the caller before passing it to this function h](j)}(hK1/ At a minimum the range and type members of **pgmap** must be initializedh](h.1/ At a minimum the range and type members of }(hj hhhNhNubjz)}(h **pgmap**h]hpgmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh must be initialized}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhhj ubj)}(hhh]j9)}(h0by the caller before passing it to this functionh]h0by the caller before passing it to this function}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhhj ubj)}(hq2/ The altmap field may optionally be initialized, in which case PGMAP_ALTMAP_VALID must be set in pgmap->flags. h](j)}(h@2/ The altmap field may optionally be initialized, in which caseh]h@2/ The altmap field may optionally be initialized, in which case}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMkhj ubj)}(hhh]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&]uh1j8hjhMkhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjhMkhj ubj)}(h3/ The ref field may optionally be provided, in which pgmap->ref must be 'live' on entry and will be killed and reaped at devm_memremap_pages_release() time, or if this routine fails. h](j)}(hH3/ The ref field may optionally be provided, in which pgmap->ref must beh]hH3/ The ref field may optionally be provided, in which pgmap->ref must be}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMohj$ubj)}(hhh]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.chMnhj7ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj6hMohj ubj)}(h4/ range is expected to be a host memory range that could feasibly be treated as a "System RAM" range, i.e. not a device mmio range, but this is not enforced.h](j)}(hE4/ range is expected to be a host memory range that could feasibly beh]hE4/ range is expected to be a host memory range that could feasibly be}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMrhjUubj)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghMrhjhubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjghMrhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌget_dev_pagemap (C function)c.get_dev_pagemaphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h8struct dev_pagemap * get_dev_pagemap (unsigned long pfn)h]h)}(h6struct dev_pagemap *get_dev_pagemap(unsigned long pfn)h](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&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(unsigned long pfn)h]j)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hpfnh]hpfn}(hj]hhhNhNubah}(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)}(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-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(hL**Parameters** ``unsigned long pfn`` page frame number to lookup page_maph](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.chMhjubj)}(hhh]j)}(h:``unsigned long pfn`` page frame number to lookup page_maph](j)}(h``unsigned long pfn``h]j?)}(hjh]hunsigned long pfn}(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.chMhjubj)}(hhh]j9)}(h$page frame number to lookup page_maph]h$page frame number to lookup page_map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hN/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:118: ./mm/memremap.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ vma_kernel_pagesize (C function)c.vma_kernel_pagesizehNtauh1hhjǒhhhNhNubh)}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj>hMubj)}(hlongh]hlong}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj>hMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj>hMubh)}(hvma_kernel_pagesizeh]h)}(hvma_kernel_pagesizeh]hvma_kernel_pagesize}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ](jjeh"]h$]h&]jj uh1hhj,hhhj>hMubj)}(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)}jXjosbc.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 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#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%hhhj>hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j$j4j$j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj.h]h Parameters}(hj0hhhNhNubah}(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.chMhj(ubj)}(hhh]j)}(h1``struct vm_area_struct *vma`` The user mapping. h](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&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjGubj)}(hhh]j9)}(hThe user mapping.h]hThe user mapping.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubah}(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:119: ./mm/hugetlb.chMhj(ubj9)}(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.chMhj(ubj9)}(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 hj(ubj9)}(h 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 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]jjc.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 uh1jhj(ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMWubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMWubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMWhjhhubj )}(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.chMWhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMWubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j;j4j;j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chM[hj?ubj)}(hhh](j)}(h-``struct folio *folio`` the folio to isolate h](j)}(h``struct folio *folio``h]j?)}(hjdh]hstruct folio *folio}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMXhj^ubj)}(hhh]j9)}(hthe folio to isolateh]hthe folio to isolate}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjyhMXhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMXhj[ubj)}(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.chMYhjubj)}(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&]uh1j8hjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhj[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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chM[hj?ubj9)}(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.chMZhj?ubj9)}(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.chM^hj?ubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMahj?ubj9)}(h **Return**h]jz)}(hj/h]hReturn}(hj1hhhNhNubah}(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.chMdhj?ubj9)}(h*True if isolation worked, otherwise False.h]h*True if isolation worked, otherwise False.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMehj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"folio_putback_hugetlb (C function)c.folio_putback_hugetlbhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h0void folio_putback_hugetlb (struct folio *folio)h]h)}(h/void folio_putback_hugetlb(struct folio *folio)h](j)}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubh)}(hfolio_putback_hugetlbh]h)}(hfolio_putback_hugetlbh]hfolio_putback_hugetlb}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjphhhjhMubj)}(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 }(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 uh1jhjphhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjlhhhjhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjihhubj )}(hhh]j9)}(hunisolate a hugetlb folioh]hunisolate a hugetlb folio}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jLj4jLj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjTubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjPubj)}(hhh]j)}(h3``struct folio *folio`` the isolated hugetlb folio h](j)}(h``struct folio *folio``h]j?)}(hjuh]hstruct folio *folio}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjsubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjoubj)}(hhh]j9)}(hthe isolated hugetlb folioh]hthe isolated hugetlb folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubah}(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&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:119: ./mm/hugetlb.chMhjPubj9)}(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.chMhjPubj9)}(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.chMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_mark_accessed (C function)c.folio_mark_accessedhNtauh1hhjǒhhhNhNubh)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(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 uh1hhjhhhjhMubj)}(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}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]je)}jXj'sbc.folio_mark_accessedasbuh1hhj=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 uh1jhj9ubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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`` The folio to mark. 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)}(hThe folio to mark.h]hThe folio to mark.}(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}(hjBhhhNhNubah}(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.chMhjubj9)}(h inactive,referencedh]j9)}(hjjh]h6inactive,unreferenced -> inactive,referenced}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjhubah}(h]h ]h"]h$]h&]uh1jv,hjeubjw,)}(h6inactive,referenced -> active,unreferencedh]j9)}(hjh]h6inactive,referenced -> active,unreferenced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubah}(h]h ]h"]h$]h&]uh1jv,hjeubjw,)}(h5active,unreferenced -> active,referenced h]j9)}(h4active,unreferenced -> active,referencedh]h4active,unreferenced -> active,referenced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubah}(h]h ]h"]h$]h&]uh1jv,hjeubeh}(h]h ]h"]h$]h&]jŰj5 uh1jhjyhMhjubj9)}(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().}(hjhhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_add_lru (C function)c.folio_add_lruhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h(void folio_add_lru (struct folio *folio)h]h)}(h'void folio_add_lru(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h folio_add_lruh]h)}(h folio_add_lruh]h folio_add_lru}(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 hjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(hfolioh]hfolio}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjCmodnameN classnameNj\j_)}jb]je)}jXj sbc.folio_add_lruasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjohhhNhNubah}(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)}(hAdd a folio to an LRU list.h]hAdd a folio to an LRU list.}(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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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`` The folio to be added to the LRU. 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)}(h!The folio to be added to the LRU.h]h!The folio to be added to the LRU.}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj9)}(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().}(hj8hhhNhNubah}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_add_lru_vma (C function)c.folio_add_lru_vmahNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hHvoid folio_add_lru_vma (struct folio *folio, struct vm_area_struct *vma)h]h)}(hGvoid folio_add_lru_vma(struct folio *folio, struct vm_area_struct *vma)h](j)}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjuhMubh)}(hfolio_add_lru_vmah]h)}(hfolio_add_lru_vmah]hfolio_add_lru_vma}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjchhhjuhMubj)}(h1(struct folio *folio, 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)}jXjsbc.folio_add_lru_vmaasbuh1hhjubj)}(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_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}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6modnameN classnameNj\j_)}jb]jc.folio_add_lru_vmaasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj`hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hvmah]hvma}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjchhhjuhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj_hhhjuhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhj\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.}(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&]uh1jhj\hhhjuhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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`` The folio to be added to the LRU. 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)}(h!The folio to be added to the LRU.h]h!The folio to be added to the LRU.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``struct vm_area_struct *vma`` VMA in which the folio is mapped. 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:120: ./mm/swap.chMhj ubj)}(hhh]j9)}(h!VMA in which the folio is mapped.h]h!VMA in which the folio is mapped.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubeh}(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&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhjubj9)}(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, }(hjbhhhNhNubjz)}(h **folio**h]hfolio}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjbubh\ is added to the unevictable list. Otherwise, it is treated the same way as folio_add_lru().}(hjbhhhNhNubeh}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"deactivate_file_folio (C function)c.deactivate_file_foliohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h0void deactivate_file_folio (struct folio *folio)h]h)}(h/void deactivate_file_folio(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hdeactivate_file_folioh]h)}(hdeactivate_file_folioh]hdeactivate_file_folio}(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.deactivate_file_folioasbuh1hhjubj)}(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}(hj9hhhNhNubah}(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)}(hDeactivate a file folio.h]hDeactivate a file folio.}(hjchhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j{j4j{j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjh]hContext}(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)}(h&Caller holds a reference on the folio.h]h&Caller holds a reference on the folio.}(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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ folio_mark_lazyfree (C function)c.folio_mark_lazyfreehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h.void folio_mark_lazyfree (struct folio *folio)h]h)}(h-void folio_mark_lazyfree(struct folio *folio)h](j)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhMubh)}(hfolio_mark_lazyfreeh]h)}(hfolio_mark_lazyfreeh]hfolio_mark_lazyfree}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ](jjeh"]h$]h&]jj uh1hhjYhhhjkhMubj)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjYhhhjkhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjUhhhjkhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjkhMhjRhhubj )}(hhh]j9)}(hmake an anon folio lazyfreeh]hmake an anon folio lazyfree}(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&]uh1jhjRhhhjkhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j5j4j5j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:120: ./mm/swap.chMhj9ubj)}(hhh]j)}(h,``struct folio *folio`` folio to deactivate 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.chMhjXubj)}(hhh]j9)}(hfolio to deactivateh]hfolio to deactivate}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubj9)}(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.chMhj9ubj9)}(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.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolios_put_refs (C function)c.folios_put_refshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hEvoid folios_put_refs (struct folio_batch *folios, unsigned int *refs)h]h)}(hDvoid folios_put_refs(struct folio_batch *folios, unsigned int *refs)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hfolios_put_refsh]h)}(hfolios_put_refsh]hfolios_put_refs}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h0(struct folio_batch *folios, unsigned int *refs)h](j)}(hstruct folio_batch *foliosh](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)}(h folio_batchh]h folio_batch}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj_modnameN classnameNj\j_)}jb]je)}jXj%sbc.folios_put_refsasbuh1hhj;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)}(hfoliosh]hfolios}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj7ubj)}(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 uh1jhj7ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j8 j4j8 j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjB h]h Parameters}(hjD 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_batch *folios`` The folios. h](j)}(h``struct folio_batch *folios``h]j?)}(hja h]hstruct folio_batch *folios}(hjc 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 folios.h]h The folios.}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjv hMhjw ubah}(h]h ]h"]h$]h&]uh1jhj[ ubeh}(h]h ]h"]h$]h&]uh1jhjv hMhjX ubj)}(hG``unsigned int *refs`` The number of refs to subtract from each folio. h](j)}(h``unsigned int *refs``h]j?)}(hj h]hunsigned int *refs}(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 number of refs to subtract from each folio.h]h/The number of refs to subtract from each folio.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjX 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:120: ./mm/swap.chMhj< ubj9)}(hXdLike folio_put(), but for a batch of folios. This is more efficient than writing the loop yourself as it will optimise the locks which need to be taken if the folios are freed. The folios batch is returned empty and ready to be reused for another batch; there is no need to reinitialise it. If **refs** is NULL, we subtract one from each folio refcount.h](hX)Like folio_put(), but for a batch of folios. This is more efficient than writing the loop yourself as it will optimise the locks which need to be taken if the folios are freed. The folios batch is returned empty and ready to be reused for another batch; there is no need to reinitialise it. If }(hj hhhNhNubjz)}(h**refs**h]hrefs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh3 is NULL, we subtract one from each folio refcount.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.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:120: ./mm/swap.chMhj< 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.}(hj$!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&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌrelease_pages (C function)c.release_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h2void release_pages (release_pages_arg arg, int nr)h]h)}(h1void release_pages(release_pages_arg arg, int nr)h](j)}(hvoidh]hvoid}(hjS!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO!hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMubj)}(h h]h }(hjb!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO!hhhja!hMubh)}(h release_pagesh]h)}(h release_pagesh]h release_pages}(hjt!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjp!ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjO!hhhja!hMubj)}(h(release_pages_arg arg, int nr)h](j)}(hrelease_pages_arg argh](h)}(hhh]h)}(hrelease_pages_argh]hrelease_pages_arg}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj!modnameN classnameNj\j_)}jb]je)}jXjv!sbc.release_pagesasbuh1hhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hargh]harg}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj!ubj)}(hint nrh](j)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hnrh]hnr}(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!hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjK!hhhja!hMubah}(h]jF!ah ](jjeh"]h$]h&]jj)jhuh1hhja!hMhjH!hhubj )}(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.chMhj"hhubah}(h]h ]h"]h$]h&]uh1jhjH!hhhja!hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j8"j4j8"j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjB"h]h Parameters}(hjD"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)}(h4``release_pages_arg arg`` array of pages to release h](j)}(h``release_pages_arg arg``h]j?)}(hja"h]hrelease_pages_arg arg}(hjc"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)}(harray of pages to releaseh]harray of pages to release}(hjz"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjv"hMhjw"ubah}(h]h ]h"]h$]h&]uh1jhj["ubeh}(h]h ]h"]h$]h&]uh1jhjv"hMhjX"ubj)}(h``int nr`` number of pages h](j)}(h ``int nr``h]j?)}(hj"h]hint nr}(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)}(hnumber of pagesh]hnumber of pages}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjX"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:120: ./mm/swap.chMhj<"ubj9)}(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 }(hj"hhhNhNubjz)}(h**arg**h]harg}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"ubh@. If it fell to zero, remove the page from the LRU and free it.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chMhj<"ubj9)}(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.chMhj<"ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,folio_batch_remove_exceptionals (C function)!c.folio_batch_remove_exceptionalshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hAvoid folio_batch_remove_exceptionals (struct folio_batch *fbatch)h]h)}(h@void folio_batch_remove_exceptionals(struct folio_batch *fbatch)h](j)}(hvoidh]hvoid}(hj;#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7#hhhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM+ubj)}(h h]h }(hjJ#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7#hhhjI#hM+ubh)}(hfolio_batch_remove_exceptionalsh]h)}(hfolio_batch_remove_exceptionalsh]hfolio_batch_remove_exceptionals}(hj\#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjX#ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj7#hhhjI#hM+ubj)}(h(struct folio_batch *fbatch)h]j)}(hstruct folio_batch *fbatchh](j!)}(hj$h]hstruct}(hjx#hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjt#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt#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.folio_batch_remove_exceptionalsasbuh1hhjt#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)}(hfbatchh]hfbatch}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjt#ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjp#ubah}(h]h ]h"]h$]h&]jj uh1jhj7#hhhjI#hM+ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj3#hhhjI#hM+ubah}(h]j.#ah ](jjeh"]h$]h&]jj)jhuh1hhjI#hM+hj0#hhubj )}(hhh]j9)}(hPrune non-folios from a batch.h]hPrune non-folios from a batch.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM+hj#hhubah}(h]h ]h"]h$]h&]uh1jhj0#hhhjI#hM+ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j$j4j$j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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.chM/hj$ubj)}(hhh]j)}(h2``struct folio_batch *fbatch`` The batch to prune 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&]uh1jhJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM,hj6$ubj)}(hhh]j9)}(hThe batch to pruneh]hThe batch to prune}(hjU$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjQ$hM,hjR$ubah}(h]h ]h"]h$]h&]uh1jhj6$ubeh}(h]h ]h"]h$]h&]uh1jhjQ$hM,hj3$ubah}(h]h ]h"]h$]h&]uh1jhj$ubj9)}(h**Description**h]jz)}(hjw$h]h Description}(hjy$hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhju$ubah}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM.hj$ubj9)}(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 }(hj$hhhNhNubjz)}(h **fbatch**h]hfbatch}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj$ubhS without leaving holes, so that it can be passed on to folio-only batch operations.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hJ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:120: ./mm/swap.chM-hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&mem_cgroup_css_from_folio (C function)c.mem_cgroup_css_from_foliohNtauh1hhjǒhhhNhNubh)}(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}(hj$hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj$hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chKubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj$hKubh)}(hhh]h)}(hcgroup_subsys_stateh]hcgroup_subsys_state}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj$modnameN classnameNj\j_)}jb]je)}jXmem_cgroup_css_from_foliosbc.mem_cgroup_css_from_folioasbuh1hhj$hhhj$hKubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj$hKubj2 )}(hj5 h]h*}(hj%hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj$hhhj$hKubh)}(hmem_cgroup_css_from_folioh]h)}(hj %h]hmem_cgroup_css_from_folio}(hj-%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)%ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj$hhhj$hKubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjH%hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjD%ubj)}(h h]h }(hjU%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD%ubh)}(hhh]h)}(hfolioh]hfolio}(hjf%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjc%ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjh%modnameN classnameNj\j_)}jb]j %c.mem_cgroup_css_from_folioasbuh1hhjD%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD%ubj2 )}(hj5 h]h*}(hj%hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjD%ubh)}(hfolioh]hfolio}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjD%ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj@%ubah}(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(css of the memcg associated with a folioh]h(css of the memcg associated with a folio}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chKhj%hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j%j4j%j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chKhj%ubj)}(hhh]j)}(h*``struct folio *folio`` folio of interest 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chKhj&ubj)}(hhh]j9)}(hfolio of interesth]hfolio of interest}(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)}(hjE&h]h Description}(hjG&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjC&ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chKhj%ubj9)}(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 }(hj[&hhhNhNubjz)}(h **folio**h]hfolio}(hjc&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[&ubh8 is returned. The returned css remains associated with }(hj[&hhhNhNubjz)}(h **folio**h]hfolio}(hju&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[&ubh until it is released.}(hj[&hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chKhj%ubj9)}(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&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chKhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpage_cgroup_ino (C function)c.page_cgroup_inohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h)ino_t page_cgroup_ino (struct page *page)h]h)}(h(ino_t page_cgroup_ino(struct page *page)h](h)}(hhh]h)}(hino_th]hino_t}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj&modnameN classnameNj\j_)}jb]je)}jXpage_cgroup_inosbc.page_cgroup_inoasbuh1hhj&hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hMubh)}(hpage_cgroup_inoh]h)}(hj&h]hpage_cgroup_ino}(hj&hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj&hhhj&hMubj)}(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]j&c.page_cgroup_inoasbuh1hhj '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)}(hpageh]hpage}(hjf'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)}(h5return inode number of the memcg a page is charged toh]h5return inode number of the memcg a page is charged to}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j'j4j'j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chM hj'ubj)}(hhh]j)}(h``struct page *page`` the 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj'ubj)}(hhh]j9)}(hthe pageh]hthe 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**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:121: ./mm/memcontrol.chM hj'ubj9)}(hLook up the closest online ancestor of the memory cgroup **page** is charged to and return its inode number or 0 if **page** is not charged to any cgroup. It is safe to call this function without holding a reference to **page**.h](h9Look up the closest online ancestor of the memory cgroup }(hj"(hhhNhNubjz)}(h**page**h]hpage}(hj*(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"(ubh3 is charged to and return its inode number or 0 if }(hj"(hhhNhNubjz)}(h**page**h]hpage}(hj<(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"(ubh_ is not charged to any cgroup. It is safe to call this function without holding a reference to }(hj"(hhhNhNubjz)}(h**page**h]hpage}(hjN(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:121: ./mm/memcontrol.chMhj'ubj9)}(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).}(hjg(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmod_memcg_state (C function)c.mod_memcg_statehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hRvoid mod_memcg_state (struct mem_cgroup *memcg, enum memcg_stat_item idx, int val)h]h)}(hQvoid mod_memcg_state(struct mem_cgroup *memcg, enum memcg_stat_item idx, int val)h](j)}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj(hMubh)}(hmod_memcg_stateh]h)}(hmod_memcg_stateh]hmod_memcg_state}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj(hhhj(hMubj)}(h=(struct mem_cgroup *memcg, enum memcg_stat_item idx, int val)h](j)}(hstruct mem_cgroup *memcgh](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 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)}jXj(sbc.mod_memcg_stateasbuh1hhj(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)}(hmemcgh]hmemcg}(hj,)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj(ubj)}(henum memcg_stat_item idxh](j!)}(hjeh]henum}(hjE)hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjA)ubj)}(h h]h }(hjR)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA)ubh)}(hhh]h)}(hmemcg_stat_itemh]hmemcg_stat_item}(hjc)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`)ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetje)modnameN classnameNj\j_)}jb]j )c.mod_memcg_stateasbuh1hhjA)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA)ubh)}(hidxh]hidx}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjA)ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj(ubj)}(hint valh](j)}(hinth]hint}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hvalh]hval}(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)}(hupdate cgroup memory statisticsh]hupdate cgroup memory statistics}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j*j4j*j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chMhj *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}(hj1*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:121: ./mm/memcontrol.chMhj)*ubj)}(hhh]j9)}(hthe memory cgrouph]hthe memory cgroup}(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)}(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?)}(hjh*h]henum memcg_stat_item idx}(hjj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjf*ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjb*ubj)}(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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj}*hMhj~*ubah}(h]h ]h"]h$]h&]uh1jhjb*ubeh}(h]h ]h"]h$]h&]uh1jhj}*hMhj&*ubj)}(h8``int val`` delta to add to the counter, can be negativeh](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:121: ./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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj&*ubeh}(h]h ]h"]h$]h&]uh1jhj *ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__mod_lruvec_state (C function)c.__mod_lruvec_statehNtauh1hhjǒhhhNhNubh)}(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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj +hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj +hMubh)}(h__mod_lruvec_stateh]h)}(h__mod_lruvec_stateh]h__mod_lruvec_state}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj*hhhj +hMubj)}(h9(struct lruvec *lruvec, enum node_stat_item idx, int val)h](j)}(hstruct lruvec *lruvech](j!)}(hj$h]hstruct}(hj8+hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4+ubj)}(h h]h }(hjE+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4+ubh)}(hhh]h)}(hlruvech]hlruvec}(hjV+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjS+ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjX+modnameN classnameNj\j_)}jb]je)}jXj+sbc.__mod_lruvec_stateasbuh1hhj4+ubj)}(h h]h }(hjv+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4+ubj2 )}(hj5 h]h*}(hj+hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4+ubh)}(hlruvech]hlruvec}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4+ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj0+ubj)}(henum node_stat_item idxh](j!)}(hjeh]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)}(hnode_stat_itemh]hnode_stat_item}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj+modnameN classnameNj\j_)}jb]jr+c.__mod_lruvec_stateasbuh1hhj+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 uh1jhj0+ubj)}(hint valh](j)}(hinth]hint}(hj ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ,ubh)}(hvalh]hval}(hj),hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ,ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj0+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)}(hupdate lruvec memory statisticsh]hupdate lruvec memory statistics}(hjS,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjP,hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj +hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jk,j4jk,j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hju,h]h Parameters}(hjw,hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjs,ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjo,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:121: ./mm/memcontrol.chMhj,ubj)}(hhh]j9)}(h the lruvech]h the lruvec}(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*``enum node_stat_item idx`` the stat item h](j)}(h``enum node_stat_item idx``h]j?)}(hj,h]henum node_stat_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:121: ./mm/memcontrol.chMhj,ubj)}(hhh]j9)}(h the stat itemh]h the stat item}(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)}(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:121: ./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&]uh1jhjo,ubj9)}(h**Description**h]jz)}(hjA-h]h Description}(hjC-hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?-ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjo,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.}(hjW-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjo,ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌcount_memcg_events (C function)c.count_memcg_eventshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h_void count_memcg_events (struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h]h)}(h^void count_memcg_events(struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h](j)}(hvoidh]hvoid}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM:ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj-hM:ubh)}(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-hM:ubj)}(hG(struct mem_cgroup *memcg, enum vm_event_item idx, unsigned long count)h](j)}(hstruct mem_cgroup *memcgh](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 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)}jXj-sbc.count_memcg_eventsasbuh1hhj-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)}(hmemcgh]hmemcg}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubj)}(henum vm_event_item idxh](j!)}(hjeh]henum}(hj5.hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj1.ubj)}(h h]h }(hjB.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1.ubh)}(hhh]h)}(h vm_event_itemh]h vm_event_item}(hjS.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjP.ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjU.modnameN classnameNj\j_)}jb]j-c.count_memcg_eventsasbuh1hhj1.ubj)}(h h]h }(hjq.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1.ubh)}(hidxh]hidx}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1.ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-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}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hcounth]hcount}(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]jy-ah ](jjeh"]h$]h&]jj)jhuh1hhj-hM:hj{-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:121: ./mm/memcontrol.chM:hj.hhubah}(h]h ]h"]h$]h&]uh1jhj{-hhhj-hM:ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j/j4j/j5j6j7uh1hhhhjǒhNhNubjp)}(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:121: ./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>hj9/ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM;hj5/ubj)}(hhh]j9)}(hthe memory cgrouph]hthe memory cgroup}(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/ubj)}(h*``enum vm_event_item idx`` the event item h](j)}(h``enum vm_event_item idx``h]j?)}(hjt/h]henum vm_event_item idx}(hjv/hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjr/ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM<hjn/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&]uh1jhjn/ubeh}(h]h ]h"]h$]h&]uh1jhj/hM<hj2/ubj)}(h:``unsigned long count`` the number of events that occurredh](j)}(h``unsigned long count``h]j?)}(hj/h]hunsigned long count}(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:121: ./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:121: ./mm/memcontrol.chM=hj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hM>hj2/ubeh}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#get_mem_cgroup_from_mm (C function)c.get_mem_cgroup_from_mmhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hAstruct mem_cgroup * get_mem_cgroup_from_mm (struct mm_struct *mm)h]h)}(h?struct mem_cgroup *get_mem_cgroup_from_mm(struct mm_struct *mm)h](j!)}(hj$h]hstruct}(hj0hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj0hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj0hMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj&0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#0ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj(0modnameN classnameNj\j_)}jb]je)}jXget_mem_cgroup_from_mmsbc.get_mem_cgroup_from_mmasbuh1hhj0hhhj0hMubj)}(h h]h }(hjG0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj0hMubj2 )}(hj5 h]h*}(hjU0hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj0hhhj0hMubh)}(hget_mem_cgroup_from_mmh]h)}(hjD0h]hget_mem_cgroup_from_mm}(hjf0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjb0ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj0hhhj0hMubj)}(h(struct mm_struct *mm)h]j)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hj0hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj}0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}0ubh)}(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]jB0c.get_mem_cgroup_from_mmasbuh1hhj}0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}0ubj2 )}(hj5 h]h*}(hj0hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj}0ubh)}(hmmh]hmm}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}0ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjy0ubah}(h]h ]h"]h$]h&]jj uh1jhj0hhhj0hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj/hhhj0hMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhj0hMhj/hhubj )}(hhh]j9)}(h.Obtain a reference on given mm_struct's memcg.h]h0Obtain a reference on given mm_struct’s memcg.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj0hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j1j4j1j5j6j7uh1hhhhjǒhNhNubjp)}(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$1h]h Parameters}(hj&1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"1ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj1ubj)}(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?)}(hjC1h]hstruct mm_struct *mm}(hjE1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjA1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj=1ubj)}(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\1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjX1hMhjY1ubah}(h]h ]h"]h$]h&]uh1jhj=1ubeh}(h]h ]h"]h$]h&]uh1jhjX1hMhj:1ubah}(h]h ]h"]h$]h&]uh1jhj1ubj9)}(h**Description**h]jz)}(hj~1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|1ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj1ubj9)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(get_mem_cgroup_from_current (C function)c.get_mem_cgroup_from_currenthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h6struct mem_cgroup * get_mem_cgroup_from_current (void)h]h)}(h4struct mem_cgroup *get_mem_cgroup_from_current(void)h](j!)}(hj$h]hstruct}(hj1hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj1hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]je)}jXget_mem_cgroup_from_currentsbc.get_mem_cgroup_from_currentasbuh1hhj1hhhj1hMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMubj2 )}(hj5 h]h*}(hj2hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj1hhhj1hMubh)}(hget_mem_cgroup_from_currenth]h)}(hj2h]hget_mem_cgroup_from_current}(hj"2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj1hhhj1hMubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hj=2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj92ubah}(h]h ]h"]h$]h&]noemphjj uh1jhj52ubah}(h]h ]h"]h$]h&]jj uh1jhj1hhhj1hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj1hhhj1hMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhj1hhubj )}(hhh]j9)}(h+Obtain a reference on current task's memcg.h]h-Obtain a reference on current task’s memcg.}(hjg2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjd2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j2j4j2j5j6j7uh1hhhhjǒhNhNubjp)}(h'**Parameters** ``void`` no argumentsh](j9)}(h**Parameters**h]jz)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj2ubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]j?)}(hj2h]hvoid}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj2ubj)}(hhh]j9)}(h no argumentsh]h no arguments}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&get_mem_cgroup_from_folio (C function)c.get_mem_cgroup_from_foliohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hCstruct mem_cgroup * get_mem_cgroup_from_folio (struct folio *folio)h]h)}(hAstruct mem_cgroup *get_mem_cgroup_from_folio(struct folio *folio)h](j!)}(hj$h]hstruct}(hj3hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj2hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj3hMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj!3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj#3modnameN classnameNj\j_)}jb]je)}jXget_mem_cgroup_from_foliosbc.get_mem_cgroup_from_folioasbuh1hhj2hhhj3hMubj)}(h h]h }(hjB3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj3hMubj2 )}(hj5 h]h*}(hjP3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj2hhhj3hMubh)}(hget_mem_cgroup_from_folioh]h)}(hj?3h]hget_mem_cgroup_from_folio}(hja3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]3ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj2hhhj3hMubj)}(h(struct folio *folio)h]j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hj|3hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjx3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx3ubh)}(hhh]h)}(hfolioh]hfolio}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj3modnameN classnameNj\j_)}jb]j=3c.get_mem_cgroup_from_folioasbuh1hhjx3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx3ubj2 )}(hj5 h]h*}(hj3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjx3ubh)}(hfolioh]hfolio}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjx3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjt3ubah}(h]h ]h"]h$]h&]jj uh1jhj2hhhj3hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj2hhhj3hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj3hMhj2hhubj )}(hhh]j9)}(h,Obtain a reference on a given folio's memcg.h]h.Obtain a reference on a given folio’s memcg.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj3hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j4j4j4j5j6j7uh1hhhhjǒhNhNubjp)}(hU**Parameters** ``struct folio *folio`` folio from which memcg should be extracted.h](j9)}(h**Parameters**h]jz)}(hj4h]h Parameters}(hj!4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj4ubj)}(hhh]j)}(hC``struct folio *folio`` folio from which memcg should be extracted.h](j)}(h``struct folio *folio``h]j?)}(hj>4h]hstruct folio *folio}(hj@4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj<4ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj84ubj)}(hhh]j9)}(h+folio from which memcg should be extracted.h]h+folio from which memcg should be extracted.}(hjW4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjT4ubah}(h]h ]h"]h$]h&]uh1jhj84ubeh}(h]h ]h"]h$]h&]uh1jhjS4hMhj54ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmem_cgroup_iter (C function)c.mem_cgroup_iterhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hstruct mem_cgroup * mem_cgroup_iter (struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h]h)}(hstruct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h](j!)}(hj$h]hstruct}(hj4hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj4hMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj4modnameN classnameNj\j_)}jb]je)}jXmem_cgroup_itersbc.mem_cgroup_iterasbuh1hhj4hhhj4hMubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj4hMubj2 )}(hj5 h]h*}(hj4hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4hhhj4hMubh)}(hmem_cgroup_iterh]h)}(hj4h]hmem_cgroup_iter}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj4hhhj4hMubj)}(h](struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)h](j)}(hstruct mem_cgroup *rooth](j!)}(hj$h]hstruct}(hj5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj05hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj25modnameN classnameNj\j_)}jb]j4c.mem_cgroup_iterasbuh1hhj5ubj)}(h h]h }(hjN5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2 )}(hj5 h]h*}(hj\5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj5ubh)}(hrooth]hroot}(hji5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj 5ubj)}(hstruct mem_cgroup *prevh](j!)}(hj$h]hstruct}(hj5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj~5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~5ubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj5modnameN classnameNj\j_)}jb]j4c.mem_cgroup_iterasbuh1hhj~5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~5ubj2 )}(hj5 h]h*}(hj5hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj~5ubh)}(hprevh]hprev}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj 5ubj)}(h)struct mem_cgroup_reclaim_cookie *reclaimh](j!)}(hj$h]hstruct}(hj5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]h)}(hmem_cgroup_reclaim_cookieh]hmem_cgroup_reclaim_cookie}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj 6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6modnameN classnameNj\j_)}jb]j4c.mem_cgroup_iterasbuh1hhj5ubj)}(h h]h }(hj.6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2 )}(hj5 h]h*}(hj<6hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj5ubh)}(hreclaimh]hreclaim}(hjI6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj 5ubeh}(h]h ]h"]h$]h&]jj uh1jhj4hhhj4hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4hhhj4hMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1hhj4hMhj4hhubj )}(hhh]j9)}(h$iterate over memory cgroup hierarchyh]h$iterate over memory cgroup hierarchy}(hjs6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjp6hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj4hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j6j4j6j5j6j7uh1hhhhjǒhNhNubjp)}(hX**Parameters** ``struct mem_cgroup *root`` hierarchy root ``struct mem_cgroup *prev`` previously returned memcg, NULL on first invocation ``struct mem_cgroup_reclaim_cookie *reclaim`` cookie for shared reclaim walks, NULL for full walks **Description** Returns references to children of the hierarchy below **root**, or **root** itself, or ``NULL`` after a full round-trip. Caller must pass the return value in **prev** on subsequent invocations for reference counting, or use mem_cgroup_iter_break() to cancel a hierarchy walk before the round-trip is complete. Reclaimers can specify a node in **reclaim** to divide up the memcgs in the hierarchy among all concurrent reclaimers operating on the same node.h](j9)}(h**Parameters**h]jz)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj6ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj6ubj)}(hhh](j)}(h+``struct mem_cgroup *root`` hierarchy root h](j)}(h``struct mem_cgroup *root``h]j?)}(hj6h]hstruct mem_cgroup *root}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj6ubj)}(hhh]j9)}(hhierarchy rooth]hhierarchy root}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj6ubj)}(hP``struct mem_cgroup *prev`` previously returned memcg, NULL on first invocation h](j)}(h``struct mem_cgroup *prev``h]j?)}(hj6h]hstruct mem_cgroup *prev}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj6ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj6ubj)}(hhh]j9)}(h3previously returned memcg, NULL on first invocationh]h3previously returned memcg, NULL on first invocation}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj6ubj)}(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?)}(hj&7h]h)struct mem_cgroup_reclaim_cookie *reclaim}(hj(7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj$7ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj 7ubj)}(hhh]j9)}(h4cookie for shared reclaim walks, NULL for full walksh]h4cookie for shared reclaim walks, NULL for full walks}(hj?7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj;7hMhj<7ubah}(h]h ]h"]h$]h&]uh1jhj 7ubeh}(h]h ]h"]h$]h&]uh1jhj;7hMhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6ubj9)}(h**Description**h]jz)}(hja7h]h Description}(hjc7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_7ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj6ubj9)}(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 }(hjw7hhhNhNubjz)}(h**root**h]hroot}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjw7ubh, or }(hjw7hhhNhNubjz)}(h**root**h]hroot}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjw7ubh itself, or }(hjw7hhhNhNubj?)}(h``NULL``h]hNULL}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjw7ubh after a full round-trip.}(hjw7hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj6ubj9)}(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 }(hj7hhhNhNubjz)}(h**prev**h]hprev}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubh on subsequent invocations for reference counting, or use mem_cgroup_iter_break() to cancel a hierarchy walk before the round-trip is complete.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj6ubj9)}(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 }(hj7hhhNhNubjz)}(h **reclaim**h]hreclaim}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubhe to divide up the memcgs in the hierarchy among all concurrent reclaimers operating on the same node.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"mem_cgroup_iter_break (C function)c.mem_cgroup_iter_breakhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hMvoid mem_cgroup_iter_break (struct mem_cgroup *root, struct mem_cgroup *prev)h]h)}(hLvoid mem_cgroup_iter_break(struct mem_cgroup *root, struct mem_cgroup *prev)h](j)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMBubj)}(h h]h }(hj-8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj,8hMBubh)}(hmem_cgroup_iter_breakh]h)}(hmem_cgroup_iter_breakh]hmem_cgroup_iter_break}(hj?8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;8ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8hhhj,8hMBubj)}(h2(struct mem_cgroup *root, struct mem_cgroup *prev)h](j)}(hstruct mem_cgroup *rooth](j!)}(hj$h]hstruct}(hj[8hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjW8ubj)}(h h]h }(hjh8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW8ubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjy8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjv8ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj{8modnameN classnameNj\j_)}jb]je)}jXjA8sbc.mem_cgroup_iter_breakasbuh1hhjW8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW8ubj2 )}(hj5 h]h*}(hj8hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjW8ubh)}(hrooth]hroot}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjW8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjS8ubj)}(hstruct mem_cgroup *prevh](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)}(h mem_cgrouph]h mem_cgroup}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj8modnameN classnameNj\j_)}jb]j8c.mem_cgroup_iter_breakasbuh1hhj8ubj)}(h h]h }(hj 9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2 )}(hj5 h]h*}(hj9hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj8ubh)}(hprevh]hprev}(hj$9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjS8ubeh}(h]h ]h"]h$]h&]jj uh1jhj8hhhj,8hMBubeh}(h]h ]h"]h$]h&]jj juh1hjjhj8hhhj,8hMBubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhj,8hMBhj8hhubj )}(hhh]j9)}(h"abort a hierarchy walk prematurelyh]h"abort a hierarchy walk prematurely}(hjN9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMBhjK9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj,8hMBubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jf9j4jf9j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjp9h]h Parameters}(hjr9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjn9ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMFhjj9ubj)}(hhh](j)}(h+``struct mem_cgroup *root`` hierarchy root h](j)}(h``struct mem_cgroup *root``h]j?)}(hj9h]hstruct mem_cgroup *root}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMChj9ubj)}(hhh]j9)}(hhierarchy rooth]hhierarchy root}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj9hMChj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMChj9ubj)}(hZ``struct mem_cgroup *prev`` last visited hierarchy member as returned by mem_cgroup_iter()h](j)}(h``struct mem_cgroup *prev``h]j?)}(hj9h]hstruct mem_cgroup *prev}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj9ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMEhj9ubj)}(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()}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMDhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMEhj9ubeh}(h]h ]h"]h$]h&]uh1jhjj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"mem_cgroup_scan_tasks (C function)c.mem_cgroup_scan_taskshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hivoid mem_cgroup_scan_tasks (struct mem_cgroup *memcg, int (*fn)(struct task_struct *, void *), void *arg)h]h)}(hfvoid mem_cgroup_scan_tasks(struct mem_cgroup *memcg, int (*fn)(struct task_struct*, void*), void *arg)h](j)}(hvoidh]hvoid}(hj":hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMsubj)}(h h]h }(hj1:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj0:hMsubh)}(hmem_cgroup_scan_tasksh]h)}(hmem_cgroup_scan_tasksh]hmem_cgroup_scan_tasks}(hjC:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?:ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj:hhhj0:hMsubj)}(hL(struct mem_cgroup *memcg, int (*fn)(struct task_struct*, void*), void *arg)h](j)}(hstruct mem_cgroup *memcgh](j!)}(hj$h]hstruct}(hj_:hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj[:ubj)}(h h]h }(hjl:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[:ubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj}:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjz:ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]je)}jXjE:sbc.mem_cgroup_scan_tasksasbuh1hhj[: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)}(hmemcgh]hmemcg}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[:ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjW:ubj)}(h%int (*fn)(struct task_struct*, void*)h](j)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2 )}(hj!h]h(}(hj:hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj:ubj2 )}(hj5 h]h*}(hj:hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj:ubh)}(hfnh]hfn}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:ubj2 )}(hjD!h]h)}(hj;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj:ubj2 )}(hj!h]h(}(hj";hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj: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)}(h task_structh]h task_struct}(hjM;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJ;ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjO;modnameN classnameNj\j_)}jb]j:c.mem_cgroup_scan_tasksasbuh1hhj:ubj2 )}(hj5 h]h*}(hjk;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj:ubj2 )}(h,h]h,}(hjx;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj:ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2 )}(hj5 h]h*}(hj;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj:ubj2 )}(hjD!h]h)}(hj;hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj:ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjW:ubj)}(h void *argh](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)}(hargh]harg}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjW:ubeh}(h]h ]h"]h$]h&]jj uh1jhj:hhhj0:hMsubeh}(h]h ]h"]h$]h&]jj juh1hjjhj:hhhj0:hMsubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhj0:hMshj:hhubj )}(hhh]j9)}(h/iterate over tasks of a memory cgroup hierarchyh]h/iterate over tasks of a memory cgroup hierarchy}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMshj<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj0:hMsubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j2<j4j2<j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chMwhj6<ubj)}(hhh](j)}(h,``struct mem_cgroup *memcg`` hierarchy root h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hj[<h]hstruct mem_cgroup *memcg}(hj]<hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjY<ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMthjU<ubj)}(hhh]j9)}(hhierarchy rooth]hhierarchy root}(hjt<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjp<hMthjq<ubah}(h]h ]h"]h$]h&]uh1jhjU<ubeh}(h]h ]h"]h$]h&]uh1jhjp<hMthjR<ubj)}(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<h]h'int (*fn)(struct task_struct *, void *)}(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:121: ./mm/memcontrol.chMuhj<ubj)}(hhh]j9)}(hfunction to call for each taskh]hfunction to call for each task}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<hMuhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMuhjR<ubj)}(h(``void *arg`` argument passed to **fn** h](j)}(h ``void *arg``h]j?)}(hj<h]h void *arg}(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:121: ./mm/memcontrol.chMvhj<ubj)}(hhh]j9)}(hargument passed to **fn**h](hargument passed to }(hj<hhhNhNubjz)}(h**fn**h]hfn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj<ubeh}(h]h ]h"]h$]h&]uh1j8hj<hMvhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMvhjR<ubeh}(h]h ]h"]h$]h&]uh1jhj6<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:121: ./mm/memcontrol.chMxhj6<ubj9)}(hThis function iterates over tasks attached to **memcg** or to any of its descendants and calls **fn** for each task. If **fn** returns a non-zero value, the function breaks the iteration loop. Otherwise, it will iterate over all tasks and return 0.h](h.This function iterates over tasks attached to }(hj,=hhhNhNubjz)}(h **memcg**h]hmemcg}(hj4=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,=ubh( or to any of its descendants and calls }(hj,=hhhNhNubjz)}(h**fn**h]hfn}(hjF=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,=ubh for each task. If }(hj,=hhhNhNubjz)}(h**fn**h]hfn}(hjX=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj,=ubhz returns a non-zero value, the function breaks the iteration loop. Otherwise, it will iterate over all tasks and return 0.}(hj,=hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMwhj6<ubj9)}(h ah"]h$]h&]uh1j1 hj=hhhj=hMubh)}(hfolio_lruvec_lockh]h)}(hj=h]hfolio_lruvec_lock}(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 }(hj'>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]h)}(hfolioh]hfolio}(hj8>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:>modnameN classnameNj\j_)}jb]j=c.folio_lruvec_lockasbuh1hhj>ubj)}(h h]h }(hjV>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)}(hLock the lruvec for a folio.h]hLock the lruvec for a folio.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j>j4j>j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chMhj>ubj)}(hhh]j)}(h.``struct folio *folio`` Pointer to 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj>ubj)}(hhh]j9)}(hPointer to the folio.h]hPointer to 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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj>ubj9)}(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-?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj>ubj9)}(h **Return**h]jz)}(hj>?h]hReturn}(hj@?hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubj9)}(h/The lruvec this folio is on with its lock held.h]h/The lruvec this folio is on with its lock held.}(hjT?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"folio_lruvec_lock_irq (C function)c.folio_lruvec_lock_irqhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h;struct lruvec * folio_lruvec_lock_irq (struct folio *folio)h]h)}(h9struct lruvec *folio_lruvec_lock_irq(struct folio *folio)h](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:121: ./mm/memcontrol.chMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj?hMubh)}(hhh]h)}(hlruvech]hlruvec}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj?modnameN classnameNj\j_)}jb]je)}jXfolio_lruvec_lock_irqsbc.folio_lruvec_lock_irqasbuh1hhj?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)}(hfolio_lruvec_lock_irqh]h)}(hj?h]hfolio_lruvec_lock_irq}(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 }(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_lruvec_lock_irqasbuh1hhj?ubj)}(h h]h }(hj9@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2 )}(hj5 h]h*}(hjG@hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj?ubh)}(hfolioh]hfolio}(hjT@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]jv?ah ](jjeh"]h$]h&]jj)jhuh1hhj?hMhjx?hhubj )}(hhh]j9)}(hLock the lruvec for a folio.h]hLock the lruvec for a folio.}(hj~@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj{@hhubah}(h]h ]h"]h$]h&]uh1jhjx?hhhj?hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j@j4j@j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chMhj@ubj)}(hhh]j)}(h.``struct folio *folio`` Pointer to 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj@ubj)}(hhh]j9)}(hPointer to the folio.h]hPointer to 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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj@ubj9)}(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)}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj@ubj9)}(h **Return**h]jz)}(hj!Ah]hReturn}(hj#AhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj@ubj9)}(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.}(hj7AhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&folio_lruvec_lock_irqsave (C function)c.folio_lruvec_lock_irqsavehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hUstruct lruvec * folio_lruvec_lock_irqsave (struct folio *folio, unsigned long *flags)h]h)}(hSstruct lruvec *folio_lruvec_lock_irqsave(struct folio *folio, unsigned long *flags)h](j!)}(hj$h]hstruct}(hjfAhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjbAhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjtAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbAhhhjsAhMubh)}(hhh]h)}(hlruvech]hlruvec}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjAmodnameN classnameNj\j_)}jb]je)}jXfolio_lruvec_lock_irqsavesbc.folio_lruvec_lock_irqsaveasbuh1hhjbAhhhjsAhMubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbAhhhjsAhMubj2 )}(hj5 h]h*}(hjAhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjbAhhhjsAhMubh)}(hfolio_lruvec_lock_irqsaveh]h)}(hjAh]hfolio_lruvec_lock_irqsave}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ](jjeh"]h$]h&]jj uh1hhjbAhhhjsAhMubj)}(h+(struct folio *folio, unsigned long *flags)h](j)}(hstruct folio *folioh](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)}(hfolioh]hfolio}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjBmodnameN classnameNj\j_)}jb]jAc.folio_lruvec_lock_irqsaveasbuh1hhjAubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2 )}(hj5 h]h*}(hj*BhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjAubh)}(hfolioh]hfolio}(hj7BhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAubj)}(hunsigned long *flagsh](j)}(hunsignedh]hunsigned}(hjPBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLBubj)}(h h]h }(hj^BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLBubj)}(hlongh]hlong}(hjlBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLBubj)}(h h]h }(hjzBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLBubj2 )}(hj5 h]h*}(hjBhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjLBubh)}(hflagsh]hflags}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLBubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjAubeh}(h]h ]h"]h$]h&]jj uh1jhjbAhhhjsAhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj^AhhhjsAhMubah}(h]jYAah ](jjeh"]h$]h&]jj)jhuh1hhjsAhMhj[Ahhubj )}(hhh]j9)}(hLock the lruvec for a folio.h]hLock the lruvec for a folio.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj[AhhhjsAhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jBj4jBj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjBubj)}(hhh](j)}(h.``struct folio *folio`` Pointer to the folio. h](j)}(h``struct folio *folio``h]j?)}(hjCh]hstruct folio *folio}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjBubj)}(hhh]j9)}(hPointer to the folio.h]hPointer to the folio.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjChMhjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjChMhjBubj)}(h3``unsigned long *flags`` Pointer to irqsave flags. h](j)}(h``unsigned long *flags``h]j?)}(hj9Ch]hunsigned long *flags}(hj;ChhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7Cubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj3Cubj)}(hhh]j9)}(hPointer to irqsave flags.h]hPointer to irqsave flags.}(hjRChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjNChMhjOCubah}(h]h ]h"]h$]h&]uh1jhj3Cubeh}(h]h ]h"]h$]h&]uh1jhjNChMhjBubeh}(h]h ]h"]h$]h&]uh1jhjBubj9)}(h**Description**h]jz)}(hjtCh]h Description}(hjvChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrCubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjBubj9)}(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)}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjBubj9)}(h **Return**h]jz)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjCubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjBubj9)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'mem_cgroup_update_lru_size (C function)c.mem_cgroup_update_lru_sizehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(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}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjChMubh)}(hmem_cgroup_update_lru_sizeh]h)}(hmem_cgroup_update_lru_sizeh]hmem_cgroup_update_lru_size}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubah}(h]h ](jjeh"]h$]h&]jj uh1hhjChhhjChMubj)}(hA(struct lruvec *lruvec, enum lru_list lru, int zid, int nr_pages)h](j)}(hstruct lruvec *lruvech](j!)}(hj$h]hstruct}(hjDhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjDubj)}(h h]h }(hj*DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]h)}(hlruvech]hlruvec}(hj;DhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8Dubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj=DmodnameN classnameNj\j_)}jb]je)}jXjDsbc.mem_cgroup_update_lru_sizeasbuh1hhjDubj)}(h h]h }(hj[DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2 )}(hj5 h]h*}(hjiDhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjDubh)}(hlruvech]hlruvec}(hjvDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(henum lru_list lruh](j!)}(hjeh]henum}(hjDhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]h)}(hlru_listh]hlru_list}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjDmodnameN classnameNj\j_)}jb]jWDc.mem_cgroup_update_lru_sizeasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hlruh]hlru}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(hint zidh](j)}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hzidh]hzid}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubj)}(h int nr_pagesh](j)}(hinth]hint}(hj'EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Eubj)}(h h]h }(hj5EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Eubh)}(hnr_pagesh]hnr_pages}(hjCEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#Eubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjDubeh}(h]h ]h"]h$]h&]jj uh1jhjChhhjChMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjChhhjChMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhjChMhjChhubj )}(hhh]j9)}(h*account for adding or removing an lru pageh]h*account for adding or removing an lru page}(hjmEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjjEhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jEj4jEj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjEubj)}(hhh](j)}(h9``struct lruvec *lruvec`` mem_cgroup per zone lru vector h](j)}(h``struct lruvec *lruvec``h]j?)}(hjEh]hstruct lruvec *lruvec}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjEubj)}(hhh]j9)}(hmem_cgroup per zone lru vectorh]hmem_cgroup per zone lru vector}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubj)}(h?``enum lru_list lru`` index of lru list the page is sitting on h](j)}(h``enum lru_list lru``h]j?)}(hjEh]henum lru_list lru}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjEubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjEubj)}(hhh]j9)}(h(index of lru list the page is sitting onh]h(index of lru list the page is sitting on}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjEubj)}(h+``int zid`` zone id of the accounted pages h](j)}(h ``int zid``h]j?)}(hj Fh]hint zid}(hj"FhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjFubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjFubj)}(hhh]j9)}(hzone id of the accounted pagesh]hzone id of the accounted pages}(hj9FhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj5FhMhj6Fubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj5FhMhjEubj)}(h@``int nr_pages`` positive when adding or negative when removing h](j)}(h``int nr_pages``h]j?)}(hjYFh]h int nr_pages}(hj[FhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWFubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjSFubj)}(hhh]j9)}(h.positive when adding or negative when removingh]h.positive when adding or negative when removing}(hjrFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjnFhMhjoFubah}(h]h ]h"]h$]h&]uh1jhjSFubeh}(h]h ]h"]h$]h&]uh1jhjnFhMhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubj9)}(h**Description**h]jz)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjEubj9)}(h}This function must be called under lru_lock, just before a page is added to or just after a page is removed from an lru list.h]h}This function must be called under lru_lock, just before a page is added to or just after a page is removed from an lru list.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmem_cgroup_margin (C function)c.mem_cgroup_marginhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h:unsigned long mem_cgroup_margin (struct mem_cgroup *memcg)h]h)}(h9unsigned long mem_cgroup_margin(struct mem_cgroup *memcg)h](j)}(hunsignedh]hunsigned}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhMubj)}(hlongh]hlong}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhMubh)}(hmem_cgroup_marginh]h)}(hmem_cgroup_marginh]hmem_cgroup_margin}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubah}(h]h ](jjeh"]h$]h&]jj uh1hhjFhhhjFhMubj)}(h(struct mem_cgroup *memcg)h]j)}(hstruct mem_cgroup *memcgh](j!)}(hj$h]hstruct}(hj2GhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj.Gubj)}(h h]h }(hj?GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Gubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjPGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMGubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjRGmodnameN classnameNj\j_)}jb]je)}jXjGsbc.mem_cgroup_marginasbuh1hhj.Gubj)}(h h]h }(hjpGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Gubj2 )}(hj5 h]h*}(hj~GhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj.Gubh)}(hmemcgh]hmemcg}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.Gubeh}(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)}(h-calculate chargeable space of a memory cgrouph]h-calculate chargeable space of a memory cgroup}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jGj4jGj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chMhjGubj)}(hhh]j)}(h/``struct mem_cgroup *memcg`` the memory cgroup h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hjGh]hstruct mem_cgroup *memcg}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjGubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjGubj)}(hhh]j9)}(hthe memory cgrouph]hthe memory cgroup}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj HhMhj Hubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhj HhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubj9)}(h**Description**h]jz)}(hj1Hh]h Description}(hj3HhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/Hubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjGubj9)}(hKReturns the maximum amount of memory **mem** can be charged with, in pages.h](h%Returns the maximum amount of memory }(hjGHhhhNhNubjz)}(h**mem**h]hmem}(hjOHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGHubh can be charged with, in pages.}(hjGHhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)mem_cgroup_print_oom_context (C function)c.mem_cgroup_print_oom_contexthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hSvoid mem_cgroup_print_oom_context (struct mem_cgroup *memcg, struct task_struct *p)h]h)}(hRvoid mem_cgroup_print_oom_context(struct mem_cgroup *memcg, struct task_struct *p)h](j)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjHhMubh)}(hmem_cgroup_print_oom_contexth]h)}(hmem_cgroup_print_oom_contexth]hmem_cgroup_print_oom_context}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubah}(h]h ](jjeh"]h$]h&]jj uh1hhjHhhhjHhMubj)}(h1(struct mem_cgroup *memcg, struct task_struct *p)h](j)}(hstruct mem_cgroup *memcgh](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 mem_cgrouph]h mem_cgroup}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjHmodnameN classnameNj\j_)}jb]je)}jXjHsbc.mem_cgroup_print_oom_contextasbuh1hhjHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjHubh)}(hmemcgh]hmemcg}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjHubj)}(hstruct task_struct *ph](j!)}(hj$h]hstruct}(hj7IhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj3Iubj)}(h h]h }(hjDIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Iubh)}(hhh]h)}(h task_structh]h task_struct}(hjUIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRIubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjWImodnameN classnameNj\j_)}jb]jHc.mem_cgroup_print_oom_contextasbuh1hhj3Iubj)}(h h]h }(hjsIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3Iubj2 )}(hj5 h]h*}(hjIhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj3Iubh)}(hj> h]hp}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3Iubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjHubeh}(h]h ]h"]h$]h&]jj uh1jhjHhhhjHhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjHhhhjHhMubah}(h]j{Hah ](jjeh"]h$]h&]jj)jhuh1hhjHhMhj}Hhhubj )}(hhh]j9)}(h4Print OOM information relevant to memory controller.h]h4Print OOM information relevant to memory controller.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjIhhubah}(h]h ]h"]h$]h&]uh1jhj}HhhhjHhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jIj4jIj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chMhjIubj)}(hhh](j)}(hD``struct mem_cgroup *memcg`` The memory cgroup that went over limit 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:121: ./mm/memcontrol.chMhjIubj)}(hhh]j9)}(h&The memory cgroup that went over limith]h&The memory cgroup that went over limit}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj JhMhjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhj JhMhjIubj)}(h:``struct task_struct *p`` Task that is going to be killed h](j)}(h``struct task_struct *p``h]j?)}(hj1Jh]hstruct task_struct *p}(hj3JhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj/Jubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj+Jubj)}(hhh]j9)}(hTask that is going to be killedh]hTask that is going to be killed}(hjJJhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjFJhMhjGJubah}(h]h ]h"]h$]h&]uh1jhj+Jubeh}(h]h ]h"]h$]h&]uh1jhjFJhMhjIubeh}(h]h ]h"]h$]h&]uh1jhjIubj9)}(h**NOTE**h]jz)}(hjlJh]hNOTE}(hjnJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjjJubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjIubj9)}(hK**memcg** and **p**'s mem_cgroup can be different when hierarchy is enabledh](jz)}(h **memcg**h]hmemcg}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubh and }(hjJhhhNhNubjz)}(h**p**h]hp}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubh:’s mem_cgroup can be different when hierarchy is enabled}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)mem_cgroup_print_oom_meminfo (C function)c.mem_cgroup_print_oom_meminfohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h ah"]h$]h&]uh1j1 hj Kubh)}(hmemcgh]hmemcg}(hjgKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj Kubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjKubah}(h]h ]h"]h$]h&]jj uh1jhjJhhhjJhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjJhhhjJhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1hhjJhMhjJhhubj )}(hhh]j9)}(h;Print OOM memory information relevant to memory controller.h]h;Print OOM memory information relevant to memory controller.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jKj4jKj5j6j7uh1hhhhjǒhNhNubjp)}(hU**Parameters** ``struct mem_cgroup *memcg`` The memory cgroup that went over limith](j9)}(h**Parameters**h]jz)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjKubj)}(hhh]j)}(hC``struct mem_cgroup *memcg`` The memory cgroup that went over limith](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:121: ./mm/memcontrol.chMhjKubj)}(hhh]j9)}(h&The memory cgroup that went over limith]h&The memory cgroup that went over limit}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%mem_cgroup_get_oom_group (C function)c.mem_cgroup_get_oom_grouphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hhstruct mem_cgroup * mem_cgroup_get_oom_group (struct task_struct *victim, struct mem_cgroup *oom_domain)h]h)}(hfstruct mem_cgroup *mem_cgroup_get_oom_group(struct task_struct *victim, struct mem_cgroup *oom_domain)h](j!)}(hj$h]hstruct}(hj,LhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj(LhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj:LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Lhhhj9LhMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hjKLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHLubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjMLmodnameN classnameNj\j_)}jb]je)}jXmem_cgroup_get_oom_groupsbc.mem_cgroup_get_oom_groupasbuh1hhj(Lhhhj9LhMubj)}(h h]h }(hjlLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Lhhhj9LhMubj2 )}(hj5 h]h*}(hjzLhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj(Lhhhj9LhMubh)}(hmem_cgroup_get_oom_grouph]h)}(hjiLh]hmem_cgroup_get_oom_group}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ](jjeh"]h$]h&]jj uh1hhj(Lhhhj9LhMubj)}(h;(struct task_struct *victim, struct mem_cgroup *oom_domain)h](j)}(hstruct task_struct *victimh](j!)}(hj$h]hstruct}(hjLhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]h)}(h task_structh]h task_struct}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjLmodnameN classnameNj\j_)}jb]jgLc.mem_cgroup_get_oom_groupasbuh1hhjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2 )}(hj5 h]h*}(hjLhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjLubh)}(hvictimh]hvictim}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjLubj)}(hstruct mem_cgroup *oom_domainh](j!)}(hj$h]hstruct}(hjMhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjMubj)}(h h]h }(hj#MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj4MhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1Mubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6MmodnameN classnameNj\j_)}jb]jgLc.mem_cgroup_get_oom_groupasbuh1hhjMubj)}(h h]h }(hjRMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2 )}(hj5 h]h*}(hj`MhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjMubh)}(h oom_domainh]h oom_domain}(hjmMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjLubeh}(h]h ]h"]h$]h&]jj uh1jhj(Lhhhj9LhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj$Lhhhj9LhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhj9LhMhj!Lhhubj )}(hhh]j9)}(h)get a memory cgroup to clean up after OOMh]h)get a memory cgroup to clean up after OOM}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhj!Lhhhj9LhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jMj4jMj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMubj)}(hhh](j)}(hC``struct task_struct *victim`` task to be killed by the OOM killer h](j)}(h``struct task_struct *victim``h]j?)}(hjMh]hstruct task_struct *victim}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMubj)}(hhh]j9)}(h#task to be killed by the OOM killerh]h#task to be killed by the OOM killer}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubj)}(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?)}(hjNh]hstruct mem_cgroup *oom_domain}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj Nubj)}(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*NhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj&NhMhj'Nubah}(h]h ]h"]h$]h&]uh1jhj Nubeh}(h]h ]h"]h$]h&]uh1jhj&NhMhjMubeh}(h]h ]h"]h$]h&]uh1jhjMubj9)}(h**Description**h]jz)}(hjLNh]h Description}(hjNNhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMubj9)}(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.}(hjbNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMubj9)}(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.}(hjqNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌconsume_stock (C function)c.consume_stockhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hDbool consume_stock (struct mem_cgroup *memcg, unsigned int nr_pages)h]h)}(hCbool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages)h](j)}(hj*h]hbool}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhjNhMubh)}(h consume_stockh]h)}(h consume_stockh]h consume_stock}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ](jjeh"]h$]h&]jj uh1hhjNhhhjNhMubj)}(h1(struct mem_cgroup *memcg, unsigned int nr_pages)h](j)}(hstruct mem_cgroup *memcgh](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 mem_cgrouph]h mem_cgroup}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjNmodnameN classnameNj\j_)}jb]je)}jXjNsbc.consume_stockasbuh1hhjNubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2 )}(hj5 h]h*}(hj(OhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjNubh)}(hmemcgh]hmemcg}(hj5OhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjNubj)}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjNOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJOubj)}(h h]h }(hj\OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJOubj)}(hinth]hint}(hjjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJOubj)}(h h]h }(hjxOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJOubh)}(hnr_pagesh]hnr_pages}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjNubeh}(h]h ]h"]h$]h&]jj uh1jhjNhhhjNhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjNhhhjNhMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1hhjNhMhjNhhubj )}(hhh]j9)}(h*Try to consume stocked charge on this cpu.h]h*Try to consume stocked charge on this cpu.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jOj4jOj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjOubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjOubj)}(hhh](j)}(h4``struct mem_cgroup *memcg`` memcg to consume from. h](j)}(h``struct mem_cgroup *memcg``h]j?)}(hjOh]hstruct mem_cgroup *memcg}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjOubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjOubj)}(hhh]j9)}(hmemcg to consume from.h]hmemcg to consume from.}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjOubj)}(h4``unsigned int nr_pages`` how many pages to charge. h](j)}(h``unsigned int nr_pages``h]j?)}(hj*Ph]hunsigned int nr_pages}(hj,PhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj(Pubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj$Pubj)}(hhh]j9)}(hhow many pages to charge.h]hhow many pages to charge.}(hjCPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj?PhMhj@Pubah}(h]h ]h"]h$]h&]uh1jhj$Pubeh}(h]h ]h"]h$]h&]uh1jhj?PhMhjOubeh}(h]h ]h"]h$]h&]uh1jhjOubj9)}(h**Description**h]jz)}(hjePh]h Description}(hjgPhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcPubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjOubj9)}(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{PhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjOubj9)}(h,returns true if successful, false otherwise.h]h,returns true if successful, false otherwise.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%__memcg_kmem_charge_page (C function)c.__memcg_kmem_charge_pagehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hFint __memcg_kmem_charge_page (struct page *page, gfp_t gfp, int order)h]h)}(hEint __memcg_kmem_charge_page(struct page *page, gfp_t gfp, int order)h](j)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjPhM ubh)}(h__memcg_kmem_charge_pageh]h)}(h__memcg_kmem_charge_pageh]h__memcg_kmem_charge_page}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubah}(h]h ](jjeh"]h$]h&]jj uh1hhjPhhhjPhM ubj)}(h)(struct page *page, gfp_t gfp, int order)h](j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjPhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjPubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]h)}(hpageh]hpage}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjQmodnameN classnameNj\j_)}jb]je)}jXjPsbc.__memcg_kmem_charge_pageasbuh1hhjPubj)}(h h]h }(hj4QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2 )}(hj5 h]h*}(hjBQhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjPubh)}(hpageh]hpage}(hjOQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjkQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhQubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmQmodnameN classnameNj\j_)}jb]j0Qc.__memcg_kmem_charge_pageasbuh1hhjdQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdQubh)}(hgfph]hgfp}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPubj)}(h int orderh](j)}(hinth]hint}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(horderh]horder}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPubeh}(h]h ]h"]h$]h&]jj uh1jhjPhhhjPhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjPhhhjPhM ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjPhM hjPhhubj )}(hhh]j9)}(h/charge a kmem page to the current memory cgrouph]h/charge a kmem page to the current memory cgroup}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jRj4jRj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chM hjRubj)}(hhh](j)}(h%``struct page *page`` page to charge h](j)}(h``struct page *page``h]j?)}(hj7Rh]hstruct page *page}(hj9RhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj5Rubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hj1Rubj)}(hhh]j9)}(hpage to chargeh]hpage to charge}(hjPRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjLRhM hjMRubah}(h]h ]h"]h$]h&]uh1jhj1Rubeh}(h]h ]h"]h$]h&]uh1jhjLRhM hj.Rubj)}(h``gfp_t gfp`` reclaim mode h](j)}(h ``gfp_t gfp``h]j?)}(hjpRh]h gfp_t gfp}(hjrRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjnRubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjjRubj)}(hhh]j9)}(h reclaim modeh]h reclaim mode}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjRhM hjRubah}(h]h ]h"]h$]h&]uh1jhjjRubeh}(h]h ]h"]h$]h&]uh1jhjRhM hj.Rubj)}(h``int order`` allocation order h](j)}(h ``int order``h]j?)}(hjRh]h int order}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjRubj)}(hhh]j9)}(hallocation orderh]hallocation order}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjRhM hjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhM hj.Rubeh}(h]h ]h"]h$]h&]uh1jhjRubj9)}(h**Description**h]jz)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjRubj9)}(h/Returns 0 on success, an error code on failure.h]h/Returns 0 on success, an error code on failure.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'__memcg_kmem_uncharge_page (C function)c.__memcg_kmem_uncharge_pagehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h>void __memcg_kmem_uncharge_page (struct page *page, int order)h]h)}(h=void __memcg_kmem_uncharge_page(struct page *page, int order)h](j)}(hvoidh]hvoid}(hj)ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ShhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM& ubj)}(h h]h }(hj8ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Shhhj7ShM& ubh)}(h__memcg_kmem_uncharge_pageh]h)}(h__memcg_kmem_uncharge_pageh]h__memcg_kmem_uncharge_page}(hjJShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFSubah}(h]h ](jjeh"]h$]h&]jj uh1hhj%Shhhj7ShM& ubj)}(h(struct page *page, int order)h](j)}(hstruct page *pageh](j!)}(hj$h]hstruct}(hjfShhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjbSubj)}(h h]h }(hjsShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbSubh)}(hhh]h)}(hpageh]hpage}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjSmodnameN classnameNj\j_)}jb]je)}jXjLSsbc.__memcg_kmem_uncharge_pageasbuh1hhjbSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbSubj2 )}(hj5 h]h*}(hjShhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjbSubh)}(hpageh]hpage}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj^Subj)}(h int orderh](j)}(hinth]hint}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(horderh]horder}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj^Subeh}(h]h ]h"]h$]h&]jj uh1jhj%Shhhj7ShM& ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj!Shhhj7ShM& ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1hhj7ShM& hjShhubj )}(hhh]j9)}(huncharge a kmem pageh]huncharge a kmem page}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM& hjThhubah}(h]h ]h"]h$]h&]uh1jhjShhhj7ShM& ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j6Tj4j6Tj5j6j7uh1hhhhjǒhNhNubjp)}(hZ**Parameters** ``struct page *page`` page to uncharge ``int order`` allocation orderh](j9)}(h**Parameters**h]jz)}(hj@Th]h Parameters}(hjBThhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj>Tubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM* hj:Tubj)}(hhh](j)}(h'``struct page *page`` page to uncharge h](j)}(h``struct page *page``h]j?)}(hj_Th]hstruct page *page}(hjaThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj]Tubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM' hjYTubj)}(hhh]j9)}(hpage to unchargeh]hpage to uncharge}(hjxThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjtThM' hjuTubah}(h]h ]h"]h$]h&]uh1jhjYTubeh}(h]h ]h"]h$]h&]uh1jhjtThM' hjVTubj)}(h``int order`` allocation orderh](j)}(h ``int order``h]j?)}(hjTh]h int order}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjTubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM) hjTubj)}(hhh]j9)}(hallocation orderh]hallocation order}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM( hjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThM) hjVTubeh}(h]h ]h"]h$]h&]uh1jhj:Tubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ mem_cgroup_wb_stats (C function)c.mem_cgroup_wb_statshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hvoid mem_cgroup_wb_stats (struct bdi_writeback *wb, unsigned long *pfilepages, unsigned long *pheadroom, unsigned long *pdirty, unsigned long *pwriteback)h]h)}(hvoid mem_cgroup_wb_stats(struct bdi_writeback *wb, unsigned long *pfilepages, unsigned long *pheadroom, unsigned long *pdirty, unsigned long *pwriteback)h](j)}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjUhM ubh)}(hmem_cgroup_wb_statsh]h)}(hmem_cgroup_wb_statsh]hmem_cgroup_wb_stats}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ](jjeh"]h$]h&]jj uh1hhjThhhjUhM 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}(hj/UhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj+Uubj)}(h h]h }(hj ah"]h$]h&]uh1j1 hj+Uubh)}(hwbh]hwb}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+Uubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj'Uubj)}(hunsigned long *pfilepagesh](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&]uh1jhjUubj2 )}(hj5 h]h*}(hjUhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjUubh)}(h pfilepagesh]h pfilepages}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj'Uubj)}(hunsigned long *pheadroomh](j)}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hj VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hlongh]hlong}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(h h]h }(hj)VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2 )}(hj5 h]h*}(hj7VhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjUubh)}(h pheadroomh]h pheadroom}(hjDVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj'Uubj)}(hunsigned long *pdirtyh](j)}(hunsignedh]hunsigned}(hj]VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYVubj)}(h h]h }(hjkVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYVubj)}(hlongh]hlong}(hjyVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYVubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjYVubh)}(hpdirtyh]hpdirty}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYVubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj'Uubj)}(hunsigned long *pwritebackh](j)}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hlongh]hlong}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2 )}(hj5 h]h*}(hjVhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjVubh)}(h pwritebackh]h pwriteback}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj'Uubeh}(h]h ]h"]h$]h&]jj uh1jhjThhhjUhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjThhhjUhM ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjUhM hjThhubj )}(hhh]j9)}(h/retrieve writeback related stats from its memcgh]h/retrieve writeback related stats from its memcg}(hj*WhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hj'Whhubah}(h]h ]h"]h$]h&]uh1jhjThhhjUhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jBWj4jBWj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjLWh]h Parameters}(hjNWhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJWubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjFWubj)}(hhh](j)}(h7``struct bdi_writeback *wb`` bdi_writeback in question h](j)}(h``struct bdi_writeback *wb``h]j?)}(hjkWh]hstruct bdi_writeback *wb}(hjmWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjeWubj)}(hhh]j9)}(hbdi_writeback in questionh]hbdi_writeback in question}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhM hjWubah}(h]h ]h"]h$]h&]uh1jhjeWubeh}(h]h ]h"]h$]h&]uh1jhjWhM hjbWubj)}(hE``unsigned long *pfilepages`` out parameter for number of file pages h](j)}(h``unsigned long *pfilepages``h]j?)}(hjWh]hunsigned long *pfilepages}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjWubj)}(hhh]j9)}(h&out parameter for number of file pagesh]h&out parameter for number of file pages}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhM hjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhM hjbWubj)}(h^``unsigned long *pheadroom`` out parameter for number of allocatable pages according to memcg h](j)}(h``unsigned long *pheadroom``h]j?)}(hjWh]hunsigned long *pheadroom}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjWubj)}(hhh]j9)}(h@out parameter for number of allocatable pages according to memcgh]h@out parameter for number of allocatable pages according to memcg}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhM hjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhM hjbWubj)}(hB``unsigned long *pdirty`` out parameter for number of dirty pages h](j)}(h``unsigned long *pdirty``h]j?)}(hjXh]hunsigned long *pdirty}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjXubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjXubj)}(hhh]j9)}(h'out parameter for number of dirty pagesh]h'out parameter for number of dirty pages}(hj/XhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj+XhM hj,Xubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhj+XhM hjbWubj)}(hP``unsigned long *pwriteback`` out parameter for number of pages under writeback h](j)}(h``unsigned long *pwriteback``h]j?)}(hjOXh]hunsigned long *pwriteback}(hjQXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjMXubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjIXubj)}(hhh]j9)}(h1out parameter for number of pages under writebackh]h1out parameter for number of pages under writeback}(hjhXhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjdXhM hjeXubah}(h]h ]h"]h$]h&]uh1jhjIXubeh}(h]h ]h"]h$]h&]uh1jhjdXhM hjbWubeh}(h]h ]h"]h$]h&]uh1jhjFWubj9)}(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:121: ./mm/memcontrol.chM hjFWubj9)}(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 }(hjXhhhNhNubjz)}(h**wb**h]hwb}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubh^’s memcg. File, dirty and writeback are self-explanatory. Headroom is a bit more involved.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjFWubj9)}(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 }(hjXhhhNhNubjz)}(h***pheadroom**h]h *pheadroom}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXubh accordingly.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM" hjFWubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmem_cgroup_from_id (C function)c.mem_cgroup_from_idhNtauh1hhjǒhhhNhNubh)}(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}(hjYhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjXhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjYhMubh)}(hhh]h)}(h mem_cgrouph]h mem_cgroup}(hj!YhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj#YmodnameN classnameNj\j_)}jb]je)}jXmem_cgroup_from_idsbc.mem_cgroup_from_idasbuh1hhjXhhhjYhMubj)}(h h]h }(hjBYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjYhMubj2 )}(hj5 h]h*}(hjPYhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjXhhhjYhMubh)}(hmem_cgroup_from_idh]h)}(hj?Yh]hmem_cgroup_from_id}(hjaYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]Yubah}(h]h ](jjeh"]h$]h&]jj uh1hhjXhhhjYhMubj)}(h(unsigned short id)h]j)}(hunsigned short idh](j)}(hunsignedh]hunsigned}(hj|YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxYubj)}(hshorth]hshort}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxYubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxYubh)}(hidh]hid}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxYubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjtYubah}(h]h ]h"]h$]h&]jj uh1jhjXhhhjYhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjXhhhjYhMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1hhjYhMhjXhhubj )}(hhh]j9)}(hlook up a memcg from a memcg idh]hlook up a memcg from a memcg id}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjYhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jYj4jYj5j6j7uh1hhhhjǒhNhNubjp)}(hs**Parameters** ``unsigned short id`` the memcg id to look up **Description** Caller must hold rcu_read_lock().h](j9)}(h**Parameters**h]jz)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjYubj)}(hhh]j)}(h.``unsigned short id`` the memcg id to look up h](j)}(h``unsigned short id``h]j?)}(hjZh]hunsigned short id}(hj!ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjZubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjZubj)}(hhh]j9)}(hthe memcg id to look uph]hthe memcg id to look up}(hj8ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4ZhMhj5Zubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhj4ZhMhjZubah}(h]h ]h"]h$]h&]uh1jhjYubj9)}(h**Description**h]jz)}(hjZZh]h Description}(hj\ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjXZubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjYubj9)}(h!Caller must hold rcu_read_lock().h]h!Caller must hold rcu_read_lock().}(hjpZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!mem_cgroup_css_reset (C function)c.mem_cgroup_css_resethNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h;void mem_cgroup_css_reset (struct cgroup_subsys_state *css)h]h)}(h:void mem_cgroup_css_reset(struct cgroup_subsys_state *css)h](j)}(hvoidh]hvoid}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM^ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjZhM^ubh)}(hmem_cgroup_css_reseth]h)}(hmem_cgroup_css_reseth]hmem_cgroup_css_reset}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ](jjeh"]h$]h&]jj uh1hhjZhhhjZhM^ubj)}(h!(struct cgroup_subsys_state *css)h]j)}(hstruct cgroup_subsys_state *cssh](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)}(hcgroup_subsys_stateh]hcgroup_subsys_state}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjZmodnameN classnameNj\j_)}jb]je)}jXjZsbc.mem_cgroup_css_resetasbuh1hhjZubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2 )}(hj5 h]h*}(hj([hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZubh)}(hcssh]hcss}(hj5[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjZubah}(h]h ]h"]h$]h&]jj uh1jhjZhhhjZhM^ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjZhhhjZhM^ubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjZhM^hjZhhubj )}(hhh]j9)}(h reset the states of a mem_cgrouph]h reset the states of a mem_cgroup}(hj_[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM^hj\[hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjZhM^ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jw[j4jw[j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chMbhj{[ubj)}(hhh]j)}(h3``struct cgroup_subsys_state *css`` the target css h](j)}(h#``struct cgroup_subsys_state *css``h]j?)}(hj[h]hstruct cgroup_subsys_state *css}(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:121: ./mm/memcontrol.chM_hj[ubj)}(hhh]j9)}(hthe target cssh]hthe target css}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMahj{[ubj9)}(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 }(hj[hhhNhNubjz)}(h**css**h]hcss}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubh. 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.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM`hj{[ubj9)}(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.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMfhj{[ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,mem_cgroup_calculate_protection (C function)!c.mem_cgroup_calculate_protectionhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hXvoid mem_cgroup_calculate_protection (struct mem_cgroup *root, struct mem_cgroup *memcg)h]h)}(hWvoid mem_cgroup_calculate_protection(struct mem_cgroup *root, struct mem_cgroup *memcg)h](j)}(hvoidh]hvoid}(hjA\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=\hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMBubj)}(h h]h }(hjP\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=\hhhjO\hMBubh)}(hmem_cgroup_calculate_protectionh]h)}(hmem_cgroup_calculate_protectionh]hmem_cgroup_calculate_protection}(hjb\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^\ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj=\hhhjO\hMBubj)}(h3(struct mem_cgroup *root, struct mem_cgroup *memcg)h](j)}(hstruct mem_cgroup *rooth](j!)}(hj$h]hstruct}(hj~\hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjz\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz\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)}jXjd\sb!c.mem_cgroup_calculate_protectionasbuh1hhjz\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)}(hrooth]hroot}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjz\ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjv\ubj)}(hstruct mem_cgroup *memcgh](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 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]j\!c.mem_cgroup_calculate_protectionasbuh1hhj\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)}(hmemcgh]hmemcg}(hjG]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjv\ubeh}(h]h ]h"]h$]h&]jj uh1jhj=\hhhjO\hMBubeh}(h]h ]h"]h$]h&]jj juh1hjjhj9\hhhjO\hMBubah}(h]j4\ah ](jjeh"]h$]h&]jj)jhuh1hhjO\hMBhj6\hhubj )}(hhh]j9)}(h2check if memory consumption is in the normal rangeh]h2check if memory consumption is in the normal range}(hjq]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMBhjn]hhubah}(h]h ]h"]h$]h&]uh1jhj6\hhhjO\hMBubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j]j4j]j5j6j7uh1hhhhjǒhNhNubjp)}(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]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:121: ./mm/memcontrol.chMFhj]ubj)}(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?)}(hj]h]hstruct mem_cgroup *root}(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:121: ./mm/memcontrol.chMChj]ubj)}(hhh]j9)}(h.the top ancestor of the sub-tree being checkedh]h.the top ancestor of the sub-tree being checked}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj]hMChj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMChj]ubj)}(h8``struct mem_cgroup *memcg`` the memory cgroup to check 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:121: ./mm/memcontrol.chMDhj]ubj)}(hhh]j9)}(hthe memory cgroup to checkh]hthe memory cgroup to check}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^hMDhj^ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj^hMDhj]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:121: ./mm/memcontrol.chMFhj]ubj)}(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}(hjC^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMEhj?^ubj)}(hhh]j9)}(h7of a top-down tree iteration, not for isolated queries.h]h7of a top-down tree iteration, not for isolated queries.}(hjU^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMFhjR^ubah}(h]h ]h"]h$]h&]uh1jhj?^ubeh}(h]h ]h"]h$]h&]uh1jhjQ^hMEhj<^ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&mem_cgroup_charge_hugetlb (C function)c.mem_cgroup_charge_hugetlbhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h>int mem_cgroup_charge_hugetlb (struct folio *folio, gfp_t gfp)h]h)}(h=int mem_cgroup_charge_hugetlb(struct folio *folio, gfp_t gfp)h](j)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMuubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj^hMuubh)}(hmem_cgroup_charge_hugetlbh]h)}(hmem_cgroup_charge_hugetlbh]hmem_cgroup_charge_hugetlb}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj^hhhj^hMuubj)}(h (struct folio *folio, gfp_t gfp)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.mem_cgroup_charge_hugetlbasbuh1hhj^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)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjH_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjE_ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjJ_modnameN classnameNj\j_)}jb]j _c.mem_cgroup_charge_hugetlbasbuh1hhjA_ubj)}(h h]h }(hjf_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA_ubh)}(hgfph]hgfp}(hjt_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjA_ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj^ubeh}(h]h ]h"]h$]h&]jj uh1jhj^hhhj^hMuubeh}(h]h ]h"]h$]h&]jj juh1hjjhj^hhhj^hMuubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1hhj^hMuhj^hhubj )}(hhh]j9)}(h$charge the memcg for a hugetlb folioh]h$charge the memcg for a hugetlb folio}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMuhj_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hMuubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j_j4j_j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chMyhj_ubj)}(hhh](j)}(h,``struct folio *folio`` folio being charged 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&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMvhj_ubj)}(hhh]j9)}(hfolio being chargedh]hfolio being charged}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj_hMvhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMvhj_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:121: ./mm/memcontrol.chMwhj`ubj)}(hhh]j9)}(h reclaim modeh]h reclaim mode}(hj1`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj-`hMwhj.`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj-`hMwhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubj9)}(h**Description**h]jz)}(hjS`h]h Description}(hjU`hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjQ`ubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMyhj_ubj9)}(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).}(hji`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMxhj_ubj9)}(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.}(hjx`hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM|hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+mem_cgroup_swapin_charge_folio (C function) c.mem_cgroup_swapin_charge_foliohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hlint mem_cgroup_swapin_charge_folio (struct folio *folio, struct mm_struct *mm, gfp_t gfp, swp_entry_t entry)h]h)}(hkint mem_cgroup_swapin_charge_folio(struct folio *folio, struct mm_struct *mm, gfp_t gfp, swp_entry_t entry)h](j)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hMubh)}(hmem_cgroup_swapin_charge_folioh]h)}(hmem_cgroup_swapin_charge_folioh]hmem_cgroup_swapin_charge_folio}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj`hhhj`hMubj)}(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`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}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]je)}jXj`sb c.mem_cgroup_swapin_charge_folioasbuh1hhj`ubj)}(h h]h }(hj"ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj2 )}(hj5 h]h*}(hj0ahhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj`ubh)}(hfolioh]hfolio}(hj=ahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubj)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hjVahhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjRaubj)}(h h]h }(hjcahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRaubh)}(hhh]h)}(h mm_structh]h mm_struct}(hjtahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqaubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjvamodnameN classnameNj\j_)}jb]ja c.mem_cgroup_swapin_charge_folioasbuh1hhjRaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRaubj2 )}(hj5 h]h*}(hjahhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjRaubh)}(hmmh]hmm}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRaubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjamodnameN classnameNj\j_)}jb]ja c.mem_cgroup_swapin_charge_folioasbuh1hhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hgfph]hgfp}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjaubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj`ubj)}(hswp_entry_t entryh](h)}(hhh]h)}(h swp_entry_th]h swp_entry_t}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbmodnameN classnameNj\j_)}jb]ja c.mem_cgroup_swapin_charge_folioasbuh1hhj bubj)}(h h]h }(hj/bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj bubh)}(hentryh]hentry}(hj=bhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj bubeh}(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*Charge a newly allocated folio for swapin.h]h*Charge a newly allocated folio for swapin.}(hjgbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjdbhhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jbj4jbj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjbubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjbubj)}(hhh](j)}(h)``struct folio *folio`` folio to charge. h](j)}(h``struct folio *folio``h]j?)}(hjbh]hstruct folio *folio}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjbubj)}(hhh]j9)}(hfolio to charge.h]hfolio to charge.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjbubj)}(h2``struct mm_struct *mm`` mm context of the victim h](j)}(h``struct mm_struct *mm``h]j?)}(hjbh]hstruct mm_struct *mm}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjbubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjbubj)}(hhh]j9)}(hmm context of the victimh]hmm context of the victim}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjbubj)}(h``gfp_t gfp`` reclaim mode h](j)}(h ``gfp_t gfp``h]j?)}(hjch]h gfp_t gfp}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjcubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjcubj)}(hhh]j9)}(h reclaim modeh]h reclaim mode}(hj3chhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj/chMhj0cubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj/chMhjbubj)}(hB``swp_entry_t entry`` swap entry for which the folio is allocated h](j)}(h``swp_entry_t entry``h]j?)}(hjSch]hswp_entry_t entry}(hjUchhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQcubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjMcubj)}(hhh]j9)}(h+swap entry for which the folio is allocatedh]h+swap entry for which the folio is allocated}(hjlchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhchMhjicubah}(h]h ]h"]h$]h&]uh1jhjMcubeh}(h]h ]h"]h$]h&]uh1jhjhchMhjbubeh}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjbubj9)}(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.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjbubj9)}(h;Returns 0 on success. Otherwise, an error code is returned.h]h;Returns 0 on success. Otherwise, an error code is returned.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%mem_cgroup_replace_folio (C function)c.mem_cgroup_replace_foliohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hDvoid mem_cgroup_replace_folio (struct folio *old, struct folio *new)h]h)}(hCvoid mem_cgroup_replace_folio(struct folio *old, struct folio *new)h](j)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM-ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjchM-ubh)}(hmem_cgroup_replace_folioh]h)}(hmem_cgroup_replace_folioh]hmem_cgroup_replace_folio}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ](jjeh"]h$]h&]jj uh1hhjchhhjchM-ubj)}(h&(struct folio *old, struct folio *new)h](j)}(hstruct folio *oldh](j!)}(hj$h]hstruct}(hjdhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjdubj)}(h h]h }(hj,dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]h)}(hfolioh]hfolio}(hj=dhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj:dubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj?dmodnameN classnameNj\j_)}jb]je)}jXjdsbc.mem_cgroup_replace_folioasbuh1hhjdubj)}(h h]h }(hj]dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2 )}(hj5 h]h*}(hjkdhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdubh)}(holdh]hold}(hjxdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(hstruct folio *newh](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)}(hfolioh]hfolio}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjdmodnameN classnameNj\j_)}jb]jYdc.mem_cgroup_replace_folioasbuh1hhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2 )}(hj5 h]h*}(hjdhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjdubh)}(hnewh]hnew}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubeh}(h]h ]h"]h$]h&]jj uh1jhjchhhjchM-ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjchhhjchM-ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhjchM-hjchhubj )}(hhh]j9)}(hCharge a folio's replacement.h]hCharge a folio’s replacement.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM-hjehhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchM-ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j*ej4j*ej5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj4eh]h Parameters}(hj6ehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2eubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM1hj.eubj)}(hhh](j)}(h3``struct folio *old`` Currently circulating folio. h](j)}(h``struct folio *old``h]j?)}(hjSeh]hstruct folio *old}(hjUehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQeubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM.hjMeubj)}(hhh]j9)}(hCurrently circulating folio.h]hCurrently circulating folio.}(hjlehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhehM.hjieubah}(h]h ]h"]h$]h&]uh1jhjMeubeh}(h]h ]h"]h$]h&]uh1jhjhehM.hjJeubj)}(h)``struct folio *new`` Replacement folio. h](j)}(h``struct folio *new``h]j?)}(hjeh]hstruct folio *new}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjeubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM/hjeubj)}(hhh]j9)}(hReplacement folio.h]hReplacement folio.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjehM/hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehM/hjJeubeh}(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&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM1hj.eubj9)}(hWCharge **new** as a replacement folio for **old**. **old** will be uncharged upon free.h](hCharge }(hjehhhNhNubjz)}(h**new**h]hnew}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjeubh as a replacement folio for }(hjehhhNhNubjz)}(h**old**h]hold}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjeubh. }(hjehhhNhNubjz)}(h**old**h]hold}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjeubh will be uncharged upon free.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM0hj.eubj9)}(hmapping** must be set up.h](hBoth folios must be locked, }(hj"fhhhNhNubjz)}(h**new->mapping**h]h new->mapping}(hj*fhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj"fubh must be set up.}(hj"fhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM3hj.eubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmem_cgroup_migrate (C function)c.mem_cgroup_migratehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h>void mem_cgroup_migrate (struct folio *old, struct folio *new)h]h)}(h=void mem_cgroup_migrate(struct folio *old, struct folio *new)h](j)}(hvoidh]hvoid}(hjcfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_fhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMYubj)}(h h]h }(hjrfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_fhhhjqfhMYubh)}(hmem_cgroup_migrateh]h)}(hmem_cgroup_migrateh]hmem_cgroup_migrate}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubah}(h]h ](jjeh"]h$]h&]jj uh1hhj_fhhhjqfhMYubj)}(h&(struct folio *old, struct folio *new)h](j)}(hstruct folio *oldh](j!)}(hj$h]hstruct}(hjfhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]h)}(hfolioh]hfolio}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjfmodnameN classnameNj\j_)}jb]je)}jXjfsbc.mem_cgroup_migrateasbuh1hhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2 )}(hj5 h]h*}(hjfhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjfubh)}(holdh]hold}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjfubj)}(hstruct folio *newh](j!)}(hj$h]hstruct}(hjghhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]h)}(hfolioh]hfolio}(hj0ghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-gubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2gmodnameN classnameNj\j_)}jb]jfc.mem_cgroup_migrateasbuh1hhjgubj)}(h h]h }(hjNghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2 )}(hj5 h]h*}(hj\ghhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjgubh)}(hnewh]hnew}(hjighhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjfubeh}(h]h ]h"]h$]h&]jj uh1jhj_fhhhjqfhMYubeh}(h]h ]h"]h$]h&]jj juh1hjjhj[fhhhjqfhMYubah}(h]jVfah ](jjeh"]h$]h&]jj)jhuh1hhjqfhMYhjXfhhubj )}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMYhjghhubah}(h]h ]h"]h$]h&]uh1jhjXfhhhjqfhMYubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jgj4jgj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chM]hjgubj)}(hhh](j)}(h3``struct folio *old`` Currently circulating folio. h](j)}(h``struct folio *old``h]j?)}(hjgh]hstruct folio *old}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjgubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMZhjgubj)}(hhh]j9)}(hCurrently circulating folio.h]hCurrently circulating folio.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjghMZhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMZhjgubj)}(h)``struct folio *new`` Replacement folio. h](j)}(h``struct folio *new``h]j?)}(hj hh]hstruct folio *new}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj hubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM[hjhubj)}(hhh]j9)}(hReplacement folio.h]hReplacement folio.}(hj&hhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"hhM[hj#hubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhj"hhM[hjgubeh}(h]h ]h"]h$]h&]uh1jhjgubj9)}(h**Description**h]jz)}(hjHhh]h Description}(hjJhhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjFhubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM]hjgubj9)}(hTransfer the memcg data from the old folio to the new folio for migration. The old folio's data info will be cleared. Note that the memory counters will remain unchanged throughout the process.h]hTransfer the memcg data from the old folio to the new folio for migration. The old folio’s data info will be cleared. Note that the memory counters will remain unchanged throughout the process.}(hj^hhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM\hjgubj9)}(hmapping** must be set up.h](hBoth folios must be locked, }(hjmhhhhNhNubjz)}(h**new->mapping**h]h new->mapping}(hjuhhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjmhubh must be set up.}(hjmhhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM`hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!mem_cgroup_sk_charge (C function)c.mem_cgroup_sk_chargehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hXbool mem_cgroup_sk_charge (const struct sock *sk, unsigned int nr_pages, gfp_t gfp_mask)h]h)}(hWbool mem_cgroup_sk_charge(const struct sock *sk, unsigned int nr_pages, gfp_t gfp_mask)h](j)}(hj*h]hbool}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMubh)}(hmem_cgroup_sk_chargeh]h)}(hmem_cgroup_sk_chargeh]hmem_cgroup_sk_charge}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhhjhhMubj)}(h>(const struct sock *sk, unsigned int nr_pages, gfp_t gfp_mask)h](j)}(hconst struct sock *skh](j!)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj!)}(hj$h]hstruct}(hjihhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]h)}(hsockh]hsock}(hj#ihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj iubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj%imodnameN classnameNj\j_)}jb]je)}jXjhsbc.mem_cgroup_sk_chargeasbuh1hhjhubj)}(h h]h }(hjCihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2 )}(hj5 h]h*}(hjQihhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhubh)}(hskh]hsk}(hj^ihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjwihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsiubj)}(hinth]hint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsiubh)}(hnr_pagesh]hnr_pages}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubj)}(hgfp_t gfp_maskh](h)}(hhh]h)}(hgfp_th]hgfp_t}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjimodnameN classnameNj\j_)}jb]j?ic.mem_cgroup_sk_chargeasbuh1hhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hgfp_maskh]hgfp_mask}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjhubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhhjhhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhhjhhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1hhjhhMhjhhhubj )}(hhh]j9)}(hcharge socket memoryh]hcharge socket memory}(hj!jhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j9jj4j9jj5j6j7uh1hhhhjǒhNhNubjp)}(hX5**Parameters** ``const struct sock *sk`` socket in memcg to charge ``unsigned int nr_pages`` number of pages to charge ``gfp_t gfp_mask`` reclaim mode **Description** Charges **nr_pages** to **memcg**. Returns ``true`` if the charge fit within **memcg**'s configured limit, ``false`` if it doesn't.h](j9)}(h**Parameters**h]jz)}(hjCjh]h Parameters}(hjEjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAjubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj=jubj)}(hhh](j)}(h4``const struct sock *sk`` socket in memcg to charge h](j)}(h``const struct sock *sk``h]j?)}(hjbjh]hconst struct sock *sk}(hjdjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj`jubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj\jubj)}(hhh]j9)}(hsocket in memcg to chargeh]hsocket in memcg to charge}(hj{jhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjwjhMhjxjubah}(h]h ]h"]h$]h&]uh1jhj\jubeh}(h]h ]h"]h$]h&]uh1jhjwjhMhjYjubj)}(h4``unsigned int nr_pages`` number of pages to charge h](j)}(h``unsigned int nr_pages``h]j?)}(hjjh]hunsigned int nr_pages}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjjubj)}(hhh]j9)}(hnumber of pages to chargeh]hnumber of pages to charge}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjYjubj)}(h ``gfp_t gfp_mask`` reclaim mode h](j)}(h``gfp_t gfp_mask``h]j?)}(hjjh]hgfp_t gfp_mask}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjjubj)}(hhh]j9)}(h reclaim modeh]h reclaim mode}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjYjubeh}(h]h ]h"]h$]h&]uh1jhj=jubj9)}(h**Description**h]jz)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj kubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj=jubj9)}(hCharges **nr_pages** to **memcg**. Returns ``true`` if the charge fit within **memcg**'s configured limit, ``false`` if it doesn't.h](hCharges }(hj%khhhNhNubjz)}(h **nr_pages**h]hnr_pages}(hj-khhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%kubh to }(hj%khhhNhNubjz)}(h **memcg**h]hmemcg}(hj?khhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%kubh . Returns }(hj%khhhNhNubj?)}(h``true``h]htrue}(hjQkhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%kubh if the charge fit within }(hj%khhhNhNubjz)}(h **memcg**h]hmemcg}(hjckhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj%kubh’s configured limit, }(hj%khhhNhNubj?)}(h ``false``h]hfalse}(hjukhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj%kubh if it doesn’t.}(hj%khhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj=jubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#mem_cgroup_sk_uncharge (C function)c.mem_cgroup_sk_unchargehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hJvoid mem_cgroup_sk_uncharge (const struct sock *sk, unsigned int nr_pages)h]h)}(hIvoid mem_cgroup_sk_uncharge(const struct sock *sk, unsigned int nr_pages)h](j)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhjkhMubh)}(hmem_cgroup_sk_unchargeh]h)}(hmem_cgroup_sk_unchargeh]hmem_cgroup_sk_uncharge}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubah}(h]h ](jjeh"]h$]h&]jj uh1hhjkhhhjkhMubj)}(h.(const struct sock *sk, unsigned int nr_pages)h](j)}(hconst struct sock *skh](j!)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj!)}(hj$h]hstruct}(hjlhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]h)}(hsockh]hsock}(hj$lhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!lubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj&lmodnameN classnameNj\j_)}jb]je)}jXjksbc.mem_cgroup_sk_unchargeasbuh1hhjkubj)}(h h]h }(hjDlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2 )}(hj5 h]h*}(hjRlhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjkubh)}(hskh]hsk}(hj_lhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjkubj)}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjxlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtlubj)}(hinth]hint}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtlubh)}(hnr_pagesh]hnr_pages}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtlubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjkubeh}(h]h ]h"]h$]h&]jj uh1jhjkhhhjkhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjkhhhjkhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1hhjkhMhjkhhubj )}(hhh]j9)}(huncharge socket memoryh]huncharge socket memory}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjkhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jlj4jlj5j6j7uh1hhhhjǒhNhNubjp)}(h**Parameters** ``const struct sock *sk`` socket in memcg to uncharge ``unsigned int nr_pages`` number of pages to unchargeh](j9)}(h**Parameters**h]jz)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjlubj)}(hhh](j)}(h6``const struct sock *sk`` socket in memcg to uncharge h](j)}(h``const struct sock *sk``h]j?)}(hjmh]hconst struct sock *sk}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjmubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjmubj)}(hhh]j9)}(hsocket in memcg to unchargeh]hsocket in memcg to uncharge}(hj4mhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0mhMhj1mubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhj0mhMhjmubj)}(h5``unsigned int nr_pages`` number of pages to unchargeh](j)}(h``unsigned int nr_pages``h]j?)}(hjTmh]hunsigned int nr_pages}(hjVmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRmubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjNmubj)}(hhh]j9)}(hnumber of pages to unchargeh]hnumber of pages to uncharge}(hjmmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjjmubah}(h]h ]h"]h$]h&]uh1jhjNmubeh}(h]h ]h"]h$]h&]uh1jhjimhMhjmubeh}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)__mem_cgroup_try_charge_swap (C function)c.__mem_cgroup_try_charge_swaphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hIint __mem_cgroup_try_charge_swap (struct folio *folio, swp_entry_t entry)h]h)}(hHint __mem_cgroup_try_charge_swap(struct folio *folio, swp_entry_t entry)h](j)}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjmhMubh)}(h__mem_cgroup_try_charge_swaph]h)}(h__mem_cgroup_try_charge_swaph]h__mem_cgroup_try_charge_swap}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubah}(h]h ](jjeh"]h$]h&]jj uh1hhjmhhhjmhMubj)}(h((struct folio *folio, swp_entry_t entry)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}(hj nhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj nmodnameN classnameNj\j_)}jb]je)}jXjmsbc.__mem_cgroup_try_charge_swapasbuh1hhjmubj)}(h h]h }(hj)nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2 )}(hj5 h]h*}(hj7nhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjmubh)}(hfolioh]hfolio}(hjDnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubj)}(hswp_entry_t entryh](h)}(hhh]h)}(h swp_entry_th]h swp_entry_t}(hj`nhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]nubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjbnmodnameN classnameNj\j_)}jb]j%nc.__mem_cgroup_try_charge_swapasbuh1hhjYnubj)}(h h]h }(hj~nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYnubh)}(hentryh]hentry}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYnubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjmubeh}(h]h ]h"]h$]h&]jj uh1jhjmhhhjmhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjmhhhjmhMubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1hhjmhMhjmhhubj )}(hhh]j9)}(h#try charging swap space for a folioh]h#try charging swap space for a folio}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjmhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jnj4jnj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM!hjnubj)}(hhh](j)}(h2``struct folio *folio`` folio being added to swap h](j)}(h``struct folio *folio``h]j?)}(hjnh]hstruct folio *folio}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjnubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjnubj)}(hhh]j9)}(hfolio being added to swaph]hfolio being added to swap}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj ohMhj oubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhj ohMhjnubj)}(h+``swp_entry_t entry`` swap entry to charge h](j)}(h``swp_entry_t entry``h]j?)}(hj0oh]hswp_entry_t entry}(hj2ohhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj.oubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj*oubj)}(hhh]j9)}(hswap entry to chargeh]hswap entry to charge}(hjIohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjEohMhjFoubah}(h]h ]h"]h$]h&]uh1jhj*oubeh}(h]h ]h"]h$]h&]uh1jhjEohMhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubj9)}(h**Description**h]jz)}(hjkoh]h Description}(hjmohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjioubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM!hjnubj9)}(h@Try to charge **folio**'s memcg for the swap space at **entry**.h](hTry to charge }(hjohhhNhNubjz)}(h **folio**h]hfolio}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjoubh!’s memcg for the swap space at }(hjohhhNhNubjz)}(h **entry**h]hentry}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM hjnubj9)}(h)Returns 0 on success, -ENOMEM on failure.h]h)Returns 0 on success, -ENOMEM on failure.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM"hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'__mem_cgroup_uncharge_swap (C function)c.__mem_cgroup_uncharge_swaphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hJvoid __mem_cgroup_uncharge_swap (swp_entry_t entry, unsigned int nr_pages)h]h)}(hIvoid __mem_cgroup_uncharge_swap(swp_entry_t entry, unsigned int nr_pages)h](j)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMNubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjohMNubh)}(h__mem_cgroup_uncharge_swaph]h)}(h__mem_cgroup_uncharge_swaph]h__mem_cgroup_uncharge_swap}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubah}(h]h ](jjeh"]h$]h&]jj uh1hhjohhhjohMNubj)}(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#phhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj pubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj%pmodnameN classnameNj\j_)}jb]je)}jXjpsbc.__mem_cgroup_uncharge_swapasbuh1hhjpubj)}(h h]h }(hjCphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hentryh]hentry}(hjQphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpubj)}(hunsigned int nr_pagesh](j)}(hunsignedh]hunsigned}(hjjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfpubj)}(h h]h }(hjxphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfpubj)}(hinth]hint}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfpubh)}(hnr_pagesh]hnr_pages}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfpubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpubeh}(h]h ]h"]h$]h&]jj uh1jhjohhhjohMNubeh}(h]h ]h"]h$]h&]jj juh1hjjhjohhhjohMNubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjohMNhjohhubj )}(hhh]j9)}(huncharge swap spaceh]huncharge swap space}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMNhjphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohMNubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jpj4jpj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chMRhjpubj)}(hhh](j)}(h-``swp_entry_t entry`` swap entry to uncharge h](j)}(h``swp_entry_t entry``h]j?)}(hj qh]hswp_entry_t entry}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj qubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMOhjqubj)}(hhh]j9)}(hswap entry to unchargeh]hswap entry to uncharge}(hj&qhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"qhMOhj#qubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhj"qhMOhjqubj)}(h>``unsigned int nr_pages`` the amount of swap space to unchargeh](j)}(h``unsigned int nr_pages``h]j?)}(hjFqh]hunsigned int nr_pages}(hjHqhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDqubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMQhj@qubj)}(hhh]j9)}(h$the amount of swap space to unchargeh]h$the amount of swap space to uncharge}(hj_qhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMPhj\qubah}(h]h ]h"]h$]h&]uh1jhj@qubeh}(h]h ]h"]h$]h&]uh1jhj[qhMQhjqubeh}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!obj_cgroup_may_zswap (C function)c.obj_cgroup_may_zswaphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h4bool obj_cgroup_may_zswap (struct obj_cgroup *objcg)h]h)}(h3bool obj_cgroup_may_zswap(struct obj_cgroup *objcg)h](j)}(hj*h]hbool}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhMubh)}(hobj_cgroup_may_zswaph]h)}(hobj_cgroup_may_zswaph]hobj_cgroup_may_zswap}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ](jjeh"]h$]h&]jj uh1hhjqhhhjqhMubj)}(h(struct obj_cgroup *objcg)h]j)}(hstruct obj_cgroup *objcgh](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)}(h obj_cgrouph]h obj_cgroup}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjqmodnameN classnameNj\j_)}jb]je)}jXjqsbc.obj_cgroup_may_zswapasbuh1hhjqubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2 )}(hj5 h]h*}(hj(rhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjqubh)}(hobjcgh]hobjcg}(hj5rhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubeh}(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)}(hcheck if this cgroup can zswaph]hcheck if this cgroup can zswap}(hj_rhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj\rhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jwrj4jwrj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:121: ./mm/memcontrol.chMhj{rubj)}(hhh]j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]j?)}(hjrh]hstruct obj_cgroup *objcg}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjrubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhjrubj)}(hhh]j9)}(hthe object cgrouph]hthe object cgroup}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhj{rubj9)}(h**Description**h]jz)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjrubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj{rubj9)}(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:121: ./mm/memcontrol.chMhj{rubj9)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMhj{rubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$obj_cgroup_charge_zswap (C function)c.obj_cgroup_charge_zswaphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hDvoid obj_cgroup_charge_zswap (struct obj_cgroup *objcg, size_t size)h]h)}(hCvoid obj_cgroup_charge_zswap(struct obj_cgroup *objcg, size_t size)h](j)}(hvoidh]hvoid}(hj/shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+shhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMAubj)}(h h]h }(hj>shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+shhhj=shMAubh)}(hobj_cgroup_charge_zswaph]h)}(hobj_cgroup_charge_zswaph]hobj_cgroup_charge_zswap}(hjPshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLsubah}(h]h ](jjeh"]h$]h&]jj uh1hhj+shhhj=shMAubj)}(h'(struct obj_cgroup *objcg, size_t size)h](j)}(hstruct obj_cgroup *objcgh](j!)}(hj$h]hstruct}(hjlshhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhsubj)}(h h]h }(hjyshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhsubh)}(hhh]h)}(h obj_cgrouph]h obj_cgroup}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjsmodnameN classnameNj\j_)}jb]je)}jXjRssbc.obj_cgroup_charge_zswapasbuh1hhjhsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhsubj2 )}(hj5 h]h*}(hjshhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhsubh)}(hobjcgh]hobjcg}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhsubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdsubj)}(h size_t sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjsmodnameN classnameNj\j_)}jb]jsc.obj_cgroup_charge_zswapasbuh1hhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hsizeh]hsize}(hj thhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdsubeh}(h]h ]h"]h$]h&]jj uh1jhj+shhhj=shMAubeh}(h]h ]h"]h$]h&]jj juh1hjjhj'shhhj=shMAubah}(h]j"sah ](jjeh"]h$]h&]jj)jhuh1hhj=shMAhj$shhubj )}(hhh]j9)}(h!charge compression backend memoryh]h!charge compression backend memory}(hj7thhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMAhj4thhubah}(h]h ]h"]h$]h&]uh1jhj$shhhj=shMAubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jOtj4jOtj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjYth]h Parameters}(hj[thhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjWtubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMEhjStubj)}(hhh](j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]j?)}(hjxth]hstruct obj_cgroup *objcg}(hjzthhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvtubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMBhjrtubj)}(hhh]j9)}(hthe object cgrouph]hthe object cgroup}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjthMBhjtubah}(h]h ]h"]h$]h&]uh1jhjrtubeh}(h]h ]h"]h$]h&]uh1jhjthMBhjotubj)}(h*``size_t size`` size of compressed object h](j)}(h``size_t size``h]j?)}(hjth]h size_t size}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjtubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMChjtubj)}(hhh]j9)}(hsize of compressed objecth]hsize of compressed object}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjthMChjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthMChjotubeh}(h]h ]h"]h$]h&]uh1jhjStubj9)}(h**Description**h]jz)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjtubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMEhjStubj9)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMDhjStubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&obj_cgroup_uncharge_zswap (C function)c.obj_cgroup_uncharge_zswaphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hFvoid obj_cgroup_uncharge_zswap (struct obj_cgroup *objcg, size_t size)h]h)}(hEvoid obj_cgroup_uncharge_zswap(struct obj_cgroup *objcg, size_t size)h](j)}(hvoidh]hvoid}(hj1uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-uhhhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM]ubj)}(h h]h }(hj@uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-uhhhj?uhM]ubh)}(hobj_cgroup_uncharge_zswaph]h)}(hobj_cgroup_uncharge_zswaph]hobj_cgroup_uncharge_zswap}(hjRuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNuubah}(h]h ](jjeh"]h$]h&]jj uh1hhj-uhhhj?uhM]ubj)}(h'(struct obj_cgroup *objcg, size_t size)h](j)}(hstruct obj_cgroup *objcgh](j!)}(hj$h]hstruct}(hjnuhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjjuubj)}(h h]h }(hj{uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjuubh)}(hhh]h)}(h obj_cgrouph]h obj_cgroup}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjumodnameN classnameNj\j_)}jb]je)}jXjTusbc.obj_cgroup_uncharge_zswapasbuh1hhjjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjuubj2 )}(hj5 h]h*}(hjuhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjjuubh)}(hobjcgh]hobjcg}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjfuubj)}(h size_t sizeh](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]juc.obj_cgroup_uncharge_zswapasbuh1hhjuubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hsizeh]hsize}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjfuubeh}(h]h ]h"]h$]h&]jj uh1jhj-uhhhj?uhM]ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj)uhhhj?uhM]ubah}(h]j$uah ](jjeh"]h$]h&]jj)jhuh1hhj?uhM]hj&uhhubj )}(hhh]j9)}(h#uncharge compression backend memoryh]h#uncharge compression backend memory}(hj9vhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM]hj6vhhubah}(h]h ]h"]h$]h&]uh1jhj&uhhhj?uhM]ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jQvj4jQvj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj[vh]h Parameters}(hj]vhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYvubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chMahjUvubj)}(hhh](j)}(h/``struct obj_cgroup *objcg`` the object cgroup h](j)}(h``struct obj_cgroup *objcg``h]j?)}(hjzvh]hstruct obj_cgroup *objcg}(hj|vhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxvubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM^hjtvubj)}(hhh]j9)}(hthe object cgrouph]hthe object cgroup}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjvhM^hjvubah}(h]h ]h"]h$]h&]uh1jhjtvubeh}(h]h ]h"]h$]h&]uh1jhjvhM^hjqvubj)}(h*``size_t size`` size of compressed object h](j)}(h``size_t size``h]j?)}(hjvh]h size_t size}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjvubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM_hjvubj)}(hhh]j9)}(hsize of compressed objecth]hsize of compressed object}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjvhM_hjvubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM_hjqvubeh}(h]h ]h"]h$]h&]uh1jhjUvubj9)}(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:121: ./mm/memcontrol.chMahjUvubj9)}(h"Uncharges zswap memory on page in.h]h"Uncharges zswap memory on page in.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hP/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:121: ./mm/memcontrol.chM`hjUvubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubjq )}(h0#kernel-doc:: mm/memory-tiers.c (build warnings)h]h0#kernel-doc:: mm/memory-tiers.c (build warnings)}hjwsbah}(h]h ]h"]h$]h&]jj uh1jp hjǒhhhhhKzubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌshmem_recalc_inode (C function)c.shmem_recalc_inodehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hIbool shmem_recalc_inode (struct inode *inode, long alloced, long swapped)h]h)}(hHbool shmem_recalc_inode(struct inode *inode, long alloced, long swapped)h](j)}(hj*h]hbool}(hjAwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=whhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjOwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=whhhjNwhMubh)}(hshmem_recalc_inodeh]h)}(hshmem_recalc_inodeh]hshmem_recalc_inode}(hjawhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]wubah}(h]h ](jjeh"]h$]h&]jj uh1hhj=whhhjNwhMubj)}(h1(struct inode *inode, long alloced, long swapped)h](j)}(hstruct inode *inodeh](j!)}(hj$h]hstruct}(hj}whhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjywubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjywubh)}(hhh]h)}(hinodeh]hinode}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjwmodnameN classnameNj\j_)}jb]je)}jXjcwsbc.shmem_recalc_inodeasbuh1hhjywubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjywubj2 )}(hj5 h]h*}(hjwhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjywubh)}(hinodeh]hinode}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjywubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjuwubj)}(h long allocedh](j)}(hlongh]hlong}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubh)}(hallocedh]halloced}(hj xhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjuwubj)}(h long swappedh](j)}(hlongh]hlong}(hj$xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj xubj)}(h h]h }(hj2xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj xubh)}(hswappedh]hswapped}(hj@xhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj xubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjuwubeh}(h]h ]h"]h$]h&]jj uh1jhj=whhhjNwhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj9whhhjNwhMubah}(h]j4wah ](jjeh"]h$]h&]jj)jhuh1hhjNwhMhj6whhubj )}(hhh]j9)}(h'recalculate the block usage of an inodeh]h'recalculate the block usage of an inode}(hjjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjgxhhubah}(h]h ]h"]h$]h&]uh1jhj6whhhjNwhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jxj4jxj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjxubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjxubj)}(hhh](j)}(h(``struct inode *inode`` inode to recalc h](j)}(h``struct inode *inode``h]j?)}(hjxh]hstruct inode *inode}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjxubj)}(hhh]j9)}(hinode to recalch]hinode to recalc}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjxubj)}(hB``long alloced`` the change in number of pages allocated to inode h](j)}(h``long alloced``h]j?)}(hjxh]h long alloced}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjxubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjxubj)}(hhh]j9)}(h0the change in number of pages allocated to inodeh]h0the change in number of pages allocated to inode}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjxubj)}(hB``long swapped`` the change in number of pages swapped from inode h](j)}(h``long swapped``h]j?)}(hjyh]h long swapped}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjyubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjyubj)}(hhh]j9)}(h0the change in number of pages swapped from inodeh]h0the change in number of pages swapped from inode}(hj6yhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2yhMhj3yubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhj2yhMhjxubeh}(h]h ]h"]h$]h&]uh1jhjxubj9)}(h**Description**h]jz)}(hjXyh]h Description}(hjZyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjVyubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjxubj9)}(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.}(hjnyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjxubj9)}(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}yhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjxubj9)}(h **Return**h]jz)}(hjyh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjyubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjxubj9)}(h=true if swapped was incremented from 0, for shmem_writeout().h]h=true if swapped was incremented from 0, for shmem_writeout().}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌshmem_writeout (C function)c.shmem_writeouthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h_int shmem_writeout (struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h]h)}(h^int shmem_writeout(struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h](j)}(hinth]hint}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjyhMubh)}(hshmem_writeouth]h)}(hshmem_writeouth]hshmem_writeout}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ](jjeh"]h$]h&]jj uh1hhjyhhhjyhMubj)}(hL(struct folio *folio, struct swap_iocb **plug, struct list_head *folio_list)h](j)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjzhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj zubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj zubh)}(hhh]h)}(hfolioh]hfolio}(hj.zhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+zubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj0zmodnameN classnameNj\j_)}jb]je)}jXjysbc.shmem_writeoutasbuh1hhj zubj)}(h h]h }(hjNzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj zubj2 )}(hj5 h]h*}(hj\zhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj zubh)}(hfolioh]hfolio}(hjizhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj zubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubj)}(hstruct swap_iocb **plugh](j!)}(hj$h]hstruct}(hjzhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj~zubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~zubh)}(hhh]h)}(h swap_iocbh]h swap_iocb}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjzmodnameN classnameNj\j_)}jb]jJzc.shmem_writeoutasbuh1hhj~zubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~zubj2 )}(hj5 h]h*}(hjzhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj~zubj2 )}(hj5 h]h*}(hjzhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj~zubh)}(hplugh]hplug}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~zubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubj)}(hstruct list_head *folio_listh](j!)}(hj$h]hstruct}(hjzhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjzubj)}(h h]h }(hj {hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(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]jJzc.shmem_writeoutasbuh1hhjzubj)}(h h]h }(hj;{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj2 )}(hj5 h]h*}(hjI{hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjzubh)}(h folio_listh]h folio_list}(hjV{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjzubeh}(h]h ]h"]h$]h&]jj uh1jhjyhhhjyhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjyhhhjyhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhjyhhubj )}(hhh]j9)}(hWrite the folio to swaph]hWrite the folio to swap}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj}{hhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjyhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j{j4j{j5j6j7uh1hhhhjǒhNhNubjp)}(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&]uh1jyhj{ubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj{ubj)}(hhh](j)}(h+``struct folio *folio`` The folio to write 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&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj{ubj)}(hhh]j9)}(hThe folio to writeh]hThe folio to write}(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 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>hj{ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj{ubj)}(hhh]j9)}(h swap plugh]h swap plug}(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)}(hB``struct list_head *folio_list`` list to put back folios on split h](j)}(h ``struct list_head *folio_list``h]j?)}(hj3|h]hstruct list_head *folio_list}(hj5|hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1|ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj-|ubj)}(hhh]j9)}(h list to put back folios on splith]h list to put back folios on split}(hjL|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjH|hMhjI|ubah}(h]h ]h"]h$]h&]uh1jhj-|ubeh}(h]h ]h"]h$]h&]uh1jhjH|hMhj{ubeh}(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&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj{ubj9)}(h5Move the folio from the page cache to the swap cache.h]h5Move the folio from the page cache to the swap cache.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌshmem_get_folio (C function)c.shmem_get_foliohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(htint shmem_get_folio (struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h]h)}(hsint shmem_get_folio(struct inode *inode, pgoff_t index, loff_t write_end, struct folio **foliop, enum sgp_type sgp)h](j)}(hinth]hint}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM5 ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hM5 ubh)}(hshmem_get_folioh]h)}(hshmem_get_folioh]hshmem_get_folio}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj|hhhj|hM5 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}(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)}(hinodeh]hinode}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj }ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj}modnameN classnameNj\j_)}jb]je)}jXj|sbc.shmem_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)}(hinodeh]hinode}(hjI}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}(hje}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjb}ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjg}modnameN classnameNj\j_)}jb]j*}c.shmem_get_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 uh1jhj|ubj)}(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]j*}c.shmem_get_folioasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubh)}(h write_endh]h write_end}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(hstruct folio **folioph](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.shmem_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}ubj2 )}(hj5 h]h*}(hjI~hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj}ubh)}(hfolioph]hfoliop}(hjV~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubj)}(henum sgp_type sgph](j!)}(hjeh]henum}(hjo~hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjk~ubj)}(h h]h }(hj|~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk~ubh)}(hhh]h)}(hsgp_typeh]hsgp_type}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]j*}c.shmem_get_folioasbuh1hhjk~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk~ubh)}(hsgph]hsgp}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjk~ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj|ubeh}(h]h ]h"]h$]h&]jj uh1jhj|hhhj|hM5 ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj|hhhj|hM5 ubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhj|hM5 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:123: ./mm/shmem.chM5 hj~hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hM5 ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j~j4j~j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:123: ./mm/shmem.chM9 hj~ubj)}(hhh](j)}(h(``struct inode *inode`` inode to search h](j)}(h``struct inode *inode``h]j?)}(hj$h]hstruct inode *inode}(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:123: ./mm/shmem.chM6 hjubj)}(hhh]j9)}(hinode to searchh]hinode to search}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj9hM6 hj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hM6 hjubj)}(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&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chM7 hjWubj)}(hhh]j9)}(hthe page index.h]hthe page index.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjrhM7 hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM7 hjubj)}(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:123: ./mm/shmem.chM8 hjubj)}(hhh]j9)}(h'end of a write, could extend inode sizeh]h'end of a write, could extend inode size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM8 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8 hjubj)}(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:123: ./mm/shmem.chM9 hjubj)}(hhh]j9)}(hpointer to the folio if foundh]hpointer to the folio if found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM9 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9 hjubj)}(h6``enum sgp_type sgp`` SGP_* flags to control behavior h](j)}(h``enum sgp_type sgp``h]j?)}(hjh]henum sgp_type sgp}(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:123: ./mm/shmem.chM: hjubj)}(hhh]j9)}(hSGP_* flags to control behaviorh]hSGP_* flags to control behavior}(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&]uh1jhj~ubj9)}(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:123: ./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 }(hjYhhhNhNubjz)}(h **inode**h]hinode}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYubh & }(hjYhhhNhNubjz)}(h **index**h]hindex}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjYubhK. If a folio is present, it is returned locked with an increased refcount.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./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:123: ./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 }(hjhhhNhNubjz)}(h**sgp**h]hsgp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMF hjubj)}(hhh]j)}(hhh](jw,)}(h7for SGP_READ, ***foliop** is ``NULL`` and 0 is returnedh]j9)}(hjˀh](hfor SGP_READ, }(hj̀hhhNhNubjz)}(h ***foliop**h]h*foliop}(hjԀhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj̀ubh is }(hj̀hhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj̀ubh and 0 is returned}(hj̀hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMC hjɀubah}(h]h ]h"]h$]h&]uh1jv,hjƀubjw,)}(h@for SGP_NOALLOC, ***foliop** is ``NULL`` and -ENOENT is returnedh]j9)}(hjh](hfor SGP_NOALLOC, }(hj hhhNhNubjz)}(h ***foliop**h]h*foliop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh is }(hj hhhNhNubj?)}(h``NULL``h]hNULL}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj ubh and -ENOENT is returned}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMD hjubah}(h]h ]h"]h$]h&]uh1jv,hjƀubjw,)}(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 }(hjEhhhNhNubjz)}(h **foliop**h]hfoliop}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubh.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chME hjAubah}(h]h ]h"]h$]h&]uh1jv,hjƀubeh}(h]h ]h"]h$]h&]jŰjưuh1jhjhMC hjÀubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj€hMF hjubah}(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:123: ./mm/shmem.chMH hj~ubj9)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMI hj~ubj9)}(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:123: ./mm/shmem.chMK hj~ubj9)}(h,0 if successful, else a negative error code.h]h,0 if successful, else a negative error code.}(hjÁhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMJ hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$shmem_kernel_file_setup (C function)c.shmem_kernel_file_setuphNtauh1hhjǒhhhNhNubh)}(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:123: ./mm/shmem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXshmem_kernel_file_setupsbc.shmem_kernel_file_setupasbuh1hhjhhhjhMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hj@hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(hshmem_kernel_file_setuph]h)}(hj/h]hshmem_kernel_file_setup}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h4(const char *name, loff_t size, unsigned long flags)h](j)}(hconst char *nameh](j!)}(hjh]hconst}(hjlhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhubh)}(hnameh]hname}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(h loff_t sizeh](h)}(hhh]h)}(hloff_th]hloff_t}(hĵhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjɂubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj΂modnameN classnameNj\j_)}jb]j-c.shmem_kernel_file_setupasbuh1hhjłubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjłubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjłubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hlongh]hlong}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hflagsh]hflags}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjdubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(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.h]hXCget an unlinked file living in tmpfs which must be kernel internal. There will be NO LSM permission checks against the underlying inode. So users of this interface must do LSM checks at a higher layer. The users are the big_key and shm implementations. LSM checks are provided at the key or shm level rather than the inode.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjphhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:123: ./mm/shmem.chMhjubj)}(hhh](j)}(hF``const char *name`` name for dentry (to be seen in /proc//maps) h](j)}(h``const char *name``h]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:123: ./mm/shmem.chMhjubj)}(hhh]j9)}(h0name for dentry (to be seen in /proc//maps)h]h0name for dentry (to be seen in /proc//maps)}(hj̓hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjɃhMhjʃubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɃhMhjubj)}(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:123: ./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&]uh1jhjhMhjubj)}(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:123: ./mm/shmem.chMhj 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:123: ./mm/shmem.chMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌshmem_file_setup (C function)c.shmem_file_setuphNtauh1hhjǒhhhNhNubh)}(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 hj|hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhMubh)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXshmem_file_setupsbc.shmem_file_setupasbuh1hhj|hhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhMubj2 )}(hj5 h]h*}(hj΄hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj|hhhjhMubh)}(hshmem_file_setuph]h)}(hjh]hshmem_file_setup}(hj߄hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjۄubah}(h]h ](jjeh"]h$]h&]jj uh1hhj|hhhjhMubj)}(h4(const char *name, loff_t size, unsigned long flags)h](j)}(hconst char *nameh](j!)}(hjh]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 }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj1hhhNhNubah}(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}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj\modnameN classnameNj\j_)}jb]jc.shmem_file_setupasbuh1hhjSubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjɅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjׅhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhj|hhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjuhhubj )}(hhh]j9)}(h$get an unlinked file living in tmpfsh]h$get an unlinked file living in tmpfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:123: ./mm/shmem.chMhjubj)}(hhh](j)}(hF``const char *name`` name for dentry (to be seen in /proc//maps) h](j)}(h``const char *name``h]j?)}(hjBh]hconst char *name}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj@ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./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)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubj)}(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>hjyubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjuubj)}(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&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhj9ubj)}(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:123: ./mm/shmem.chMhjubj)}(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:123: ./mm/shmem.chMhjʆubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɆhMhj9ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&shmem_file_setup_with_mnt (C function)c.shmem_file_setup_with_mnthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(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}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj hhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubh)}(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_setup_with_mntsbc.shmem_file_setup_with_mntasbuh1hhj hhhjhMubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubj2 )}(hj5 h]h*}(hj\hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj hhhjhMubh)}(hshmem_file_setup_with_mnth]h)}(hjKh]hshmem_file_setup_with_mnt}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhjhMubj)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jIc.shmem_file_setup_with_mntasbuh1hhjubj)}(h h]h }(hjćhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj҇hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmnth]hmnt}(hj߇hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hconst char *nameh](j!)}(hjh]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 }(hj!hhhNhNubah}(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}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjZmodnameN classnameNj\j_)}jb]jIc.shmem_file_setup_with_mntasbuh1hhjQubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjLjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hflagsh]hflags}(hjՈhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(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$get an unlinked file living in tmpfsh]h$get an unlinked file living in tmpfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:123: ./mm/shmem.chMhjubj)}(hhh](j)}(hH``struct vfsmount *mnt`` the tmpfs mount where the file will be created h](j)}(h``struct vfsmount *mnt``h]j?)}(hj@h]hstruct vfsmount *mnt}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj>ubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj:ubj)}(hhh]j9)}(h.the tmpfs mount where the file will be createdh]h.the tmpfs mount where the file will be created}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubj)}(hF``const char *name`` name for dentry (to be seen in /proc//maps) h](j)}(h``const char *name``h]j?)}(hjyh]hconst char *name}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjwubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjsubj)}(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&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubj)}(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:123: ./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&]uh1j8hjljhMhjȉubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjljhMhj7ubj)}(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:123: ./mm/shmem.chMhjubj)}(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:123: ./mm/shmem.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌshmem_zero_setup (C function)c.shmem_zero_setuphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h1int shmem_zero_setup (struct vm_area_struct *vma)h]h)}(h0int shmem_zero_setup(struct vm_area_struct *vma)h](j)}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjShMubh)}(hshmem_zero_setuph]h)}(hshmem_zero_setuph]hshmem_zero_setup}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubah}(h]h ](jjeh"]h$]h&]jj uh1hhjAhhhjShMubj)}(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 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)}jXjhsbc.shmem_zero_setupasbuh1hhj~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 uh1jhjzubah}(h]h ]h"]h$]h&]jj uh1jhjAhhhjShMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj=hhhjShMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhjShMhj:hhubj )}(hhh]j9)}(h setup a shared anonymous mappingh]h setup a shared anonymous mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjShMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(h]**Parameters** ``struct vm_area_struct *vma`` the vma to be mmapped is prepared by do_mmaph](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:123: ./mm/shmem.chMhj!ubj)}(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?)}(hjFh]hstruct vm_area_struct *vma}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj@ubj)}(hhh]j9)}(h,the vma to be mmapped is prepared by do_mmaph]h,the vma to be mmapped is prepared by do_mmap}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!shmem_read_folio_gfp (C function)c.shmem_read_folio_gfphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h]struct folio * shmem_read_folio_gfp (struct address_space *mapping, pgoff_t index, gfp_t gfp)h]h)}(h[struct folio *shmem_read_folio_gfp(struct address_space *mapping, pgoff_t index, gfp_t gfp)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]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_gfpasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(hshmem_read_folio_gfph]h)}(hj݋h]hshmem_read_folio_gfp}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(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}(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}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]jۋc.shmem_read_folio_gfpasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjdhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjqhhhNhNubah}(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.shmem_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 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 reftargetj׌modnameN classnameNj\j_)}jb]jۋc.shmem_read_folio_gfpasbuh1hhjΌ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)}(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)}(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:123: ./mm/shmem.chMhjGubj)}(hhh](j)}(h<``struct address_space *mapping`` the folio's address_space h](j)}(h!``struct address_space *mapping``h]j?)}(hjlh]hstruct address_space *mapping}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubah}(h]h ]h"]h$]h&]uh1jhK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjfubj)}(hhh]j9)}(hthe folio's address_spaceh]hthe folio’s address_space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(h"``pgoff_t index`` the folio 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:123: ./mm/shmem.chMhjubj)}(hhh]j9)}(hthe folio indexh]hthe folio index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(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}(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:123: ./mm/shmem.chMhj؍ubj)}(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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj؍ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubeh}(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:123: ./mm/shmem.chMhjGubj9)}(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.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjGubj9)}(hi915_gem_object_get_pages_gtt() mixes __GFP_NORETRY | __GFP_NOWARN in with the mapping_gfp_mask(), to avoid OOMing the machine unnecessarily.h]hi915_gem_object_get_pages_gtt() mixes __GFP_NORETRY | __GFP_NOWARN in with the mapping_gfp_mask(), to avoid OOMing the machine unnecessarily.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hK/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:123: ./mm/shmem.chMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmigrate_vma_setup (C function)c.migrate_vma_setuphNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h0int migrate_vma_setup (struct migrate_vma *args)h]h)}(h/int migrate_vma_setup(struct migrate_vma *args)h](j)}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hMubh)}(hmigrate_vma_setuph]h)}(hmigrate_vma_setuph]hmigrate_vma_setup}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjihhhj{hMubj)}(h(struct migrate_vma *args)h]j)}(hstruct migrate_vma *argsh](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 migrate_vmah]h migrate_vma}(hjȎhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjŎubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjʎmodnameN classnameNj\j_)}jb]je)}jXjsbc.migrate_vma_setupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(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)}(h$prepare to migrate a range of memoryh]h$prepare to migrate a range of memory}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhj*hhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj{hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jEj4jEj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjMubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjIubj)}(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?)}(hjnh]hstruct migrate_vma *args}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjlubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjhubj)}(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&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubj9)}(h **Return**h]jz)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjIubj9)}(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:124: ./mm/migrate_device.chMhjIubj9)}(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:124: ./mm/migrate_device.chMhjIubj9)}(hXPrepare to migrate a range of memory virtual address range by collecting all the pages backing each virtual address in the range, saving them inside the src array. Then lock those pages and unmap them. Once the pages are locked and unmapped, check whether each page is pinned or not. Pages that aren't pinned have the MIGRATE_PFN_MIGRATE flag set (by this function) in the corresponding src array entry. Then restores any pages that are pinned, by remapping and unlocking those pages.h]hXPrepare to migrate a range of memory virtual address range by collecting all the pages backing each virtual address in the range, saving them inside the src array. Then lock those pages and unmap them. Once the pages are locked and unmapped, check whether each page is pinned or not. Pages that aren’t pinned have the MIGRATE_PFN_MIGRATE flag set (by this function) in the corresponding src array entry. Then restores any pages that are pinned, by remapping and unlocking those pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjIubj9)}(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:124: ./mm/migrate_device.chMhjIubj9)}(hXNote that the caller does not have to migrate all the pages that are marked with MIGRATE_PFN_MIGRATE flag in src array unless this is a migration from device memory to system memory. If the caller cannot migrate a device page back to system memory, then it must return VM_FAULT_SIGBUS, which has severe consequences for the userspace process, so it must be avoided if at all possible.h]hXNote that the caller does not have to migrate all the pages that are marked with MIGRATE_PFN_MIGRATE flag in src array unless this is a migration from device memory to system memory. If the caller cannot migrate a device page back to system memory, then it must return VM_FAULT_SIGBUS, which has severe consequences for the userspace process, so it must be avoided if at all possible.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjIubj9)}(hX0For empty entries inside CPU page table (pte_none() or pmd_none() is true) we do set MIGRATE_PFN_MIGRATE flag inside the corresponding source array thus allowing the caller to allocate device memory for those unbacked virtual addresses. For this the caller simply has to allocate device memory and properly set the destination entry like for regular migration. Note that this can still fail, and thus inside the device driver you must check if the migration was successful for those entries after calling migrate_vma_pages(), just like for regular migration.h]hX0For empty entries inside CPU page table (pte_none() or pmd_none() is true) we do set MIGRATE_PFN_MIGRATE flag inside the corresponding source array thus allowing the caller to allocate device memory for those unbacked virtual addresses. For this the caller simply has to allocate device memory and properly set the destination entry like for regular migration. Note that this can still fail, and thus inside the device driver you must check if the migration was successful for those entries after calling migrate_vma_pages(), just like for regular migration.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjIubj9)}(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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjIubj9)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjIubj9)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM hjIubj9)}(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).}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM hjIubj9)}(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.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!migrate_device_pages (C function)c.migrate_device_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hbvoid migrate_device_pages (unsigned long *src_pfns, unsigned long *dst_pfns, unsigned long npages)h]h)}(havoid migrate_device_pages(unsigned long *src_pfns, unsigned long *dst_pfns, unsigned long npages)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hmigrate_device_pagesh]h)}(hmigrate_device_pagesh]hmigrate_device_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(hH(unsigned long *src_pfns, unsigned long *dst_pfns, unsigned long npages)h](j)}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hjʐhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƐubj)}(h h]h }(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Ɛubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjƐubh)}(hsrc_pfnsh]hsrc_pfns}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjƐubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long *dst_pfnsh](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$ubj2 )}(hj5 h]h*}(hj`hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj$ubh)}(hdst_pfnsh]hdst_pfns}(hjmhhhNhNubah}(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}(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+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:124: ./mm/migrate_device.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:124: ./mm/migrate_device.chMhjubj)}(hhh](j)}(hJ``unsigned long *src_pfns`` src_pfns returned from migrate_device_range() h](j)}(h``unsigned long *src_pfns``h]j?)}(hj)h]hunsigned long *src_pfns}(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:124: ./mm/migrate_device.chMhj#ubj)}(hhh]j9)}(h-src_pfns returned from migrate_device_range()h]h-src_pfns returned from migrate_device_range()}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj ubj)}(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?)}(hjbh]hunsigned long *dst_pfns}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj`ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhj\ubj)}(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}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhj ubj)}(h6``unsigned long npages`` number of pages in the range h](j)}(h``unsigned long npages``h]j?)}(hjh]hunsigned long npages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubj)}(hhh]j9)}(hnumber of pages in the rangeh]hnumber of pages in the range}(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&]uh1jhjubj9)}(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:124: ./mm/migrate_device.chMhjubj9)}(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:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmigrate_vma_pages (C function)c.migrate_vma_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h4void migrate_vma_pages (struct migrate_vma *migrate)h]h)}(h3void migrate_vma_pages(struct migrate_vma *migrate)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM(ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hM(ubh)}(hmigrate_vma_pagesh]h)}(hmigrate_vma_pagesh]hmigrate_vma_pages}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj)hM(ubj)}(h(struct migrate_vma *migrate)h]j)}(hstruct migrate_vma *migrateh](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 migrate_vmah]h migrate_vma}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjxmodnameN classnameNj\j_)}jb]je)}jXj>sbc.migrate_vma_pagesasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjTubh)}(hmigrateh]hmigrate}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjPubah}(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+migrate meta-data from src page to dst pageh]h+migrate meta-data from src page to dst page}(hjۓhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM(hjؓhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hM(ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:124: ./mm/migrate_device.chM,hjubj)}(hhh]j)}(hT``struct migrate_vma *migrate`` migrate struct containing all migration information h](j)}(h``struct migrate_vma *migrate``h]j?)}(hjh]hstruct migrate_vma *migrate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM)hjubj)}(hhh]j9)}(h3migrate struct containing all migration informationh]h3migrate struct containing all migration information}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hM)hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM)hjubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjUubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!migrate_vma_finalize (C function)c.migrate_vma_finalizehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h7void migrate_vma_finalize (struct migrate_vma *migrate)h]h)}(h6void migrate_vma_finalize(struct migrate_vma *migrate)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM{ubh)}(hmigrate_vma_finalizeh]h)}(hmigrate_vma_finalizeh]hmigrate_vma_finalize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM{ubj)}(h(struct migrate_vma *migrate)h]j)}(hstruct migrate_vma *migrateh](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 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_finalizeasbuh1hhjՔ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}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjՔubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjєubah}(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)}(hrestore CPU page table entryh]hrestore CPU page table entry}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM{hjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM{ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jtj4jtj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj|ubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjxubj)}(hhh]j)}(hT``struct migrate_vma *migrate`` migrate struct containing all migration information h](j)}(h``struct migrate_vma *migrate``h]j?)}(hjh]hstruct migrate_vma *migrate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chM|hjubj)}(hhh]j9)}(h3migrate struct containing all migration informationh]h3migrate struct containing all migration information}(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&]uh1jhjxubj9)}(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:124: ./mm/migrate_device.chM~hjxubj9)}(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:124: ./mm/migrate_device.chM}hjxubj9)}(hiThis also unlocks the pages and puts them back on the lru, or drops the extra refcount, for device pages.h]hiThis also unlocks the pages and puts them back on the lru, or drops the extra refcount, for device pages.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!migrate_device_range (C function)c.migrate_device_rangehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h]int migrate_device_range (unsigned long *src_pfns, unsigned long start, unsigned long npages)h]h)}(h\int migrate_device_range(unsigned long *src_pfns, unsigned long start, unsigned long npages)h](j)}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj:hMubh)}(hmigrate_device_rangeh]h)}(hmigrate_device_rangeh]hmigrate_device_range}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubah}(h]h ](jjeh"]h$]h&]jj uh1hhj(hhhj:hMubj)}(hD(unsigned long *src_pfns, unsigned long start, unsigned long npages)h](j)}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjeubh)}(hsrc_pfnsh]hsrc_pfns}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjaubj)}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hjǖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÖubj)}(h h]h }(hjՖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÖubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÖ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 uh1jhjaubj)}(hunsigned long npagesh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnpagesh]hnpages}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjaubeh}(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-migrate device private pfns to normal memory.h]h-migrate device private pfns to normal memory.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:124: ./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:124: ./mm/migrate_device.chMhjubj)}(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.}(hjԗhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjЗhMhjїubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjЗhMhjubj)}(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:124: ./mm/migrate_device.chMhjubj)}(hhh]j9)}(h%starting pfn in the range to migrate.h]h%starting pfn in the range to migrate.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h5``unsigned long npages`` number of pages to migrate. h](j)}(h``unsigned long npages``h]j?)}(hj-h]hunsigned long npages}(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:124: ./mm/migrate_device.chMhj'ubj)}(hhh]j9)}(hnumber of pages to migrate.h]hnumber of pages to migrate.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubeh}(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&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./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:124: ./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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ migrate_device_pfns (C function)c.migrate_device_pfnshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hGint migrate_device_pfns (unsigned long *src_pfns, unsigned long npages)h]h)}(hFint migrate_device_pfns(unsigned long *src_pfns, unsigned long npages)h](j)}(hinth]hint}(hj˘hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǘhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMubj)}(h h]h }(hjژhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǘhhhj٘hMubh)}(hmigrate_device_pfnsh]h)}(hmigrate_device_pfnsh]hmigrate_device_pfns}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjǘhhhj٘hMubj)}(h/(unsigned long *src_pfns, unsigned long npages)h](j)}(hunsigned long *src_pfnsh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(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)}(hsrc_pfnsh]hsrc_pfns}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long npagesh](j)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hnpagesh]hnpages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubeh}(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٘hMhjhhubj )}(hhh]j9)}(h-migrate device private pfns to normal memory.h]h-migrate device private pfns to normal memory.}(hjșhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhjřhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj٘hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:124: ./mm/migrate_device.chMhjubj)}(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?)}(hj h]hunsigned long *src_pfns}(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:124: ./mm/migrate_device.chMhjubj)}(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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``unsigned long npages`` number of pages to migrate. h](j)}(h``unsigned long npages``h]j?)}(hjBh]hunsigned long npages}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj@ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:124: ./mm/migrate_device.chMhj<ubj)}(hhh]j9)}(hnumber of pages to migrate.h]hnumber of pages to migrate.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjubeh}(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:124: ./mm/migrate_device.chMhjubj9)}(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:124: ./mm/migrate_device.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubjq )}(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)}hjsbah}(h]h ]h"]h$]h&]jj uh1jp hjǒhhhhhK}ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwp_walk (C struct) c.wp_walkhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hwp_walkh]h)}(hstruct wp_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:126: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hjޚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̚hhhjݚhKubh)}(hwp_walkh]h)}(hjʚh]hwp_walk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj̚hhhjݚhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjȚhhhjݚhKubah}(h]jÚah ](jjeh"]h$]h&]jj)jhuh1hhjݚhKhjŚhhubj )}(hhh]j9)}(h+Private struct for pagetable walk callbacksh]h+Private struct for pagetable walk callbacks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK hjhhubah}(h]h ]h"]h$]h&]uh1jhjŚhhhjݚhKubeh}(h]h ](j-structeh"]h$]h&]j2j-j3j*j4j*j5j6j7uh1hhhhjǒhNhNubjp)}(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}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubh:}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj.ubj)}(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; };}hjOsbah}(h]h ]h"]h$]h&]jj uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj.ubj9)}(h **Members**h]jz)}(hj`h]hMembers}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj^ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj.ubj)}(hhh](j)}(h"``range`` Range for mmu notifiers h](j)}(h ``range``h]j?)}(hjh]hrange}(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:126: ./mm/mapping_dirty_helpers.chK hjyubj)}(hhh]j9)}(hRange for mmu notifiersh]hRange for mmu notifiers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhK hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhK hjvubj)}(h1``tlbflush_start`` Address of first modified pte h](j)}(h``tlbflush_start``h]j?)}(hjh]htlbflush_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]j9)}(hAddress of first modified pteh]hAddress of first modified pte}(hjћhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj͛hKhjΛubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj͛hKhjvubj)}(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:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]j9)}(h Address of last modified pte + 1h]h Address of last modified pte + 1}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjvubj)}(h'``total`` Total number of modified ptesh](j)}(h ``total``h]j?)}(hj*h]htotal}(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:126: ./mm/mapping_dirty_helpers.chKhj$ubj)}(hhh]j9)}(hTotal number of modified ptesh]hTotal number of modified ptes}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhjvubeh}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌwp_pte (C function)c.wp_ptehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hTint wp_pte (pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h]h)}(hSint wp_pte(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hwp_pteh]h)}(hwp_pteh]hwp_pte}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(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}(hjĜhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjƜmodnameN classnameNj\j_)}jb]je)}jXjsbc.wp_pteasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hpteh]hpte}(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}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(haddrh]haddr}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long endh](j)}(hunsignedh]hunsigned}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hendh]hend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubeh}(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&]uh1hhj՝ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjڝmodnameN classnameNj\j_)}jb]jc.wp_pteasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hwalkh]hwalk}(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 juh1hjjhj|hhhjhKubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjyhhubj )}(hhh]j9)}(hWrite-protect a pteh]hWrite-protect a pte}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhj8hhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jSj4jSj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:126: ./mm/mapping_dirty_helpers.chKhjWubj)}(hhh](j)}(h"``pte_t *pte`` Pointer to the pte h](j)}(h``pte_t *pte``h]j?)}(hj|h]h pte_t *pte}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjzubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjvubj)}(hhh]j9)}(hPointer to the pteh]hPointer to the pte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKhjsubj)}(h?``unsigned long addr`` The start of protecting virtual address 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:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]j9)}(h'The start of protecting virtual addressh]h'The start 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ʞhKhjsubj)}(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:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]j9)}(h%The end of protecting virtual addressh]h%The end of protecting virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjsubj)}(h:``struct mm_walk *walk`` pagetable walk callback argument h](j)}(h``struct mm_walk *walk``h]j?)}(hj'h]hstruct mm_walk *walk}(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:126: ./mm/mapping_dirty_helpers.chKhj!ubj)}(hhh]j9)}(h pagetable walk callback argumenth]h pagetable walk callback argument}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj<hKhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubj9)}(h**Description**h]jz)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj`ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjWubj9)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclean_walk (C struct) c.clean_walkhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h clean_walkh]h)}(hstruct clean_walkh](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK$ubh)}(h clean_walkh]h)}(hjh]h clean_walk}(hjǟhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjßubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhK$ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhK$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK$hjhhubj )}(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:126: ./mm/mapping_dirty_helpers.chK7hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK$ubeh}(h]h ](j-structeh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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}(hj hhhNhNubah}(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:126: ./mm/mapping_dirty_helpers.chK;hjubj)}(hstruct clean_walk { struct wp_walk base; pgoff_t bitmap_pgoff; unsigned long *bitmap; pgoff_t start; pgoff_t end; };h]hstruct clean_walk { struct wp_walk base; pgoff_t bitmap_pgoff; unsigned long *bitmap; pgoff_t start; pgoff_t end; };}hj&sbah}(h]h ]h"]h$]h&]jj uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK=hjubj9)}(h **Members**h]jz)}(hj7h]hMembers}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKEhjubj)}(hhh](j)}(h'``base`` struct wp_walk we derive from h](j)}(h``base``h]j?)}(hjVh]hbase}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjTubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK9hjPubj)}(hhh]j9)}(hstruct wp_walk we derive fromh]hstruct wp_walk we derive from}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjkhK9hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhK9hjMubj)}(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:126: ./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 }(hjhhhNhNubjz)}(h **bitmap**h]hbitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubeh}(h]h ]h"]h$]h&]uh1j8hjhK:hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK:hjMubj)}(hX``bitmap`` Bitmap with one bit for each page offset in the address_space range covered. h](j)}(h ``bitmap``h]j?)}(hj֠h]hbitmap}(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:126: ./mm/mapping_dirty_helpers.chKhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK>hj ubj)}(hhh]j9)}(hLAddress_space page offset of first modified pte relative to **bitmap_pgoff**h](hhjMubj)}(hS``end`` Address_space page offset of last modified pte relative to **bitmap_pgoff**h](j)}(h``end``h]j?)}(hjXh]hend}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chK?hjRubj)}(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 }(hjqhhhNhNubjz)}(h**bitmap_pgoff**h]h bitmap_pgoff}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqubeh}(h]h ]h"]h$]h&]uh1j8hjmhK?hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhK?hjMubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclean_record_pte (C function)c.clean_record_ptehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h^int clean_record_pte (pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h]h)}(h]int clean_record_pte(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKLubj)}(h h]h }(hjΡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj͡hKLubh)}(hclean_record_pteh]h)}(hclean_record_pteh]hclean_record_pte}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjܡubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj͡hKLubj)}(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)}jXjsbc.clean_record_pteasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj-hhhNhNubah}(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}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hlongh]hlong}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubeh}(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 }(hj΢hhhNhNubah}(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 hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(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.clean_record_pteasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj?hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hwalkh]hwalk}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj͡hKLubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhj͡hKLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj͡hKLhjhhubj )}(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}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKLhjshhubah}(h]h ]h"]h$]h&]uh1jhjhhhj͡hKLubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:126: ./mm/mapping_dirty_helpers.chKPhjubj)}(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:126: ./mm/mapping_dirty_helpers.chKNhjubj)}(hhh]j9)}(hPointer to the pteh]hPointer to the pte}(hjУhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj̣hKNhjͣubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj̣hKNhjubj)}(h@``unsigned long addr`` The start of virtual address to be clean h](j)}(h``unsigned long addr``h]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:126: ./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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjubj)}(h=``unsigned long end`` The end of virtual address to be clean h](j)}(h``unsigned long end``h]j?)}(hj)h]hunsigned long end}(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:126: ./mm/mapping_dirty_helpers.chKPhj#ubj)}(hhh]j9)}(h&The end of virtual address to be cleanh]h&The end of virtual address to be clean}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj>hKPhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hKPhjubj)}(h:``struct mm_walk *walk`` pagetable walk callback argument h](j)}(h``struct mm_walk *walk``h]j?)}(hjbh]hstruct mm_walk *walk}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj`ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKQhj\ubj)}(hhh]j9)}(h pagetable walk callback argumenth]h pagetable walk callback argument}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjwhKQhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhKQhjubeh}(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&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$wp_shared_mapping_range (C function)c.wp_shared_mapping_rangehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hfunsigned long wp_shared_mapping_range (struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h]h)}(heunsigned long wp_shared_mapping_range(struct address_space *mapping, pgoff_t first_index, pgoff_t nr)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޤhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޤhhhjhKubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޤhhhjhKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޤhhhjhKubh)}(hwp_shared_mapping_rangeh]h)}(hwp_shared_mapping_rangeh]hwp_shared_mapping_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjޤhhhjhKubj)}(h@(struct address_space *mapping, pgoff_t first_index, pgoff_t nr)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.wp_shared_mapping_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)}(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]juc.wp_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hjΥhhhNhNubah}(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 uh1jhj3ubj)}(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]juc.wp_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnrh]hnr}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj3ubeh}(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)}(h0Write-protect all ptes in an address space rangeh]h0Write-protect all ptes in an address space range}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjKhhubah}(h]h ]h"]h$]h&]uh1jhjפhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jfj4jfj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjnubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjjubj)}(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:126: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h;``pgoff_t first_index`` The first page offset in the range h](j)}(h``pgoff_t first_index``h]j?)}(hjȦh]hpgoff_t first_index}(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:126: ./mm/mapping_dirty_helpers.chKhj¦ubj)}(hhh]j9)}(h"The first page offset in the rangeh]h"The first page offset in the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjݦhKhjަubah}(h]h ]h"]h$]h&]uh1jhj¦ubeh}(h]h ]h"]h$]h&]uh1jhjݦhKhjubj)}(h;``pgoff_t nr`` Number of incremental page offsets to cover h](j)}(h``pgoff_t nr``h]j?)}(hjh]h pgoff_t nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjubj)}(hhh]j9)}(h+Number of incremental page offsets to coverh]h+Number of incremental page offsets to cover}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjjubj9)}(h**Note**h]jz)}(hj<h]hNote}(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:126: ./mm/mapping_dirty_helpers.chKhjjubj9)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chKhjjubj9)}(h **Return**h]jz)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjaubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjjubj9)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.clean_record_shared_mapping_range (C function)#c.clean_record_shared_mapping_rangehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hunsigned long clean_record_shared_mapping_range (struct address_space *mapping, pgoff_t first_index, pgoff_t nr, pgoff_t bitmap_pgoff, unsigned long *bitmap, pgoff_t *start, pgoff_t *end)h]h)}(hunsigned long clean_record_shared_mapping_range(struct address_space *mapping, pgoff_t first_index, pgoff_t nr, pgoff_t bitmap_pgoff, unsigned long *bitmap, pgoff_t *start, pgoff_t *end)h](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hlongh]hlong}(hjŧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h h]h }(hjӧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(h!clean_record_shared_mapping_rangeh]h)}(h!clean_record_shared_mapping_rangeh]h!clean_record_shared_mapping_range}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(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}(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 reftargetj!modnameN classnameNj\j_)}jb]je)}jXjsb#c.clean_record_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjMhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmappingh]hmapping}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hpgoff_t first_indexh](h)}(hhh]h)}(hpgoff_th]hpgoff_t}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjxmodnameN classnameNj\j_)}jb]j;#c.clean_record_shared_mapping_rangeasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(h first_indexh]h first_index}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]j;#c.clean_record_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hjܨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hpgoff_t bitmap_pgoffh](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.clean_record_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h bitmap_pgoffh]h bitmap_pgoff}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hunsigned long *bitmaph](j)}(hunsignedh]hunsigned}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hlongh]hlong}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjGubh)}(hbitmaph]hbitmap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]j;#c.clean_record_shared_mapping_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)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]j;#c.clean_record_shared_mapping_rangeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj-hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hendh]hend}(hj:hhhNhNubah}(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)}(h3Clean and record all ptes in an address space rangeh]h3Clean and record all ptes in an address space range}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j|j4j|j5j6j7uh1hhhhjǒhNhNubjp)}(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:126: ./mm/mapping_dirty_helpers.chMhjubj)}(hhh](j)}(hE``struct address_space *mapping`` The address_space we want to clean h](j)}(h!``struct address_space *mapping``h]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:126: ./mm/mapping_dirty_helpers.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``pgoff_t first_index`` The first page offset in the range h](j)}(h``pgoff_t first_index``h]j?)}(hjުh]hpgoff_t first_index}(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:126: ./mm/mapping_dirty_helpers.chMhjتubj)}(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&]uh1jhjتubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``pgoff_t nr`` Number of incremental page offsets to cover h](j)}(h``pgoff_t nr``h]j?)}(hjh]h pgoff_t nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubj)}(hhh]j9)}(h+Number of incremental page offsets to coverh]h+Number of incremental page offsets to cover}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(hH``pgoff_t bitmap_pgoff`` The page offset of the first bit in **bitmap** h](j)}(h``pgoff_t bitmap_pgoff``h]j?)}(hjPh]hpgoff_t bitmap_pgoff}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjJubj)}(hhh]j9)}(h.The page offset of the first bit in **bitmap**h](h$The page offset of the first bit in }(hjihhhNhNubjz)}(h **bitmap**h]hbitmap}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjiubeh}(h]h ]h"]h$]h&]uh1j8hjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubj)}(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:126: ./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 }(hjhhhNhNubjz)}(h**nr**h]hnr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh1 bits. The bitmap needs to cover the whole range }(hjhhhNhNubjz)}(h**first_index**h]h first_index}(hjʫhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh..**first_index** + }(hjhhhNhNubjz)}(h**nr**h]hnr}(hjܫhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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?)}(hjh]hpgoff_t *start}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubj)}(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 }(hj hhhNhNubjz)}(h **bitmap**h]hbitmap}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh2. is modified as new bits are set by the function.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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?)}(hjSh]h pgoff_t *end}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjQubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM!hjMubj)}(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 }(hjlhhhNhNubjz)}(h **bitmap**h]hbitmap}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjlubhF. none set. The value is modified as new bits are set by the function.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM!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&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./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:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM"hjubj)}(hhh](jw,)}(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.}(hjͬhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM&hjɬubah}(h]h ]h"]h$]h&]uh1jv,hjƬubjw,)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM(hjubah}(h]h ]h"]h$]h&]uh1jv,hjƬubeh}(h]h ]h"]h$]h&]jŰj5 uh1jhj۬hM&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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM1hjubj9)}(h **Return**h]jz)}(hj!h]hReturn}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM6hjubj9)}(h*The number of dirty ptes actually cleaned.h]h*The number of dirty ptes actually cleaned.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8h[/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:126: ./mm/mapping_dirty_helpers.chM7hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubjq )}(h2#kernel-doc:: mm/memory-failure.c (build warnings)h]h2#kernel-doc:: mm/memory-failure.c (build warnings)}hjMsbah}(h]h ]h"]h$]h&]jj uh1jp hjǒhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_addr_in_chunk (C function)c.pcpu_addr_in_chunkhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h>bool pcpu_addr_in_chunk (struct pcpu_chunk *chunk, void *addr)h]h)}(h=bool pcpu_addr_in_chunk(struct pcpu_chunk *chunk, void *addr)h](j)}(hj*h]hbool}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhKubh)}(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 uh1hhjphhhjhKubj)}(h&(struct pcpu_chunk *chunk, void *addr)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}(hjέhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj˭ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjЭmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_addr_in_chunkasbuh1hhjubj)}(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 void *addrh](j)}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj>hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(haddrh]haddr}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjphhhjhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjlhhhjhKubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjihhubj )}(hhh]j9)}(h.check if the address is served from this chunkh]h.check if the address is served from this chunk}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhjrhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./mm/percpu.chKhjubj)}(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:128: ./mm/percpu.chKhjubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjϮhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjˮhKhj̮ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjˮhKhjubj)}(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:128: ./mm/percpu.chKhjubj)}(hhh]j9)}(hpercpu addressh]hpercpu address}(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 **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:128: ./mm/percpu.chKhjubj9)}(h.True if the address is served from this chunk.h]h.True if the address is served from this chunk.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"pcpu_check_block_hint (C function)c.pcpu_check_block_hinthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hPbool pcpu_check_block_hint (struct pcpu_block_md *block, int bits, size_t align)h]h)}(hObool pcpu_check_block_hint(struct pcpu_block_md *block, int bits, size_t align)h](j)}(hj*h]hbool}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM4ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhj|hM4ubh)}(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 uh1hhjkhhhj|hM4ubj)}(h5(struct pcpu_block_md *block, int bits, size_t align)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&]uh1hhjƯubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj˯modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_check_block_hintasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hblockh]hblock}(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 }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hbitsh]hbits}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t alignh](h)}(hhh]h)}(hsize_th]hsize_t}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjWmodnameN classnameNj\j_)}jb]jc.pcpu_check_block_hintasbuh1hhjNubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(halignh]halign}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjkhhhj|hM4ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjghhhj|hM4ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj|hM4hjdhhubj )}(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:128: ./mm/percpu.chM4hjhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj|hM4ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jðj4jðj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chM8hjǰubj)}(hhh](j)}(h2``struct pcpu_block_md *block`` block of interest h](j)}(h``struct pcpu_block_md *block``h]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:128: ./mm/percpu.chM5hjubj)}(hhh]j9)}(hblock of interesth]hblock of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubj)}(h ``int bits`` size of allocation h](j)}(h ``int bits``h]j?)}(hj%h]hint bits}(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:128: ./mm/percpu.chM6hjubj)}(hhh]j9)}(hsize of allocationh]hsize of allocation}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj:hM6hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hM6hjubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]j?)}(hj^h]h size_t align}(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:128: ./mm/percpu.chM7hjXubj)}(hhh]j9)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjshM7hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshM7hjubeh}(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:128: ./mm/percpu.chM9hjǰubj9)}(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:128: ./mm/percpu.chM8hjǰubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%pcpu_next_md_free_region (C function)c.pcpu_next_md_free_regionhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hQvoid pcpu_next_md_free_region (struct pcpu_chunk *chunk, int *bit_off, int *bits)h]h)}(hPvoid pcpu_next_md_free_region(struct pcpu_chunk *chunk, int *bit_off, int *bits)h](j)}(hvoidh]hvoid}(hjޱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڱhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڱhhhjhMcubh)}(hpcpu_next_md_free_regionh]h)}(hpcpu_next_md_free_regionh]hpcpu_next_md_free_region}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjڱhhhjhMcubj)}(h3(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}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_next_md_free_regionasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjghhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hchunkh]hchunk}(hjthhhNhNubah}(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&]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}(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)}(hbitsh]hbits}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj˲ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjڱhhhjhMcubeh}(h]h ]h"]h$]h&]jj juh1hjjhjֱhhhjhMcubah}(h]jѱah ](jjeh"]h$]h&]jj)jhuh1hhjhMchjӱhhubj )}(hhh]j9)}(hfinds the next hint free areah]hfinds the next hint free area}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMchjhhubah}(h]h ]h"]h$]h&]uh1jhjӱhhhjhMcubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j:j4j:j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjBubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMghj>ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjch]hstruct pcpu_chunk *chunk}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMdhj]ubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjxhMdhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMdhjZubj)}(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:128: ./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&]uh1jhjhMehjZubj)}(h ``int *bits`` size of free area h](j)}(h ``int *bits``h]j?)}(hjճh]h int *bits}(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:128: ./mm/percpu.chMfhjϳubj)}(hhh]j9)}(hsize of free areah]hsize of free area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjϳubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjZubeh}(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:128: ./mm/percpu.chMhhj>ubj9)}(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.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMghj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!pcpu_next_fit_region (C function)c.pcpu_next_fit_regionhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hhvoid pcpu_next_fit_region (struct pcpu_chunk *chunk, int alloc_bits, int align, int *bit_off, int *bits)h]h)}(hgvoid pcpu_next_fit_region(struct pcpu_chunk *chunk, int alloc_bits, int align, int *bit_off, int *bits)h](j)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjchMubh)}(hpcpu_next_fit_regionh]h)}(hpcpu_next_fit_regionh]hpcpu_next_fit_region}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubah}(h]h ](jjeh"]h$]h&]jj uh1hhjQhhhjchMubj)}(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)}jXjxsbc.pcpu_next_fit_regionasbuh1hhjubj)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint alloc_bitsh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h alloc_bitsh]h alloc_bits}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int alignh](j)}(hinth]hint}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(halignh]halign}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int *bit_offh](j)}(hinth]hint}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjjubh)}(hbit_offh]hbit_off}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubeh}(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*}(hj̵hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hbitsh]hbits}(hjٵhhhNhNubah}(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)}(h.finds fit areas for a given allocation requesth]h.finds fit areas for a given allocation request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjchMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chMhjubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjDh]hstruct pcpu_chunk *chunk}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj>ubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;ubj)}(h&``int alloc_bits`` size of allocation h](j)}(h``int alloc_bits``h]j?)}(hj}h]hint alloc_bits}(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:128: ./mm/percpu.chMhjwubj)}(hhh]j9)}(hsize of allocationh]hsize of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhj;ubj)}(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:128: ./mm/percpu.chMhjubj)}(hhh]j9)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hj϶hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj˶hMhj̶ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˶hMhj;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>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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&]uh1jhjhMhj;ubj)}(h ``int *bits`` size of free area h](j)}(h ``int *bits``h]j?)}(hj(h]h int *bits}(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:128: ./mm/percpu.chMhj"ubj)}(hhh]j9)}(hsize of free areah]hsize of free area}(hjAhhhNhNubah}(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&]uh1jhjubj9)}(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:128: ./mm/percpu.chMhjubj9)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_mem_zalloc (C function)c.pcpu_mem_zallochNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h/void * pcpu_mem_zalloc (size_t size, gfp_t gfp)h]h)}(h-void *pcpu_mem_zalloc(size_t size, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj2 )}(hj5 h]h*}(hjŷhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhMubh)}(hpcpu_mem_zalloch]h)}(hpcpu_mem_zalloch]hpcpu_mem_zalloc}(hjַhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjҷubah}(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)}jXjطsbc.pcpu_mem_zallocasbuh1hhjubj)}(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 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]jc.pcpu_mem_zallocasbuh1hhj8ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hgfph]hgfp}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubeh}(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:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./mm/percpu.chMhjubj)}(hhh](j)}(h"``size_t size`` bytes 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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjиubj)}(hhh]j9)}(hbytes to allocateh]hbytes to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjиubeh}(h]h ]h"]h$]h&]uh1jhjhMhj͸ubj)}(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>hj ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj ubj)}(hhh]j9)}(hallocation flagsh]hallocation flags}(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&]uh1jhjubj9)}(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:128: ./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 }(hj`hhhNhNubjz)}(h**size**h]hsize}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj`ubh bytes. If }(hj`hhhNhNubjz)}(h**size**h]hsize}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj`ubh is smaller than PAGE_SIZE, kzalloc() is used; otherwise, the equivalent of vzalloc() is used. This is to facilitate passing through whitelisted flags. The returned memory is always zeroed.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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:128: ./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:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_mem_free (C function)c.pcpu_mem_freehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hvoid pcpu_mem_free (void *ptr)h]h)}(hvoid pcpu_mem_free(void *ptr)h](j)}(hvoidh]hvoid}(hjڹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֹhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֹhhhjhMubh)}(h pcpu_mem_freeh]h)}(h pcpu_mem_freeh]h pcpu_mem_free}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjֹhhhjhMubj)}(h (void *ptr)h]j)}(h void *ptrh](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hptrh]hptr}(hj@hhhNhNubah}(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 free memoryh]h free memory}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjghhubah}(h]h ]h"]h$]h&]uh1jhjϹhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./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:128: ./mm/percpu.chMhjubj)}(hhh]j9)}(hmemory to freeh]hmemory to free}(hjĺhhhNhNubah}(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:128: ./mm/percpu.chMhjubj9)}(hJFree **ptr**. **ptr** should have been allocated using pcpu_mem_zalloc().h](hFree }(hjhhhNhNubjz)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh. }(hjhhhNhNubjz)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh4 should have been allocated using pcpu_mem_zalloc().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ pcpu_chunk_relocate (C function)c.pcpu_chunk_relocatehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h>void pcpu_chunk_relocate (struct pcpu_chunk *chunk, int oslot)h]h)}(h=void pcpu_chunk_relocate(struct pcpu_chunk *chunk, int oslot)h](j)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj]hMubh)}(hpcpu_chunk_relocateh]h)}(hpcpu_chunk_relocateh]hpcpu_chunk_relocate}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubah}(h]h ](jjeh"]h$]h&]jj uh1hhjKhhhj]hMubj)}(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)}jXjrsbc.pcpu_chunk_relocateasbuh1hhjubj)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int osloth](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hosloth]hoslot}(hjhhhNhNubah}(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)}(h'put chunk in the appropriate chunk sloth]h'put chunk in the appropriate chunk slot}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j\j4j\j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chM#hj`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:128: ./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 hj|ubj)}(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:128: ./mm/percpu.chM!hjubj)}(hhh]j9)}(hthe previous slot it was onh]hthe previous slot it was on}(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|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:128: ./mm/percpu.chM#hj`ubj9)}(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](h ah"]h$]h&]uh1j1 hj½ubh)}(hblockh]hblock}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj½ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int starth](j)}(hinth]hint}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hstarth]hstart}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint endh](j)}(hinth]hint}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hendh]hend}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMmubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMmubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1hhjhMmhj~hhubj )}(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:128: ./mm/percpu.chMmhjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhMmubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j˾j4j˾j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chMqhjϾubj)}(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:128: ./mm/percpu.chMnhjubj)}(hhh]j9)}(hblock of interesth]hblock of interest}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMnhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMnhjubj)}(h$``int start`` start offset in block h](j)}(h ``int start``h]j?)}(hj-h]h int 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:128: ./mm/percpu.chMohj'ubj)}(hhh]j9)}(hstart offset in blockh]hstart offset in block}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjBhMohjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMohjubj)}(h ``int end`` end offset in block h](j)}(h ``int end``h]j?)}(hjfh]hint end}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjdubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMphj`ubj)}(hhh]j9)}(hend offset in blockh]hend offset in block}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj{hMphj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMphjubeh}(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:128: ./mm/percpu.chMrhjϾubj9)}(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:128: ./mm/percpu.chMqhjϾubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$pcpu_chunk_refresh_hint (C function)c.pcpu_chunk_refresh_hinthNtauh1hhjǒhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_chunk_refresh_hinth]h)}(hpcpu_chunk_refresh_hinth]hpcpu_chunk_refresh_hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h*(struct pcpu_chunk *chunk, bool full_scan)h](j)}(hstruct pcpu_chunk *chunkh](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)}(h pcpu_chunkh]h pcpu_chunk}(hjAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjCmodnameN classnameNj\j_)}jb]je)}jXj sbc.pcpu_chunk_refresh_hintasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjohhhNhNubah}(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)}(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 uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj޿hhhjhMubah}(h]jٿah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjۿhhubj )}(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:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjۿhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chMhjubj)}(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:128: ./mm/percpu.chMhjubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(h8``bool full_scan`` if we should scan from the beginning h](j)}(h``bool full_scan``h]j?)}(hjTh]hbool full_scan}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjRubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjNubj)}(hhh]j9)}(h$if we should scan from the beginningh]h$if we should scan from the beginning}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubeh}(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:128: ./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:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$pcpu_block_refresh_hint (C function)c.pcpu_block_refresh_hinthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hBvoid pcpu_block_refresh_hint (struct pcpu_chunk *chunk, int index)h]h)}(hAvoid pcpu_block_refresh_hint(struct pcpu_chunk *chunk, int index)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_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 uh1hhjhhhjhMubj)}(h%(struct pcpu_chunk *chunk, int index)h](j)}(hstruct pcpu_chunk *chunkh](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 pcpu_chunkh]h pcpu_chunk}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj1modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_block_refresh_hintasbuh1hhj 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)}(hchunkh]hchunk}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubj)}(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 uh1jhj ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./mm/percpu.chMhjubj)}(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:128: ./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 index`` index of the metadata block h](j)}(h ``int index``h]j?)}(hj4h]h int 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:128: ./mm/percpu.chMhj.ubj)}(hhh]j9)}(hindex of the metadata blockh]hindex of the metadata block}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubeh}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)pcpu_block_update_hint_alloc (C function)c.pcpu_block_update_hint_allochNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hSvoid pcpu_block_update_hint_alloc (struct pcpu_chunk *chunk, int bit_off, int bits)h]h)}(hRvoid pcpu_block_update_hint_alloc(struct pcpu_chunk *chunk, int bit_off, int bits)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_block_update_hint_allocasbuh1hhjubj)}(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}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int bit_offh](j)}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hbit_offh]hbit_off}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubeh}(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:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./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}(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:128: ./mm/percpu.chM hjubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4hM hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hM hjubj)}(h``int bit_off`` chunk offset h](j)}(h``int bit_off``h]j?)}(hjXh]h int bit_off}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjVubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM!hjRubj)}(hhh]j9)}(h chunk offseth]h chunk offset}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjmhM!hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhM!hjubj)}(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:128: ./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"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:128: ./mm/percpu.chM$hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM#hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(pcpu_block_update_hint_free (C function)c.pcpu_block_update_hint_freehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hRvoid pcpu_block_update_hint_free (struct pcpu_chunk *chunk, int bit_off, int bits)h]h)}(hQvoid pcpu_block_update_hint_free(struct pcpu_chunk *chunk, int bit_off, int bits)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubh)}(hpcpu_block_update_hint_freeh]h)}(hpcpu_block_update_hint_freeh]hpcpu_block_update_hint_free}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhjhMubj)}(h1(struct pcpu_chunk *chunk, int bit_off, int bits)h](j)}(hstruct pcpu_chunk *chunkh](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 pcpu_chunkh]h pcpu_chunk}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjnmodnameN classnameNj\j_)}jb]je)}jXj4sbc.pcpu_block_update_hint_freeasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjJubh)}(hchunkh]hchunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjFubj)}(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 uh1jhjFubj)}(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 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(updates the block hints on the free pathh]h(updates the block hints on the free path}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jSj4jSj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chMhjWubj)}(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>hjzubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjvubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubj)}(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:128: ./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&]uh1jhjhMhjsubj)}(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:128: ./mm/percpu.chMhjubj)}(hhh]j9)}(hsize of requesth]hsize of request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubj9)}(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:128: ./mm/percpu.chMhjWubj9)}(hUpdates metadata for the allocation path. This avoids a blind block refresh by making use of the block contig hints. If this fails, it scans forward and backward to determine the extent of the free area. This is capped at the boundary of blocks.h]hUpdates metadata for the allocation path. This avoids a blind block refresh by making use of the block contig hints. If this fails, it scans forward and backward to determine the extent of the free area. This is capped at the boundary of blocks.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjWubj9)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_is_populated (C function)c.pcpu_is_populatedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hWbool pcpu_is_populated (struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off)h]h)}(hVbool pcpu_is_populated(struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off)h](j)}(hj*h]hbool}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhM%ubh)}(hpcpu_is_populatedh]h)}(hpcpu_is_populatedh]hpcpu_is_populated}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjyhhhjhM%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*}(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)}(h int bit_offh](j)}(hinth]hint}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hbit_offh]hbit_off}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hint bitsh](j)}(hinth]hint}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hbitsh]hbits}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubeh}(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 uh1jhjyhhhjhM%ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjuhhhjhM%ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhM%hjrhhubj )}(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:128: ./mm/percpu.chM%hjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhM%ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM)hjubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]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:128: ./mm/percpu.chM&hj#ubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjBhhhNhNubah}(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?)}(hjbh]h int bit_off}(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:128: ./mm/percpu.chM'hj\ubj)}(hhh]j9)}(h chunk offseth]h chunk offset}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjwhM'hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM'hj ubj)}(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:128: ./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(hj ubj)}(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:128: ./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)hj 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:128: ./mm/percpu.chM+hjubj9)}(hAFor atomic allocations, check if the backing pages are populated.h]hAFor atomic allocations, check if the backing pages are populated.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM*hjubj9)}(h **Return**h]jz)}(hj6h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM,hjubj9)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM-hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ pcpu_find_block_fit (C function)c.pcpu_find_block_fithNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h_int pcpu_find_block_fit (struct pcpu_chunk *chunk, int alloc_bits, size_t align, bool pop_only)h]h)}(h^int pcpu_find_block_fit(struct pcpu_chunk *chunk, int alloc_bits, size_t align, bool pop_only)h](j)}(hinth]hint}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhMDubh)}(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 uh1hhjwhhhjhMDubj)}(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*}(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 }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(h alloc_bitsh]h alloc_bits}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t alignh](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.pcpu_find_block_fitasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(halignh]halign}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubeh}(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 uh1jhjwhhhjhMDubeh}(h]h ]h"]h$]h&]jj juh1hjjhjshhhjhMDubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjhMDhjphhubj )}(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:128: ./mm/percpu.chMDhjhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhMDubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chMHhjubj)}(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:128: ./mm/percpu.chMEhj'ubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjBhMEhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMEhj$ubj)}(h7``int alloc_bits`` size of request in allocation units h](j)}(h``int alloc_bits``h]j?)}(hjfh]hint alloc_bits}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjdubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMFhj`ubj)}(hhh]j9)}(h#size of request in allocation unitsh]h#size of request in allocation units}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj{hMFhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMFhj$ubj)}(h9``size_t align`` alignment of area (max PAGE_SIZE bytes) h](j)}(h``size_t align``h]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:128: ./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&]uh1jhjhMGhj$ubj)}(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:128: ./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&]uh1jhjhMHhj$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:128: ./mm/percpu.chMJhjubj9)}(hXGiven a chunk and an allocation spec, find the offset to begin searching for a free region. This iterates over the bitmap metadata blocks to find an offset that will be guaranteed to fit the requirements. It is not quite first fit as if the allocation does not fit in the contig hint of a block or chunk, it is skipped. This errs on the side of caution to prevent excess iteration. Poor alignment can cause the allocator to skip over blocks and chunks that have valid free areas.h]hXGiven a chunk and an allocation spec, find the offset to begin searching for a free region. This iterates over the bitmap metadata blocks to find an offset that will be guaranteed to fit the requirements. It is not quite first fit as if the allocation does not fit in the contig hint of a block or chunk, it is skipped. This errs on the side of caution to prevent excess iteration. Poor alignment can cause the allocator to skip over blocks and chunks that have valid free areas.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMIhjubj9)}(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:128: ./mm/percpu.chMQhjubj9)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_alloc_area (C function)c.pcpu_alloc_areahNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hWint pcpu_alloc_area (struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start)h]h)}(hVint pcpu_alloc_area(struct pcpu_chunk *chunk, int alloc_bits, size_t align, int start)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhMubh)}(hpcpu_alloc_areah]h)}(hpcpu_alloc_areah]hpcpu_alloc_area}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhj{hhhjhMubj)}(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 }(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 }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(h alloc_bitsh]h alloc_bits}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h size_t alignh](h)}(hhh]h)}(hsize_th]hsize_t}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjhmodnameN classnameNj\j_)}jb]jc.pcpu_alloc_areaasbuh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(halignh]halign}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubeh}(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 uh1jhj{hhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjwhhhjhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjthhubj )}(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:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chMhj ubj)}(hhh](j)}(h/``struct pcpu_chunk *chunk`` chunk of interest h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hj2h]hstruct pcpu_chunk *chunk}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj,ubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubj)}(h7``int alloc_bits`` size of request in allocation units h](j)}(h``int alloc_bits``h]j?)}(hjkh]hint alloc_bits}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjiubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjeubj)}(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&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)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:128: ./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&]uh1jhjhMhj)ubj)}(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:128: ./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&]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:128: ./mm/percpu.chMhj ubj9)}(hXThis function takes in a **start** offset to begin searching to fit an allocation of **alloc_bits** with alignment **align**. It needs to scan the allocation map because if it fits within the block's contig hint, **start** will be block->first_free. This is an attempt to fill the allocation prior to breaking the contig hint. The allocation and boundary maps are updated accordingly if it confirms a valid free area.h](hThis function takes in a }(hj.hhhNhNubjz)}(h **start**h]hstart}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.ubh3 offset to begin searching to fit an allocation of }(hj.hhhNhNubjz)}(h**alloc_bits**h]h alloc_bits}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.ubh with alignment }(hj.hhhNhNubjz)}(h **align**h]halign}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.ubh\. It needs to scan the allocation map because if it fits within the block’s contig hint, }(hj.hhhNhNubjz)}(h **start**h]hstart}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj.ubh will be block->first_free. This is an attempt to fill the allocation prior to breaking the contig hint. The allocation and boundary maps are updated accordingly if it confirms a valid free area.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.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:128: ./mm/percpu.chMhj ubj9)}(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:128: ./mm/percpu.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_free_area (C function)c.pcpu_free_areahNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h6int pcpu_free_area (struct pcpu_chunk *chunk, int off)h]h)}(h5int pcpu_free_area(struct pcpu_chunk *chunk, int off)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_free_areah]h)}(hpcpu_free_areah]hpcpu_free_area}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h#(struct pcpu_chunk *chunk, int off)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}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj;modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_free_areaasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjghhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hchunkh]hchunk}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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 uh1jhjubeh}(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:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./mm/percpu.chMhjubj)}(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:128: ./mm/percpu.chMhjubj)}(hhh]j9)}(hchunk of interesth]hchunk of interest}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj ubj)}(h#``int off`` addr offset into chunk h](j)}(h ``int off``h]j?)}(hjMh]hint off}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjKubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjGubj)}(hhh]j9)}(haddr offset into chunkh]haddr offset into chunk}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj 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:128: ./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:128: ./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:128: ./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:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_alloc_first_chunk (C function)c.pcpu_alloc_first_chunkhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hQstruct pcpu_chunk * pcpu_alloc_first_chunk (unsigned long tmp_addr, int map_size)h]h)}(hOstruct pcpu_chunk *pcpu_alloc_first_chunk(unsigned long tmp_addr, int map_size)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM5ubh)}(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_alloc_first_chunksbc.pcpu_alloc_first_chunkasbuh1hhjhhhjhM5ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM5ubj2 )}(hj5 h]h*}(hjBhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhM5ubh)}(hpcpu_alloc_first_chunkh]h)}(hj1h]hpcpu_alloc_first_chunk}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM5ubj)}(h&(unsigned long tmp_addr, int map_size)h](j)}(hunsigned long tmp_addrh](j)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(htmp_addrh]htmp_addr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjfubj)}(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 uh1jhjfubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhM5ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhM5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM5hjhhubj )}(hhh]j9)}(h)creates chunks that serve the first chunkh]h)creates chunks that serve the first chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM5hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM5ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chM9hj!ubj)}(hhh](j)}(h:``unsigned long tmp_addr`` the start of the region served h](j)}(h``unsigned long tmp_addr``h]j?)}(hjFh]hunsigned long tmp_addr}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM6hj@ubj)}(hhh]j9)}(hthe start of the region servedh]hthe start of the region served}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj[hM6hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM6hj=ubj)}(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>hj}ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM7hjyubj)}(hhh]j9)}(hsize of the region servedh]hsize of the region served}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM7hj=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:128: ./mm/percpu.chM9hj!ubj9)}(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:128: ./mm/percpu.chM8hj!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:128: ./mm/percpu.chM=hj!ubj9)}(h9Chunk serving the region at **tmp_addr** of **map_size**.h](hChunk serving the region at }(hj hhhNhNubjz)}(h **tmp_addr**h]htmp_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh of }(hj hhhNhNubjz)}(h **map_size**h]hmap_size}(hj#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:128: ./mm/percpu.chM>hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!pcpu_chunk_populated (C function)c.pcpu_chunk_populatedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hRvoid pcpu_chunk_populated (struct pcpu_chunk *chunk, int page_start, int page_end)h]h)}(hQvoid pcpu_chunk_populated(struct pcpu_chunk *chunk, int page_start, int page_end)h](j)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjjhMubh)}(hpcpu_chunk_populatedh]h)}(hpcpu_chunk_populatedh]hpcpu_chunk_populated}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ](jjeh"]h$]h&]jj uh1hhjXhhhjjhMubj)}(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*}(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 page_starth](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h page_starth]h page_start}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(h int page_endh](j)}(hinth]hint}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hpage_endh]hpage_end}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjXhhhjjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjThhhjjhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjQhhubj )}(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:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./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:128: ./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?)}(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:128: ./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&]uh1jhjhMhjubj)}(h``int page_end`` the end page h](j)}(h``int page_end``h]j?)}(hj9h]h int page_end}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj3ubj)}(hhh]j9)}(h the end pageh]h the end page}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjNhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjubeh}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_chunk_depopulated (C function)c.pcpu_chunk_depopulatedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hTvoid pcpu_chunk_depopulated (struct pcpu_chunk *chunk, int page_start, int page_end)h]h)}(hSvoid pcpu_chunk_depopulated(struct pcpu_chunk *chunk, int page_start, int page_end)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_chunk_depopulatedh]h)}(hpcpu_chunk_depopulatedh]hpcpu_chunk_depopulated}(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 }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_chunk_depopulatedasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjfhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hchunkh]hchunk}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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 uh1jhjubj)}(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 uh1jhjubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chMhj#ubj)}(hhh](j)}(h>``struct pcpu_chunk *chunk`` pcpu_chunk which got depopulated h](j)}(h``struct pcpu_chunk *chunk``h]j?)}(hjHh]hstruct pcpu_chunk *chunk}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjFubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjBubj)}(hhh]j9)}(h pcpu_chunk which got depopulatedh]h pcpu_chunk which got depopulated}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?ubj)}(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:128: ./mm/percpu.chMhj{ubj)}(hhh]j9)}(hthe start pageh]hthe start page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubj)}(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:128: ./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&]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:128: ./mm/percpu.chMhj#ubj9)}(hPages in [**page_start**,**page_end**) have been depopulated from **chunk**. Update the bookkeeping information accordingly. Must be called after each successful depopulation.h](h Pages in [}(hj hhhNhNubjz)}(h**page_start**h]h page_start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubh*,**page_end**) have been depopulated from }(hj hhhNhNubjz)}(h **chunk**h]hchunk}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubhe. Update the bookkeeping information accordingly. Must be called after each successful depopulation.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_chunk_addr_search (C function)c.pcpu_chunk_addr_searchhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h7struct pcpu_chunk * pcpu_chunk_addr_search (void *addr)h]h)}(h5struct pcpu_chunk *pcpu_chunk_addr_search(void *addr)h](j!)}(hj$h]hstruct}(hj^hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjZhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM+ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjkhM+ubh)}(hhh]h)}(h pcpu_chunkh]h pcpu_chunk}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXpcpu_chunk_addr_searchsbc.pcpu_chunk_addr_searchasbuh1hhjZhhhjkhM+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjkhM+ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjZhhhjkhM+ubh)}(hpcpu_chunk_addr_searchh]h)}(hjh]hpcpu_chunk_addr_search}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjZhhhjkhM+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 uh1jhjZhhhjkhM+ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjVhhhjkhM+ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1hhjkhM+hjShhubj )}(hhh]j9)}(h,determine chunk containing specified addressh]h,determine chunk containing specified address}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM+hj(hhubah}(h]h ]h"]h$]h&]uh1jhjShhhjkhM+ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jCj4jCj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjKubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM/hjGubj)}(hhh]j)}(hC``void *addr`` address for which the chunk needs to be determined. h](j)}(h``void *addr``h]j?)}(hjlh]h void *addr}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM,hjfubj)}(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&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjcubah}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM.hjGubj9)}(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:128: ./mm/percpu.chM-hjGubj9)}(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:128: ./mm/percpu.chM0hjGubj9)}(hThe address of the found chunk.h]hThe address of the found chunk.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM1hjGubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_alloc (C function) c.pcpu_allochNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hPvoid __percpu * pcpu_alloc (size_t size, size_t align, bool reserved, gfp_t gfp)h]h)}(hNvoid __percpu *pcpu_alloc(size_t size, size_t align, bool reserved, gfp_t gfp)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hMubh__percpu}(hjhhhNhNubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hMubj2 )}(hj5 h]h*}(hjBhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhj!hMubh)}(h pcpu_alloch]h)}(h pcpu_alloch]h pcpu_alloc}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj!hMubj)}(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}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjtmodnameN classnameNj\j_)}jb]je)}jXjUsb c.pcpu_allocasbuh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjgubj)}(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 uh1jhjgubj)}(h bool reservedh](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hreservedh]hreserved}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjgubj)}(h gfp_t gfph](h)}(hhh]h)}(hgfp_th]hgfp_t}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]j c.pcpu_allocasbuh1hhj1ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hgfph]hgfp}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjgubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhj!hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj!hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj!hMhjhhubj )}(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:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./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:128: ./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&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``size_t align`` alignment of area (max PAGE_SIZE) h](j)}(h``size_t align``h]j?)}(hjh]h size_t align}(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:128: ./mm/percpu.chMhjubj)}(hhh]j9)}(h!alignment of area (max PAGE_SIZE)h]h!alignment of area (max PAGE_SIZE)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``bool reserved`` allocate from the reserved chunk if available h](j)}(h``bool reserved``h]j?)}(hjAh]h bool reserved}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj?ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj;ubj)}(hhh]j9)}(h-allocate from the reserved chunk if availableh]h-allocate from the reserved chunk if available}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]j?)}(hjzh]h gfp_t gfp}(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:128: ./mm/percpu.chMhjtubj)}(hhh]j9)}(hallocation flagsh]hallocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(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:128: ./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}(hjhhhNhNubah}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh, the allocation is atomic. If }(hjhhhNhNubjz)}(h**gfp**h]hgfp}(hjhhhNhNubah}(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:128: ./mm/percpu.chMhjubj9)}(h **Return**h]jz)}(hj6h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj4ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpcpu_balance_free (C function)c.pcpu_balance_freehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h(void pcpu_balance_free (bool empty_only)h]h)}(h'void pcpu_balance_free(bool empty_only)h](j)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhMubh)}(hpcpu_balance_freeh]h)}(hpcpu_balance_freeh]hpcpu_balance_free}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjwhhhjhMubj)}(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 uh1jhjwhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjshhhjhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjphhubj )}(hhh]j9)}(h manage the amount of free chunksh]h manage the amount of free chunks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj)}(hhh]j)}(hE``bool empty_only`` free chunks only if there are no populated pages h](j)}(h``bool empty_only``h]j?)}(hj>h]hbool empty_only}(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:128: ./mm/percpu.chMhj8ubj)}(hhh]j9)}(h0free chunks only if there are no populated pagesh]h0free chunks only if there are no populated pages}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubj9)}(h**Description**h]jz)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj9)}(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:128: ./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:128: ./mm/percpu.chMhjubj9)}(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:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_balance_populated (C function)c.pcpu_balance_populatedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h"void pcpu_balance_populated (void)h]h)}(h!void pcpu_balance_populated(void)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_balance_populatedh]h)}(hpcpu_balance_populatedh]hpcpu_balance_populated}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(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$manage the amount of populated pagesh]h$manage the amount of populated pages}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhj[hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jvj4jvj5j6j7uh1hhhhjǒhNhNubjp)}(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&]uh1jyhj~ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjzubj)}(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:128: ./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&]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:128: ./mm/percpu.chKhjzubj9)}(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:128: ./mm/percpu.chMhjzubj9)}(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:128: ./mm/percpu.chMhjzubj9)}(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:128: ./mm/percpu.chMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_reclaim_populated (C function)c.pcpu_reclaim_populatedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h"void pcpu_reclaim_populated (void)h]h)}(h!void pcpu_reclaim_populated(void)h](j)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjThMubh)}(hpcpu_reclaim_populatedh]h)}(hpcpu_reclaim_populatedh]hpcpu_reclaim_populated}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubah}(h]h ](jjeh"]h$]h&]jj uh1hhjBhhhjThMubj)}(h(void)h]j)}(hvoidh]j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjj uh1jhj{ubah}(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)}(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:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./mm/percpu.chM"hjubj)}(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:128: ./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)}(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:128: ./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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj9)}(h **Context**h]jz)}(hjPh]hContext}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM'hjubj9)}(h&pcpu_lock (can be dropped temporarily)h]h&pcpu_lock (can be dropped temporarily)}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM(hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ pcpu_balance_workfn (C function)c.pcpu_balance_workfnhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h3void pcpu_balance_workfn (struct work_struct *work)h]h)}(h2void pcpu_balance_workfn(struct work_struct *work)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hpcpu_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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hworkh]hwork}(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)}(h4manage the amount of free chunks and populated pagesh]h4manage the amount of free chunks and populated pages}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jmj4jmj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjuubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjqubj)}(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:128: ./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&]uh1jhjqubj9)}(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:128: ./mm/percpu.chMhjqubj9)}(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:128: ./mm/percpu.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfree_percpu (C function) c.free_percpuhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h%void free_percpu (void __percpu *ptr)h]h)}(h$void free_percpu(void __percpu *ptr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj$hMubh)}(h free_percpuh]h)}(h free_percpuh]h free_percpu}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj$hMubj)}(h(void __percpu *ptr)h]j)}(hvoid __percpu *ptrh](j)}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh__percpu}(hjOhhhNhNubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjOubh)}(hptrh]hptr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjKubah}(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)}(hfree percpu areah]hfree percpu area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./mm/percpu.chMhjubj)}(hhh]j)}(h/``void __percpu *ptr`` pointer to area to free h](j)}(h``void __percpu *ptr``h]j?)}(hjh]hvoid __percpu *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:128: ./mm/percpu.chMhjubj)}(hhh]j9)}(hpointer to area to freeh]hpointer to area 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)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj9)}(hFree percpu area **ptr**.h](hFree percpu area }(hjJhhhNhNubjz)}(h**ptr**h]hptr}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJubh.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjubj9)}(h **Context**h]jz)}(hjmh]hContext}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjkubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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:128: ./mm/percpu.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%is_kernel_percpu_address (C function)c.is_kernel_percpu_addresshNtauh1hhjǒhhhNhNubh)}(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:128: ./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 }(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)}(haddrh]haddr}(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/test whether address is from static percpu areah]h/test whether address is from static percpu area}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jhj4jhj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjpubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlubj)}(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:128: ./mm/percpu.chM hjubj)}(hhh]j9)}(haddress to testh]haddress to test}(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&]uh1jhjlubj9)}(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:128: ./mm/percpu.chM hjlubj9)}(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 }(hjhhhNhNubjz)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh belongs to in-kernel static percpu area. Module static percpu areas are not considered. For those, use is_module_percpu_address().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjlubj9)}(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:128: ./mm/percpu.chM hjlubj9)}(hO``true`` if **addr** is from in-kernel static percpu area, ``false`` otherwise.h](j?)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh if }(hjhhhNhNubjz)}(h**addr**h]haddr}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh' is from in-kernel static percpu area, }(hjhhhNhNubj?)}(h ``false``h]hfalse}(hjChhhNhNubah}(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:128: ./mm/percpu.chM hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ per_cpu_ptr_to_phys (C function)c.per_cpu_ptr_to_physhNtauh1hhjǒhhhNhNubh)}(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&]uh1hhj|ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXper_cpu_ptr_to_physsbc.per_cpu_ptr_to_physasbuh1hhjxhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhM 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 uh1hhjxhhhjhM 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 uh1jhjxhhhjhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjthhhjhM ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjqhhubj )}(hhh]j9)}(h5convert translated percpu address to physical addressh]h5convert translated percpu address to physical address}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j9j4j9j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjAubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj=ubj)}(hhh]j)}(h?``void *addr`` the address to be converted to physical address h](j)}(h``void *addr``h]j?)}(hjbh]h void *addr}(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:128: ./mm/percpu.chM hj\ubj)}(hhh]j9)}(h/the address to be converted to physical addressh]h/the address to be converted to physical address}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjwhM hjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhM hjYubah}(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:128: ./mm/percpu.chM hj=ubj9)}(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:128: ./mm/percpu.chM hj=ubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj=ubj9)}(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:128: ./mm/percpu.chM 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:128: ./mm/percpu.chM! hj=ubj9)}(h"The physical address for **addr**.h](hThe physical address for }(hjhhhNhNubjz)}(h**addr**h]haddr}(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:128: ./mm/percpu.chM" hj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"pcpu_alloc_alloc_info (C function)c.pcpu_alloc_alloc_infohNtauh1hhjǒhhhNhNubh)}(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}(hj]hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjYhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMR ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjjhMR ubh)}(hhh]h)}(hpcpu_alloc_infoh]hpcpu_alloc_info}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]je)}jXpcpu_alloc_alloc_infosbc.pcpu_alloc_alloc_infoasbuh1hhjYhhhjjhMR ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjjhMR ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjYhhhjjhMR ubh)}(hpcpu_alloc_alloc_infoh]h)}(hjh]hpcpu_alloc_alloc_info}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjYhhhjjhMR 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 }(hjhhhNhNubah}(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}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnr_unitsh]hnr_units}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjYhhhjjhMR ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjUhhhjjhMR ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjjhMR hjRhhubj )}(hhh]j9)}(hallocate percpu allocation infoh]hallocate percpu allocation info}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMR hjOhhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjjhMR ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jjj4jjj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chMV hjnubj)}(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:128: ./mm/percpu.chMS hjubj)}(hhh]j9)}(hthe number of groupsh]hthe number of groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMS hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMS 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:128: ./mm/percpu.chMT hjubj)}(hhh]j9)}(hthe number of unitsh]hthe number of units}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMT hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMT hjubeh}(h]h ]h"]h$]h&]uh1jhjnubj9)}(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:128: ./mm/percpu.chMV hjnubj9)}(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 }(hjhhhNhNubjz)}(h **nr_groups**h]h nr_groups}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh groups containing }(hjhhhNhNubjz)}(h **nr_units**h]hnr_units}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhd units. The returned ai’s groups[0].cpu_map points to the cpu_map array which is long enough for }(hjhhhNhNubjz)}(h **nr_units**h]hnr_units}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubhn and filled with NR_CPUS. It’s the caller’s responsibility to initialize cpu_map pointer of other groups.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMU hjnubj9)}(h **Return**h]jz)}(hjdh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjbubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM[ hjnubj9)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM\ hjnubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!pcpu_free_alloc_info (C function)c.pcpu_free_alloc_infohNtauh1hhjǒhhhNhNubh)}(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:128: ./mm/percpu.chM~ ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM~ 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 uh1hhjhhhjhM~ ubj)}(h(struct pcpu_alloc_info *ai)h]j)}(hstruct pcpu_alloc_info *aih](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)}(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)}jXjsbc.pcpu_free_alloc_infoasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj2hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(haih]hai}(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 juh1hjjhjhhhjhM~ ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM~ hjhhubj )}(hhh]j9)}(hfree percpu allocation infoh]hfree percpu allocation info}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM~ hjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM~ ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./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:128: ./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)}(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:128: ./mm/percpu.chM hjubj9)}(h;Free **ai** which was allocated by pcpu_alloc_alloc_info().h](hFree }(hjhhhNhNubjz)}(h**ai**h]hai}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh0 which was allocated by pcpu_alloc_alloc_info().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!pcpu_dump_alloc_info (C function)c.pcpu_dump_alloc_infohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hMvoid pcpu_dump_alloc_info (const char *lvl, const struct pcpu_alloc_info *ai)h]h)}(hLvoid pcpu_dump_alloc_info(const char *lvl, const struct pcpu_alloc_info *ai)h](j)}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjJhM ubh)}(hpcpu_dump_alloc_infoh]h)}(hpcpu_dump_alloc_infoh]hpcpu_dump_alloc_info}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubah}(h]h ](jjeh"]h$]h&]jj uh1hhj8hhhjJhM ubj)}(h3(const char *lvl, const struct pcpu_alloc_info *ai)h](j)}(hconst char *lvlh](j!)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjuubh)}(hlvlh]hlvl}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjqubj)}(h const struct pcpu_alloc_info *aih](j!)}(hjh]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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXj_sbc.pcpu_dump_alloc_infoasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(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 uh1jhjqubeh}(h]h ]h"]h$]h&]jj uh1jhj8hhhjJhM ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj4hhhjJhM ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjJhM hj1hhubj )}(hhh]j9)}(h+print out information about pcpu_alloc_infoh]h+print out information about pcpu_alloc_info}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjqhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjJhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./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:128: ./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:128: ./mm/percpu.chM hjubj)}(hhh]j9)}(hallocation info to dumph]hallocation info to dump}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjubj9)}(h:Print out information about **ai** using loglevel **lvl**.h](hPrint out information about }(hj?hhhNhNubjz)}(h**ai**h]hai}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj?ubh using loglevel }(hj?hhhNhNubjz)}(h**lvl**h]hlvl}(hjYhhhNhNubah}(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:128: ./mm/percpu.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_setup_first_chunk (C function)c.pcpu_setup_first_chunkhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hOvoid pcpu_setup_first_chunk (const struct pcpu_alloc_info *ai, void *base_addr)h]h)}(hNvoid pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai, void *base_addr)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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!)}(hjh]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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_setup_first_chunkasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj6hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(haih]hai}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hvoid *base_addrh](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)}(h base_addrh]h base_addr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubeh}(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:128: ./mm/percpu.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:128: ./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:128: ./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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h#``void *base_addr`` mapped address h](j)}(h``void *base_addr``h]j?)}(hj)h]hvoid *base_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:128: ./mm/percpu.chM hj#ubj)}(hhh]j9)}(hmapped addressh]hmapped address}(hjBhhhNhNubah}(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&]uh1jhjubj9)}(h**Description**h]jz)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjbubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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:128: ./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:128: ./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:128: ./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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh + }(hjhhhNhNubjz)}(h**ai->dyn_size**h]h ai->dyn_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh and }(hjhhhNhNubjz)}(h**ai->unit_size**h]h ai->unit_size}(hj,hhhNhNubah}(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:128: ./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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubhR specifies unit size and must be aligned to PAGE_SIZE and equal to or larger than }(hjEhhhNhNubjz)}(h**ai->static_size**h]hai->static_size}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubh + }(hjEhhhNhNubjz)}(h**ai->reserved_size**h]hai->reserved_size}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubh + }(hjEhhhNhNubjz)}(h**ai->dyn_size**h]h ai->dyn_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjEubh.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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:128: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh and }(hjhhhNhNubjz)}(h**ai->groups**h]h ai->groups}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh 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 }(hjhhhNhNubjz)}(h**ai->nr_groups**h]h ai->nr_groups}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubh9 is zero, a single group containing all units is assumed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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 }(hj[hhhNhNubjz)}(h **base_addr**h]h base_addr}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj[ubh% and copied static data to each unit.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"pcpu_build_alloc_info (C function)c.pcpu_build_alloc_infohNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hstruct pcpu_alloc_info * pcpu_build_alloc_info (size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn)h]h)}(hstruct pcpu_alloc_info *pcpu_build_alloc_info(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn)h](j!)}(hj$h]hstruct}(hjhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjhhhjhM ubh)}(hpcpu_build_alloc_infoh]h)}(hjh]hpcpu_build_alloc_info}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(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}(hj(hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj*modnameN classnameNj\j_)}jb]jc.pcpu_build_alloc_infoasbuh1hhj!ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(h reserved_sizeh]h reserved_size}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj!ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hsize_t dyn_sizeh](h)}(hhh]h)}(hsize_th]hsize_t}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjrmodnameN classnameNj\j_)}jb]jc.pcpu_build_alloc_infoasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hdyn_sizeh]hdyn_size}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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]jc.pcpu_build_alloc_infoasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h atom_sizeh]h atom_size}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.pcpu_build_alloc_infoasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hcpu_distance_fnh]hcpu_distance_fn}(hj,hhhNhNubah}(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)}(h3build alloc_info considering distances between CPUsh]h3build alloc_info considering distances between CPUs}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jnj4jnj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./mm/percpu.chM hjrubj)}(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:128: ./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:128: ./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&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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>hjubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjubj)}(hhh]j9)}(hallocation atom sizeh]hallocation atom size}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM 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?)}(hjBh]h)pcpu_fc_cpu_distance_fn_t cpu_distance_fn}(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:128: ./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&]uh1j8hjWhM hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM hjubeh}(h]h ]h"]h$]h&]uh1jhjrubj9)}(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:128: ./mm/percpu.chM hjrubj9)}(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:128: ./mm/percpu.chM hjrubj9)}(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:128: ./mm/percpu.chM hjrubj9)}(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:128: ./mm/percpu.chM hjrubj9)}(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:128: ./mm/percpu.chM hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#pcpu_embed_first_chunk (C function)c.pcpu_embed_first_chunkhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hint pcpu_embed_first_chunk (size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h]h)}(hint pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubh)}(hpcpu_embed_first_chunkh]h)}(hpcpu_embed_first_chunkh]hpcpu_embed_first_chunk}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM 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}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:modnameN classnameNj\j_)}jb]je)}jXjsbc.pcpu_embed_first_chunkasbuh1hhj1ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(h reserved_sizeh]h reserved_size}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubj)}(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]jTc.pcpu_embed_first_chunkasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hdyn_sizeh]hdyn_size}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-ubj)}(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]jTc.pcpu_embed_first_chunkasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(h atom_sizeh]h atom_size}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jTc.pcpu_embed_first_chunkasbuh1hhj ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hcpu_distance_fnh]hcpu_distance_fn}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj-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}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj\modnameN classnameNj\j_)}jb]jTc.pcpu_embed_first_chunkasbuh1hhjSubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubh)}(h cpu_to_nd_fnh]h cpu_to_nd_fn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubeh}(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)embed the first percpu chunk into bootmemh]h)embed the first percpu chunk into bootmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:128: ./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:128: ./mm/percpu.chM hjubj)}(hhh]j9)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hj hhhNhNubah}(h]h ]h"]h$]h&]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?)}(hj*h]hsize_t dyn_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:128: ./mm/percpu.chM hj$ubj)}(hhh]j9)}(h1minimum free size for dynamic allocation in bytesh]h1minimum free size for dynamic allocation in bytes}(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*``size_t atom_size`` allocation atom size h](j)}(h``size_t atom_size``h]j?)}(hjch]hsize_t atom_size}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjaubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hj]ubj)}(hhh]j9)}(hallocation atom sizeh]hallocation atom size}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjxhM hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM 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?)}(hjh]h)pcpu_fc_cpu_distance_fn_t cpu_distance_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:128: ./mm/percpu.chM hjubj)}(hhh]j9)}(h5callback to determine distance between cpus, optionalh]h5callback to determine distance between cpus, optional}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(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?)}(hjh]h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_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:128: ./mm/percpu.chM hjubj)}(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&]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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjubj9)}(h}This is a helper to ease setting up embedded first percpu chunk and can be called where pcpu_setup_first_chunk() is expected.h]h}This is a helper to ease setting up embedded first percpu chunk and can be called where pcpu_setup_first_chunk() is expected.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjubj9)}(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 }(hj5hhhNhNubjz)}(h **atom_size**h]h atom_size}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubh aligned to }(hj5hhhNhNubjz)}(h **atom_size**h]h atom_size}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjubj9)}(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).}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjubj9)}(h5**dyn_size** specifies the minimum dynamic area size.h](jz)}(h **dyn_size**h]hdyn_size}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjwubh) specifies the minimum dynamic area size.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./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:128: ./mm/percpu.chM hjubj9)}(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:128: ./mm/percpu.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"pcpu_page_first_chunk (C function)c.pcpu_page_first_chunkhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hWint pcpu_page_first_chunk (size_t reserved_size, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h]h)}(hVint pcpu_page_first_chunk(size_t reserved_size, pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM` ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM` ubh)}(hpcpu_page_first_chunkh]h)}(hpcpu_page_first_chunkh]hpcpu_page_first_chunk}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhM` 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}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj,modnameN classnameNj\j_)}jb]je)}jXj sbc.pcpu_page_first_chunkasbuh1hhj#ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(h reserved_sizeh]h reserved_size}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(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}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjvmodnameN classnameNj\j_)}jb]jFc.pcpu_page_first_chunkasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(h cpu_to_nd_fnh]h cpu_to_nd_fn}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubeh}(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)map the first chunk using PAGE_SIZE pagesh]h)map the first chunk using PAGE_SIZE pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chM` hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM` ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(hX**Parameters** ``size_t reserved_size`` the size of reserved percpu area in bytes ``pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn`` callback to convert cpu to it's node, optional **Description** This is a helper to ease setting up page-remapped first percpu chunk and can be called where pcpu_setup_first_chunk() is expected. This is the basic allocator. Static percpu area is allocated page-by-page into vmalloc area. **Return** 0 on success, -errno on failure.h](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:128: ./mm/percpu.chMd 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?)}(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:128: ./mm/percpu.chMa hjubj)}(hhh]j9)}(h)the size of reserved percpu area in bytesh]h)the size of reserved percpu area in bytes}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hMa hj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMa hjubj)}(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?)}(hjDh]h%pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjBubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:128: ./mm/percpu.chMb 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&]uh1j8hjYhMb hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMb hjubeh}(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:128: ./mm/percpu.chMd hjubj9)}(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:128: ./mm/percpu.chMc hjubj9)}(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:128: ./mm/percpu.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:128: ./mm/percpu.chMi hjubj9)}(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:128: ./mm/percpu.chMj hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#copy_from_user_nofault (C function)c.copy_from_user_nofaulthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hLlong copy_from_user_nofault (void *dst, const void __user *src, size_t size)h]h)}(hKlong copy_from_user_nofault(void *dst, const void __user *src, size_t size)h](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKpubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKpubh)}(hcopy_from_user_nofaulth]h)}(hcopy_from_user_nofaulth]hcopy_from_user_nofault}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhKpubj)}(h0(void *dst, const void __user *src, size_t size)h](j)}(h void *dsth](j)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2 )}(hj5 h]h*}(hjShhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj3ubh)}(hdsth]hdst}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/ubj)}(hconst void __user *srch](j!)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh__user}(hjuhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjuubh)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubeh}(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]je)}jXjsbc.copy_from_user_nofaultasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj/ubeh}(h]h ]h"]h$]h&]jj uh1jhjhhhjhKpubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhKpubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKphjhhubj )}(hhh]j9)}(h1safely attempt to read from a user-space locationh]h1safely attempt to read from a user-space location}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKphj@hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKpubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j[j4j[j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjcubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKthj_ubj)}(hhh](j)}(h=``void *dst`` pointer to the buffer that shall take the data h](j)}(h ``void *dst``h]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:129: ./mm/maccess.chKqhj~ubj)}(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&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKqhj{ubj)}(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:129: ./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&]uh1jhjhKrhj{ubj)}(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:129: ./mm/maccess.chKshjubj)}(hhh]j9)}(hsize of the data chunkh]hsize of the data chunk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hKshj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKshj{ubeh}(h]h ]h"]h$]h&]uh1jhj_ubj9)}(h**Description**h]jz)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj/ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKuhj_ubj9)}(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 }(hjGhhhNhNubjz)}(h**src**h]hsrc}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubh to the buffer at }(hjGhhhNhNubjz)}(h**dst**h]hdst}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubh<. If a kernel fault happens, handle that and return -EFAULT.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKthj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!copy_to_user_nofault (C function)c.copy_to_user_nofaulthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hJlong copy_to_user_nofault (void __user *dst, const void *src, size_t size)h]h)}(hIlong copy_to_user_nofault(void __user *dst, const void *src, size_t size)h](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./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 }(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)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hconst void *srch](j!)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj2 )}(hj5 h]h*}(hjbhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj'ubh)}(hsrch]hsrc}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:129: ./mm/maccess.chKhjubj)}(hhh](j)}(h)``void __user *dst`` address to write to h](j)}(h``void __user *dst``h]j?)}(hj$h]hvoid __user *dst}(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:129: ./mm/maccess.chKhjubj)}(hhh]j9)}(haddress to write toh]haddress to write to}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj9hKhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKhjubj)}(h>``const void *src`` pointer to the data that shall be written h](j)}(h``const void *src``h]j?)}(hj]h]hconst void *src}(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:129: ./mm/maccess.chKhjWubj)}(hhh]j9)}(h)pointer to the data that shall be writtenh]h)pointer to the data that shall be written}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjrhKhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjubj)}(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:129: ./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&]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:129: ./mm/maccess.chKhjubj9)}(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}(hjhhhNhNubah}(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:129: ./mm/maccess.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&strncpy_from_user_nofault (C function)c.strncpy_from_user_nofaulthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hVlong strncpy_from_user_nofault (char *dst, const void __user *unsafe_addr, long count)h]h)}(hUlong strncpy_from_user_nofault(char *dst, const void __user *unsafe_addr, long count)h](j)}(hlongh]hlong}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhjHhKubh)}(hstrncpy_from_user_nofaulth]h)}(hstrncpy_from_user_nofaulth]hstrncpy_from_user_nofault}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubah}(h]h ](jjeh"]h$]h&]jj uh1hhj6hhhjHhKubj)}(h7(char *dst, const void __user *unsafe_addr, long count)h](j)}(h char *dsth](j)}(hcharh]hchar}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjsubh)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubj)}(hconst void __user *unsafe_addrh](j!)}(hjh]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)}(h unsafe_addrh]h unsafe_addr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubj)}(h long counth](j)}(hlongh]hlong}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hcounth]hcount}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjoubeh}(h]h ]h"]h$]h&]jj uh1jhj6hhhjHhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj2hhhjHhKubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhjHhKhj/hhubj )}(hhh]j)}(hhh]jw,)}(h6Copy a NUL terminated string from unsafe user address.h]j9)}(hjsh]h6Copy a NUL terminated string from unsafe user address.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjqubah}(h]h ]h"]h$]h&]uh1jv,hjnhhhjhNubah}(h]h ]h"]h$]h&]jŰjưuh1jhjhKhjkhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:129: ./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:129: ./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}(hjhhhNhNubah}(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:129: ./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?)}(hj h]hconst void __user *unsafe_addr}(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:129: ./mm/maccess.chKhjubj)}(hhh]j9)}(hUnsafe user address.h]hUnsafe user address.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj"hKhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hKhjubj)}(hL``long count`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h``long count``h]j?)}(hjFh]h long count}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjDubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj@ubj)}(hhh]j9)}(h ah"]h$]h&]uh1j1 hjtubh)}(h unsafe_addrh]h unsafe_addr}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpubj)}(h long counth](j)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjpubeh}(h]h ]h"]h$]h&]jj uh1jhj7hhhjIhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhj3hhhjIhKubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhjIhKhj0hhubj )}(hhh]j)}(hhh]jw,)}(h2Get the size of a user string INCLUDING final NUL.h]j9)}(hj2h]h2Get the size of a user string INCLUDING final NUL.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj0ubah}(h]h ]h"]h$]h&]uh1jv,hj-hhhjAhNubah}(h]h ]h"]h$]h&]jŰjưuh1jhjAhKhj*hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjIhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jWj4jWj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj_ubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj[ubj)}(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>hj~ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhjzubj)}(hhh]j9)}(hThe string to measure.h]hThe string to measure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhKhjwubj)}(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:129: ./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&]uh1jhjhKhjwubeh}(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:129: ./mm/maccess.chKhj[ubj9)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj[ubj9)}(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:129: ./mm/maccess.chKhj[ubj9)}(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 }(hj( hhhNhNubjz)}(h **count**h]hcount}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj( ubhg. User has to check the return value against “> count”. On exception (or invalid count), returns 0.}(hj( hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj[ubj9)}(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.}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hM/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:129: ./mm/maccess.chKhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&writeback_throttling_sane (C function)c.writeback_throttling_sanehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h8bool writeback_throttling_sane (struct scan_control *sc)h]h)}(h7bool writeback_throttling_sane(struct scan_control *sc)h](j)}(hj*h]hbool}(hjx hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt hhhj hKubh)}(hwriteback_throttling_saneh]h)}(hwriteback_throttling_saneh]hwriteback_throttling_sane}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjt hhhj hKubj)}(h(struct scan_control *sc)h]j)}(hstruct scan_control *sch](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 scan_controlh]h scan_control}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXj sbc.writeback_throttling_saneasbuh1hhj 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)}(hsch]hsc}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj ubah}(h]h ]h"]h$]h&]jj uh1jhjt hhhj hKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjp hhhj hKubah}(h]jk ah ](jjeh"]h$]h&]jj)jhuh1hhj hKhjm hhubj )}(hhh]j9)}(h2is the usual dirty throttling mechanism available?h]h2is the usual dirty throttling mechanism available?}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhj4 hhubah}(h]h ]h"]h$]h&]uh1jhjm hhhj hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jO j4jO j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjY h]h Parameters}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjW ubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjS ubj)}(hhh]j)}(h5``struct scan_control *sc`` scan_control in question h](j)}(h``struct scan_control *sc``h]j?)}(hjx h]hstruct scan_control *sc}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjv ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjr ubj)}(hhh]j9)}(hscan_control in questionh]hscan_control in question}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjr ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjo ubah}(h]h ]h"]h$]h&]uh1jhjS 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:130: ./mm/vmscan.chKhjS ubj9)}(hX1The normal page dirty throttling mechanism in balance_dirty_pages() is completely broken with the legacy memcg and direct stalling in shrink_folio_list() is used for throttling instead, which lacks all the niceties such as fairness, adaptive pausing, bandwidth proportional allocation and configurability.h]hX1The normal page dirty throttling mechanism in balance_dirty_pages() is completely broken with the legacy memcg and direct stalling in shrink_folio_list() is used for throttling instead, which lacks all the niceties such as fairness, adaptive pausing, bandwidth proportional allocation and configurability.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjS ubj9)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chKhjS ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌlruvec_lru_size (C function)c.lruvec_lru_sizehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hVunsigned long lruvec_lru_size (struct lruvec *lruvec, enum lru_list lru, int zone_idx)h]h)}(hUunsigned long lruvec_lru_size(struct lruvec *lruvec, enum lru_list lru, int zone_idx)h](j)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubj)}(hlongh]hlong}(hj$ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubj)}(h h]h }(hj2 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubh)}(hlruvec_lru_sizeh]h)}(hlruvec_lru_sizeh]hlruvec_lru_size}(hjD hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ ubah}(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}(hj` hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj\ ubj)}(h h]h }(hjm hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ ubh)}(hhh]h)}(hlruvech]hlruvec}(hj~ hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]je)}jXjF sbc.lruvec_lru_sizeasbuh1hhj\ 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)}(hlruvech]hlruvec}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjX ubj)}(henum lru_list lruh](j!)}(hjeh]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)}(hlru_listh]hlru_list}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]j c.lruvec_lru_sizeasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hlruh]hlru}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjX ubj)}(h int zone_idxh](j)}(hinth]hint}(hj5 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1 ubj)}(h h]h }(hjC hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1 ubh)}(hzone_idxh]hzone_idx}(hjQ hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1 ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjX 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)}(h2Returns the number of pages on the given LRU list.h]h2Returns the number of pages on the given LRU list.}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjx hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:130: ./mm/vmscan.chMhj ubj)}(hhh](j)}(h%``struct lruvec *lruvec`` lru vector h](j)}(h``struct lruvec *lruvec``h]j?z)}(hj h]hstruct lruvec *lruvec}(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:130: ./mm/vmscan.chMhj ubj)}(hhh]j9)}(h lru vectorh]h lru vector}(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!``enum lru_list lru`` lru to use h](j)}(h``enum lru_list lru``h]j?)}(hj h]henum lru_list lru}(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:130: ./mm/vmscan.chMhj ubj)}(hhh]j9)}(h lru to useh]h lru to use}(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)}(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?)}(hj. h]h int zone_idx}(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:130: ./mm/vmscan.chMhj( ubj)}(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)}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjD ubah}(h]h ]h"]h$]h&]uh1jhj( ubeh}(h]h ]h"]h$]h&]uh1jhjC hMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌremove_mapping (C function)c.remove_mappinghNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hHlong remove_mapping (struct address_space *mapping, struct folio *folio)h]h)}(hGlong remove_mapping(struct address_space *mapping, struct folio *folio)h](j)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMBubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMBubh)}(hremove_mappingh]h)}(hremove_mappingh]hremove_mapping}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj hhhj hMBubj)}(h4(struct address_space *mapping, struct folio *folio)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.remove_mappingasbuh1hhj 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)}(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]j c.remove_mappingasbuh1hhj3ubj)}(h h]h }(hjshhhNhNubah}(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 ubeh}(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)}(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:130: ./mm/vmscan.chMBhjhhubah}(h]h ]h"]h$]h&]uh1jhj} hhhj hMBubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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:130: ./mm/vmscan.chMFhjubj)}(hhh](j)}(h5``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&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMChjubj)}(hhh]j9)}(hThe address space.h]hThe address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(h-``struct folio *folio`` The folio to remove. h](j)}(h``struct folio *folio``h]j?)}(hj2h]hstruct folio *folio}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj0ubah}(h]h ]h"]h$]h&]uh1jhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMDhj,ubj)}(hhh]j9)}(hThe folio to remove.h]hThe folio to remove.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjGhMDhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMDhjubeh}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMFhjubj9)}(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:130: ./mm/vmscan.chMEhjubj9)}(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:130: ./mm/vmscan.chMHhjubj9)}(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:130: ./mm/vmscan.chMHhjubj9)}(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:130: ./mm/vmscan.chMKhjubj9)}(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:130: ./mm/vmscan.chMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_putback_lru (C function)c.folio_putback_lruhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h,void folio_putback_lru (struct folio *folio)h]h)}(h+void folio_putback_lru(struct folio *folio)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM\ubh)}(hfolio_putback_lruh]h)}(hfolio_putback_lruh]hfolio_putback_lru}(hj!hhhNhNubah}(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}(hj=hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]h)}(hfolioh]hfolio}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj]modnameN classnameNj\j_)}jb]je)}jXj#sbc.folio_putback_lruasbuh1hhj9ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj9ubh)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5ubah}(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)}(h8Put previously isolated folio onto appropriate LRU list.h]h8Put previously isolated folio onto appropriate LRU list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM\hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM\ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:130: ./mm/vmscan.chM`hjubj)}(hhh]j)}(h=``struct folio *folio`` Folio to be returned to an LRU list. 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:130: ./mm/vmscan.chM]hjubj)}(hhh]j9)}(h$Folio to be returned to an LRU list.h]h$Folio to be returned to an LRU list.}(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}(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:130: ./mm/vmscan.chM_hjubj9)}(hpAdd previously isolated **folio** to appropriate LRU list. The folio may still be unevictable for other reasons.h](hAdd previously isolated }(hjRhhhNhNubjz)}(h **folio**h]hfolio}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjRubhO to appropriate LRU list. The folio may still be unevictable for other reasons.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM^hjubj9)}(h **Context**h]jz)}(hjuh]hContext}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjsubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMahjubj9)}(h6lru_lock must not be held, interrupts must be enabled.h]h6lru_lock must not be held, interrupts must be enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMbhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfolio_isolate_lru (C function)c.folio_isolate_lruhNtauh1hhjǒhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM)ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM)ubh)}(hfolio_isolate_lruh]h)}(hfolio_isolate_lruh]hfolio_isolate_lru}(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 }(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_isolate_lruasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjBhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hfolioh]hfolio}(hjOhhhNhNubah}(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)Try to isolate a folio from its LRU list.h]h)Try to isolate a folio from its LRU list.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM)hjvhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM)ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:130: ./mm/vmscan.chM-hjubj)}(hhh]j)}(h<``struct folio *folio`` Folio to isolate from its LRU list. 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:130: ./mm/vmscan.chM*hjubj)}(hhh]j9)}(h#Folio to isolate from its LRU list.h]h#Folio to isolate from its LRU list.}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM,hjubj9)}(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 }(hj hhhNhNubjz)}(h **folio**h]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj ubhf from an LRU list and adjust the vmstat statistic corresponding to whatever LRU list the folio was on.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM+hjubj9)}(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.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM.hjubjr,)}(hhh](jw,)}(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).}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM4hj>ubah}(h]h ]h"]h$]h&]uh1jv,hj;ubjw,)}(hThe lru_lock must not be held.h]j9)}(hjYh]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:130: ./mm/vmscan.chM7hjWubah}(h]h ]h"]h$]h&]uh1jv,hj;ubjw,)}(hInterrupts must be enabled. h]j9)}(hInterrupts must be enabled.h]hInterrupts must be enabled.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM8hjoubah}(h]h ]h"]h$]h&]uh1jv,hj;ubeh}(h]h ]h"]h$]h&]j,j,j,j!j,jD!uh1jq,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:130: ./mm/vmscan.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:130: ./mm/vmscan.chM6hjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chM<hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*check_move_unevictable_folios (C function)c.check_move_unevictable_folioshNtauh1hhjǒhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hcheck_move_unevictable_foliosh]h)}(hcheck_move_unevictable_foliosh]hcheck_move_unevictable_folios}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhjhMubj)}(h(struct folio_batch *fbatch)h]j)}(hstruct folio_batch *fbatchh](j!)}(hj$h]hstruct}(hj*hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj&ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]h)}(h folio_batchh]h folio_batch}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjJmodnameN classnameNj\j_)}jb]je)}jXjsbc.check_move_unevictable_foliosasbuh1hhj&ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj2 )}(hj5 h]h*}(hjvhhhNhNubah}(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"ubah}(h]h ]h"]h$]h&]jj uh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj )}(hhh]j9)}(h2Move evictable folios to appropriate zone lru listh]h2Move evictable folios to appropriate zone lru list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:130: ./mm/vmscan.chMhjubj)}(hhh]j)}(h=``struct folio_batch *fbatch`` Batch of lru folios to check. 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:130: ./mm/vmscan.chMhjubj)}(hhh]j9)}(hBatch of lru folios to check.h]hBatch of lru folios to check.}(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&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjubj9)}(hChecks folios for evictability, if an evictable folio is in the unevictable lru list, moves it to the appropriate evictable lru list. This function should be only used for lru folios.h]hChecks folios for evictability, if an evictable folio is in the unevictable lru list, moves it to the appropriate evictable lru list. This function should be only used for lru folios.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hL/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:130: ./mm/vmscan.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__remove_pages (C function)c.__remove_pageshNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h[void __remove_pages (unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)h]h)}(hZvoid __remove_pages(unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)h](j)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMGubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhj|hMGubh)}(h__remove_pagesh]h)}(h__remove_pagesh]h__remove_pages}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjjhhhj|hMGubj)}(hG(unsigned long pfn, unsigned long nr_pages, struct vmem_altmap *altmap)h](j)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hpfnh]hpfn}(hjhhhNhNubah}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hnr_pagesh]hnr_pages}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct vmem_altmap *altmaph](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 vmem_altmaph]h vmem_altmap}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmmodnameN classnameNj\j_)}jb]je)}jXjsbc.__remove_pagesasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjIubh)}(haltmaph]haltmap}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjjhhhj|hMGubeh}(h]h ]h"]h$]h&]jj juh1hjjhjfhhhj|hMGubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1hhj|hMGhjchhubj )}(hhh]j9)}(hremove sections of pagesh]hremove sections of pages}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMGhjhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|hMGubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:131: ./mm/memory_hotplug.chMKhjubj)}(hhh](j)}(hQ``unsigned long pfn`` starting pageframe (must be aligned to start of a section) 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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMHhj 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)}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj&hMHhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMHhjubj)}(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?)}(hjJh]hunsigned long nr_pages}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjHubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMIhjDubj)}(hhh]j9)}(hhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMJhj}ubj)}(hhh]j9)}(hAalternative device page map or ``NULL`` if default memmap is usedh](halternative device page map or }(hjhhhNhNubj?)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubh if default memmap is used}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j8hjhMJhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubeh}(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:131: ./mm/memory_hotplug.chMLhjubj9)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌtry_offline_node (C function)c.try_offline_nodehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hvoid try_offline_node (int nid)h]h)}(hvoid try_offline_node(int nid)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMwubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hMwubh)}(htry_offline_nodeh]h)}(htry_offline_nodeh]htry_offline_node}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj#hMwubj)}(h (int nid)h]j)}(hint nidh](j)}(hinth]hint}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hnidh]hnid}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjJubah}(h]h ]h"]h$]h&]jj uh1jhjhhhj#hMwubeh}(h]h ]h"]h$]h&]jj juh1hjjhj hhhj#hMwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj#hMwhj hhubj )}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj#hMwubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jj4jj5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:131: ./mm/memory_hotplug.chM{hjubj)}(hhh]j)}(h``int nid`` the node ID h](j)}(h ``int nid``h]j?)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMxhjubj)}(hhh]j9)}(h the node IDh]h the node ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjubah}(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:131: ./mm/memory_hotplug.chMzhjubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMyhjubj9)}(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:131: ./mm/memory_hotplug.chM{hjubj9)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chM|hjubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ__remove_memory (C function)c.__remove_memoryhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h*void __remove_memory (u64 start, u64 size)h]h)}(h)void __remove_memory(u64 start, u64 size)h](j)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjhMubh)}(h__remove_memoryh]h)}(h__remove_memoryh]h__remove_memory}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjmhhhjhMubj)}(h(u64 start, u64 size)h](j)}(h u64 starth](h)}(hhh]h)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.__remove_memoryasbuh1hhjubj)}(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)}(hu64 sizeh](h)}(hhh]h)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.__remove_memoryasbuh1hhjubj)}(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 uh1jhjmhhhjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjihhhjhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjfhhubj )}(hhh]j9)}(h.Remove memory if every memory block is offlineh]h.Remove memory if every memory block is offline}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jij4jij5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjqubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMhjmubj)}(hhh](j)}(h7``u64 start`` physical address of the region to remove h](j)}(h ``u64 start``h]j?)}(hjh]h u64 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:131: ./mm/memory_hotplug.chMhjubj)}(hhh]j9)}(h(physical address of the region to removeh]h(physical address of the region to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``u64 size`` size of the region to remove h](j)}(h ``u64 size``h]j?)}(hjh]hu64 size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMhjubj)}(hhh]j9)}(hsize of the region to removeh]hsize of the region to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjmubj9)}(h**NOTE**h]jz)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMhjmubj9)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hT/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:131: ./mm/memory_hotplug.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$mmu_interval_read_begin (C function)c.mmu_interval_read_beginhNtauh1hhjǒhhhNhNubh)}(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}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjYhKubj)}(hlongh]hlong}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjYhKubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjYhKubh)}(hmmu_interval_read_beginh]h)}(hmmu_interval_read_beginh]hmmu_interval_read_begin}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjGhhhjYhKubj)}(h,(struct mmu_interval_notifier *interval_sub)h]j)}(h*struct mmu_interval_notifier *interval_subh](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)}(hmmu_interval_notifierh]hmmu_interval_notifier}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]je)}jXjsbc.mmu_interval_read_beginasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(h interval_subh]h interval_sub}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubah}(h]h ]h"]h$]h&]jj uh1jhjGhhhjYhKubeh}(h]h ]h"]h$]h&]jj juh1hjjhjChhhjYhKubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjYhKhj@hhubj )}(hhh]j9)}(h5Begin a read side critical section against a VA rangeh]h5Begin a read side critical section against a VA range}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhj$hhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j?j4j?j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjGubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjCubj)}(hhh]j)}(hI``struct mmu_interval_notifier *interval_sub`` The interval subscription h](j)}(h.``struct mmu_interval_notifier *interval_sub``h]j?)}(hjhh]h*struct mmu_interval_notifier *interval_sub}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjfubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjbubj)}(hhh]j9)}(hThe interval subscriptionh]hThe interval subscription}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj}hKhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubj9)}(h**Description**h]jz)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjCubj9)}(hmmu_iterval_read_begin()/mmu_iterval_read_retry() implement a collision-retry scheme similar to seqcount for the VA range under subscription. If the mm invokes invalidation during the critical section then mmu_interval_read_retry() will return true.h]hmmu_iterval_read_begin()/mmu_iterval_read_retry() implement a collision-retry scheme similar to seqcount for the VA range under subscription. If the mm invokes invalidation during the critical section then mmu_interval_read_retry() will return true.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjCubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjCubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjCubj9)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chKhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"mmu_notifier_register (C function)c.mmu_notifier_registerhNtauh1hhjǒhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hMubh)}(hmmu_notifier_registerh]h)}(hmmu_notifier_registerh]hmmu_notifier_register}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjhhhj#hMubj)}(h9(struct mmu_notifier *subscription, struct mm_struct *mm)h](j)}(h!struct mmu_notifier *subscriptionh](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)}(h mmu_notifierh]h mmu_notifier}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjrmodnameN classnameNj\j_)}jb]je)}jXj8sbc.mmu_notifier_registerasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjNubh)}(h subscriptionh]h subscription}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjNubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjJubj)}(hstruct mm_struct *mmh](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 mm_structh]h mm_struct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjmodnameN classnameNj\j_)}jb]jc.mmu_notifier_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hmmh]hmm}(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 juh1hjjhj hhhj#hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj#hMhj hhubj )}(hhh]j9)}(hRegister a notifier on a mmh]hRegister a notifier on a mm}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j]j4j]j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjeubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjaubj)}(hhh](j)}(h=``struct mmu_notifier *subscription`` The notifier to attach h](j)}(h%``struct mmu_notifier *subscription``h]j?)}(hjh]h!struct mmu_notifier *subscription}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh]j9)}(hThe notifier to attachh]hThe notifier to attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(h:``struct mm_struct *mm`` The mm to attach the notifier to h](j)}(h``struct mm_struct *mm``h]j?)}(hjh]hstruct mm_struct *mm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjubj)}(hhh]j9)}(h The mm to attach the notifier toh]h The mm to attach the notifier to}(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&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjaubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjaubj9)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjaubj9)}(hWhile the caller has a mmu_notifier get the subscription->mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().h]hWhile the caller has a mmu_notifier get the subscription->mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$mmu_notifier_get_locked (C function)c.mmu_notifier_get_lockedhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hhstruct mmu_notifier * mmu_notifier_get_locked (const struct mmu_notifier_ops *ops, struct mm_struct *mm)h]h)}(hfstruct mmu_notifier *mmu_notifier_get_locked(const struct mmu_notifier_ops *ops, struct mm_struct *mm)h](j!)}(hj$h]hstruct}(hj]hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjYhhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjjhMubh)}(hhh]h)}(h mmu_notifierh]h mmu_notifier}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj~modnameN classnameNj\j_)}jb]je)}jXmmu_notifier_get_lockedsbc.mmu_notifier_get_lockedasbuh1hhjYhhhjjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjjhMubj2 )}(hj5 h]h*}(hjhhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjYhhhjjhMubh)}(hmmu_notifier_get_lockedh]h)}(hjh]hmmu_notifier_get_locked}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubah}(h]h ](jjeh"]h$]h&]jj uh1hhjYhhhjjhMubj)}(h:(const struct mmu_notifier_ops *ops, struct mm_struct *mm)h](j)}(h"const struct mmu_notifier_ops *opsh](j!)}(hjh]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)}(hmmu_notifier_opsh]hmmu_notifier_ops}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj modnameN classnameNj\j_)}jb]jc.mmu_notifier_get_lockedasbuh1hhjubj)}(h h]h }(hj. hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2 )}(hj5 h]h*}(hj< hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjubh)}(hopsh]hops}(hjI hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjubj)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hjb hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj^ ubj)}(h h]h }(hjo 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]jc.mmu_notifier_get_lockedasbuh1hhj^ 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 uh1jhjubeh}(h]h ]h"]h$]h&]jj uh1jhjYhhhjjhMubeh}(h]h ]h"]h$]h&]jj juh1hjjhjUhhhjjhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjRhhubj )}(hhh]j9)}(h6Return the single struct mmu_notifier for the mm & opsh]h6Return the single struct mmu_notifier for the mm & ops}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjjhMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j j4j j5j6j7uh1hhhhjǒhNhNubjp)}(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!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:132: ./mm/mmu_notifier.chMhj ubj)}(hhh](j)}(hR``const struct mmu_notifier_ops *ops`` The operations struct being subscribe with h](j)}(h&``const struct mmu_notifier_ops *ops``h]j?)}(hj$!h]h"const struct mmu_notifier_ops *ops}(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:132: ./mm/mmu_notifier.chMhj!ubj)}(hhh]j9)}(h*The operations struct being subscribe withh]h*The operations struct being subscribe with}(hj=!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj9!hMhj:!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj9!hMhj!ubj)}(h8``struct mm_struct *mm`` The mm to attach notifiers too 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:132: ./mm/mmu_notifier.chMhjW!ubj)}(hhh]j9)}(hThe mm to attach notifiers tooh]hThe mm to attach notifiers too}(hjv!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjr!hMhjs!ubah}(h]h ]h"]h$]h&]uh1jhjW!ubeh}(h]h ]h"]h$]h&]uh1jhjr!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:132: ./mm/mmu_notifier.chMhj ubj9)}(hThis function either allocates a new mmu_notifier via ops->alloc_notifier(), or returns an already existing notifier on the list. The value of the ops pointer is used to determine when two notifiers are the same.h]hThis function either allocates a new mmu_notifier via ops->alloc_notifier(), or returns an already existing notifier on the list. The value of the ops pointer is used to determine when two notifiers are the same.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj ubj9)}(hEach call to mmu_notifier_get() must be paired with a call to mmu_notifier_put(). The caller must hold the write side of mm->mmap_lock.h]hEach call to mmu_notifier_get() must be paired with a call to mmu_notifier_put(). The caller must hold the write side of mm->mmap_lock.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj ubj9)}(hWhile the caller has a mmu_notifier get the mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().h]hWhile the caller has a mmu_notifier get the mm pointer will remain valid, and can be converted to an active mm pointer via mmget_not_zero().}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmmu_notifier_put (C function)c.mmu_notifier_puthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h9void mmu_notifier_put (struct mmu_notifier *subscription)h]h)}(h8void mmu_notifier_put(struct mmu_notifier *subscription)h](j)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMSubj)}(h h]h }(hj "hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj "hMSubh)}(hmmu_notifier_puth]h)}(hmmu_notifier_puth]hmmu_notifier_put}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj!hhhj "hMSubj)}(h#(struct mmu_notifier *subscription)h]j)}(h!struct mmu_notifier *subscriptionh](j!)}(hj$h]hstruct}(hj8"hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj4"ubj)}(h h]h }(hjE"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4"ubh)}(hhh]h)}(h mmu_notifierh]h mmu_notifier}(hjV"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjS"ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjX"modnameN classnameNj\j_)}jb]je)}jXj"sbc.mmu_notifier_putasbuh1hhj4"ubj)}(h h]h }(hjv"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4"ubj2 )}(hj5 h]h*}(hj"hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj4"ubh)}(h subscriptionh]h subscription}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4"ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj0"ubah}(h]h ]h"]h$]h&]jj uh1jhj!hhhj "hMSubeh}(h]h ]h"]h$]h&]jj juh1hjjhj!hhhj "hMSubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj "hMShj!hhubj )}(hhh]j9)}(h%Release the reference on the notifierh]h%Release the reference on the notifier}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMShj"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj "hMSubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j"j4j"j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:132: ./mm/mmu_notifier.chMWhj"ubj)}(hhh]j)}(h=``struct mmu_notifier *subscription`` The notifier to act on 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:132: ./mm/mmu_notifier.chMThj"ubj)}(hhh]j9)}(hThe notifier to act onh]hThe notifier to act on}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj#hMThj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj#hMThj"ubah}(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&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMVhj"ubj9)}(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.}(hjM#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMUhj"ubj9)}(hUnlike mmu_notifier_unregister() the get/put flow only calls ops->release when the mm_struct is destroyed. Instead free_notifier is always called to release any resources held by the user.h]hUnlike mmu_notifier_unregister() the get/put flow only calls ops->release when the mm_struct is destroyed. Instead free_notifier is always called to release any resources held by the user.}(hj\#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMYhj"ubj9)}(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.}(hjk#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chM]hj"ubj9)}(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().}(hjz#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMahj"ubj9)}(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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMdhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)mmu_interval_notifier_insert (C function)c.mmu_interval_notifier_inserthNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hint mmu_interval_notifier_insert (struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops)h]h)}(hint mmu_interval_notifier_insert(struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops)h](j)}(hinth]hint}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj#hMubh)}(hmmu_interval_notifier_inserth]h)}(hmmu_interval_notifier_inserth]hmmu_interval_notifier_insert}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj#hhhj#hMubj)}(h(struct mmu_interval_notifier *interval_sub, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops)h](j)}(h*struct mmu_interval_notifier *interval_subh](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_notifier_insertasbuh1hhj#ubj)}(h h]h }(hj3$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj2 )}(hj5 h]h*}(hjA$hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj#ubh)}(h interval_subh]h interval_sub}(hjN$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj#ubj)}(hstruct mm_struct *mmh](j!)}(hj$h]hstruct}(hjg$hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjc$ubj)}(h h]h }(hjt$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc$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_interval_notifier_insertasbuh1hhjc$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc$ubj2 )}(hj5 h]h*}(hj$hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjc$ubh)}(hmmh]hmm}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjc$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj#ubj)}(hunsigned long starth](j)}(hunsignedh]hunsigned}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hlongh]hlong}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hstarth]hstart}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj#ubj)}(hunsigned long lengthh](j)}(hunsignedh]hunsigned}(hj(%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$%ubj)}(h h]h }(hj6%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$%ubj)}(hlongh]hlong}(hjD%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$%ubj)}(h h]h }(hjR%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$%ubh)}(hlengthh]hlength}(hj`%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$%ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj#ubj)}(h+const struct mmu_interval_notifier_ops *opsh](j!)}(hjh]hconst}(hjy%hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hju%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju%ubj!)}(hj$h]hstruct}(hj%hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hju%ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju%ubh)}(hhh]h)}(hmmu_interval_notifier_opsh]hmmu_interval_notifier_ops}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj%modnameN classnameNj\j_)}jb]j/$c.mmu_interval_notifier_insertasbuh1hhju%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)}(hopsh]hops}(hj%hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhju%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)}(hInsert an interval notifierh]hInsert an interval notifier}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j-&j4j-&j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj7&h]h Parameters}(hj9&hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj5&ubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj1&ubj)}(hhh](j)}(hQ``struct mmu_interval_notifier *interval_sub`` Interval subscription to register h](j)}(h.``struct mmu_interval_notifier *interval_sub``h]j?)}(hjV&h]h*struct mmu_interval_notifier *interval_sub}(hjX&hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjT&ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhjP&ubj)}(hhh]j9)}(h!Interval subscription to registerh]h!Interval subscription to register}(hjo&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjk&hMhjl&ubah}(h]h ]h"]h$]h&]uh1jhjP&ubeh}(h]h ]h"]h$]h&]uh1jhjk&hMhjM&ubj)}(h0``struct mm_struct *mm`` mm_struct to attach 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:132: ./mm/mmu_notifier.chMhj&ubj)}(hhh]j9)}(hmm_struct to attach toh]hmm_struct to attach to}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjM&ubj)}(h<``unsigned long start`` Starting virtual address to monitor h](j)}(h``unsigned long start``h]j?)}(hj&h]hunsigned long start}(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:132: ./mm/mmu_notifier.chMhj&ubj)}(hhh]j9)}(h#Starting virtual address to monitorh]h#Starting virtual address to monitor}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjM&ubj)}(h8``unsigned long length`` Length of the range to monitor h](j)}(h``unsigned long length``h]j?)}(hj'h]hunsigned long length}(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:132: ./mm/mmu_notifier.chMhj&ubj)}(hhh]j9)}(hLength of the range to monitorh]hLength of the range to monitor}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhjM&ubj)}(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?)}(hj:'h]h+const struct mmu_interval_notifier_ops *ops}(hj<'hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj8'ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj4'ubj)}(hhh]j9)}(h 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 uh1jhj'hhhj'hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj'hhhj'hMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhj'hhubj )}(hhh]j9)}(hRemove a interval notifierh]hRemove a interval notifier}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j(j4j(j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(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:132: ./mm/mmu_notifier.chM hj(ubj)}(hhh]j)}(hS``struct mmu_interval_notifier *interval_sub`` Interval subscription to unregister 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:132: ./mm/mmu_notifier.chMhj(ubj)}(hhh]j9)}(h#Interval subscription to unregisterh]h#Interval subscription to unregister}(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&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj(ubj9)}(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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMhj(ubj9)}(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.}(hj*)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chM hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%mmu_notifier_synchronize (C function)c.mmu_notifier_synchronizehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h$void mmu_notifier_synchronize (void)h]h)}(h#void mmu_notifier_synchronize(void)h](j)}(hvoidh]hvoid}(hjY)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU)hhhR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chM;ubj)}(h h]h }(hjh)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU)hhhjg)hM;ubh)}(hmmu_notifier_synchronizeh]h)}(hmmu_notifier_synchronizeh]hmmu_notifier_synchronize}(hjz)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjv)ubah}(h]h ](jjeh"]h$]h&]jj uh1hhjU)hhhjg)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 uh1jhjU)hhhjg)hM;ubeh}(h]h ]h"]h$]h&]jj juh1hjjhjQ)hhhjg)hM;ubah}(h]jL)ah ](jjeh"]h$]h&]jj)jhuh1hhjg)hM;hjN)hhubj )}(hhh]j9)}(h"Ensure all mmu_notifiers are freedh]h"Ensure all mmu_notifiers are freed}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chM;hj)hhubah}(h]h ]h"]h$]h&]uh1jhjN)hhhjg)hM;ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j)j4j)j5j6j7uh1hhhhjǒhNhNubjp)}(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:132: ./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:132: ./mm/mmu_notifier.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&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./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.}(hjR*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./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().}(hja*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./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.}(hjp*hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hR/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:132: ./mm/mmu_notifier.chMChj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&balloon_page_list_enqueue (C function)c.balloon_page_list_enqueuehNtauh1hhjǒhhhNhNubh)}(hhh](h)}(h_size_t balloon_page_list_enqueue (struct balloon_dev_info *b_dev_info, struct list_head *pages)h]h)}(h^size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, struct list_head *pages)h](h)}(hhh]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:133: ./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}(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)}(h b_dev_infoh]h b_dev_info}(hjH+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj*ubj)}(hstruct list_head *pagesh](j!)}(hj$h]hstruct}(hja+hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj]+ubj)}(h h]h }(hjn+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:133: ./mm/balloon_compaction.chKhj+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hKubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j+j4j+j5j6j7uh1hhhhjǒhNhNubjp)}(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:133: ./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?)}(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:133: ./mm/balloon_compaction.chK!hj,ubj)}(hhh]j9)}(hhjZ,ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./mm/balloon_compaction.chK"hjV,ubj)}(hhh]j9)}(h6pages to enqueue - allocated using balloon_page_alloc.h]h6pages to enqueue - allocated using balloon_page_alloc.}(hju,hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjq,hK"hjr,ubah}(h]h ]h"]h$]h&]uh1jhjV,ubeh}(h]h ]h"]h$]h&]uh1jhjq,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:133: ./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:133: ./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:133: ./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:133: ./mm/balloon_compaction.chK'hj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&balloon_page_list_dequeue (C function)c.balloon_page_list_dequeuehNtauh1hhjǒhhhNhNubh)}(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:133: ./mm/balloon_compaction.chK ah"]h$]h&]uh1j1 hjQ-ubh)}(h b_dev_infoh]h b_dev_info}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjQ-ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjM-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_dequeueasbuh1hhj-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 uh1jhjM-ubj)}(hsize_t n_req_pagesh](h)}(hhh]h)}(hsize_th]hsize_t}(hj8.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5.ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj:.modnameN classnameNj\j_)}jb]j"-c.balloon_page_list_dequeueasbuh1hhj1.ubj)}(h h]h }(hjV.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1.ubh)}(h n_req_pagesh]h n_req_pages}(hjd.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1.ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjM-ubeh}(h]h ]h"]h$]h&]jj uh1jhj,hhhj'-hKhj.ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./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}(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:133: ./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.}(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)}(h2``size_t n_req_pages`` number of requested pages. h](j)}(h``size_t n_req_pages``h]j?)}(hjA/h]hsize_t n_req_pages}(hjC/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:133: ./mm/balloon_compaction.chK@hj;/ubj)}(hhh]j9)}(hnumber of requested pages.h]hnumber of requested pages.}(hjZ/hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjV/hK@hjW/ubah}(h]h ]h"]h$]h&]uh1jhj;/ubeh}(h]h ]h"]h$]h&]uh1jhjV/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&]uh1jyhjz/ubah}(h]h ]h"]h$]h&]uh1j8hX/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:133: ./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:133: ./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:133: ./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:133: ./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:133: ./mm/balloon_compaction.chKKhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmf_insert_pfn_pmd (C function)c.vmf_insert_pfn_pmdhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hSvm_fault_t vmf_insert_pfn_pmd (struct vm_fault *vmf, unsigned long pfn, bool write)h]h)}(hRvm_fault_t vmf_insert_pfn_pmd(struct vm_fault *vmf, unsigned long pfn, bool write)h](h)}(hhh]h)}(h vm_fault_th]h vm_fault_t}(hj00hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-0ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj20modnameN classnameNj\j_)}jb]je)}jXvmf_insert_pfn_pmdsbc.vmf_insert_pfn_pmdasbuh1hhj)0hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMubj)}(h h]h }(hjR0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)0hhhjQ0hMubh)}(hvmf_insert_pfn_pmdh]h)}(hjN0h]hvmf_insert_pfn_pmd}(hjd0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj`0ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj)0hhhjQ0hMubj)}(h5(struct vm_fault *vmf, unsigned long pfn, bool write)h](j)}(hstruct vm_fault *vmfh](j!)}(hj$h]hstruct}(hj0hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj{0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{0ubh)}(hhh]h)}(hvm_faulth]hvm_fault}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj0modnameN classnameNj\j_)}jb]jL0c.vmf_insert_pfn_pmdasbuh1hhj{0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{0ubj2 )}(hj5 h]h*}(hj0hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj{0ubh)}(hvmfh]hvmf}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{0ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjw0ubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hlongh]hlong}(hj 1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hpfnh]hpfn}(hj'1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjw0ubj)}(h bool writeh](j)}(hj*h]hbool}(hj@1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<1ubj)}(h h]h }(hjM1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<1ubh)}(hwriteh]hwrite}(hj[1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<1ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhjw0ubeh}(h]h ]h"]h$]h&]jj uh1jhj)0hhhjQ0hMubeh}(h]h ]h"]h$]h&]jj juh1hjjhj%0hhhjQ0hMubah}(h]j 0ah ](jjeh"]h$]h&]jj)jhuh1hhjQ0hMhj"0hhubj )}(hhh]j9)}(hinsert a pmd size pfnh]hinsert a pmd size pfn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jhj"0hhhjQ0hMubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j1j4j1j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj1ubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj1ubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]j?)}(hj1h]hstruct vm_fault *vmf}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj1ubj)}(hhh]j9)}(hStructure describing the faulth]hStructure describing the fault}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj1ubj)}(h$``unsigned long pfn`` pfn to insert h](j)}(h``unsigned long pfn``h]j?)}(hj1h]hunsigned long pfn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj1ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj1ubj)}(hhh]j9)}(h pfn to inserth]h pfn to insert}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj1ubj)}(h*``bool write`` whether it's a write fault h](j)}(h``bool write``h]j?)}(hj82h]h bool write}(hj:2hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj62ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj22ubj)}(hhh]j9)}(hwhether it's a write faulth]hwhether it’s a write fault}(hjQ2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hjM2hMhjN2ubah}(h]h ]h"]h$]h&]uh1jhj22ubeh}(h]h ]h"]h$]h&]uh1jhjM2hMhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubj9)}(h**Description**h]jz)}(hjs2h]h Description}(hju2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjq2ubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj1ubj9)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj1ubj9)}(h **Return**h]jz)}(hj2h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj2ubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj1ubj9)}(hvm_fault_t value.h]hvm_fault_t value.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌvmf_insert_pfn_pud (C function)c.vmf_insert_pfn_pudhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hSvm_fault_t vmf_insert_pfn_pud (struct vm_fault *vmf, unsigned long pfn, bool write)h]h)}(hRvm_fault_t vmf_insert_pfn_pud(struct vm_fault *vmf, unsigned long pfn, bool write)h](h)}(hhh]h)}(h vm_fault_th]h vm_fault_t}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj2modnameN classnameNj\j_)}jb]je)}jXvmf_insert_pfn_pudsbc.vmf_insert_pfn_pudasbuh1hhj2hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM/ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj3hM/ubh)}(hvmf_insert_pfn_pudh]h)}(hj3h]hvmf_insert_pfn_pud}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj2hhhj3hM/ubj)}(h5(struct vm_fault *vmf, unsigned long pfn, bool write)h](j)}(hstruct vm_fault *vmfh](j!)}(hj$h]hstruct}(hj13hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj-3ubj)}(h h]h }(hj>3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-3ubh)}(hhh]h)}(hvm_faulth]hvm_fault}(hjO3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjL3ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjQ3modnameN classnameNj\j_)}jb]j2c.vmf_insert_pfn_pudasbuh1hhj-3ubj)}(h h]h }(hjm3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-3ubj2 )}(hj5 h]h*}(hj{3hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj-3ubh)}(hvmfh]hvmf}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)3ubj)}(hunsigned long pfnh](j)}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hlongh]hlong}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hpfnh]hpfn}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)3ubj)}(h bool writeh](j)}(hj*h]hbool}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hwriteh]hwrite}(hj 4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj)3ubeh}(h]h ]h"]h$]h&]jj uh1jhj2hhhj3hM/ubeh}(h]h ]h"]h$]h&]jj juh1hjjhj2hhhj3hM/ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhj3hM/hj2hhubj )}(hhh]j9)}(hinsert a pud size pfnh]hinsert a pud size pfn}(hj74hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM/hj44hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj3hM/ubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3jO4j4jO4j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hjY4h]h Parameters}(hj[4hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjW4ubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM3hjS4ubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]j?)}(hjx4h]hstruct vm_fault *vmf}(hjz4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjv4ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM0hjr4ubj)}(hhh]j9)}(hStructure describing the faulth]hStructure describing the fault}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4hM0hj4ubah}(h]h ]h"]h$]h&]uh1jhjr4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM0hjo4ubj)}(h$``unsigned long pfn`` pfn to insert h](j)}(h``unsigned long pfn``h]j?)}(hj4h]hunsigned long pfn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM1hj4ubj)}(hhh]j9)}(h pfn to inserth]h pfn to insert}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4hM1hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM1hjo4ubj)}(h*``bool write`` whether it's a write fault h](j)}(h``bool write``h]j?)}(hj4h]h bool write}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj4ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM2hj4ubj)}(hhh]j9)}(hwhether it's a write faulth]hwhether it’s a write fault}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj4hM2hj5ubah}(h=]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hM2hjo4ubeh}(h]h ]h"]h$]h&]uh1jhjS4ubj9)}(h**Description**h]jz)}(hj%5h]h Description}(hj'5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj#5ubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM4hjS4ubj9)}(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.}(hj;5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM3hjS4ubj9)}(h **Return**h]jz)}(hjL5h]hReturn}(hjN5hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhjJ5ubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM5hjS4ubj9)}(hvm_fault_t value.h]hvm_fault_t value.}(hjb5hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chM6hjS4ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!vmf_insert_folio_pud (C function)c.vmf_insert_folio_pudhNtauh1hhjǒhhhNhNubh)}(hhh](h)}(hWvm_fault_t vmf_insert_folio_pud (struct vm_fault *vmf, struct folio *folio, bool write)h]h)}(hVvm_fault_t vmf_insert_folio_pud(struct vm_fault *vmf, struct folio *folio, bool write)h](h)}(hhh]h)}(h vm_fault_th]h vm_fault_t}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj5modnameN classnameNj\j_)}jb]je)}jXvmf_insert_folio_pudsbc.vmf_insert_folio_pudasbuh1hhj5hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMSubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhj5hMSubh)}(hvmf_insert_folio_pudh]h)}(hj5h]hvmf_insert_folio_pud}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ](jjeh"]h$]h&]jj uh1hhj5hhhj5hMSubj)}(h7(struct vm_fault *vmf, struct folio *folio, bool write)h](j)}(hstruct vm_fault *vmfh](j!)}(hj$h]hstruct}(hj5hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hj5ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]h)}(hvm_faulth]hvm_fault}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetj6modnameN classnameNj\j_)}jb]j5c.vmf_insert_folio_pudasbuh1hhj5ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2 )}(hj5 h]h*}(hj-6hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hj5ubh)}(hvmfh]hvmf}(hj:6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5ubj)}(hstruct folio *folioh](j!)}(hj$h]hstruct}(hjS6hhhNhNubah}(h]h ]j-ah"]h$]h&]uh1j hjO6ubj)}(h h]h }(hj`6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO6ubh)}(hhh]h)}(hfolioh]hfolio}(hjq6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjn6ubah}(h]h ]h"]h$]h&] refdomainj-reftypejX reftargetjs6modnameN classnameNj\j_)}jb]j5c.vmf_insert_folio_pudasbuh1hhjO6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO6ubj2 )}(hj5 h]h*}(hj6hhhNhNubah}(h]h ]j> ah"]h$]h&]uh1j1 hjO6ubh)}(hfolioh]hfolio}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjO6ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5ubj)}(h bool writeh](j)}(hj*h]hbool}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hwriteh]hwrite}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubeh}(h]h ]h"]h$]h&]noemphjj uh1jhj5ubeh}(h]h ]h"]h$]h&]jj uh1jhj5hhhj5hMSubeh}(h]h ]h"]h$]h&]jj juh1hjjhj5hhhj5hMSubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj5hMShj5hhubj )}(hhh]j9)}(h-insert a pud size folio mapped by a pud entryh]h-insert a pud size folio mapped by a pud entry}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMShj7hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hMSubeh}(h]h ](j-functioneh"]h$]h&]j2j-j3j 7j4j 7j5j6j7uh1hhhhjǒhNhNubjp)}(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)}(hj*7h]h Parameters}(hj,7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj(7ubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMWhj$7ubj)}(hhh](j)}(h8``struct vm_fault *vmf`` Structure describing the fault h](j)}(h``struct vm_fault *vmf``h]j?)}(hjI7h]hstruct vm_fault *vmf}(hjK7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hjG7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMThjC7ubj)}(hhh]j9)}(hStructure describing the faulth]hStructure describing the fault}(hjb7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj^7hMThj_7ubah}(h]h ]h"]h$]h&]uh1jhjC7ubeh}(h]h ]h"]h$]h&]uh1jhj^7hMThj@7ubj)}(h(``struct folio *folio`` folio to insert h](j)}(h``struct folio *folio``h]j?)}(hj7h]hstruct folio *folio}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMUhj|7ubj)}(hhh]j9)}(hfolio to inserth]hfolio to insert}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hMUhj7ubah}(h]h ]h"]h$]h&]uh1jhj|7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMUhj@7ubj)}(h*``bool write`` whether it's a write fault h](j)}(h``bool write``h]j?)}(hj7h]h bool write}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j>hj7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMVhj7ubj)}(hhh]j9)}(hwhether it's a write faulth]hwhether it’s a write fault}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hj7hMVhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMVhj@7ubeh}(h]h ]h"]h$]h&]uh1jhj$7ubj9)}(h **Return**h]jz)}(hj7h]hReturn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jyhj7ubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMXhj$7ubj9)}(hvm_fault_t value.h]hvm_fault_t value.}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1j8hQ/var/lib/git/docbuild/linux/Documentation/core-api/mm-api:134: ./mm/huge_memory.chMXhj$7ubeh}(h]h ] kernelindentah"]h$]h&]uh1johjǒhhhNhNubeh}(h] more-memory-management-functionsah ]h"] more memory management functionsah$]h&]uh1hhhhhhhhK_ubeh}(h]memory-management-apisah ]h"]memory management apisah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjU8error_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}(j/8j,8j2j/jNj,jMjJj6j3jjj1j.jEjBjdjdjjjjjjjjjjjjjĒjj'8j$8u nametypes}(j/8j2jNjMj6jj1jEjdjjjjjjjĒj'8uh}(j,8hj/hhhjjjjjjjjj j j j j,j5jJj5j3jFjj9j.jjBj4jdjUjrjwjYj^jjjVj[jj jjj$j $j&j&jJ(jO(j*j*j-j$-j2j2jC4jH4jC7jH7j8j8jZ:j_:j;j;j>j>jAjAjBjCj{DjDjHjHj[Lj`LjMjMjOjOj Tj%TjXjXj\j\j^j^jc`jh`j+bj0bjScjXcjjdjdjdj fj%fjgjgjjjjjljlj!nj&njqjqj}tjtjxjxjOzjTzj }j}j~j~jwj|jjj҄jׄjjj0j5jjjjjjjujzj-j2jjjjjejjjjjjjgjlj2j7jjjjj6j;jީjjjjjjj jڰj߰jjj*j/jjjZj_j/j4j?jDjjjYj^jjjjjEjJjTjYjljqjBjGjEjJjHjMjj jjj jjjjajfjj"jjjjj<jAjjjsjxj=jBjjjjjjjGjLjjjjjjj{ j j+j0jfjkjj jjjjj/j4j@jEjcjhjjjx"j}"jv$j{$j&j&j(j (j)j)j+j+jU-jZ-j/j/jP1jU1j3j 3j5j5jG7jL7j8j9j#;j(;j<j<j8@j=@jBjBjoEjtEjGjGjyJj~Jj:Mj?MjPjPjRjRjzTjTjVjVj!Yj&Yj[j[jk]jp]j9_j>_j`j`jbjbjgdjldj0gj5gjhjhjljljpjpjrjrjDtjItjujujVwj[wjxjxjqzjvzj|j|jjjjjijnjjjjjjjՌjڌj<jAjjj$8jǒjjjjjjj6j;jfjkjujzjpjujjjzjjJjOj:j?j<jAjajfjjjjjpjuj<jAjjjjjjj2j7jjjjjjj%j*jxj}jbjgjjj.j3jjjjj jj,j1jTjYjjjjjjjjjjjjj`jejjjjjjj j j= jC jjjJjOjjjjj[#j`#jB%jG%j&j&jg(jl(j*j*j#,j(,j-j-j/j/jR1jW1j2j2j4j4jq6jv6j8j 8j9j9j3<j8<j=j=j?j?j-Aj2AjCj"CjDjDj/Fj4FjGjGjMIjRIjJjJj MjMjNjNjPjPjRjRj@UjEUjWjWjzYjYj'[j,[j\j\j^j^j`j`jbjbjdjdj_gjdgjdijiijkj$kjdmjimjnjnj=qjBqjrjsj\ujaujwjwjxjxjyjyjzjzj}j}jjjjjYj^jj jjjjj&j+jsjxjOjTjjjj$jjjjjjjjj7j<jjjijnjKjPjjj}jj_jdjjjjjjjjjjjWj\jhjmjjjjjHjMjjjjjjjKjPjrjwjj jjj4j9j6j;jjjDjIjjj@jEjjj(j-jjj)j.jpjuj7 j< j j jjj#j(jjjgjljjjjjZj_jjjPjUjjjF!jK!j.#j3#j$j$j&j&j(j(j*j*jy-j~-j/j/j1j1j2j2j4j4j8j8j:j:j=j=jv?j{?jYAj^AjCjCjFjFj{HjHjJjJjLj$LjNjNjPjPjSj!SjTjTjXjXjZjZj4\j9\j^j^j`j`jcjcjVfj[fjhjhjkjkjmjmjojojqjqj"sj'sj$uj)uj4wj9wjyjyj|j|jjjsjxjjj8j=jjj`jejjjjjjjj$jjØjÚjȚjwj|jjjjjդjڤjjjgjljbjgjѱjֱjHjMjjj͹jҹjBjGj|jjٿj޿jjjjjj jpjujnjsjrjwjjjjjOjTjjjQjVjj jnjsjjj9j>jjj jjjjojtjPjUjjj/j4jjjjjjjjjjjjj-j2j.j3jk jp j j j{ j jjjjjjjajfjj jdjij>jCjj jPjUj!j!j#j#j'j'jL)jQ)j*j*j,j,j 0j%0j2j2j5j5u 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.}hj8sbah}(h]h ]h"]h$]h&]uh1j8hj8ubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1j8uba transformerN include_log] decorationNhhub.