[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/kernel-apimodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/zh_TW/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/it_IT/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/ja_JP/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/ko_KR/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/pt_BR/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget'/translations/sp_SP/core-api/kernel-apimodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hThe Linux Kernel APIh]hThe Linux Kernel API}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhA/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api.rsthKubh)}(hhh](h)}(hBasic C Library Functionsh]hBasic C Library Functions}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hX#When writing drivers, you cannot in general use routines which are from the C Library. Some of the functions have been found generally useful and they are listed below. The behaviour of these functions may vary slightly from those defined by ANSI, and these deviations are noted in the text.h]hX#When writing drivers, you cannot in general use routines which are from the C Library. Some of the functions have been found generally useful and they are listed below. The behaviour of these functions may vary slightly from those defined by ANSI, and these deviations are noted in the text.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hhh](h)}(hString Conversionsh]hString Conversions}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlesimple_strtoull (C function)c.simple_strtoullhNtauh1hhhhhhNhNubhdesc)}(hhh](hdesc_signature)}(hSunsigned long long simple_strtoull (const char *cp, char **endp, unsigned int base)h]hdesc_signature_line)}(hRunsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)h](hdesc_sig_keyword_type)}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhubhdesc_sig_space)}(h h]h }(hj3hhhNhNubah}(h]h ]wah"]h$]h&]uh1j1hjhhhj0hKhubj )}(hlongh]hlong}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhj0hKhubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj0hKhubj )}(hlongh]hlong}(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhj0hKhubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj0hKhubh desc_name)}(hsimple_strtoullh]h desc_sig_name)}(hsimple_strtoullh]hsimple_strtoull}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhj|ubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jzhjhhhj0hKhubhdesc_parameterlist)}(h0(const char *cp, char **endp, unsigned int base)h](hdesc_parameter)}(hconst char *cph](hdesc_sig_keyword)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjubj)}(hcph]hcp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char **endph](j )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendph]hendp}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj )}(hinth]hint}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hKhubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jsphinx_line_type declaratorhjhhhj0hKhubah}(h]j ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jhj0hKhhjhhubh desc_content)}(hhh]h)}(h)convert a string to an unsigned long longh]h)convert a string to an unsigned long long}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hKhubeh}(h]h ](cfunctioneh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1jhhhhhNhNubh container)}(hX**Parameters** ``const char *cp`` The start of the string ``char **endp`` A pointer to the end of the parsed string will be placed here ``unsigned int base`` The number base to use **Description** This function has caveats. Please use kstrtoull instead.h](h)}(h**Parameters**h]hstrong)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKlhjubhdefinition_list)}(hhh](hdefinition_list_item)}(h+``const char *cp`` The start of the string h](hterm)}(h``const char *cp``h]hliteral)}(hjh]hconst char *cp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKihjubh definition)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKihj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj0hKihj ubj)}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j)}(h``char **endp``h]j)}(hjVh]h char **endp}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKjhjPubj2)}(hhh]h)}(h=A pointer to the end of the parsed string will be placed hereh]h=A pointer to the end of the parsed string will be placed here}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKjhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKjhj ubj)}(h-``unsigned int base`` The number base to use h](j)}(h``unsigned int base``h]j)}(hjh]hunsigned int base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKkhjubj2)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKkhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKkhj ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKmhjubh)}(h8This function has caveats. Please use kstrtoull instead.h]h8This function has caveats. Please use kstrtoull instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j simple_strtoul (C function)c.simple_strtoulhNtauh1hhhhhhNhNubj)}(hhh](j)}(hMunsigned long simple_strtoul (const char *cp, char **endp, unsigned int base)h]j)}(hLunsigned long simple_strtoul(const char *cp, char **endp, unsigned int base)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhKwubj )}(hlongh]hlong}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhjhKwubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhKwubj{)}(hsimple_strtoulh]j)}(hsimple_strtoulh]hsimple_strtoul}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhKwubj)}(h0(const char *cp, char **endp, unsigned int base)h](j)}(hconst char *cph](j)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hcph]hcp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(h char **endph](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hendph]hendp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hbaseh]hbase}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKwhjhhubj)}(hhh]h)}(h$convert a string to an unsigned longh]h$convert a string to an unsigned long}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKwhjshhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``const char *cp`` The start of the string ``char **endp`` A pointer to the end of the parsed string will be placed here ``unsigned int base`` The number base to use **Description** This function has caveats. Please use kstrtoul instead.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chK{hjubj )}(hhh](j)}(h+``const char *cp`` The start of the string h](j)}(h``const char *cp``h]j)}(hjh]hconst char *cp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKxhjubj2)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j)}(h``char **endp``h]j)}(hjh]h char **endp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKyhjubj2)}(hhh]h)}(h=A pointer to the end of the parsed string will be placed hereh]h=A pointer to the end of the parsed string will be placed here}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKyhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKyhjubj)}(h-``unsigned int base`` The number base to use h](j)}(h``unsigned int base``h]j)}(hj)h]hunsigned int base}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKzhj#ubj2)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKzhj?ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hKzhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chK|hjubh)}(h7This function has caveats. Please use kstrtoul instead.h]h7This function has caveats. Please use kstrtoul instead.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chK{hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j simple_strtol (C function)c.simple_strtolhNtauh1hhhhhhNhNubj)}(hhh](j)}(hClong simple_strtol (const char *cp, char **endp, unsigned int base)h]j)}(hBlong simple_strtol(const char *cp, char **endp, unsigned int base)h](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h simple_strtolh]j)}(h simple_strtolh]h simple_strtol}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h0(const char *cp, char **endp, unsigned int base)h](j)}(hconst char *cph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcph]hcp}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char **endph](j )}(hcharh]hchar}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hendph]hendp}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h!convert a string to a signed longh]h!convert a string to a signed long}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``const char *cp`` The start of the string ``char **endp`` A pointer to the end of the parsed string will be placed here ``unsigned int base`` The number base to use **Description** This function has caveats. Please use kstrtol instead.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjubj )}(hhh](j)}(h+``const char *cp`` The start of the string h](j)}(h``const char *cp``h]j)}(hj5h]hconst char *cp}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj/ubj2)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjKubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKhj,ubj)}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j)}(h``char **endp``h]j)}(hjnh]h char **endp}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjhubj2)}(hhh]h)}(h=A pointer to the end of the parsed string will be placed hereh]h=A pointer to the end of the parsed string will be placed here}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhj,ubj)}(h-``unsigned int base`` The number base to use h](j)}(h``unsigned int base``h]j)}(hjh]hunsigned int base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjubj2)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj,ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjubh)}(h6This function has caveats. Please use kstrtol instead.h]h6This function has caveats. Please use kstrtol instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j simple_strtoll (C function)c.simple_strtollhNtauh1hhhhhhNhNubj)}(hhh](j)}(hIlong long simple_strtoll (const char *cp, char **endp, unsigned int base)h]j)}(hHlong long simple_strtoll(const char *cp, char **endp, unsigned int base)h](j )}(hlongh]hlong}(hj' hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj# hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKubj2)}(h h]h }(hj6 hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj# hhhj5 hKubj )}(hlongh]hlong}(hjD hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj# hhhj5 hKubj2)}(h h]h }(hjR hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj# hhhj5 hKubj{)}(hsimple_strtollh]j)}(hsimple_strtollh]hsimple_strtoll}(hjd hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj` ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj# hhhj5 hKubj)}(h0(const char *cp, char **endp, unsigned int base)h](j)}(hconst char *cph](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj| ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj| ubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj| ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj| ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj| ubj)}(hcph]hcp}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj| ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx ubj)}(h char **endph](j )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hendph]hendp}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj, hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj( ubj2)}(h h]h }(hj: hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj( ubj )}(hinth]hint}(hjH hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj( ubj2)}(h h]h }(hjV hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj( ubj)}(hbaseh]hbase}(hjd hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj( ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx ubeh}(h]h ]h"]h$]h&]jjuh1jhj# hhhj5 hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj5 hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj5 hKhj hhubj)}(hhh]h)}(h&convert a string to a signed long longh]h&convert a string to a signed long long}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj5 hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``const char *cp`` The start of the string ``char **endp`` A pointer to the end of the parsed string will be placed here ``unsigned int base`` The number base to use **Description** This function has caveats. Please use kstrtoll instead.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj ubj )}(hhh](j)}(h+``const char *cp`` The start of the string h](j)}(h``const char *cp``h]j)}(hj h]hconst char *cp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj ubj2)}(hhh]h)}(hThe start of the stringh]hThe start of the string}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(hN``char **endp`` A pointer to the end of the parsed string will be placed here h](j)}(h``char **endp``h]j)}(hj h]h char **endp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj ubj2)}(hhh]h)}(h=A pointer to the end of the parsed string will be placed hereh]h=A pointer to the end of the parsed string will be placed here}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h-``unsigned int base`` The number base to use h](j)}(h``unsigned int base``h]j)}(hjA h]hunsigned int base}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj? ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj; ubj2)}(hhh]h)}(hThe number base to useh]hThe number base to use}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV hKhjW ubah}(h]h ]h"]h$]h&]uh1j1hj; ubeh}(h]h ]h"]h$]h&]uh1jhjV hKhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hj| h]h Description}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj ubh)}(h7This function has caveats. Please use kstrtoll instead.h]h7This function has caveats. Please use kstrtoll instead.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j vsnprintf (C function) c.vsnprintfhNtauh1hhhhhhNhNubj)}(hhh](j)}(hIint vsnprintf (char *buf, size_t size, const char *fmt_str, va_list args)h]j)}(hHint vsnprintf(char *buf, size_t size, const char *fmt_str, va_list args)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hM ubj{)}(h vsnprintfh]j)}(h vsnprintfh]h vsnprintf}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hM ubj)}(h;(char *buf, size_t size, const char *fmt_str, va_list args)h](j)}(h char *bufh](j )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hbufh]hbuf}(hj' hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjC hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ ubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetjE modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j^ ASTIdentifier)}jY j sb c.vsnprintfasbuh1hhj< ubj2)}(h h]h }(hjk hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj< ubj)}(hsizeh]hsize}(hjy hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj< ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *fmt_strh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hfmt_strh]hfmt_str}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h va_list argsh](h)}(hhh]j)}(hva_listh]hva_list}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jg c.vsnprintfasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hargsh]hargs}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hM hj hhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjE hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj` jj` jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``char *buf`` The buffer to place the result into ``size_t size`` The size of the buffer, including the trailing null space ``const char *fmt_str`` The format string to use ``va_list args`` Arguments for the format string **Description** This function generally follows C99 vsnprintf, but has some extensions and a few limitations: - ````n```` is unsupported - ````p*```` is handled by pointer() See pointer() or Documentation/core-api/printk-formats.rst for more extensive description. **Please update the documentation in both places when making changes** The return value is the number of characters which would be generated for the given input, excluding the trailing '\0', as per ISO C99. If you want to have the exact number of characters written into **buf** as return value (not including the trailing '\0'), use vscnprintf(). If the return is greater than or equal to **size**, the resulting string is truncated. If you're not already dealing with a va_list consider using snprintf().h](h)}(h**Parameters**h]j)}(hjj h]h Parameters}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjd ubj )}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hj h]h char *buf}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubj2)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hj h]h size_t size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubj2)}(hhh]h)}(h9The size of the buffer, including the trailing null spaceh]h9The size of the buffer, including the trailing null space}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM hj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM hj ubj)}(h1``const char *fmt_str`` The format string to use h](j)}(h``const char *fmt_str``h]j)}(hj h]hconst char *fmt_str}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubj2)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhjhM hj ubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hj4h]h va_list args}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj.ubj2)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM hjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM hj ubeh}(h]h ]h"]h$]h&]uh1j hjd ubh)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjd ubh)}(h]This function generally follows C99 vsnprintf, but has some extensions and a few limitations:h]h]This function generally follows C99 vsnprintf, but has some extensions and a few limitations:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjd ubh block_quote)}(h@- ````n```` is unsupported - ````p*```` is handled by pointer() h]h bullet_list)}(hhh](h list_item)}(h````n```` is unsupportedh]h)}(hjh](j)}(h ````n````h]h``n``}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is unsupported}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h#````p*```` is handled by pointer() h]h)}(h"````p*```` is handled by pointer()h](j)}(h ````p*````h]h``p*``}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is handled by pointer()}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjhM hjd ubh)}(hZSee pointer() or Documentation/core-api/printk-formats.rst for more extensive description.h]hZSee pointer() or Documentation/core-api/printk-formats.rst for more extensive description.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjd ubh)}(hF**Please update the documentation in both places when making changes**h]j)}(hj h]hBPlease update the documentation in both places when making changes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM# hjd ubh)}(hXkThe return value is the number of characters which would be generated for the given input, excluding the trailing '\0', as per ISO C99. If you want to have the exact number of characters written into **buf** as return value (not including the trailing '\0'), use vscnprintf(). If the return is greater than or equal to **size**, the resulting string is truncated.h](hThe return value is the number of characters which would be generated for the given input, excluding the trailing ‘0’, as per ISO C99. If you want to have the exact number of characters written into }(hj#hhhNhNubj)}(h**buf**h]hbuf}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubht as return value (not including the trailing ‘0’), use vscnprintf(). If the return is greater than or equal to }(hj#hhhNhNubj)}(h**size**h]hsize}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh$, the resulting string is truncated.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM% hjd ubh)}(hGIf you're not already dealing with a va_list consider using snprintf().h]hIIf you’re not already dealing with a va_list consider using snprintf().}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM- hjd ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j vscnprintf (C function) c.vscnprintfhNtauh1hhhhhhNhNubj)}(hhh](j)}(hFint vscnprintf (char *buf, size_t size, const char *fmt, va_list args)h]j)}(hEint vscnprintf(char *buf, size_t size, const char *fmt, va_list args)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(h vscnprintfh]j)}(h vscnprintfh]h vscnprintf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h7(char *buf, size_t size, const char *fmt, va_list args)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsb c.vscnprintfasbuh1hhjubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj )}(hcharh]hchar}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h va_list argsh](h)}(hhh]j)}(hva_listh]hva_list}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j# c.vscnprintfasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhM ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjzhhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX=**Parameters** ``char *buf`` The buffer to place the result into ``size_t size`` The size of the buffer, including the trailing null space ``const char *fmt`` The format string to use ``va_list args`` Arguments for the format string **Description** The return value is the number of characters which have been written into the **buf** not including the trailing '\0'. If **size** is == 0 the function returns 0. If you're not already dealing with a va_list consider using scnprintf(). See the vsnprintf() documentation for format string extensions over C99.h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubj )}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hjEh]h char *buf}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj?ubj2)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhM hj[ubah}(h]h ]h"]h$]h&]uh1j1hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhM hj<ubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hj~h]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjxubj2)}(hhh]h)}(h9The size of the buffer, including the trailing null spaceh]h9The size of the buffer, including the trailing null space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjhM hj<ubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj<ubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hjh]h va_list args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj<ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hj+h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubh)}(hThe return value is the number of characters which have been written into the **buf** not including the trailing '\0'. If **size** is == 0 the function returns 0.h](hNThe return value is the number of characters which have been written into the }(hjAhhhNhNubj)}(h**buf**h]hbuf}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh) not including the trailing ‘0’. If }(hjAhhhNhNubj)}(h**size**h]hsize}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh is == 0 the function returns 0.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubh)}(hHIf you're not already dealing with a va_list consider using scnprintf().h]hJIf you’re not already dealing with a va_list consider using scnprintf().}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j snprintf (C function) c.snprintfhNtauh1hhhhhhNhNubj)}(hhh](j)}(h;int snprintf (char *buf, size_t size, const char *fmt, ...)h]j)}(h:int snprintf(char *buf, size_t size, const char *fmt, ...)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hsnprintfh]j)}(hsnprintfh]hsnprintf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h.(char *buf, size_t size, const char *fmt, ...)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6modnameN classnameNj] j` )}jc ]jf )}jY jsb c.snprintfasbuh1hhj-ubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj)}(hsizeh]hsize}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h...h]j)}(h...h]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX'**Parameters** ``char *buf`` The buffer to place the result into ``size_t size`` The size of the buffer, including the trailing null space ``const char *fmt`` The format string to use ``...`` Arguments for the format string **Description** The return value is the number of characters which would be generated for the given input, excluding the trailing null, as per ISO C99. If the return is greater than or equal to **size**, the resulting string is truncated. See the vsnprintf() documentation for format string extensions over C99.h](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj )}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hjCh]h char *buf}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj=ubj2)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM hjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhM hj:ubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hj|h]h size_t size}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjvubj2)}(hhh]h)}(h9The size of the buffer, including the trailing null spaceh]h9The size of the buffer, including the trailing null space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjhM hj:ubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj:ubj)}(h(``...`` Arguments for the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj:ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hThe return value is the number of characters which would be generated for the given input, excluding the trailing null, as per ISO C99. If the return is greater than or equal to **size**, the resulting string is truncated.h](hThe return value is the number of characters which would be generated for the given input, excluding the trailing null, as per ISO C99. If the return is greater than or equal to }(hj?hhhNhNubj)}(h**size**h]hsize}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh$, the resulting string is truncated.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j scnprintf (C function) c.scnprintfhNtauh1hhhhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhjhM ubj{)}(h scnprintfh]j)}(h scnprintfh]h scnprintf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h.(char *buf, size_t size, const char *fmt, ...)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.scnprintfasbuh1hhj ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hsizeh]hsize}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj )}(hcharh]hchar}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h...h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``char *buf`` The buffer to place the result into ``size_t size`` The size of the buffer, including the trailing null space ``const char *fmt`` The format string to use ``...`` Arguments for the format string **Description** The return value is the number of characters written into **buf** not including the trailing '\0'. If **size** is == 0 the function returns 0.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj )}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hjh]h char *buf}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj5ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj4hM hjubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hjXh]h size_t size}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjRubj2)}(hhh]h)}(h9The size of the buffer, including the trailing null spaceh]h9The size of the buffer, including the trailing null space}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhM hjnubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhM hjubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h(``...`` Arguments for the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hThe return value is the number of characters written into **buf** not including the trailing '\0'. If **size** is == 0 the function returns 0.h](h:The return value is the number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) not including the trailing ‘0’. If }(hjhhhNhNubj)}(h**size**h]hsize}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is == 0 the function returns 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j vsprintf (C function) c.vsprintfhNtauh1hhhhhhNhNubj)}(hhh](j)}(h7int vsprintf (char *buf, const char *fmt, va_list args)h]j)}(h6int vsprintf(char *buf, const char *fmt, va_list args)h](j )}(hinth]hint}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjhhhj|hM ubj{)}(hvsprintfh]j)}(hvsprintfh]hvsprintf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhj|hM ubj)}(h*(char *buf, const char *fmt, va_list args)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfmth]hfmt}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h va_list argsh](h)}(hhh]j)}(hva_listh]hva_list}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.vsprintfasbuh1hhjFubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hargsh]hargs}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhj|hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj|hM ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1jhj|hM hjchhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``char *buf`` The buffer to place the result into ``const char *fmt`` The format string to use ``va_list args`` Arguments for the format string **Description** The return value is the number of characters written into **buf** not including the trailing '\0'. Use vsnprintf() or vscnprintf() in order to avoid buffer overflows. If you're not already dealing with a va_list consider using sprintf(). See the vsnprintf() documentation for format string extensions over C99.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj )}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hjh]h char *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj5ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj4hM hjubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hjXh]h va_list args}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjRubj2)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhM hjnubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhM hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hThe return value is the number of characters written into **buf** not including the trailing '\0'. Use vsnprintf() or vscnprintf() in order to avoid buffer overflows.h](h:The return value is the number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhi not including the trailing ‘0’. Use vsnprintf() or vscnprintf() in order to avoid buffer overflows.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hFIf you're not already dealing with a va_list consider using sprintf().h]hHIf you’re not already dealing with a va_list consider using sprintf().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sprintf (C function) c.sprintfhNtauh1hhhhhhNhNubj)}(hhh](j)}(h-int sprintf (char *buf, const char *fmt, ...)h]j)}(h,int sprintf(char *buf, const char *fmt, ...)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hsprintfh]j)}(hsprintfh]hsprintf}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h!(char *buf, const char *fmt, ...)h](j)}(h char *bufh](j )}(hcharh]hchar}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hbufh]hbuf}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hconst char *fmth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(h...h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(h(Format a string and place it in a bufferh]h(Format a string and place it in a buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``char *buf`` The buffer to place the result into ``const char *fmt`` The format string to use ``...`` Arguments for the format string **Description** The return value is the number of characters written into **buf** not including the trailing '\0'. Use snprintf() or scnprintf() in order to avoid buffer overflows. See the vsnprintf() documentation for format string extensions over C99.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj)ubj )}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hjNh]h char *buf}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjHubj2)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchM hjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchM hjEubj)}(h-``const char *fmt`` The format string to use h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjEubj)}(h(``...`` Arguments for the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjubj2)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjEubeh}(h]h ]h"]h$]h&]uh1j hj)ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj)ubh)}(hThe return value is the number of characters written into **buf** not including the trailing '\0'. Use snprintf() or scnprintf() in order to avoid buffer overflows.h](h:The return value is the number of characters written into }(hjhhhNhNubj)}(h**buf**h]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhg not including the trailing ‘0’. Use snprintf() or scnprintf() in order to avoid buffer overflows.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj)ubh)}(hHSee the vsnprintf() documentation for format string extensions over C99.h]hHSee the vsnprintf() documentation for format string extensions over C99.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM# hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j vbin_printf (C function) c.vbin_printfhNtauh1hhhhhhNhNubj)}(hhh](j)}(hNint vbin_printf (u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h]j)}(hMint vbin_printf(u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM; ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhjohM; ubj{)}(h vbin_printfh]j)}(h vbin_printfh]h vbin_printf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhjohM; ubj)}(h>(u32 *bin_buf, size_t size, const char *fmt_str, va_list args)h](j)}(h u32 *bin_bufh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.vbin_printfasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbin_bufh]hbin_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.vbin_printfasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmt_strh](j)}(hjh]hconst}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj )}(hcharh]hchar}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hfmt_strh]hfmt_str}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h va_list argsh](h)}(hhh]j)}(hva_listh]hva_list}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.vbin_printfasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hargsh]hargs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj]hhhjohM; ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjohM; ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjohM; hjVhhubj)}(hhh]h)}(h>Parse a format string and place args' binary value in a bufferh]h@Parse a format string and place args’ binary value in a buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM; hjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohM; ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhhhNhNubj)}(hX5**Parameters** ``u32 *bin_buf`` The buffer to place args' binary value ``size_t size`` The size of the buffer(by words(32bits), not characters) ``const char *fmt_str`` The format string to use ``va_list args`` Arguments for the format string **Description** The format follows C99 vsnprintf, except ``n`` is ignored, and its argument is skipped. The return value is the number of words(32bits) which would be generated for the given input. **NOTE** If the return value is greater than **size**, the resulting bin_buf is NOT valid for bstr_printf().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM? hjubj )}(hhh](j)}(h8``u32 *bin_buf`` The buffer to place args' binary value h](j)}(h``u32 *bin_buf``h]j)}(hj4h]h u32 *bin_buf}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM< hj.ubj2)}(hhh]h)}(h&The buffer to place args' binary valueh]h(The buffer to place args’ binary value}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM< hjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM< hj+ubj)}(hI``size_t size`` The size of the buffer(by words(32bits), not characters) h](j)}(h``size_t size``h]j)}(hjmh]h size_t size}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM= hjgubj2)}(hhh]h)}(h8The size of the buffer(by words(32bits), not characters)h]h8The size of the buffer(by words(32bits), not characters)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM= hjubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjhM= hj+ubj)}(h1``const char *fmt_str`` The format string to use h](j)}(h``const char *fmt_str``h]j)}(hjh]hconst char *fmt_str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM> hjubj2)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM> hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM> hj+ubj)}(h1``va_list args`` Arguments for the format string h](j)}(h``va_list args``h]j)}(hjh]h va_list args}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM? hjubj2)}(hhh]h)}(hArguments for the format stringh]hArguments for the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM? hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM? hj+ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMA hjubh)}(hWThe format follows C99 vsnprintf, except ``n`` is ignored, and its argument is skipped.h](h)The format follows C99 vsnprintf, except }(hj0 hhhNhNubj)}(h``n``h]hn}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0 ubh) is ignored, and its argument is skipped.}(hj0 hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM@ hjubh)}(h]The return value is the number of words(32bits) which would be generated for the given input.h]h]The return value is the number of words(32bits) which would be generated for the given input.}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMC hjubh)}(h**NOTE**h]j)}(hjb h]hNOTE}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj` ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMF hjubh)}(hcIf the return value is greater than **size**, the resulting bin_buf is NOT valid for bstr_printf().h](h$If the return value is greater than }(hjx hhhNhNubj)}(h**size**h]hsize}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx ubh7, the resulting bin_buf is NOT valid for bstr_printf().}(hjx hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMG hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bstr_printf (C function) c.bstr_printfhNtauh1hhhhhhNhNubj)}(hhh](j)}(hQint bstr_printf (char *buf, size_t size, const char *fmt_str, const u32 *bin_buf)h]j)}(hPint bstr_printf(char *buf, size_t size, const char *fmt_str, const u32 *bin_buf)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hM ubj{)}(h bstr_printfh]j)}(h bstr_printfh]h bstr_printf}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hM ubj)}(hA(char *buf, size_t size, const char *fmt_str, const u32 *bin_buf)h](j)}(h char *bufh](j )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hbufh]hbuf}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj;!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj=!modnameN classnameNj] j` )}jc ]jf )}jY j sb c.bstr_printfasbuh1hhj4!ubj2)}(h h]h }(hj[!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4!ubj)}(hsizeh]hsize}(hji!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *fmt_strh](j)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~!ubj )}(hcharh]hchar}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~!ubj)}(hfmt_strh]hfmt_str}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst u32 *bin_bufh](j)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubh)}(hhh]j)}(hu32h]hu32}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj!modnameN classnameNj] j` )}jc ]jW! c.bstr_printfasbuh1hhj!ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hj)"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hbin_bufh]hbin_buf}(hj6"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hM hj hhubj)}(hhh]h)}(h>Format a string from binary arguments and place it in a bufferh]h>Format a string from binary arguments and place it in a buffer}(hj`"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj]"hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjx"jjx"jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``char *buf`` The buffer to place the result into ``size_t size`` The size of the buffer, including the trailing null space ``const char *fmt_str`` The format string to use ``const u32 *bin_buf`` Binary arguments for the format string **Description** This function like C99 vsnprintf, but the difference is that vsnprintf gets arguments from stack, and bstr_printf gets arguments from **bin_buf** which is a binary buffer that generated by vbin_printf. The format follows C99 vsnprintf, but has some extensions: see vsnprintf comment for details. The return value is the number of characters which would be generated for the given input, excluding the trailing '\0', as per ISO C99. If you want to have the exact number of characters written into **buf** as return value (not including the trailing '\0'), use vscnprintf(). If the return is greater than or equal to **size**, the resulting string is truncated.h](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj|"ubj )}(hhh](j)}(h2``char *buf`` The buffer to place the result into h](j)}(h ``char *buf``h]j)}(hj"h]h char *buf}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj"ubj2)}(hhh]h)}(h#The buffer to place the result intoh]h#The buffer to place the result into}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM hj"ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM hj"ubj)}(hJ``size_t size`` The size of the buffer, including the trailing null space h](j)}(h``size_t size``h]j)}(hj"h]h size_t size}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj"ubj2)}(hhh]h)}(h9The size of the buffer, including the trailing null spaceh]h9The size of the buffer, including the trailing null space}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM hj"ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM hj"ubj)}(h1``const char *fmt_str`` The format string to use h](j)}(h``const char *fmt_str``h]j)}(hj#h]hconst char *fmt_str}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj #ubj2)}(hhh]h)}(hThe format string to useh]hThe format string to use}(hj,#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(#hM hj)#ubah}(h]h ]h"]h$]h&]uh1j1hj #ubeh}(h]h ]h"]h$]h&]uh1jhj(#hM hj"ubj)}(h>``const u32 *bin_buf`` Binary arguments for the format string h](j)}(h``const u32 *bin_buf``h]j)}(hjL#h]hconst u32 *bin_buf}(hjN#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ#ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjF#ubj2)}(hhh]h)}(h&Binary arguments for the format stringh]h&Binary arguments for the format string}(hje#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja#hM hjb#ubah}(h]h ]h"]h$]h&]uh1j1hjF#ubeh}(h]h ]h"]h$]h&]uh1jhja#hM hj"ubeh}(h]h ]h"]h$]h&]uh1j hj|"ubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj|"ubh)}(hThis function like C99 vsnprintf, but the difference is that vsnprintf gets arguments from stack, and bstr_printf gets arguments from **bin_buf** which is a binary buffer that generated by vbin_printf.h](hThis function like C99 vsnprintf, but the difference is that vsnprintf gets arguments from stack, and bstr_printf gets arguments from }(hj#hhhNhNubj)}(h **bin_buf**h]hbin_buf}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh8 which is a binary buffer that generated by vbin_printf.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj|"ubj )}(hhh]j)}(h^The format follows C99 vsnprintf, but has some extensions: see vsnprintf comment for details. h](j)}(h:The format follows C99 vsnprintf, but has some extensions:h]h:The format follows C99 vsnprintf, but has some extensions:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj#ubj2)}(hhh]h)}(h"see vsnprintf comment for details.h]h"see vsnprintf comment for details.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1j hj|"ubh)}(hXkThe return value is the number of characters which would be generated for the given input, excluding the trailing '\0', as per ISO C99. If you want to have the exact number of characters written into **buf** as return value (not including the trailing '\0'), use vscnprintf(). If the return is greater than or equal to **size**, the resulting string is truncated.h](hThe return value is the number of characters which would be generated for the given input, excluding the trailing ‘0’, as per ISO C99. If you want to have the exact number of characters written into }(hj#hhhNhNubj)}(h**buf**h]hbuf}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubht as return value (not including the trailing ‘0’), use vscnprintf(). If the return is greater than or equal to }(hj#hhhNhNubj)}(h**size**h]hsize}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh$, the resulting string is truncated.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj|"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j vsscanf (C function) c.vsscanfhNtauh1hhhhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjF$hhhjX$hM ubj{)}(hvsscanfh]j)}(hvsscanfh]hvsscanf}(hjk$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjF$hhhjX$hM ubj)}(h0(const char *buf, const char *fmt, va_list args)h](j)}(hconst char *bufh](j)}(hjh]hconst}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj )}(hcharh]hchar}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hbufh]hbuf}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hconst char *fmth](j)}(hjh]hconst}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj )}(hcharh]hchar}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj %hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hfmth]hfmt}(hj(%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(h va_list argsh](h)}(hhh]j)}(hva_listh]hva_list}(hjD%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjF%modnameN classnameNj] j` )}jc ]jf )}jY jm$sb c.vsscanfasbuh1hhj=%ubj2)}(h h]h }(hjd%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=%ubj)}(hargsh]hargs}(hjr%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhjF$hhhjX$hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjB$hhhjX$hM ubah}(h]j=$ah ](jjeh"]h$]h&]jj)jhuh1jhjX$hM hj?$hhubj)}(hhh]h)}(h*Unformat a buffer into a list of argumentsh]h*Unformat a buffer into a list of arguments}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj%hhubah}(h]h ]h"]h$]h&]uh1jhj?$hhhjX$hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jhhhhhNhNubj)}(hx**Parameters** ``const char *buf`` input buffer ``const char *fmt`` format of buffer ``va_list args`` argumentsh](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj%ubj )}(hhh](j)}(h!``const char *buf`` input buffer h](j)}(h``const char *buf``h]j)}(hj%h]hconst char *buf}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj%ubj2)}(hhh]h)}(h input bufferh]h input buffer}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hM hj%ubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hM hj%ubj)}(h%``const char *fmt`` format of buffer h](j)}(h``const char *fmt``h]j)}(hj&h]hconst char *fmt}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hj&ubj2)}(hhh]h)}(hformat of bufferh]hformat of buffer}(hj/&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+&hM hj,&ubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhj+&hM hj%ubj)}(h``va_list args`` argumentsh](j)}(h``va_list args``h]j)}(hjO&h]h va_list args}(hjQ&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM&ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hjI&ubj2)}(hhh]h)}(h argumentsh]h arguments}(hjh&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chM hje&ubah}(h]h ]h"]h$]h&]uh1j1hjI&ubeh}(h]h ]h"]h$]h&]uh1jhjd&hM hj%ubeh}(h]h ]h"]h$]h&]uh1j hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sscanf (C function)c.sscanfhNtauh1hhhhhhNhNubj)}(hhh](j)}(h2int sscanf (const char *buf, const char *fmt, ...)h]j)}(h1int sscanf(const char *buf, const char *fmt, ...)h](j )}(hinth]hint}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&hhhj&hMubj{)}(hsscanfh]j)}(hsscanfh]hsscanf}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&hhhj&hMubj)}(h'(const char *buf, const char *fmt, ...)h](j)}(hconst char *bufh](j)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj )}(hcharh]hchar}(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&ubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj)}(hbufh]hbuf}(hj*'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(hconst char *fmth](j)}(hjh]hconst}(hjC'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?'ubj2)}(h h]h }(hjP'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?'ubj )}(hcharh]hchar}(hj^'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?'ubj2)}(h h]h }(hjl'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?'ubj)}(hjh]h*}(hjz'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?'ubj)}(hfmth]hfmt}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubj)}(h...h]j)}(hjh]h...}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj&ubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhj&hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhj&hMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1jhj&hMhj&hhubj)}(hhh]h)}(h*Unformat a buffer into a list of argumentsh]h*Unformat a buffer into a list of arguments}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMhj'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1jhhhhhNhNubj)}(h}**Parameters** ``const char *buf`` input buffer ``const char *fmt`` formatting of buffer ``...`` resulting argumentsh](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMhj'ubj )}(hhh](j)}(h!``const char *buf`` input buffer h](j)}(h``const char *buf``h]j)}(hj (h]hconst char *buf}(hj (hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMhj(ubj2)}(hhh]h)}(h input bufferh]h input buffer}(hj#(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhj (ubah}(h]h ]h"]h$]h&]uh1j1hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhj(ubj)}(h)``const char *fmt`` formatting of buffer h](j)}(h``const char *fmt``h]j)}(hjC(h]hconst char *fmt}(hjE(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA(ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMhj=(ubj2)}(hhh]h)}(hformatting of bufferh]hformatting of buffer}(hj\(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX(hMhjY(ubah}(h]h ]h"]h$]h&]uh1j1hj=(ubeh}(h]h ]h"]h$]h&]uh1jhjX(hMhj(ubj)}(h``...`` resulting argumentsh](j)}(h``...``h]j)}(hj|(h]h...}(hj~(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz(ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMhjv(ubj2)}(hhh]h)}(hresulting argumentsh]hresulting arguments}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:18: ./lib/vsprintf.chMhj(ubah}(h]h ]h"]h$]h&]uh1j1hjv(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhj(ubeh}(h]h ]h"]h$]h&]uh1j hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrtoul (C function) c.kstrtoulhNtauh1hhhhhhNhNubj)}(hhh](j)}(hCint kstrtoul (const char *s, unsigned int base, unsigned long *res)h]j)}(hBint kstrtoul(const char *s, unsigned int base, unsigned long *res)h](j )}(hinth]hint}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(hhhj(hKubj{)}(hkstrtoulh]j)}(hkstrtoulh]hkstrtoul}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj(hKubj)}(h6(const char *s, unsigned int base, unsigned long *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj )hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj )}(hcharh]hchar}(hj.)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj<)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hjJ)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hsh]hs}(hjW)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj )ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hjp)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjl)ubj2)}(h h]h }(hj~)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl)ubj )}(hinth]hint}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjl)ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl)ubj)}(hbaseh]hbase}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj )ubj)}(hunsigned long *resh](j )}(hunsignedh]hunsigned}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj )}(hlongh]hlong}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hresh]hres}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj )ubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj(hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj(hKubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhj(hKhj(hhubj)}(hhh]h)}(h$convert a string to an unsigned longh]h$convert a string to an unsigned long}(hj0*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj-*hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjH*jjH*jjjuh1jhhhhhNhNubj)}(hXa**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``unsigned long *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hjR*h]h Parameters}(hjT*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP*ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhjL*ubj )}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. h](j)}(h``const char *s``h]j)}(hjq*h]h const char *s}(hjs*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo*ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhjk*ubj2)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj*ubah}(h]h ]h"]h$]h&]uh1j1hjk*ubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjh*ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hj*h]hunsigned int base}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj*ubj2)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj*ubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjh*ubj)}(hO``unsigned long *res`` Where to write the result of the conversion on success. h](j)}(h``unsigned long *res``h]j)}(hj*h]hunsigned long *res}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhj*ubj2)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj*ubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjh*ubeh}(h]h ]h"]h$]h&]uh1j hjL*ubh)}(h**Description**h]j)}(hj +h]h Description}(hj"+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhjL*ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.}(hj6+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhKhjL*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrtol (C function) c.kstrtolhNtauh1hhhhhhNhNubj)}(hhh](j)}(h9int kstrtol (const char *s, unsigned int base, long *res)h]j)}(h8int kstrtol(const char *s, unsigned int base, long *res)h](j )}(hinth]hint}(hje+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhja+hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK,ubj2)}(h h]h }(hjt+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hja+hhhjs+hK,ubj{)}(hkstrtolh]j)}(hkstrtolh]hkstrtol}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhja+hhhjs+hK,ubj)}(h-(const char *s, unsigned int base, long *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj )}(hcharh]hchar}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hjY)h]hs}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj ,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj )}(hinth]hint}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj(,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hbaseh]hbase}(hj6,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(h long *resh](j )}(hlongh]hlong}(hjO,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjK,ubj2)}(h h]h }(hj],hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjK,ubj)}(hjh]h*}(hjk,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK,ubj)}(hresh]hres}(hjx,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubeh}(h]h ]h"]h$]h&]jjuh1jhja+hhhjs+hK,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]+hhhjs+hK,ubah}(h]jX+ah ](jjeh"]h$]h&]jj)jhuh1jhjs+hK,hjZ+hhubj)}(hhh]h)}(hconvert a string to a longh]hconvert a string to a long}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK,hj,hhubah}(h]h ]h"]h$]h&]uh1jhjZ+hhhjs+hK,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jhhhhhNhNubj)}(hXQ**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``long *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]>h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK0hj,ubj )}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. h](j)}(h``const char *s``h]j)}(hj,h]h const char *s}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK/hj,ubj2)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK-hj,ubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hK/hj,ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hj-h]hunsigned int base}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK4hj-ubj2)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hj6-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK0hj3-ubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhj2-hK4hj,ubj)}(hF``long *res`` Where to write the result of the conversion on success. h](j)}(h ``long *res``h]j)}(hjW-h]h long *res}(hjY-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU-ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK5hjQ-ubj2)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hjp-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl-hK5hjm-ubah}(h]h ]h"]h$]h&]uh1j1hjQ-ubeh}(h]h ]h"]h$]h&]uh1jhjl-hK5hj,ubeh}(h]h ]h"]h$]h&]uh1j hj,ubh)}(h**Description**h]j)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK7hj,ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:21: ./include/linux/kstrtox.hhK6hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrtoull (C function) c.kstrtoullhNtauh1hhhhhhNhNubj)}(hhh](j)}(hIint kstrtoull (const char *s, unsigned int base, unsigned long long *res)h]j)}(hHint kstrtoull(const char *s, unsigned int base, unsigned long long *res)h](j )}(hinth]hint}(hj-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKxubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-hhhj-hKxubj{)}(h kstrtoullh]j)}(h kstrtoullh]h kstrtoull}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj-hKxubj)}(h;(const char *s, unsigned int base, unsigned long long *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj!.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj )}(hcharh]hchar}(hj/.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj=.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hjK.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hjY)h]hs}(hjX.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj .ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hjp.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjl.ubj2)}(h h]h }(hj~.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl.ubj )}(hinth]hint}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjl.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl.ubj)}(hbaseh]hbase}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj .ubj)}(hunsigned long long *resh](j )}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hresh]hres}(hj"/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj .ubeh}(h]h ]h"]h$]h&]jjuh1jhj-hhhj-hKxubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj-hKxubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jhj-hKxhj-hhubj)}(hhh]h)}(h)convert a string to an unsigned long longh]h)convert a string to an unsigned long long}(hjL/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKxhjI/hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj-hKxubeh}(h]h ](jfunctioneh"]h$]h&]jjjjd/jjd/jjjuh1jhhhhhNhNubj)}(hXg**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``unsigned long long *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoull(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hjn/h]h Parameters}(hjp/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl/ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chK|hjh/ubj )}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. h](j)}(h``const char *s``h]j)}(hj/h]h const char *s}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chK{hj/ubj2)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKyhj/ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hK{hj/ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hj/h]hunsigned int base}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj/ubj2)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chK|hj/ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hKhj/ubj)}(hT``unsigned long long *res`` Where to write the result of the conversion on success. h](j)}(h``unsigned long long *res``h]j)}(hj0h]hunsigned long long *res}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj/ubj2)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj/ubeh}(h]h ]h"]h$]h&]uh1j hjh/ubh)}(h**Description**h]j)}(hj<0h]h Description}(hj>0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:0ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjh/ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoull(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoull(). Return code must be checked.}(hjR0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjh/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrtoll (C function) c.kstrtollhNtauh1hhhhhhNhNubj)}(hhh](j)}(h?int kstrtoll (const char *s, unsigned int base, long long *res)h]j)}(h>int kstrtoll(const char *s, unsigned int base, long long *res)h](j )}(hinth]hint}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}0hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}0hhhj0hKubj{)}(hkstrtollh]j)}(hkstrtollh]hkstrtoll}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}0hhhj0hKubj)}(h2(const char *s, unsigned int base, long long *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj )}(hcharh]hchar}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hjY)h]hs}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hj(1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj )}(hinth]hint}(hj61hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hjD1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hbaseh]hbase}(hjR1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hlong long *resh](j )}(hlongh]hlong}(hjk1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjg1ubj2)}(h h]h }(hjy1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjg1ubj )}(hlongh]hlong}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjg1ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjg1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg1ubj)}(hresh]hres}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhj}0hhhj0hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjy0hhhj0hKubah}(h]jt0ah ](jjeh"]h$]h&]jj)jhuh1jhj0hKhjv0hhubj)}(hhh]h)}(hconvert a string to a long longh]hconvert a string to a long long}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj1hhubah}(h]h ]h"]h$]h&]uh1jhjv0hhhj0hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhhhNhNubj)}(hXW**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``long long *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoll(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj1ubj )}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. h](j)}(h``const char *s``h]j)}(hj2h]h const char *s}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj2ubj2)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.}(hj42hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj12ubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhj02hKhj2ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hjU2h]hunsigned int base}(hjW2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS2ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjO2ubj2)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hjn2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjk2ubah}(h]h ]h"]h$]h&]uh1j1hjO2ubeh}(h]h ]h"]h$]h&]uh1jhjj2hKhj2ubj)}(hK``long long *res`` Where to write the result of the conversion on success. h](j)}(h``long long *res``h]j)}(hj2h]hlong long *res}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj2ubj2)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubeh}(h]h ]h"]h$]h&]uh1j hj1ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj1ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoll(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoll(). Return code must be checked.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrtouint (C function) c.kstrtouinthNtauh1hhhhhhNhNubj)}(hhh](j)}(hDint kstrtouint (const char *s, unsigned int base, unsigned int *res)h]j)}(hCint kstrtouint(const char *s, unsigned int base, unsigned int *res)h](j )}(hinth]hint}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj 3hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj 3hhhj3hKubj{)}(h kstrtouinth]j)}(h kstrtouinth]h kstrtouint}(hj03hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj 3hhhj3hKubj)}(h5(const char *s, unsigned int base, unsigned int *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hjL3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH3ubj2)}(h h]h }(hjY3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH3ubj )}(hcharh]hchar}(hjg3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjH3ubj2)}(h h]h }(hju3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH3ubj)}(hjY)h]hs}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD3ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj )}(hinth]hint}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hbaseh]hbase}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD3ubj)}(hunsigned int *resh](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj )}(hinth]hint}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj#4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hj14hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hresh]hres}(hj>4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD3ubeh}(h]h ]h"]h$]h&]jjuh1jhj 3hhhj3hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hKubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhj3hKhj3hhubj)}(hhh]h)}(h#convert a string to an unsigned inth]h#convert a string to an unsigned int}(hjh4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhje4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jhhhhhNhNubj)}(hX`**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``unsigned int *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubj )}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign. h](j)}(h``const char *s``h]j)}(hj4h]h const char *s}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubj2)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign, but not a minus sign.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hKhj4ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hj4h]hunsigned int base}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubj2)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hKhj4ubj)}(hN``unsigned int *res`` Where to write the result of the conversion on success. h](j)}(h``unsigned int *res``h]j)}(hj5h]hunsigned int *res}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj5ubj2)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj65hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj25hKhj35ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj25hKhj4ubeh}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hjX5h]h Description}(hjZ5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV5ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtoul(). Return code must be checked.}(hjn5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrtoint (C function) c.kstrtointhNtauh1hhhhhhNhNubj)}(hhh](j)}(h:int kstrtoint (const char *s, unsigned int base, int *res)h]j)}(h9int kstrtoint(const char *s, unsigned int base, int *res)h](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhj5hKubj{)}(h kstrtointh]j)}(h kstrtointh]h kstrtoint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhj5hKubj)}(h,(const char *s, unsigned int base, int *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj )}(hcharh]hchar}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hjY)h]hs}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hunsigned int baseh](j )}(hunsignedh]hunsigned}(hj66hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj26ubj2)}(h h]h }(hjD6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj26ubj )}(hinth]hint}(hjR6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj26ubj2)}(h h]h }(hj`6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj26ubj)}(hbaseh]hbase}(hjn6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj26ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hint *resh](j )}(hinth]hint}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hresh]hres}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hKubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jhj5hKhj5hhubj)}(hhh]h)}(hconvert a string to an inth]hconvert a string to an int}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1jhhhhhNhNubj)}(hXP**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. ``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. ``int *res`` Where to write the result of the conversion on success. **Description** Returns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj6ubj )}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. h](j)}(h``const char *s``h]j)}(hj7h]h const char *s}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj7ubj2)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.}(hj47hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhj17ubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhj07hKhj7ubj)}(hX``unsigned int base`` The number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal. h](j)}(h``unsigned int base``h]j)}(hjU7h]hunsigned int base}(hjW7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjO7ubj2)}(hhh]h)}(hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.h]hXkThe number base to use. The maximum supported base is 16. If base is given as 0, then the base of the string is automatically detected with the conventional semantics - If it begins with 0x the number will be parsed as a hexadecimal (case insensitive), if it otherwise begins with 0, it will be parsed as an octal number. Otherwise it will be parsed as a decimal.}(hjn7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chKhjk7ubah}(h]h ]h"]h$]h&]uh1j1hjO7ubeh}(h]h ]h"]h$]h&]uh1jhjj7hKhj7ubj)}(hE``int *res`` Where to write the result of the conversion on success. h](j)}(h ``int *res``h]j)}(hj7h]hint *res}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj7ubj2)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubeh}(h]h ]h"]h$]h&]uh1j hj6ubh)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj6ubh)}(hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.h]hReturns 0 on success, -ERANGE on overflow and -EINVAL on parsing error. Preferred over simple_strtol(). Return code must be checked.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrtobool (C function) c.kstrtoboolhNtauh1hhhhhhNhNubj)}(hhh](j)}(h)int kstrtobool (const char *s, bool *res)h]j)}(h(int kstrtobool(const char *s, bool *res)h](j )}(hinth]hint}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj 8hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMVubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj 8hhhj8hMVubj{)}(h kstrtoboolh]j)}(h kstrtoboolh]h kstrtobool}(hj08hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj 8hhhj8hMVubj)}(h(const char *s, bool *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hjL8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH8ubj2)}(h h]h }(hjY8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH8ubj )}(hcharh]hchar}(hjg8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjH8ubj2)}(h h]h }(hju8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH8ubj)}(hjY)h]hs}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD8ubj)}(h bool *resh](j )}(hboolh]hbool}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hresh]hres}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD8ubeh}(h]h ]h"]h$]h&]jjuh1jhj 8hhhj8hMVubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hMVubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jhj8hMVhj8hhubj)}(hhh]h)}(h.convert common user inputs into boolean valuesh]h.convert common user inputs into boolean values}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMVhj8hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMVubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jhhhhhNhNubj)}(hX#**Parameters** ``const char *s`` input string ``bool *res`` result **Description** This routine returns 0 iff the first character is one of 'EeYyTt1DdNnFf0', or [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value pointed to by res is updated upon finding a match.h](h)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMZhj9ubj )}(hhh](j)}(h``const char *s`` input string h](j)}(h``const char *s``h]j)}(hj<9h]h const char *s}(hj>9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:9ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMWhj69ubj2)}(hhh]h)}(h input stringh]h input string}(hjU9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ9hMWhjR9ubah}(h]h ]h"]h$]h&]uh1j1hj69ubeh}(h]h ]h"]h$]h&]uh1jhjQ9hMWhj39ubj)}(h``bool *res`` result h](j)}(h ``bool *res``h]j)}(hju9h]h bool *res}(hjw9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs9ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMXhjo9ubj2)}(hhh]h)}(hresulth]hresult}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMXhj9ubah}(h]h ]h"]h$]h&]uh1j1hjo9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMXhj39ubeh}(h]h ]h"]h$]h&]uh1j hj9ubh)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMZhj9ubh)}(hThis routine returns 0 iff the first character is one of 'EeYyTt1DdNnFf0', or [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value pointed to by res is updated upon finding a match.h]hThis routine returns 0 iff the first character is one of ‘EeYyTt1DdNnFf0’, or [oO][NnFf] for “on” and “off”. Otherwise it will return -EINVAL. Value pointed to by res is updated upon finding a match.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMYhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrtoudec64 (C function)c.kstrtoudec64hNtauh1hhhhhhNhNubj)}(hhh](j)}(h>int kstrtoudec64 (const char *s, unsigned int scale, u64 *res)h]j)}(h=int kstrtoudec64(const char *s, unsigned int scale, u64 *res)h](j )}(hinth]hint}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9hhhj:hMubj{)}(h kstrtoudec64h]j)}(h kstrtoudec64h]h kstrtoudec64}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhj:hMubj)}(h-(const char *s, unsigned int scale, u64 *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj2:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.:ubj2)}(h h]h }(hj?:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.:ubj )}(hcharh]hchar}(hjM:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.:ubj2)}(h h]h }(hj[:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.:ubj)}(hjh]h*}(hji:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.:ubj)}(hjY)h]hs}(hjv:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*:ubj)}(hunsigned int scaleh](j )}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj )}(hinth]hint}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj)}(hscaleh]hscale}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*:ubj)}(hu64 *resh](h)}(hhh]j)}(hu64h]hu64}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:modnameN classnameNj] j` )}jc ]jf )}jY j:sbc.kstrtoudec64asbuh1hhj:ubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hresh]hres}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*:ubeh}(h]h ]h"]h$]h&]jjuh1jhj9hhhj:hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhj:hMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhj:hMhj9hhubj)}(hhh]h)}(hah"]h$]h&]uh1j1hj<hhhj<hMubj{)}(h kstrtodec64h]j)}(h kstrtodec64h]h kstrtodec64}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhhj<hMubj)}(h-(const char *s, unsigned int scale, s64 *res)h](j)}(h const char *sh](j)}(hjh]hconst}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj )}(hcharh]hchar}(hj<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hjY)h]hs}(hj#=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hunsigned int scaleh](j )}(hunsignedh]hunsigned}(hj;=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7=ubj2)}(h h]h }(hjI=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7=ubj )}(hinth]hint}(hjW=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7=ubj2)}(h h]h }(hje=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7=ubj)}(hscaleh]hscale}(hjs=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubj)}(hs64 *resh](h)}(hhh]j)}(hs64h]hs64}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj=modnameN classnameNj] j` )}jc ]jf )}jY j<sb c.kstrtodec64asbuh1hhj=ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hresh]hres}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubeh}(h]h ]h"]h$]h&]jjuh1jhj<hhhj<hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhj<hMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jhj<hMhj<hhubj)}(hhh]h)}(h9Convert a string to a signed 64-bit scaled decimal value.h]h9Convert a string to a signed 64-bit scaled decimal value.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj >jj >jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. ``unsigned int scale`` The number of digits to the right of the decimal point. ``s64 *res`` Where to write the result of the conversion on success. **Description** For example, a scale of 4 with input "-3.141592" results in -31415. Note that digits beyond the specified scale are ignored. Also, trailing zeros in the fractional part input to match the scale are not required. **Return** 0 on success, -ERANGE on overflow and -EINVAL on parsing error.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj>ubj )}(hhh](j)}(h``const char *s`` The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign. h](j)}(h``const char *s``h]j)}(hj5>h]h const char *s}(hj7>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3>ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj/>ubj2)}(hhh]h)}(hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.h]hThe start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus sign.}(hjN>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhjK>ubah}(h]h ]h"]h$]h&]uh1j1hj/>ubeh}(h]h ]h"]h$]h&]uh1jhjJ>hMhj,>ubj)}(hO``unsigned int scale`` The number of digits to the right of the decimal point. h](j)}(h``unsigned int scale``h]j)}(hjo>h]hunsigned int scale}(hjq>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm>ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhji>ubj2)}(hhh]h)}(h7The number of digits to the right of the decimal point.h]h7The number of digits to the right of the decimal point.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1j1hji>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj,>ubj)}(hE``s64 *res`` Where to write the result of the conversion on success. h](j)}(h ``s64 *res``h]j)}(hj>h]hs64 *res}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj>ubj2)}(hhh]h)}(h7Where to write the result of the conversion on success.h]h7Where to write the result of the conversion on success.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj,>ubeh}(h]h ]h"]h$]h&]uh1j hj>ubh)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj>ubh)}(hFor example, a scale of 4 with input "-3.141592" results in -31415. Note that digits beyond the specified scale are ignored. Also, trailing zeros in the fractional part input to match the scale are not required.h]hFor example, a scale of 4 with input “-3.141592” results in -31415. Note that digits beyond the specified scale are ignored. Also, trailing zeros in the fractional part input to match the scale are not required.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj>ubh)}(h **Return**h]j)}(hj ?h]hReturn}(hj ?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj>ubh)}(h?0 on success, -ERANGE on overflow and -EINVAL on parsing error.h]h?0 on success, -ERANGE on overflow and -EINVAL on parsing error.}(hj ?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:24: ./lib/kstrtox.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j string_get_size (C function)c.string_get_sizehNtauh1hhhhhhNhNubj)}(hhh](j)}(hdint string_get_size (u64 size, u64 blk_size, const enum string_size_units units, char *buf, int len)h]j)}(hcint string_get_size(u64 size, u64 blk_size, const enum string_size_units units, char *buf, int len)h](j )}(hinth]hint}(hjO?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjK?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKubj2)}(h h]h }(hj^?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjK?hhhj]?hKubj{)}(hstring_get_sizeh]j)}(hstring_get_sizeh]hstring_get_size}(hjp?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjK?hhhj]?hKubj)}(hP(u64 size, u64 blk_size, const enum string_size_units units, char *buf, int len)h](j)}(hu64 sizeh](h)}(hhh]j)}(hu64h]hu64}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jf )}jY jr?sbc.string_get_sizeasbuh1hhj?ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hsizeh]hsize}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(h u64 blk_sizeh](h)}(hhh]j)}(hu64h]hu64}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]j?c.string_get_sizeasbuh1hhj?ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hblk_sizeh]hblk_size}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(h"const enum string_size_units unitsh](j)}(hjh]hconst}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hj+@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(henumh]henum}(hj9@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hjG@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubh)}(hhh]j)}(hstring_size_unitsh]hstring_size_units}(hjX@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjZ@modnameN classnameNj] j` )}jc ]j?c.string_get_sizeasbuh1hhj@ubj2)}(h h]h }(hjv@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hunitsh]hunits}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(h char *bufh](j )}(hcharh]hchar}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hbufh]hbuf}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hint lenh](j )}(hinth]hint}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hlenh]hlen}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubeh}(h]h ]h"]h$]h&]jjuh1jhjK?hhhj]?hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjG?hhhj]?hKubah}(h]jB?ah ](jjeh"]h$]h&]jj)jhuh1jhj]?hKhjD?hhubj)}(hhh]h)}(h#get the size in the specified unitsh]h#get the size in the specified units}(hj%AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj"Ahhubah}(h]h ]h"]h$]h&]uh1jhjD?hhhj]?hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=Ajj=Ajjjuh1jhhhhhNhNubj)}(hX**Parameters** ``u64 size`` The size to be converted in blocks ``u64 blk_size`` Size of the block (use 1 for size in bytes) ``const enum string_size_units units`` Units to use (powers of 1000 or 1024), whether to include space separator ``char *buf`` buffer to format to ``int len`` length of buffer **Description** This function returns a string formatted to 3 significant figures giving the size in the required units. **buf** should have room for at least 9 bytes and will always be zero terminated. Return value: number of characters of output that would have been written (which may be greater than len, if output was truncated).h](h)}(h**Parameters**h]j)}(hjGAh]h Parameters}(hjIAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhjAAubj )}(hhh](j)}(h0``u64 size`` The size to be converted in blocks h](j)}(h ``u64 size``h]j)}(hjfAh]hu64 size}(hjhAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj`Aubj2)}(hhh]h)}(h"The size to be converted in blocksh]h"The size to be converted in blocks}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{AhKhj|Aubah}(h]h ]h"]h$]h&]uh1j1hj`Aubeh}(h]h ]h"]h$]h&]uh1jhj{AhKhj]Aubj)}(h=``u64 blk_size`` Size of the block (use 1 for size in bytes) h](j)}(h``u64 blk_size``h]j)}(hjAh]h u64 blk_size}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhjAubj2)}(hhh]h)}(h+Size of the block (use 1 for size in bytes)h]h+Size of the block (use 1 for size in bytes)}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjAubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj]Aubj)}(hq``const enum string_size_units units`` Units to use (powers of 1000 or 1024), whether to include space separator h](j)}(h&``const enum string_size_units units``h]j)}(hjAh]h"const enum string_size_units units}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhjAubj2)}(hhh]h)}(hIUnits to use (powers of 1000 or 1024), whether to include space separatorh]hIUnits to use (powers of 1000 or 1024), whether to include space separator}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhjAubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj]Aubj)}(h"``char *buf`` buffer to format to h](j)}(h ``char *buf``h]j)}(hjBh]h char *buf}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj Bubj2)}(hhh]h)}(hbuffer to format toh]hbuffer to format to}(hj*BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&BhKhj'Bubah}(h]h ]h"]h$]h&]uh1j1hj Bubeh}(h]h ]h"]h$]h&]uh1jhj&BhKhj]Aubj)}(h``int len`` length of buffer h](j)}(h ``int len``h]j)}(hjJBh]hint len}(hjLBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhjDBubj2)}(hhh]h)}(hlength of bufferh]hlength of buffer}(hjcBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_BhKhj`Bubah}(h]h ]h"]h$]h&]uh1j1hjDBubeh}(h]h ]h"]h$]h&]uh1jhj_BhKhj]Aubeh}(h]h ]h"]h$]h&]uh1j hjAAubh)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chK!hjAAubh)}(hThis function returns a string formatted to 3 significant figures giving the size in the required units. **buf** should have room for at least 9 bytes and will always be zero terminated.h](hjThis function returns a string formatted to 3 significant figures giving the size in the required units. }(hjBhhhNhNubj)}(h**buf**h]hbuf}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubhJ should have room for at least 9 bytes and will always be zero terminated.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chK hjAAubh)}(hReturn value: number of characters of output that would have been written (which may be greater than len, if output was truncated).h]hReturn value: number of characters of output that would have been written (which may be greater than len, if output was truncated).}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chK$hjAAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !parse_int_array_user (C function)c.parse_int_array_userhNtauh1hhhhhhNhNubj)}(hhh](j)}(hMint parse_int_array_user (const char __user *from, size_t count, int **array)h]j)}(hLint parse_int_array_user(const char __user *from, size_t count, int **array)h](j )}(hinth]hint}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBhhhjBhKubj{)}(hparse_int_array_userh]j)}(hparse_int_array_userh]hparse_int_array_user}(hj ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjBhKubj)}(h4(const char __user *from, size_t count, int **array)h](j)}(hconst char __user *fromh](j)}(hjh]hconst}(hj(ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Cubj2)}(h h]h }(hj5ChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$Cubj )}(hcharh]hchar}(hjCChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$Cubj2)}(h h]h }(hjQChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$Cubh__user}(hj$ChhhNhNubj2)}(h h]h }(hjcChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$Cubj)}(hjh]h*}(hjqChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Cubj)}(hfromh]hfrom}(hj~ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Cubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]jf )}jY jCsbc.parse_int_array_userasbuh1hhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hcounth]hcount}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Cubj)}(h int **arrayh](j )}(hinth]hint}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hjh]h*}(hj DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(harrayh]harray}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Cubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjBhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjBhKubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jhjBhKhjBhhubj)}(hhh]h)}(h(Split string into a sequence of integersh]h(Split string into a sequence of integers}(hjADhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj>Dhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYDjjYDjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``const char __user *from`` The user space buffer to read from ``size_t count`` The maximum number of bytes to read ``int **array`` Returned pointer to sequence of integers **Description** On success **array** is allocated and initialized with a sequence of integers extracted from the **from** plus an additional element that begins the sequence and specifies the integers count. Caller takes responsibility for freeing **array** when it is no longer needed.h](h)}(h**Parameters**h]j)}(hjcDh]h Parameters}(hjeDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj]Dubj )}(hhh](j)}(h?``const char __user *from`` The user space buffer to read from h](j)}(h``const char __user *from``h]j)}(hjDh]hconst char __user *from}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj|Dubj2)}(hhh]h)}(h"The user space buffer to read fromh]h"The user space buffer to read from}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKhjDubah}(h]h ]h"]h$]h&]uh1j1hj|Dubeh}(h]h ]h"]h$]h&]uh1jhjDhKhjyDubj)}(h5``size_t count`` The maximum number of bytes to read h](j)}(h``size_t count``h]j)}(hjDh]h size_t count}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhjDubj2)}(hhh]h)}(h#The maximum number of bytes to readh]h#The maximum number of bytes to read}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKhjDubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhjDhKhjyDubj)}(h9``int **array`` Returned pointer to sequence of integers h](j)}(h``int **array``h]j)}(hjDh]h int **array}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhjDubj2)}(hhh]h)}(h(Returned pointer to sequence of integersh]h(Returned pointer to sequence of integers}(hj EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj EhKhj Eubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhj EhKhjyDubeh}(h]h ]h"]h$]h&]uh1j hj]Dubh)}(h**Description**h]j)}(hj/Eh]h Description}(hj1EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Eubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj]Dubh)}(hOn success **array** is allocated and initialized with a sequence of integers extracted from the **from** plus an additional element that begins the sequence and specifies the integers count.h](h On success }(hjEEhhhNhNubj)}(h **array**h]harray}(hjMEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEEubhM is allocated and initialized with a sequence of integers extracted from the }(hjEEhhhNhNubj)}(h**from**h]hfrom}(hj_EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEEubhV plus an additional element that begins the sequence and specifies the integers count.}(hjEEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj]Dubh)}(hNCaller takes responsibility for freeing **array** when it is no longer needed.h](h(Caller takes responsibility for freeing }(hjxEhhhNhNubj)}(h **array**h]harray}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxEubh when it is no longer needed.}(hjxEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chKhj]Dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j string_unescape (C function)c.string_unescapehNtauh1hhhhhhNhNubj)}(hhh](j)}(hKint string_unescape (char *src, char *dst, size_t size, unsigned int flags)h]j)}(hJint string_unescape(char *src, char *dst, size_t size, unsigned int flags)h](j )}(hinth]hint}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEhhhjEhMubj{)}(hstring_unescapeh]j)}(hstring_unescapeh]hstring_unescape}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhjEhMubj)}(h7(char *src, char *dst, size_t size, unsigned int flags)h](j)}(h char *srch](j )}(hcharh]hchar}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hsrch]hsrc}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(h char *dsth](j )}(hcharh]hchar}(hj8FhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4Fubj2)}(h h]h }(hjFFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4Fubj)}(hjh]h*}(hjTFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Fubj)}(hdsth]hdst}(hjaFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj}FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjFmodnameN classnameNj] j` )}jc ]jf )}jY jEsbc.string_unescapeasbuh1hhjvFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvFubj)}(hsizeh]hsize}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj )}(hinth]hint}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hflagsh]hflags}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjEhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhjEhMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1jhjEhMhjEhhubj)}(hhh]h)}(h&unquote characters in the given stringh]h&unquote characters in the given string}(hj&GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj#Ghhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>Gjj>Gjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``char *src`` source buffer (escaped) ``char *dst`` destination buffer (unescaped) ``size_t size`` size of the destination buffer (0 to unlimit) ``unsigned int flags`` combination of the flags. **Description** The function unquotes characters in the given string. Because the size of the output will be the same as or less than the size of the input, the transformation may be performed in place. Caller must provide valid source and destination pointers. Be aware that destination buffer will always be NULL-terminated. Source string must be NULL-terminated as well. The supported flags are:: UNESCAPE_SPACE: '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab UNESCAPE_OCTAL: '\NNN' - byte with octal value NNN (1 to 3 digits) UNESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (1 to 2 digits) UNESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape UNESCAPE_ANY: all previous together **Return** The amount of the characters processed to the destination buffer excluding trailing '\0' is returned.h](h)}(h**Parameters**h]j)}(hjHGh]h Parameters}(hjJGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM"hjBGubj )}(hhh](j)}(h&``char *src`` source buffer (escaped) h](j)}(h ``char *src``h]j)}(hjgGh]h char *src}(hjiGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjaGubj2)}(hhh]h)}(hsource buffer (escaped)h]hsource buffer (escaped)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|GhMhj}Gubah}(h]h ]h"]h$]h&]uh1j1hjaGubeh}(h]h ]h"]h$]h&]uh1jhj|GhMhj^Gubj)}(h-``char *dst`` destination buffer (unescaped) h](j)}(h ``char *dst``h]j)}(hjGh]h char *dst}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM hjGubj2)}(hhh]h)}(hdestination buffer (unescaped)h]hdestination buffer (unescaped)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM hjGubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM hj^Gubj)}(h>``size_t size`` size of the destination buffer (0 to unlimit) h](j)}(h``size_t size``h]j)}(hjGh]h size_t size}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM!hjGubj2)}(hhh]h)}(h-size of the destination buffer (0 to unlimit)h]h-size of the destination buffer (0 to unlimit)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM!hjGubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhM!hj^Gubj)}(h1``unsigned int flags`` combination of the flags. h](j)}(h``unsigned int flags``h]j)}(hjHh]hunsigned int flags}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM"hj Hubj2)}(hhh]h)}(hcombination of the flags.h]hcombination of the flags.}(hj+HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'HhM"hj(Hubah}(h]h ]h"]h$]h&]uh1j1hj Hubeh}(h]h ]h"]h$]h&]uh1jhj'HhM"hj^Gubeh}(h]h ]h"]h$]h&]uh1j hjBGubh)}(h**Description**h]j)}(hjMHh]h Description}(hjOHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM$hjBGubh)}(h5The function unquotes characters in the given string.h]h5The function unquotes characters in the given string.}(hjcHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM$hjBGubh)}(hBecause the size of the output will be the same as or less than the size of the input, the transformation may be performed in place.h]hBecause the size of the output will be the same as or less than the size of the input, the transformation may be performed in place.}(hjrHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM&hjBGubh)}(hCaller must provide valid source and destination pointers. Be aware that destination buffer will always be NULL-terminated. Source string must be NULL-terminated as well. The supported flags are::h]hCaller must provide valid source and destination pointers. Be aware that destination buffer will always be NULL-terminated. Source string must be NULL-terminated as well. The supported flags are:}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM)hjBGubh literal_block)}(hXUNESCAPE_SPACE: '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab UNESCAPE_OCTAL: '\NNN' - byte with octal value NNN (1 to 3 digits) UNESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (1 to 2 digits) UNESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape UNESCAPE_ANY: all previous togetherh]hXUNESCAPE_SPACE: '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab UNESCAPE_OCTAL: '\NNN' - byte with octal value NNN (1 to 3 digits) UNESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (1 to 2 digits) UNESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape UNESCAPE_ANY: all previous together}hjHsbah}(h]h ]h"]h$]h&]jjuh1jHhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM-hjBGubh)}(h **Return**h]j)}(hjHh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM?hjBGubh)}(heThe amount of the characters processed to the destination buffer excluding trailing '\0' is returned.h]hiThe amount of the characters processed to the destination buffer excluding trailing ‘0’ is returned.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM@hjBGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j string_escape_mem (C function)c.string_escape_memhNtauh1hhhhhhNhNubj)}(hhh](j)}(hpint string_escape_mem (const char *src, size_t isz, char *dst, size_t osz, unsigned int flags, const char *only)h]j)}(hoint string_escape_mem(const char *src, size_t isz, char *dst, size_t osz, unsigned int flags, const char *only)h](j )}(hinth]hint}(hjHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHhhhjHhMubj{)}(hstring_escape_memh]j)}(hstring_escape_memh]hstring_escape_mem}(hj IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjHhMubj)}(hZ(const char *src, size_t isz, char *dst, size_t osz, unsigned int flags, const char *only)h](j)}(hconst char *srch](j)}(hjh]hconst}(hj%IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Iubj2)}(h h]h }(hj2IhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!Iubj )}(hcharh]hchar}(hj@IhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!Iubj2)}(h h]h }(hjNIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!Iubj)}(hjh]h*}(hj\IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Iubj)}(hsrch]hsrc}(hjiIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(h size_t iszh](h)}(hhh]j)}(hsize_th]hsize_t}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjImodnameN classnameNj] j` )}jc ]jf )}jY j Isbc.string_escape_memasbuh1hhj~Iubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~Iubj)}(hiszh]hisz}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(h char *dsth](j )}(hcharh]hchar}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hdsth]hdst}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(h size_t oszh](h)}(hhh]j)}(hsize_th]hsize_t}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJmodnameN classnameNj] j` )}jc ]jIc.string_escape_memasbuh1hhj Jubj2)}(h h]h }(hj/JhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Jubj)}(hoszh]hosz}(hj=JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjVJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRJubj2)}(h h]h }(hjdJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRJubj )}(hinth]hint}(hjrJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRJubj)}(hflagsh]hflags}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hconst char *onlyh](j)}(hjh]hconst}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj )}(hcharh]hchar}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(honlyh]honly}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhjHhhhjHhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhjHhMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jhjHhMhjHhhubj)}(hhh]h)}(h+quote characters in the given memory bufferh]h+quote characters in the given memory buffer}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-Kjj-Kjjjuh1jhhhhhNhNubj)}(hX **Parameters** ``const char *src`` source buffer (unescaped) ``size_t isz`` source buffer size ``char *dst`` destination buffer (escaped) ``size_t osz`` destination buffer size ``unsigned int flags`` combination of the flags ``const char *only`` NULL-terminated string containing characters used to limit the selected escape class. If characters are included in **only** that would not normally be escaped by the classes selected in **flags**, they will be copied to **dst** unescaped. **Description** The process of escaping byte buffer includes several parts. They are applied in the following sequence. 1. The character is not matched to the one from **only** string and thus must go as-is to the output. 2. The character is matched to the printable and ASCII classes, if asked, and in case of match it passes through to the output. 3. The character is matched to the printable or ASCII class, if asked, and in case of match it passes through to the output. 4. The character is checked if it falls into the class given by **flags**. ``ESCAPE_OCTAL`` and ``ESCAPE_HEX`` are going last since they cover any character. Note that they actually can't go together, otherwise ``ESCAPE_HEX`` will be ignored. Caller must provide valid source and destination pointers. Be aware that destination buffer will not be NULL-terminated, thus caller have to append it if needs. The supported flags are:: %ESCAPE_SPACE: (special white space, not space itself) '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab %ESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape %ESCAPE_NULL: '\0' - null %ESCAPE_OCTAL: '\NNN' - byte with octal value NNN (3 digits) %ESCAPE_ANY: all previous together %ESCAPE_NP: escape only non-printable characters, checked by isprint() %ESCAPE_ANY_NP: all previous together %ESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (2 digits) %ESCAPE_NA: escape only non-ascii characters, checked by isascii() %ESCAPE_NAP: escape only non-printable or non-ascii characters %ESCAPE_APPEND: append characters from @only to be escaped by the given classes ``ESCAPE_APPEND`` would help to pass additional characters to the escaped, when one of ``ESCAPE_NP``, ``ESCAPE_NA``, or ``ESCAPE_NAP`` is provided. One notable caveat, the ``ESCAPE_NAP``, ``ESCAPE_NP`` and ``ESCAPE_NA`` have the higher priority than the rest of the flags (``ESCAPE_NAP`` is the highest). It doesn't make much sense to use either of them without ``ESCAPE_OCTAL`` or ``ESCAPE_HEX``, because they cover most of the other character classes. ``ESCAPE_NAP`` can utilize ``ESCAPE_SPACE`` or ``ESCAPE_SPECIAL`` in addition to the above. **Return** The total size of the escaped output that would be generated for the given input and flags. To check whether the output was truncated, compare the return value to osz. There is room left in dst for a '\0' terminator if and only if ret < osz.h](h)}(h**Parameters**h]j)}(hj7Kh]h Parameters}(hj9KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Kubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj1Kubj )}(hhh](j)}(h.``const char *src`` source buffer (unescaped) h](j)}(h``const char *src``h]j)}(hjVKh]hconst char *src}(hjXKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjPKubj2)}(hhh]h)}(hsource buffer (unescaped)h]hsource buffer (unescaped)}(hjoKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkKhMhjlKubah}(h]h ]h"]h$]h&]uh1j1hjPKubeh}(h]h ]h"]h$]h&]uh1jhjkKhMhjMKubj)}(h"``size_t isz`` source buffer size h](j)}(h``size_t isz``h]j)}(hjKh]h size_t isz}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjKubj2)}(hhh]h)}(hsource buffer sizeh]hsource buffer size}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjMKubj)}(h+``char *dst`` destination buffer (escaped) h](j)}(h ``char *dst``h]j)}(hjKh]h char *dst}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjKubj2)}(hhh]h)}(hdestination buffer (escaped)h]hdestination buffer (escaped)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjKubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjMKubj)}(h'``size_t osz`` destination buffer size h](j)}(h``size_t osz``h]j)}(hjLh]h size_t osz}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjKubj2)}(hhh]h)}(hdestination buffer sizeh]hdestination buffer size}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjMKubj)}(h0``unsigned int flags`` combination of the flags h](j)}(h``unsigned int flags``h]j)}(hj:Lh]hunsigned int flags}(hjMubah}(h]h ]h"]h$]h&]uh1jhjMubj)}(hyThe character is matched to the printable or ASCII class, if asked, and in case of match it passes through to the output.h]h)}(hyThe character is matched to the printable or ASCII class, if asked, and in case of match it passes through to the output.h]hyThe character is matched to the printable or ASCII class, if asked, and in case of match it passes through to the output.}(hj[MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjWMubah}(h]h ]h"]h$]h&]uh1jhjMubj)}(hThe character is checked if it falls into the class given by **flags**. ``ESCAPE_OCTAL`` and ``ESCAPE_HEX`` are going last since they cover any character. Note that they actually can't go together, otherwise ``ESCAPE_HEX`` will be ignored. h]h)}(hThe character is checked if it falls into the class given by **flags**. ``ESCAPE_OCTAL`` and ``ESCAPE_HEX`` are going last since they cover any character. Note that they actually can't go together, otherwise ``ESCAPE_HEX`` will be ignored.h](h=The character is checked if it falls into the class given by }(hjtMhhhNhNubj)}(h **flags**h]hflags}(hj|MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtMubh. }(hjtMhhhNhNubj)}(h``ESCAPE_OCTAL``h]h ESCAPE_OCTAL}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtMubh and }(hjtMhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtMubhg are going last since they cover any character. Note that they actually can’t go together, otherwise }(hjtMhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtMubh will be ignored.}(hjtMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM hjpMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jMhj Mubah}(h]h ]h"]h$]h&]uh1jhj7MhMhj1Kubh)}(hCaller must provide valid source and destination pointers. Be aware that destination buffer will not be NULL-terminated, thus caller have to append it if needs. The supported flags are::h]hCaller must provide valid source and destination pointers. Be aware that destination buffer will not be NULL-terminated, thus caller have to append it if needs. The supported flags are:}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj1KubjH)}(hXx%ESCAPE_SPACE: (special white space, not space itself) '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab %ESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape %ESCAPE_NULL: '\0' - null %ESCAPE_OCTAL: '\NNN' - byte with octal value NNN (3 digits) %ESCAPE_ANY: all previous together %ESCAPE_NP: escape only non-printable characters, checked by isprint() %ESCAPE_ANY_NP: all previous together %ESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (2 digits) %ESCAPE_NA: escape only non-ascii characters, checked by isascii() %ESCAPE_NAP: escape only non-printable or non-ascii characters %ESCAPE_APPEND: append characters from @only to be escaped by the given classesh]hXx%ESCAPE_SPACE: (special white space, not space itself) '\f' - form feed '\n' - new line '\r' - carriage return '\t' - horizontal tab '\v' - vertical tab %ESCAPE_SPECIAL: '\"' - double quote '\\' - backslash '\a' - alert (BEL) '\e' - escape %ESCAPE_NULL: '\0' - null %ESCAPE_OCTAL: '\NNN' - byte with octal value NNN (3 digits) %ESCAPE_ANY: all previous together %ESCAPE_NP: escape only non-printable characters, checked by isprint() %ESCAPE_ANY_NP: all previous together %ESCAPE_HEX: '\xHH' - byte with hexadecimal value HH (2 digits) %ESCAPE_NA: escape only non-ascii characters, checked by isascii() %ESCAPE_NAP: escape only non-printable or non-ascii characters %ESCAPE_APPEND: append characters from @only to be escaped by the given classes}hjMsbah}(h]h ]h"]h$]h&]jjuh1jHhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj1Kubh)}(h``ESCAPE_APPEND`` would help to pass additional characters to the escaped, when one of ``ESCAPE_NP``, ``ESCAPE_NA``, or ``ESCAPE_NAP`` is provided.h](j)}(h``ESCAPE_APPEND``h]h ESCAPE_APPEND}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubhF would help to pass additional characters to the escaped, when one of }(hjNhhhNhNubj)}(h ``ESCAPE_NP``h]h ESCAPE_NP}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh, }(hjNhhhNhNubj)}(h ``ESCAPE_NA``h]h ESCAPE_NA}(hj(NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh, or }(hjNhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hj:NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubh is provided.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM1hj1Kubh)}(hXOne notable caveat, the ``ESCAPE_NAP``, ``ESCAPE_NP`` and ``ESCAPE_NA`` have the higher priority than the rest of the flags (``ESCAPE_NAP`` is the highest). It doesn't make much sense to use either of them without ``ESCAPE_OCTAL`` or ``ESCAPE_HEX``, because they cover most of the other character classes. ``ESCAPE_NAP`` can utilize ``ESCAPE_SPACE`` or ``ESCAPE_SPECIAL`` in addition to the above.h](hOne notable caveat, the }(hjSNhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hj[NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSNubh, }(hjSNhhhNhNubj)}(h ``ESCAPE_NP``h]h ESCAPE_NP}(hjmNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSNubh and }(hjSNhhhNhNubj)}(h ``ESCAPE_NA``h]h ESCAPE_NA}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSNubh6 have the higher priority than the rest of the flags (}(hjSNhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSNubhM is the highest). It doesn’t make much sense to use either of them without }(hjSNhhhNhNubj)}(h``ESCAPE_OCTAL``h]h ESCAPE_OCTAL}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSNubh or }(hjSNhhhNhNubj)}(h``ESCAPE_HEX``h]h ESCAPE_HEX}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSNubh:, because they cover most of the other character classes. }(hjSNhhhNhNubj)}(h``ESCAPE_NAP``h]h ESCAPE_NAP}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSNubh can utilize }(hjSNhhhNhNubj)}(h``ESCAPE_SPACE``h]h ESCAPE_SPACE}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSNubh or }(hjSNhhhNhNubj)}(h``ESCAPE_SPECIAL``h]hESCAPE_SPECIAL}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSNubh in addition to the above.}(hjSNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM4hj1Kubh)}(h **Return**h]j)}(hjOh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM;hj1Kubh)}(hThe total size of the escaped output that would be generated for the given input and flags. To check whether the output was truncated, compare the return value to osz. There is room left in dst for a '\0' terminator if and only if ret < osz.h]hThe total size of the escaped output that would be generated for the given input and flags. To check whether the output was truncated, compare the return value to osz. There is room left in dst for a ‘0’ terminator if and only if ret < osz.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM<hj1Kubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kasprintf_strarray (C function)c.kasprintf_strarrayhNtauh1hhhhhhNhNubj)}(hhh](j)}(hDchar ** kasprintf_strarray (gfp_t gfp, const char *prefix, size_t n)h]j)}(hBchar **kasprintf_strarray(gfp_t gfp, const char *prefix, size_t n)h](j )}(hcharh]hchar}(hjKOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjZOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGOhhhjYOhMubj)}(hjh]h*}(hjhOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGOhhhjYOhMubj)}(hjh]h*}(hjuOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGOhhhjYOhMubj{)}(hkasprintf_strarrayh]j)}(hkasprintf_strarrayh]hkasprintf_strarray}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGOhhhjYOhMubj)}(h)(gfp_t gfp, const char *prefix, size_t n)h](j)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jf )}jY jOsbc.kasprintf_strarrayasbuh1hhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hgfph]hgfp}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hconst char *prefixh](j)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj )}(hcharh]hchar}(hjPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hj#PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hprefixh]hprefix}(hj0PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjLPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIPubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjNPmodnameN classnameNj] j` )}jc ]jOc.kasprintf_strarrayasbuh1hhjEPubj2)}(h h]h }(hjjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEPubj)}(hjh]hn}(hjxPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjGOhhhjYOhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjCOhhhjYOhMubah}(h]j>Oah ](jjeh"]h$]h&]jj)jhuh1jhjYOhMhj@Ohhubj)}(hhh]h)}(h-allocate and fill array of sequential stringsh]h-allocate and fill array of sequential strings}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhj@OhhhjYOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``gfp_t gfp`` flags for the slab allocator ``const char *prefix`` prefix to be used ``size_t n`` number of strings to be allocated and filled **Description** Allocates and fills **n** strings using pattern "``s-````zu``", where prefix is provided by caller. The caller is responsible to free them with kfree_strarray() after use. Returns array of strings or NULL when memory can't be allocated.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjPubj )}(hhh](j)}(h+``gfp_t gfp`` flags for the slab allocator h](j)}(h ``gfp_t gfp``h]j)}(hjPh]h gfp_t gfp}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjPubj2)}(hhh]h)}(hflags for the slab allocatorh]hflags for the slab allocator}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubj)}(h)``const char *prefix`` prefix to be used h](j)}(h``const char *prefix``h]j)}(hjQh]hconst char *prefix}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjQubj2)}(hhh]h)}(hprefix to be usedh]hprefix to be used}(hj4QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0QhMhj1Qubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhj0QhMhjPubj)}(h:``size_t n`` number of strings to be allocated and filled h](j)}(h ``size_t n``h]j)}(hjTQh]hsize_t n}(hjVQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjNQubj2)}(hhh]h)}(h,number of strings to be allocated and filledh]h,number of strings to be allocated and filled}(hjmQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiQhMhjjQubah}(h]h ]h"]h$]h&]uh1j1hjNQubeh}(h]h ]h"]h$]h&]uh1jhjiQhMhjPubeh}(h]h ]h"]h$]h&]uh1j hjPubh)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjPubh)}(hAllocates and fills **n** strings using pattern "``s-````zu``", where prefix is provided by caller. The caller is responsible to free them with kfree_strarray() after use.h](hAllocates and fills }(hjQhhhNhNubj)}(h**n**h]hn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubh strings using pattern “}(hjQhhhNhNubj)}(h ``s-````zu``h]hs-````zu}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubhp”, where prefix is provided by caller. The caller is responsible to free them with kfree_strarray() after use.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjPubh)}(h@Returns array of strings or NULL when memory can't be allocated.h]hBReturns array of strings or NULL when memory can’t be allocated.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfree_strarray (C function)c.kfree_strarrayhNtauh1hhhhhhNhNubj)}(hhh](j)}(h,void kfree_strarray (char **array, size_t n)h]j)}(h+void kfree_strarray(char **array, size_t n)h](j )}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRhhhjRhMubj{)}(hkfree_strarrayh]j)}(hkfree_strarrayh]hkfree_strarray}(hj(RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Rubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhjRhMubj)}(h(char **array, size_t n)h](j)}(h char **arrayh](j )}(hcharh]hchar}(hjDRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@Rubj2)}(h h]h }(hjRRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@Rubj)}(hjh]h*}(hj`RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Rubj)}(hjh]h*}(hjmRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Rubj)}(harrayh]harray}(hjzRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Rubeh}(h]1h ]h"]h$]h&]noemphjjuh1jhjah"]h$]h&]uh1j1hjRubj)}(hjh]hn}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+Thhhj=ThMIubj)}(hjh]h*}(hjLThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Thhhj=ThMIubj{)}(h skip_spacesh]j)}(h skip_spacesh]h skip_spaces}(hj]ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+Thhhj=ThMIubj)}(h(const char *str)h]j)}(hconst char *strh](j)}(hjh]hconst}(hjyThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuTubj )}(hcharh]hchar}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjuTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuTubj)}(hstrh]hstr}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqTubah}(h]h ]h"]h$]h&]jjuh1jhj+Thhhj=ThMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'Thhhj=ThMIubah}(h]j"Tah ](jjeh"]h$]h&]jj)jhuh1jhj=ThMIhj$Thhubj)}(hhh]h)}(h(Removes leading whitespace from **str**.h](h Removes leading whitespace from }(hjThhhNhNubj)}(h**str**h]hstr}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMIhjThhubah}(h]h ]h"]h$]h&]uh1jhj$Thhhj=ThMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhhhNhNubj)}(h**Parameters** ``const char *str`` The string to be stripped. **Description** Returns a pointer to the first non-whitespace character in **str**.h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMMhjUubj )}(hhh]j)}(h/``const char *str`` The string to be stripped. h](j)}(h``const char *str``h]j)}(hj:Uh]hconst char *str}(hjah"]h$]h&]uh1j1hjUhhhjUhMWubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhjUhMWubj{)}(hstrimh]j)}(hstrimh]hstrim}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUhhhjUhMWubj)}(h (char *s)h]j)}(hchar *sh](j )}(hcharh]hchar}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubj2)}(h h]h }(hj$VhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]h*}(hj2VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hjY)h]hs}(hj?VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubah}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjUhMWubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jhjUhMWhjUhhubj)}(hhh]h)}(h3Removes leading and trailing whitespace from **s**.h](h-Removes leading and trailing whitespace from }(hjhVhhhNhNubj)}(h**s**h]hs}(hjpVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhVubh.}(hjhVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMWhjeVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1jhhhhhNhNubj)}(h**Parameters** ``char *s`` The string to be stripped. **Description** Note that the first trailing whitespace is replaced with a ``NUL-terminator`` in the given string **s**. Returns a pointer to the first non-whitespace character in **s**.h](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chM[hjVubj )}(hhh]j)}(h'``char *s`` The string to be stripped. h](j)}(h ``char *s``h]j)}(hjVh]hchar *s}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMXhjVubj2)}(hhh]h)}(hThe string to be stripped.h]hThe string to be stripped.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMXhjVubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMXhjVubah}(h]h ]h"]h$]h&]uh1j hjVubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMZhjVubh)}(hNote that the first trailing whitespace is replaced with a ``NUL-terminator`` in the given string **s**. Returns a pointer to the first non-whitespace character in **s**.h](h;Note that the first trailing whitespace is replaced with a }(hj WhhhNhNubj)}(h``NUL-terminator``h]hNUL-terminator}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Wubh in the given string }(hj WhhhNhNubj)}(h**s**h]hs}(hj&WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Wubh=. Returns a pointer to the first non-whitespace character in }(hj WhhhNhNubj)}(h**s**h]hs}(hj8WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Wubh.}(hj WhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMYhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sysfs_streq (C function) c.sysfs_streqhNtauh1hhhhhhNhNubj)}(hhh](j)}(h1bool sysfs_streq (const char *s1, const char *s2)h]j)}(h0bool sysfs_streq(const char *s1, const char *s2)h](j )}(hj8h]hbool}(hjqWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmWhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMqubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmWhhhj~WhMqubj{)}(h sysfs_streqh]j)}(h sysfs_streqh]h sysfs_streq}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjmWhhhj~WhMqubj)}(h (const char *s1, const char *s2)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj )}(hcharh]hchar}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hs1h]hs1}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hconst char *s2h](j)}(hjh]hconst}(hj XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj )}(hcharh]hchar}(hj%XhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXubj2)}(h h]h }(hj3XhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hjh]h*}(hjAXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hs2h]hs2}(hjNXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjmWhhhj~WhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjiWhhhj~WhMqubah}(h]jdWah ](jjeh"]h$]h&]jj)jhuh1jhj~WhMqhjfWhhubj)}(hhh]h)}(h9return true if strings are equal, modulo trailing newlineh]h9return true if strings are equal, modulo trailing newline}(hjxXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMqhjuXhhubah}(h]h ]h"]h$]h&]uh1jhjfWhhhj~WhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jhhhhhNhNubj)}(hXn**Parameters** ``const char *s1`` one string ``const char *s2`` another string **Description** This routine returns true iff two strings are equal, treating both NUL and newline-then-NUL as equivalent string terminations. It's geared for use with sysfs input strings, which generally terminate with newlines but are compared against values without newlines.h](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMuhjXubj )}(hhh](j)}(h``const char *s1`` one string h](j)}(h``const char *s1``h]j)}(hjXh]hconst char *s1}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMrhjXubj2)}(hhh]h)}(h one stringh]h one string}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMrhjXubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMrhjXubj)}(h"``const char *s2`` another string h](j)}(h``const char *s2``h]j)}(hjXh]hconst char *s2}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMshjXubj2)}(hhh]h)}(hanother stringh]hanother string}(hj YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMshjYubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjYhMshjXubeh}(h]h ]h"]h$]h&]uh1j hjXubh)}(h**Description**h]j)}(hj-Yh]h Description}(hj/YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Yubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMuhjXubh)}(hXThis routine returns true iff two strings are equal, treating both NUL and newline-then-NUL as equivalent string terminations. It's geared for use with sysfs input strings, which generally terminate with newlines but are compared against values without newlines.h]hX This routine returns true iff two strings are equal, treating both NUL and newline-then-NUL as equivalent string terminations. It’s geared for use with sysfs input strings, which generally terminate with newlines but are compared against values without newlines.}(hjCYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMthjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j match_string (C function)c.match_stringhNtauh1hhhhhhNhNubj)}(hhh](j)}(hJint match_string (const char * const *array, size_t n, const char *string)h]j)}(hHint match_string(const char *const *array, size_t n, const char *string)h](j )}(hinth]hint}(hjrYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnYhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnYhhhjYhMubj{)}(h match_stringh]j)}(h match_stringh]h match_string}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjnYhhhjYhMubj)}(h8(const char *const *array, size_t n, const char *string)h](j)}(hconst char *const *arrayh](j)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj )}(hcharh]hchar}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(harrayh]harray}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hj7ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Zubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9ZmodnameN classnameNj] j` )}jc ]jf )}jY jYsbc.match_stringasbuh1hhj0Zubj2)}(h h]h }(hjWZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0Zubj)}(hjh]hn}(hjeZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hconst char *stringh](j)}(hjh]hconst}(hj}ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyZubj )}(hcharh]hchar}(hjZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyZubj)}(hstringh]hstring}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhjnYhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjYhhhjYhMubah}(h]jeYah ](jjeh"]h$]h&]jj)jhuh1jhjYhMhjgYhhubj)}(hhh]h)}(h matches given string in an arrayh]h matches given string in an array}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjgYhhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``const char * const *array`` array of strings ``size_t n`` number of strings in the array or -1 for NULL terminated arrays ``const char *string`` string to match with **Description** This routine will look for a string in an array of strings up to the n-th element in the array or until the first NULL element. Historically the value of -1 for **n**, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either **n** elements have been compared OR the first NULL element was found. **Return** index of a **string** in the **array** if matches, or ``-EINVAL`` otherwise.h](h)}(h**Parameters**h]j)}(hj [h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj [ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj[ubj )}(hhh](j)}(h/``const char * const *array`` array of strings h](j)}(h``const char * const *array``h]j)}(hj,[h]hconst char * const *array}(hj.[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj&[ubj2)}(hhh]h)}(harray of stringsh]harray of strings}(hjE[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA[hMhjB[ubah}(h]h ]h"]h$]h&]uh1j1hj&[ubeh}(h]h ]h"]h$]h&]uh1jhjA[hMhj#[ubj)}(hM``size_t n`` number of strings in the array or -1 for NULL terminated arrays h](j)}(h ``size_t n``h]j)}(hje[h]hsize_t n}(hjg[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj_[ubj2)}(hhh]h)}(h?number of strings in the array or -1 for NULL terminated arraysh]h?number of strings in the array or -1 for NULL terminated arrays}(hj~[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz[hMhj{[ubah}(h]h ]h"]h$]h&]uh1j1hj_[ubeh}(h]h ]h"]h$]h&]uh1jhjz[hMhj#[ubj)}(h,``const char *string`` string to match with h](j)}(h``const char *string``h]j)}(hj[h]hconst char *string}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj[ubj2)}(hhh]h)}(hstring to match withh]hstring to match with}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj#[ubeh}(h]h ]h"]h$]h&]uh1j hj[ubh)}(h**Description**h]j)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj[ubh)}(hThis routine will look for a string in an array of strings up to the n-th element in the array or until the first NULL element.h]hThis routine will look for a string in an array of strings up to the n-th element in the array or until the first NULL element.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj[ubh)}(hHistorically the value of -1 for **n**, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either **n** elements have been compared OR the first NULL element was found.h](h!Historically the value of -1 for }(hj[hhhNhNubj)}(h**n**h]hn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either }(hj[hhhNhNubj)}(h**n**h]hn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubhA elements have been compared OR the first NULL element was found.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj[ubh)}(h **Return**h]j)}(hj3\h]hReturn}(hj5\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1\ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj[ubh)}(hLindex of a **string** in the **array** if matches, or ``-EINVAL`` otherwise.h](h index of a }(hjI\hhhNhNubj)}(h **string**h]hstring}(hjQ\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI\ubh in the }(hjI\hhhNhNubj)}(h **array**h]harray}(hjc\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI\ubh if matches, or }(hjI\hhhNhNubj)}(h ``-EINVAL``h]h-EINVAL}(hju\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI\ubh otherwise.}(hjI\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !__sysfs_match_string (C function)c.__sysfs_match_stringhNtauh1hhhhhhNhNubj)}(hhh](j)}(hOint __sysfs_match_string (const char * const *array, size_t n, const char *str)h]j)}(hMint __sysfs_match_string(const char *const *array, size_t n, const char *str)h](j )}(hinth]hint}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\hhhj\hMubj{)}(h__sysfs_match_stringh]j)}(h__sysfs_match_stringh]h__sysfs_match_string}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\hhhj\hMubj)}(h5(const char *const *array, size_t n, const char *str)h](j)}(hconst char *const *arrayh](j)}(hjh]hconst}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj )}(hcharh]hchar}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hj"]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hjh]hconst}(hj/]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hj<]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hjJ]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(harrayh]harray}(hjW]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjs]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetju]modnameN classnameNj] j` )}jc ]jf )}jY j\sbc.__sysfs_match_stringasbuh1hhjl]ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl]ubj)}(hjh]hn}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hconst char *strh](j)}(hjh]hconst}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj )}(hcharh]hchar}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hstrh]hstr}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhj\hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\hhhj\hMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jhj\hMhj\hhubj)}(hhh]h)}(h matches given string in an arrayh]h matches given string in an array}(hj'^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj$^hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?^jj?^jjjuh1jhhhhhNhNubj)}(hX**Parameters** ``const char * const *array`` array of strings ``size_t n`` number of strings in the array or -1 for NULL terminated arrays ``const char *str`` string to match with **Description** Returns index of **str** in the **array** or -EINVAL, just like match_string(). Uses sysfs_streq instead of strcmp for matching. This routine will look for a string in an array of strings up to the n-th element in the array or until the first NULL element. Historically the value of -1 for **n**, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either **n** elements have been compared OR the first NULL element was found.h](h)}(h**Parameters**h]j)}(hjI^h]h Parameters}(hjK^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjC^ubj )}(hhh](j)}(h/``const char * const *array`` array of strings h](j)}(h``const char * const *array``h]j)}(hjh^h]hconst char * const *array}(hjj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjb^ubj2)}(hhh]h)}(harray of stringsh]harray of strings}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}^hMhj~^ubah}(h]h ]h"]h$]h&]uh1j1hjb^ubeh}(h]h ]h"]h$]h&]uh1jhj}^hMhj_^ubj)}(hM``size_t n`` number of strings in the array or -1 for NULL terminated arrays h](j)}(h ``size_t n``h]j)}(hj^h]hsize_t n}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj^ubj2)}(hhh]h)}(h?number of strings in the array or -1 for NULL terminated arraysh]h?number of strings in the array or -1 for NULL terminated arrays}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj_^ubj)}(h)``const char *str`` string to match with h](j)}(h``const char *str``h]j)}(hj^h]hconst char *str}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj^ubj2)}(hhh]h)}(hstring to match withh]hstring to match with}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj^ubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj_^ubeh}(h]h ]h"]h$]h&]uh1j hjC^ubh)}(h**Description**h]j)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjC^ubh)}(hReturns index of **str** in the **array** or -EINVAL, just like match_string(). Uses sysfs_streq instead of strcmp for matching.h](hReturns index of }(hj+_hhhNhNubj)}(h**str**h]hstr}(hj3_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+_ubh in the }(hj+_hhhNhNubj)}(h **array**h]harray}(hjE_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+_ubhW or -EINVAL, just like match_string(). Uses sysfs_streq instead of strcmp for matching.}(hj+_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjC^ubh)}(hThis routine will look for a string in an array of strings up to the n-th element in the array or until the first NULL element.h]hThis routine will look for a string in an array of strings up to the n-th element in the array or until the first NULL element.}(hj^_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjC^ubh)}(hHistorically the value of -1 for **n**, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either **n** elements have been compared OR the first NULL element was found.h](h!Historically the value of -1 for }(hjm_hhhNhNubj)}(h**n**h]hn}(hju_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm_ubh, was used to search in arrays that are NULL terminated. However, the function does not make a distinction when finishing the search: either }(hjm_hhhNhNubj)}(h**n**h]hn}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm_ubhA elements have been compared OR the first NULL element was found.}(hjm_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjC^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strreplace (C function) c.strreplacehNtauh1hhhhhhNhNubj)}(hhh](j)}(h1char * strreplace (char *str, char old, char new)h]j)}(h/char *strreplace(char *str, char old, char new)h](j )}(hcharh]hchar}(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj_hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_hhhj_hMubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhj_hMubj{)}(h strreplaceh]j)}(h strreplaceh]h strreplace}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj_hhhj_hMubj)}(h(char *str, char old, char new)h](j)}(h char *strh](j )}(hcharh]hchar}(hj `hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(hjh]h*}(hj&`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hstrh]hstr}(hj3`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hchar oldh](j )}(hcharh]hchar}(hjL`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjH`ubj2)}(h h]h }(hjZ`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH`ubj)}(holdh]hold}(hjh`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hchar newh](j )}(hcharh]hchar}(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}`ubj)}(hnewh]hnew}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1jhj_hhhj_hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhj_hMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1jhj_hMhj_hhubj)}(hhh]h)}(h/Replace all occurrences of character in string.h]h/Replace all occurrences of character in string.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj`hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1jhhhhhNhNubj)}(hX8**Parameters** ``char *str`` The string to operate on. ``char old`` The character being replaced. ``char new`` The character **old** is replaced with. **Description** Replaces the each **old** character with a **new** one in the given string **str**. **Return** pointer to the string **str** itself.h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj`ubj )}(hhh](j)}(h(``char *str`` The string to operate on. h](j)}(h ``char *str``h]j)}(hjah]h char *str}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjaubj2)}(hhh]h)}(hThe string to operate on.h]hThe string to operate on.}(hj!ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhj`ubj)}(h+``char old`` The character being replaced. h](j)}(h ``char old``h]j)}(hjAah]hchar old}(hjCahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?aubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj;aubj2)}(hhh]h)}(hThe character being replaced.h]hThe character being replaced.}(hjZahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVahMhjWaubah}(h]h ]h"]h$]h&]uh1j1hj;aubeh}(h]h ]h"]h$]h&]uh1jhjVahMhj`ubj)}(h5``char new`` The character **old** is replaced with. h](j)}(h ``char new``h]j)}(hjzah]hchar new}(hj|ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjtaubj2)}(hhh]h)}(h'The character **old** is replaced with.h](hThe character }(hjahhhNhNubj)}(h**old**h]hold}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh is replaced with.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1j1hjtaubeh}(h]h ]h"]h$]h&]uh1jhjahMhj`ubeh}(h]h ]h"]h$]h&]uh1j hj`ubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj`ubh)}(hSReplaces the each **old** character with a **new** one in the given string **str**.h](hReplaces the each }(hjahhhNhNubj)}(h**old**h]hold}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh character with a }(hjahhhNhNubj)}(h**new**h]hnew}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh one in the given string }(hjahhhNhNubj)}(h**str**h]hstr}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj`ubh)}(h **Return**h]j)}(hj$bh]hReturn}(hj&bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"bubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj`ubh)}(h%pointer to the string **str** itself.h](hpointer to the string }(hj:bhhhNhNubj)}(h**str**h]hstr}(hjBbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:bubh itself.}(hj:bhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memcpy_and_pad (C function)c.memcpy_and_padhNtauh1hhhhhhNhNubj)}(hhh](j)}(hYvoid memcpy_and_pad (void *dest, size_t dest_len, const void *src, size_t count, int pad)h]j)}(hXvoid memcpy_and_pad(void *dest, size_t dest_len, const void *src, size_t count, int pad)h](j )}(hvoidh]hvoid}(hj{bhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwbhhhjbhMubj{)}(hmemcpy_and_padh]j)}(hmemcpy_and_padh]hmemcpy_and_pad}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwbhhhjbhMubj)}(hE(void *dest, size_t dest_len, const void *src, size_t count, int pad)h](j)}(h void *desth](j )}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hdesth]hdest}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hsize_t dest_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jf )}jY jbsbc.memcpy_and_padasbuh1hhjbubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hdest_lenh]hdest_len}(hj+chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hconst void *srch](j)}(hjh]hconst}(hjDchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@cubj2)}(h h]h }(hjQchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@cubj )}(hvoidh]hvoid}(hj_chhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@cubj2)}(h h]h }(hjmchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@cubj)}(hjh]h*}(hj{chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@cubj)}(hsrch]hsrc}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjcmodnameN classnameNj] j` )}jc ]jcc.memcpy_and_padasbuh1hhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hcounth]hcount}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hint padh](j )}(hinth]hint}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hpadh]hpad}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhjwbhhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjsbhhhjbhMubah}(h]jnbah ](jjeh"]h$]h&]jj)jhuh1jhjbhMhjpbhhubj)}(hhh]h)}(h'Copy one buffer to another with paddingh]h'Copy one buffer to another with padding}(hj/dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhj,dhhubah}(h]h ]h"]h$]h&]uh1jhjpbhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGdjjGdjjjuh1jhhhhhNhNubj)}(hX **Parameters** ``void *dest`` Where to copy to ``size_t dest_len`` The destination buffer size ``const void *src`` Where to copy from ``size_t count`` The number of bytes to copy ``int pad`` Character to use for padding if space is left in destination.h](h)}(h**Parameters**h]j)}(hjQdh]h Parameters}(hjSdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjKdubj )}(hhh](j)}(h ``void *dest`` Where to copy to h](j)}(h``void *dest``h]j)}(hjpdh]h void *dest}(hjrdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjndubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjjdubj2)}(hhh]h)}(hWhere to copy toh]hWhere to copy to}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1j1hjjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjgdubj)}(h0``size_t dest_len`` The destination buffer size h](j)}(h``size_t dest_len``h]j)}(hjdh]hsize_t dest_len}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjdubj2)}(hhh]h)}(hThe destination buffer sizeh]hThe destination buffer size}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjgdubj)}(h'``const void *src`` Where to copy from h](j)}(h``const void *src``h]j)}(hjdh]hconst void *src}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjdubj2)}(hhh]h)}(hWhere to copy fromh]hWhere to copy from}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjgdubj)}(h-``size_t count`` The number of bytes to copy h](j)}(h``size_t count``h]j)}(hjeh]h size_t count}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjeubj2)}(hhh]h)}(hThe number of bytes to copyh]hThe number of bytes to copy}(hj4ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ehMhj1eubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhj0ehMhjgdubj)}(hI``int pad`` Character to use for padding if space is left in destination.h](j)}(h ``int pad``h]j)}(hjTeh]hint pad}(hjVehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjReubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjNeubj2)}(hhh]h)}(h=Character to use for padding if space is left in destination.h]h=Character to use for padding if space is left in destination.}(hjmehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:27: ./lib/string_helpers.chMhjjeubah}(h]h ]h"]h$]h&]uh1j1hjNeubeh}(h]h ]h"]h$]h&]uh1jhjiehMhjgdubeh}(h]h ]h"]h$]h&]uh1j hjKdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubeh}(h]string-conversionsah ]h"]string conversionsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hString Manipulationh]hString Manipulation}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j unsafe_memcpy (C macro)c.unsafe_memcpyhNtauh1hhjehhhNhNubj)}(hhh](j)}(h unsafe_memcpyh]j)}(h unsafe_memcpyh]j{)}(h unsafe_memcpyh]j)}(hjeh]h unsafe_memcpy}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhK|ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjehK|ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1jhjehK|hjehhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjehhhjehK|ubeh}(h]h ](jmacroeh"]h$]h&]jjjjejjejjjuh1jhhhjehNhNubh)}(h2``unsafe_memcpy (dst, src, bytes, justification)``h]j)}(hjeh]h.unsafe_memcpy (dst, src, bytes, justification)}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhK~hjehhubj)}(h6memcpy implementation with no FORTIFY bounds checking h]h)}(h5memcpy implementation with no FORTIFY bounds checkingh]h5memcpy implementation with no FORTIFY bounds checking}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhK|hjfubah}(h]h ]h"]h$]h&]uh1jhj%fhK|hjehhubj)}(hX,**Parameters** ``dst`` Destination memory address to write to ``src`` Source memory address to read from ``bytes`` How many bytes to write to **dst** from **src** ``justification`` Free-form text or comment describing why the use is needed **Description** This should be used for corner cases where the compiler cannot do the right thing, or during transitions between APIs, etc. It should be used very rarely, and includes a place for justification detailing where bounds checking has happened, and why existing solutions cannot be employed.h](h)}(h**Parameters**h]j)}(hj2fh]h Parameters}(hj4fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0fubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj,fubj )}(hhh](j)}(h/``dst`` Destination memory address to write to h](j)}(h``dst``h]j)}(hjQfh]hdst}(hjSfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOfubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhK~hjKfubj2)}(hhh]h)}(h&Destination memory address to write toh]h&Destination memory address to write to}(hjjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjffhK~hjgfubah}(h]h ]h"]h$]h&]uh1j1hjKfubeh}(h]h ]h"]h$]h&]uh1jhjffhK~hjHfubj)}(h+``src`` Source memory address to read from h](j)}(h``src``h]j)}(hjfh]hsrc}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjfubj2)}(hhh]h)}(h"Source memory address to read fromh]h"Source memory address to read from}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjHfubj)}(h:``bytes`` How many bytes to write to **dst** from **src** h](j)}(h ``bytes``h]j)}(hjfh]hbytes}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjfubj2)}(hhh]h)}(h/How many bytes to write to **dst** from **src**h](hHow many bytes to write to }(hjfhhhNhNubj)}(h**dst**h]hdst}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh from }(hjfhhhNhNubj)}(h**src**h]hsrc}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1hhjfhKhjfubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjHfubj)}(hM``justification`` Free-form text or comment describing why the use is needed h](j)}(h``justification``h]j)}(hjgh]h justification}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjgubj2)}(hhh]h)}(h:Free-form text or comment describing why the use is neededh]h:Free-form text or comment describing why the use is needed}(hj5ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ghKhj2gubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhj1ghKhjHfubeh}(h]h ]h"]h$]h&]uh1j hj,fubh)}(h**Description**h]j)}(hjWgh]h Description}(hjYghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUgubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj,fubh)}(hXThis should be used for corner cases where the compiler cannot do the right thing, or during transitions between APIs, etc. It should be used very rarely, and includes a place for justification detailing where bounds checking has happened, and why existing solutions cannot be employed.h]hXThis should be used for corner cases where the compiler cannot do the right thing, or during transitions between APIs, etc. It should be used very rarely, and includes a place for justification detailing where bounds checking has happened, and why existing solutions cannot be employed.}(hjmghhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj,fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strnlen (C function) c.strnlenhNtauh1hhjehhhNhNubj)}(hhh](j)}(hF__kernel_size_t strnlen (const char * const p, __kernel_size_t maxlen)h]j)}(hD__kernel_size_t strnlen(const char *const p, __kernel_size_t maxlen)h](h)}(hhh]j)}(h__kernel_size_th]h__kernel_size_t}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgmodnameN classnameNj] j` )}jc ]jf )}jY strnlensb c.strnlenasbuh1hhjghhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjghhhjghKubj{)}(hstrnlenh]j)}(hjgh]hstrnlen}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjghhhjghKubj)}(h-(const char *const p, __kernel_size_t maxlen)h](j)}(hconst char *const ph](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj )}(hcharh]hchar}(hj hhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]h*}(hj%hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hjh]hconst}(hj2hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hj?hhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]hp}(hjMhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(h__kernel_size_t maxlenh](h)}(hhh]j)}(h__kernel_size_th]h__kernel_size_t}(hjhhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjhmodnameN classnameNj] j` )}jc ]jg c.strnlenasbuh1hhjahubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjahubj)}(hmaxlenh]hmaxlen}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhjghKubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1jhjghKhjghhubj)}(hhh]h)}(h=Return bounded count of characters in a NUL-terminated stringh]h=Return bounded count of characters in a NUL-terminated string}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjhhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1jhhhjehNhNubj)}(hX&**Parameters** ``const char * const p`` pointer to NUL-terminated string to count. ``__kernel_size_t maxlen`` maximum number of characters to count. **Description** Returns number of characters in **p** (NOT including the final NUL), or **maxlen**, if no NUL has been found up to there.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjhubj )}(hhh](j)}(hD``const char * const p`` pointer to NUL-terminated string to count. h](j)}(h``const char * const p``h]j)}(hjhh]hconst char * const p}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjhubj2)}(hhh]h)}(h*pointer to NUL-terminated string to count.h]h*pointer to NUL-terminated string to count.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjiubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjihKhjhubj)}(hB``__kernel_size_t maxlen`` maximum number of characters to count. h](j)}(h``__kernel_size_t maxlen``h]j)}(hj8ih]h__kernel_size_t maxlen}(hj:ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6iubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj2iubj2)}(hhh]h)}(h&maximum number of characters to count.h]h&maximum number of characters to count.}(hjQihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMihKhjNiubah}(h]h ]h"]h$]h&]uh1j1hj2iubeh}(h]h ]h"]h$]h&]uh1jhjMihKhjhubeh}(h]h ]h"]h$]h&]uh1j hjhubh)}(h**Description**h]j)}(hjsih]h Description}(hjuihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqiubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjhubh)}(hyReturns number of characters in **p** (NOT including the final NUL), or **maxlen**, if no NUL has been found up to there.h](h Returns number of characters in }(hjihhhNhNubj)}(h**p**h]hp}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh# (NOT including the final NUL), or }(hjihhhNhNubj)}(h **maxlen**h]hmaxlen}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubh', if no NUL has been found up to there.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strlen (C macro)c.strlenhNtauh1hhjehhhNhNubj)}(hhh](j)}(hstrlenh]j)}(hstrlenh]j{)}(hstrlenh]j)}(hjih]hstrlen}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjihhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjihKubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjihKhjihhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjihhhjihKubeh}(h]h ](jmacroeh"]h$]h&]jjjj jjj jjjjuh1jhhhjehNhNubh)}(h``strlen (p)``h]j)}(hjjh]h strlen (p)}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjehhubj)}(h6Return count of characters in a NUL-terminated string h]h)}(h5Return count of characters in a NUL-terminated stringh]h5Return count of characters in a NUL-terminated string}(hj,jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj(jubah}(h]h ]h"]h$]h&]uh1jhj:jhKhjehhubj)}(hXu**Parameters** ``p`` pointer to NUL-terminated string to count. **Description** Do not use this function unless the string length is known at compile-time. When **p** is unterminated, this function may crash or return unexpected counts that could lead to memory content exposures. Prefer strnlen(). Returns number of characters in **p** (NOT including the final NUL).h](h)}(h**Parameters**h]j)}(hjGjh]h Parameters}(hjIjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjAjubj )}(hhh]j)}(h1``p`` pointer to NUL-terminated string to count. h](j)}(h``p``h]j)}(hjfjh]hp}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhj`jubj2)}(hhh]h)}(h*pointer to NUL-terminated string to count.h]h*pointer to NUL-terminated string to count.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{jhKhj|jubah}(h]h ]h"]h$]h&]uh1j1hj`jubeh}(h]h ]h"]h$]h&]uh1jhj{jhKhj]jubah}(h]h ]h"]h$]h&]uh1j hjAjubh)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjAjubh)}(hDo not use this function unless the string length is known at compile-time. When **p** is unterminated, this function may crash or return unexpected counts that could lead to memory content exposures. Prefer strnlen().h](hQDo not use this function unless the string length is known at compile-time. When }(hjjhhhNhNubj)}(h**p**h]hp}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh is unterminated, this function may crash or return unexpected counts that could lead to memory content exposures. Prefer strnlen().}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjAjubh)}(hDReturns number of characters in **p** (NOT including the final NUL).h](h Returns number of characters in }(hjjhhhNhNubj)}(h**p**h]hp}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh (NOT including the final NUL).}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhKhjAjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strlcat (C function) c.strlcathNtauh1hhjehhhNhNubj)}(hhh](j)}(hCsize_t strlcat (char * const p, const char * const q, size_t avail)h]j)}(h@size_t strlcat(char *const p, const char *const q, size_t avail)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkmodnameN classnameNj] j` )}jc ]jf )}jY strlcatsb c.strlcatasbuh1hhjkhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMubj2)}(h h]h }(hj>khhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkhhhj=khMubj{)}(hstrlcath]j)}(hj:kh]hstrlcat}(hjPkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjkhhhj=khMubj)}(h2(char *const p, const char *const q, size_t avail)h](j)}(h char *const ph](j )}(hcharh]hchar}(hjkkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjgkubj2)}(h h]h }(hjykhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgkubj)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgkubj)}(hjh]hp}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjckubj)}(hconst char *const qh](j)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj )}(hcharh]hchar}(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hjh]hconst}(hj lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hqh]hq}(hj&lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjckubj)}(h size_t availh](h)}(hhh]j)}(hsize_th]hsize_t}(hjBlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?lubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDlmodnameN classnameNj] j` )}jc ]j8k c.strlcatasbuh1hhj;lubj2)}(h h]h }(hj`lhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;lubj)}(havailh]havail}(hjnlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjckubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhj=khMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhj=khMubah}(h]j kah ](jjeh"]h$]h&]jj)jhuh1jhj=khMhjkhhubj)}(hhh]h)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhj=khMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1jhhhjehNhNubj)}(hX **Parameters** ``char * const p`` pointer to ``NUL-terminated`` string to append to ``const char * const q`` pointer to ``NUL-terminated`` string to append from ``size_t avail`` Maximum bytes available in **p** **Description** Appends ``NUL-terminated`` string **q** after the ``NUL-terminated`` string at **p**, but will not write beyond **avail** bytes total, potentially truncating the copy from **q**. **p** will stay ``NUL-terminated`` only if a ``NUL`` already existed within the **avail** bytes of **p**. If so, the resulting number of bytes copied from **q** will be at most "**avail** - strlen(**p**) - 1". Do not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of **p** and **q** are known to the compiler. Prefer building the string with formatting, via scnprintf(), seq_buf, or similar. Returns total bytes that _would_ have been contained by **p** regardless of truncation, similar to snprintf(). If return value is >= **avail**, the string has been truncated.h](h)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM!hjlubj )}(hhh](j)}(hE``char * const p`` pointer to ``NUL-terminated`` string to append to h](j)}(h``char * const p``h]j)}(hjlh]hchar * const p}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjlubj2)}(hhh]h)}(h1pointer to ``NUL-terminated`` string to append toh](h pointer to }(hjlhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh string to append to}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubj)}(hM``const char * const q`` pointer to ``NUL-terminated`` string to append from h](j)}(h``const char * const q``h]j)}(hj$mh]hconst char * const q}(hj&mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"mubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM hjmubj2)}(hhh]h)}(h3pointer to ``NUL-terminated`` string to append fromh](h pointer to }(hj=mhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjEmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=mubh string to append from}(hj=mhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj9mhM hj:mubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhj9mhM hjlubj)}(h2``size_t avail`` Maximum bytes available in **p** h](j)}(h``size_t avail``h]j)}(hjomh]h size_t avail}(hjqmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmmubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM!hjimubj2)}(hhh]h)}(h Maximum bytes available in **p**h](hMaximum bytes available in }(hjmhhhNhNubj)}(h**p**h]hp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1hhjmhM!hjmubah}(h]h ]h"]h$]h&]uh1j1hjimubeh}(h]h ]h"]h$]h&]uh1jhjmhM!hjlubeh}(h]h ]h"]h$]h&]uh1j hjlubh)}(h**Description**h]j)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM#hjlubh)}(hXAppends ``NUL-terminated`` string **q** after the ``NUL-terminated`` string at **p**, but will not write beyond **avail** bytes total, potentially truncating the copy from **q**. **p** will stay ``NUL-terminated`` only if a ``NUL`` already existed within the **avail** bytes of **p**. If so, the resulting number of bytes copied from **q** will be at most "**avail** - strlen(**p**) - 1".h](hAppends }(hjmhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh string }(hjmhhhNhNubj)}(h**q**h]hq}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh after the }(hjmhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh string at }(hjmhhhNhNubj)}(h**p**h]hp}(hj nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh, but will not write beyond }(hjmhhhNhNubj)}(h **avail**h]havail}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh3 bytes total, potentially truncating the copy from }(hjmhhhNhNubj)}(h**q**h]hq}(hj0nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh. }(hjmhhhNhNubj)}(h**p**h]hp}(hjBnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh will stay }(hjmhhhNhNubj)}(h``NUL-terminated``h]hNUL-terminated}(hjTnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh only if a }(hjmhhhNhNubj)}(h``NUL``h]hNUL}(hjfnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh already existed within the }(hjmhhhNhNubj)}(h **avail**h]havail}(hjxnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh bytes of }(hjmhhhNhNubj)}(h**p**h]hp}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh3. If so, the resulting number of bytes copied from }(hjmhhhNhNubj)}(h**q**h]hq}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh will be at most “}(hjmhhhNhNubj)}(h **avail**h]havail}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh - strlen(}(hjmhhhNhNubj)}(h**p**h]hp}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh ) - 1”.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM"hjlubh)}(hDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of **p** and **q** are known to the compiler. Prefer building the string with formatting, via scnprintf(), seq_buf, or similar.h](hDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of }(hjnhhhNhNubj)}(h**p**h]hp}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh and }(hjnhhhNhNubj)}(h**q**h]hq}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubhm are known to the compiler. Prefer building the string with formatting, via scnprintf(), seq_buf, or similar.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM)hjlubh)}(hReturns total bytes that _would_ have been contained by **p** regardless of truncation, similar to snprintf(). If return value is >= **avail**, the string has been truncated.h](h8Returns total bytes that _would_ have been contained by }(hj ohhhNhNubj)}(h**p**h]hp}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj oubhH regardless of truncation, similar to snprintf(). If return value is >= }(hj ohhhNhNubj)}(h **avail**h]havail}(hj&ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj oubh , the string has been truncated.}(hj ohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM.hjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strcat (C function)c.strcathNtauh1hhjehhhNhNubj)}(hhh](j)}(h-char * strcat (char * const p, const char *q)h]j)}(h*char *strcat(char *const p, const char *q)h](j )}(hcharh]hchar}(hj_ohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[ohhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM\ubj2)}(h h]h }(hjnohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ohhhjmohM\ubj)}(hjh]h*}(hj|ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ohhhjmohM\ubj{)}(hstrcath]j)}(hstrcath]hstrcat}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[ohhhjmohM\ubj)}(h(char *const p, const char *q)h](j)}(h char *const ph](j )}(hcharh]hchar}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]hp}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(h const char *qh](j)}(hjh]hconst}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj )}(hcharh]hchar}(hj phhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpubj2)}(h h]h }(hj.phhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hjh]h*}(hjah"]h$]h&]uh1j1hjqhhhjqhMvubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhMvubj{)}(hstrncath]j)}(hstrncath]hstrncat}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqhhhjqhMvubj)}(h;(char *const p, const char *const q, __kernel_size_t count)h](j)}(h char *const ph](j )}(hcharh]hchar}(hjqhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hjh]hconst}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hj rhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]hp}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(hconst char *const qh](j)}(hjh]hconst}(hj3rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/rubj2)}(h h]h }(hj@rhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/rubj )}(hcharh]hchar}(hjNrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/rubj2)}(h h]h }(hj\rhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/rubj)}(hjh]h*}(hjjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/rubj)}(hjh]hconst}(hjwrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/rubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/rubj)}(hj(lh]hq}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/rubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubj)}(h__kernel_size_t counth](h)}(hhh]j)}(h__kernel_size_th]h__kernel_size_t}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]jf )}jY jqsb c.strncatasbuh1hhjrubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(hcounth]hcount}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjqhMvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjqhMvubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhjqhMvhjqhhubj)}(hhh]h)}(h%Append a string to an existing stringh]h%Append a string to an existing string}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMvhjshhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhjehNhNubj)}(hX~**Parameters** ``char * const p`` pointer to NUL-terminated string to append to ``const char * const q`` pointer to source string to append from ``__kernel_size_t count`` Maximum bytes to read from **q** **Description** Appends at most **count** bytes from **q** (stopping at the first NUL byte) after the NUL-terminated string at **p**. **p** will be NUL-terminated. Do not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of **p** and **q** are known to the compiler. Prefer building the string with formatting, via scnprintf() or similar. Returns **p**.h](h)}(h**Parameters**h]j)}(hj'sh]h Parameters}(hj)shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%subah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMzhj!subj )}(hhh](j)}(hA``char * const p`` pointer to NUL-terminated string to append to h](j)}(h``char * const p``h]j)}(hjFsh]hchar * const p}(hjHshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDsubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMxhj@subj2)}(hhh]h)}(h-pointer to NUL-terminated string to append toh]h-pointer to NUL-terminated string to append to}(hj_shhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[shMxhj\subah}(h]h ]h"]h$]h&]uh1j1hj@subeh}(h]h ]h"]h$]h&]uh1jhj[shMxhj=subj)}(hA``const char * const q`` pointer to source string to append from h](j)}(h``const char * const q``h]j)}(hjsh]hconst char * const q}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}subah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMyhjysubj2)}(hhh]h)}(h'pointer to source string to append fromh]h'pointer to source string to append from}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMyhjsubah}(h]h ]h"]h$]h&]uh1j1hjysubeh}(h]h ]h"]h$]h&]uh1jhjshMyhj=subj)}(h;``__kernel_size_t count`` Maximum bytes to read from **q** h](j)}(h``__kernel_size_t count``h]j)}(hjsh]h__kernel_size_t count}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMzhjsubj2)}(hhh]h)}(h Maximum bytes to read from **q**h](hMaximum bytes to read from }(hjshhhNhNubj)}(h**q**h]hq}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1hhjshMzhjsubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjshMzhj=subeh}(h]h ]h"]h$]h&]uh1j hj!subh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM|hj!subh)}(hAppends at most **count** bytes from **q** (stopping at the first NUL byte) after the NUL-terminated string at **p**. **p** will be NUL-terminated.h](hAppends at most }(hjthhhNhNubj)}(h **count**h]hcount}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh bytes from }(hjthhhNhNubj)}(h**q**h]hq}(hj1thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubhE (stopping at the first NUL byte) after the NUL-terminated string at }(hjthhhNhNubj)}(h**p**h]hp}(hjCthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh. }(hjthhhNhNubj)}(h**p**h]hp}(hjUthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh will be NUL-terminated.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhM{hj!subh)}(hDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of **p** and **q** are known to the compiler. Prefer building the string with formatting, via scnprintf() or similar.h](hDo not use this function. While FORTIFY_SOURCE tries to avoid read and write overflows, this is only possible when the sizes of }(hjnthhhNhNubj)}(h**p**h]hp}(hjvthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjntubh and }(hjnthhhNhNubj)}(h**q**h]hq}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjntubhc are known to the compiler. Prefer building the string with formatting, via scnprintf() or similar.}(hjnthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj!subh)}(hReturns **p**.h](hReturns }(hjthhhNhNubj)}(h**p**h]hp}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj!subeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strcpy (C function)c.strcpyhNtauh1hhjehhhNhNubj)}(hhh](j)}(h4char * strcpy (char * const p, const char * const q)h]j)}(h0char *strcpy(char *const p, const char *const q)h](j )}(hcharh]hchar}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjthhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjthhhjthMubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthMubj{)}(hstrcpyh]j)}(hstrcpyh]hstrcpy}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj uubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjthhhjthMubj)}(h$(char *const p, const char *const q)h](j)}(h char *const ph](j )}(hcharh]hchar}(hj,uhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(uubj2)}(h h]h }(hj:uhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(uubj)}(hjh]h*}(hjHuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(uubj)}(hjh]hconst}(hjUuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(uubj2)}(h h]h }(hjbuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(uubj)}(hjh]hp}(hjpuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$uubj)}(hconst char *const qh](j)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj )}(hcharh]hchar}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj)}(hj(lh]hq}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$uubeh}(h]h ]h"]h$]h&]jjuh1jhjthhhjthMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjthMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjthMhjthhubj)}(hhh]h)}(h(Copy a string into another string bufferh]h(Copy a string into another string buffer}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj vhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(vjj(vjjjuh1jhhhjehNhNubj)}(hX**Parameters** ``char * const p`` pointer to destination of copy ``const char * const q`` pointer to NUL-terminated source string to copy **Description** Do not use this function. While FORTIFY_SOURCE tries to avoid overflows, this is only possible when the sizes of **q** and **p** are known to the compiler. Prefer strscpy(), though note its different return values for detecting truncation. Returns **p**.h](h)}(h**Parameters**h]j)}(hj2vh]h Parameters}(hj4vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0vubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj,vubj )}(hhh](j)}(h2``char * const p`` pointer to destination of copy h](j)}(h``char * const p``h]j)}(hjQvh]hchar * const p}(hjSvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOvubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjKvubj2)}(hhh]h)}(hpointer to destination of copyh]hpointer to destination of copy}(hjjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfvhMhjgvubah}(h]h ]h"]h$]h&]uh1j1hjKvubeh}(h]h ]h"]h$]h&]uh1jhjfvhMhjHvubj)}(hI``const char * const q`` pointer to NUL-terminated source string to copy h](j)}(h``const char * const q``h]j)}(hjvh]hconst char * const q}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhjvubj2)}(hhh]h)}(h/pointer to NUL-terminated source string to copyh]h/pointer to NUL-terminated source string to copy}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjvubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjHvubeh}(h]h ]h"]h$]h&]uh1j hj,vubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj,vubh)}(hDo not use this function. While FORTIFY_SOURCE tries to avoid overflows, this is only possible when the sizes of **q** and **p** are known to the compiler. Prefer strscpy(), though note its different return values for detecting truncation.h](hqDo not use this function. While FORTIFY_SOURCE tries to avoid overflows, this is only possible when the sizes of }(hjvhhhNhNubj)}(h**q**h]hq}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubh and }(hjvhhhNhNubj)}(h**p**h]hp}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubho are known to the compiler. Prefer strscpy(), though note its different return values for detecting truncation.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj,vubh)}(hReturns **p**.h](hReturns }(hjwhhhNhNubj)}(h**p**h]hp}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:33: ./include/linux/fortify-string.hhMhj,vubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strncasecmp (C function) c.strncasecmphNtauh1hhjehhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjKwhhhj]whK$ubj{)}(h strncasecmph]j)}(h strncasecmph]h strncasecmp}(hjpwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKwhhhj]whK$ubj)}(h,(const char *s1, const char *s2, size_t len)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj )}(hcharh]hchar}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hs1h]hs1}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hconst char *s2h](j)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj )}(hcharh]hchar}(hjxhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]h*}(hj xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hs2h]hs2}(hj-xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjIxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFxubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjKxmodnameN classnameNj] j` )}jc ]jf )}jY jrwsb c.strncasecmpasbuh1hhjBxubj2)}(h h]h }(hjixhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBxubj)}(hlenh]hlen}(hjwxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhjKwhhhj]whK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGwhhhj]whK$ubah}(h]jBwah ](jjeh"]h$]h&]jj)jhuh1jhj]whK$hjDwhhubj)}(hhh]h)}(h2Case insensitive, length-limited string comparisonh]h2Case insensitive, length-limited string comparison}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chK$hjxhhubah}(h]h ]h"]h$]h&]uh1jhjDwhhhj]whK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const char *s1`` One string ``const char *s2`` The other string ``size_t len`` the maximum number of characters to compareh](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chK(hjxubj )}(hhh](j)}(h``const char *s1`` One string h](j)}(h``const char *s1``h]j)}(hjxh]hconst char *s1}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chK%hjxubj2)}(hhh]h)}(h One stringh]h One string}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhK%hjxubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjxhK%hjxubj)}(h$``const char *s2`` The other string h](j)}(h``const char *s2``h]j)}(hjyh]hconst char *s2}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chK&hjyubj2)}(hhh]h)}(hThe other stringh]hThe other string}(hj4yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0yhK&hj1yubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhj0yhK&hjxubj)}(h:``size_t len`` the maximum number of characters to compareh](j)}(h``size_t len``h]j)}(hjTyh]h size_t len}(hjVyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRyubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chK(hjNyubj2)}(hhh]h)}(h+the maximum number of characters to compareh]h+the maximum number of characters to compare}(hjmyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chK'hjjyubah}(h]h ]h"]h$]h&]uh1j1hjNyubeh}(h]h ]h"]h$]h&]uh1jhjiyhK(hjxubeh}(h]h ]h"]h$]h&]uh1j hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j stpcpy (C function)c.stpcpyhNtauh1hhjehhhNhNubj)}(hhh](j)}(hEchar * stpcpy (char *__restrict__ dest, const char *__restrict__ src)h]j)}(hCchar *stpcpy(char *__restrict__ dest, const char *__restrict__ src)h](j )}(hcharh]hchar}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhjyhKubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjyhKubj{)}(hstpcpyh]j)}(hstpcpyh]hstpcpy}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhjyhKubj)}(h7(char *__restrict__ dest, const char *__restrict__ src)h](j)}(hchar *__restrict__ desth](j )}(hcharh]hchar}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh __restrict__}(hjyhhhNhNubj2)}(h h]h }(hj%zhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hdesth]hdest}(hj3zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hconst char *__restrict__ srch](j)}(hjh]hconst}(hjLzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHzubj2)}(h h]h }(hjYzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHzubj )}(hcharh]hchar}(hjgzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHzubj2)}(h h]h }(hjuzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHzubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHzubh __restrict__}(hjHzhhhNhNubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHzubj)}(hsrch]hsrc}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjyhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjyhKubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jhjyhKhjyhhubj)}(hhh]h)}(hcopy a string from src to dest returning a pointer to the new end of dest, including src's ``NUL-terminator``. May overrun dest.h](h]copy a string from src to dest returning a pointer to the new end of dest, including src’s }(hjzhhhNhNubj)}(h``NUL-terminator``h]hNUL-terminator}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh. May overrun dest.}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKhjzhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjyhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jhhhjehNhNubj)}(hX**Parameters** ``char *__restrict__ dest`` pointer to end of string being copied into. Must be large enough to receive copy. ``const char *__restrict__ src`` pointer to the beginning of string being copied from. Must not overlap dest. **Description** stpcpy differs from strcpy in a key way: the return value is a pointer to the new ``NUL-terminating`` character in **dest**. (For strcpy, the return value is a pointer to the start of **dest**). This interface is considered unsafe as it doesn't perform bounds checking of the inputs. As such it's not recommended for usage. Instead, its definition is provided in case the compiler lowers other libcalls to stpcpy.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKhjzubj )}(hhh](j)}(hn``char *__restrict__ dest`` pointer to end of string being copied into. Must be large enough to receive copy. h](j)}(h``char *__restrict__ dest``h]j)}(hj{h]hchar *__restrict__ dest}(hj!{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKhj{ubj2)}(hhh]h)}(hQpointer to end of string being copied into. Must be large enough to receive copy.h]hQpointer to end of string being copied into. Must be large enough to receive copy.}(hj8{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKhj5{ubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhj4{hKhj{ubj)}(hn``const char *__restrict__ src`` pointer to the beginning of string being copied from. Must not overlap dest. h](j)}(h ``const char *__restrict__ src``h]j)}(hjY{h]hconst char *__restrict__ src}(hj[{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW{ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKhjS{ubj2)}(hhh]h)}(hLpointer to the beginning of string being copied from. Must not overlap dest.h]hLpointer to the beginning of string being copied from. Must not overlap dest.}(hjr{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKhjo{ubah}(h]h ]h"]h$]h&]uh1j1hjS{ubeh}(h]h ]h"]h$]h&]uh1jhjn{hKhj{ubeh}(h]h ]h"]h$]h&]uh1j hjzubh)}(h**Description**h]j)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKhjzubh)}(hXstpcpy differs from strcpy in a key way: the return value is a pointer to the new ``NUL-terminating`` character in **dest**. (For strcpy, the return value is a pointer to the start of **dest**). This interface is considered unsafe as it doesn't perform bounds checking of the inputs. As such it's not recommended for usage. Instead, its definition is provided in case the compiler lowers other libcalls to stpcpy.h](hRstpcpy differs from strcpy in a key way: the return value is a pointer to the new }(hj{hhhNhNubj)}(h``NUL-terminating``h]hNUL-terminating}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh character in }(hj{hhhNhNubj)}(h**dest**h]hdest}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh=. (For strcpy, the return value is a pointer to the start of }(hj{hhhNhNubj)}(h**dest**h]hdest}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh). This interface is considered unsafe as it doesn’t perform bounds checking of the inputs. As such it’s not recommended for usage. Instead, its definition is provided in case the compiler lowers other libcalls to stpcpy.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chKhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strcmp (C function)c.strcmphNtauh1hhjehhhNhNubj)}(hhh](j)}(h+int strcmp (const char *cs, const char *ct)h]j)}(h*int strcmp(const char *cs, const char *ct)h](j )}(hinth]hint}(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj |hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj |hhhj|hMubj{)}(hstrcmph]j)}(hstrcmph]hstrcmp}(hj1|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-|ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj |hhhj|hMubj)}(h (const char *cs, const char *ct)h](j)}(hconst char *csh](j)}(hjh]hconst}(hjM|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI|ubj2)}(h h]h }(hjZ|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjI|ubj )}(hcharh]hchar}(hjh|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjI|ubj2)}(h h]h }(hjv|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjI|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI|ubj)}(hcsh]hcs}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjE|ubj)}(hconst char *cth](j)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj )}(hcharh]hchar}(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hcth]hct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjE|ubeh}(h]h ]h"]h$]h&]jjuh1jhj |hhhj|hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hMubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1jhj|hMhj|hhubj)}(hhh]h)}(hCompare two stringsh]hCompare two strings}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj}hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0}jj0}jjjuh1jhhhjehNhNubj)}(hT**Parameters** ``const char *cs`` One string ``const char *ct`` Another stringh](h)}(h**Parameters**h]j)}(hj:}h]h Parameters}(hj<}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8}ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj4}ubj )}(hhh](j)}(h``const char *cs`` One string h](j)}(h``const char *cs``h]j)}(hjY}h]hconst char *cs}(hj[}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjS}ubj2)}(hhh]h)}(h One stringh]h One string}(hjr}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn}hMhjo}ubah}(h]h ]h"]h$]h&]uh1j1hjS}ubeh}(h]h ]h"]h$]h&]uh1jhjn}hMhjP}ubj)}(h!``const char *ct`` Another stringh](j)}(h``const char *ct``h]j)}(hj}h]hconst char *ct}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj}ubj2)}(hhh]h)}(hAnother stringh]hAnother string}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj}ubah}(h]h ]h"]h$]h&]uh1j1hj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjP}ubeh}(h]h ]h"]h$]h&]uh1j hj4}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strncmp (C function) c.strncmphNtauh1hhjehhhNhNubj)}(hhh](j)}(h:int strncmp (const char *cs, const char *ct, size_t count)h]j)}(h9int strncmp(const char *cs, const char *ct, size_t count)h](j )}(hinth]hint}(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}hhhj}hMubj{)}(hstrncmph]j)}(hstrncmph]hstrncmp}(hj ~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhj}hMubj)}(h.(const char *cs, const char *ct, size_t count)h](j)}(hconst char *csh](j)}(hjh]hconst}(hj)~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%~ubj2)}(h h]h }(hj6~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%~ubj )}(hcharh]hchar}(hjD~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%~ubj2)}(h h]h }(hjR~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%~ubj)}(hjh]h*}(hj`~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%~ubj)}(hcsh]hcs}(hjm~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!~ubj)}(hconst char *cth](j)}(hjh]hconst}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ubj )}(hcharh]hchar}(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~ubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hcth]hct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!~ubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj~modnameN classnameNj] j` )}jc ]jf )}jY j~sb c.strncmpasbuh1hhj~ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!~ubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhj}hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhj}hMubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1jhj}hMhj}hhubj)}(hhh]h)}(h"Compare two length-limited stringsh]h"Compare two length-limited strings}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const char *cs`` One string ``const char *ct`` Another string ``size_t count`` The maximum number of bytes to compareh](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjZubj )}(hhh](j)}(h``const char *cs`` One string h](j)}(h``const char *cs``h]j)}(hjh]hconst char *cs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjyubj2)}(hhh]h)}(h One stringh]h One string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(h"``const char *ct`` Another string h](j)}(h``const char *ct``h]j)}(hjh]hconst char *ct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hAnother stringh]hAnother string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(h7``size_t count`` The maximum number of bytes to compareh](j)}(h``size_t count``h]j)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(h&The maximum number of bytes to compareh]h&The maximum number of bytes to compare}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubeh}(h]h ]h"]h$]h&]uh1j hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strchr (C function)c.strchrhNtauh1hhjehhhNhNubj)}(hhh](j)}(h$char * strchr (const char *s, int c)h]j)}(h"char *strchr(const char *s, int c)h](j )}(hcharh]hchar}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM0ubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGhhhjYhM0ubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjYhM0ubj{)}(hstrchrh]j)}(hstrchrh]hstrchr}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjYhM0ubj)}(h(const char *s, int c)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj̀hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjـhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint ch](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hc}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjYhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhM0ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhjYhM0hj@hhubj)}(hhh]h)}(h4Find the first occurrence of a character in a stringh]h4Find the first occurrence of a character in a string}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM0hj3hhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const char *s`` The string to be searched ``int c`` The character to search for **Description** Note that the ``NUL-terminator`` is considered part of the string, and can be searched for.h](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM4hjRubj )}(hhh](j)}(h,``const char *s`` The string to be searched h](j)}(h``const char *s``h]j)}(hjwh]h const char *s}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM1hjqubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjnubj)}(h&``int c`` The character to search for h](j)}(h ``int c``h]j)}(hjh]hint c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM2hjubj2)}(hhh]h)}(hThe character to search forh]hThe character to search for}(hjɁhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŁhM2hjƁubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjŁhM2hjnubeh}(h]h ]h"]h$]h&]uh1j hjRubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM4hjRubh)}(h[Note that the ``NUL-terminator`` is considered part of the string, and can be searched for.h](hNote that the }(hjhhhNhNubj)}(h``NUL-terminator``h]hNUL-terminator}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; is considered part of the string, and can be searched for.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM3hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strchrnul (C function) c.strchrnulhNtauh1hhjehhhNhNubj)}(hhh](j)}(h'char * strchrnul (const char *s, int c)h]j)}(h%char *strchrnul(const char *s, int c)h](j )}(hcharh]hchar}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMCubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>hhhjPhMCubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhjPhMCubj{)}(h strchrnulh]j)}(h strchrnulh]h strchrnul}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhjPhMCubj)}(h(const char *s, int c)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjÂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjЂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint ch](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj>hhhjPhMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhjPhMCubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jhjPhMChj7hhubj)}(hhh]h)}(h9Find and return a character in a string, or end of stringh]h9Find and return a character in a string, or end of string}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMChj*hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjPhMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const char *s`` The string to be searched ``int c`` The character to search for **Description** Returns pointer to first occurrence of 'c' in s. If c is not found, then return a pointer to the null byte at the end of s.h](h)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMGhjIubj )}(hhh](j)}(h,``const char *s`` The string to be searched h](j)}(h``const char *s``h]j)}(hjnh]h const char *s}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMDhjhubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjeubj)}(h&``int c`` The character to search for h](j)}(h ``int c``h]j)}(hjh]hint c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMEhjubj2)}(hhh]h)}(hThe character to search forh]hThe character to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjeubeh}(h]h ]h"]h$]h&]uh1j hjIubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMGhjIubh)}(h{Returns pointer to first occurrence of 'c' in s. If c is not found, then return a pointer to the null byte at the end of s.h]hReturns pointer to first occurrence of ‘c’ in s. If c is not found, then return a pointer to the null byte at the end of s.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMFhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strrchr (C function) c.strrchrhNtauh1hhjehhhNhNubj)}(hhh](j)}(h%char * strrchr (const char *s, int c)h]j)}(h#char *strrchr(const char *s, int c)h](j )}(hcharh]hchar}(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMfubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#hhhj5hMfubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj5hMfubj{)}(hstrrchrh]j)}(hstrrchrh]hstrrchr}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#hhhj5hMfubj)}(h(const char *s, int c)h](j)}(h const char *sh](j)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hint ch](j )}(hinth]hint}(hj̈́hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjɄubj2)}(h h]h }(hjۄhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjɄubj)}(hjh]hc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɄubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hMfubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj5hMfubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj5hMfhjhhubj)}(hhh]h)}(h3Find the last occurrence of a character in a stringh]h3Find the last occurrence of a character in a string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMfhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMfubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1jhhhjehNhNubj)}(hf**Parameters** ``const char *s`` The string to be searched ``int c`` The character to search forh](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMjhj.ubj )}(hhh](j)}(h,``const char *s`` The string to be searched h](j)}(h``const char *s``h]j)}(hjSh]h const char *s}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMghjMubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMghjiubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMghjJubj)}(h%``int c`` The character to search forh](j)}(h ``int c``h]j)}(hjh]hint c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMihjubj2)}(hhh]h)}(hThe character to search forh]hThe character to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMihjJubeh}(h]h ]h"]h$]h&]uh1j hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strnchr (C function) c.strnchrhNtauh1hhjehhhNhNubj)}(hhh](j)}(h3char * strnchr (const char *s, size_t count, int c)h]j)}(h1char *strnchr(const char *s, size_t count, int c)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMxubj{)}(hstrnchrh]j)}(hstrnchrh]hstrnchr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMxubj)}(h$(const char *s, size_t count, int c)h](j)}(h const char *sh](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj )}(hcharh]hchar}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hjY)h]hs}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.strnchrasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hint ch](j )}(hinth]hint}(hjֆhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj҆ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj҆ubj)}(hjh]hc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj҆ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMxubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjޅhhhjhMxubah}(h]jمah ](jjeh"]h$]h&]jj)jhuh1jhjhMxhjۅhhubj)}(hhh]h)}(h+Find a character in a length limited stringh]h+Find a character in a length limited string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMxhjhhubah}(h]h ]h"]h$]h&]uh1jhjۅhhhjhMxubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jhhhjehNhNubj)}(hX**Parameters** ``const char *s`` The string to be searched ``size_t count`` The number of characters to be searched ``int c`` The character to search for **Description** Note that the ``NUL-terminator`` is considered part of the string, and can be searched for.h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM|hj7ubj )}(hhh](j)}(h,``const char *s`` The string to be searched h](j)}(h``const char *s``h]j)}(hj\h]h const char *s}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMyhjVubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMyhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMyhjSubj)}(h9``size_t count`` The number of characters to be searched h](j)}(h``size_t count``h]j)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMzhjubj2)}(hhh]h)}(h'The number of characters to be searchedh]h'The number of characters to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMzhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjSubj)}(h&``int c`` The character to search for h](j)}(h ``int c``h]j)}(hj·h]hint c}(hjЇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̇ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM{hjȇubj2)}(hhh]h)}(hThe character to search forh]hThe character to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM{hjubah}(h]h ]h"]h$]h&]uh1j1hjȇubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjSubeh}(h]h ]h"]h$]h&]uh1j hj7ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM}hj7ubh)}(h[Note that the ``NUL-terminator`` is considered part of the string, and can be searched for.h](hNote that the }(hjhhhNhNubj)}(h``NUL-terminator``h]hNUL-terminator}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; is considered part of the string, and can be searched for.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM|hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strspn (C function)c.strspnhNtauh1hhjehhhNhNubj)}(hhh](j)}(h1size_t strspn (const char *s, const char *accept)h]j)}(h0size_t strspn(const char *s, const char *accept)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjemodnameN classnameNj] j` )}jc ]jf )}jY strspnsbc.strspnasbuh1hhj\hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\hhhjhMubj{)}(hstrspnh]j)}(hjh]hstrspn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\hhhjhMubj)}(h#(const char *s, const char *accept)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj͈hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjۈhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *accepth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hcharh]hchar}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(haccepth]haccept}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjhMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjUhhubj)}(hhh]h)}(h_Calculate the length of the initial substring of **s** which only contain letters in **accept**h](h1Calculate the length of the initial substring of }(hj|hhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh which only contain letters in }(hj|hhhNhNubj)}(h **accept**h]haccept}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(hp**Parameters** ``const char *s`` The string to be searched ``const char *accept`` The string to search forh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj )}(hhh](j)}(h,``const char *s`` The string to be searched h](j)}(h``const char *s``h]j)}(hj݉h]h const char *s}(hj߉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۉubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj׉ubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj׉ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjԉubj)}(h/``const char *accept`` The string to search forh](j)}(h``const char *accept``h]j)}(hjh]hconst char *accept}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe string to search forh]hThe string to search for}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj,ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjԉubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strcspn (C function) c.strcspnhNtauh1hhjehhhNhNubj)}(hhh](j)}(h2size_t strcspn (const char *s, const char *reject)h]j)}(h1size_t strcspn(const char *s, const char *reject)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjumodnameN classnameNj] j` )}jc ]jf )}jY strcspnsb c.strcspnasbuh1hhjlhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhjhMubj{)}(hstrcspnh]j)}(hjh]hstrcspn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhjhMubj)}(h#(const char *s, const char *reject)h](j)}(h const char *sh](j)}(hjh]hconst}(hjŠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjϊhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj݊hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *rejecth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrejecth]hreject}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjlhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjhMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjehhubj)}(hhh]h)}(hcCalculate the length of the initial substring of **s** which does not contain letters in **reject**h](h1Calculate the length of the initial substring of }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# which does not contain letters in }(hjhhhNhNubj)}(h **reject**h]hreject}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjehhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjċjjċjjjuh1jhhhjehNhNubj)}(hk**Parameters** ``const char *s`` The string to be searched ``const char *reject`` The string to avoidh](h)}(h**Parameters**h]j)}(hj΋h]h Parameters}(hjЋhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̋ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjȋubj )}(hhh](j)}(h,``const char *s`` The string to be searched h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``const char *reject`` The string to avoidh](j)}(h``const char *reject``h]j)}(hj&h]hconst char *reject}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj ubj2)}(hhh]h)}(hThe string to avoidh]hThe string to avoid}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj<ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubeh}(h]h ]h"]h$]h&]uh1j hjȋubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strpbrk (C function) c.strpbrkhNtauh1hhjehhhNhNubj)}(hhh](j)}(h/char * strpbrk (const char *cs, const char *ct)h]j)}(h-char *strpbrk(const char *cs, const char *ct)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|hhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhMubj{)}(hstrpbrkh]j)}(hstrpbrkh]hstrpbrk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|hhhjhMubj)}(h (const char *cs, const char *ct)h](j)}(hconst char *csh](j)}(hjh]hconst}(hjʌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƌubj2)}(h h]h }(hj׌hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjƌubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjƌubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjƌubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƌubj)}(hcsh]hcs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƌubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŒubj)}(hconst char *cth](j)}(hjh]hconst}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj )}(hcharh]hchar}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hcth]hct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjŒubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjuhhubj)}(hhh]h)}(h0Find the first occurrence of a set of charactersh]h0Find the first occurrence of a set of characters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(hq**Parameters** ``const char *cs`` The string to be searched ``const char *ct`` The characters to search forh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj )}(hhh](j)}(h-``const char *cs`` The string to be searched h](j)}(h``const char *cs``h]j)}(hj֍h]hconst char *cs}(hj؍hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԍubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjЍubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjЍubeh}(h]h ]h"]h$]h&]uh1jhjhMhj͍ubj)}(h/``const char *ct`` The characters to search forh](j)}(h``const char *ct``h]j)}(hjh]hconst char *ct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj ubj2)}(hhh]h)}(hThe characters to search forh]hThe characters to search for}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj%ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhj͍ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strsep (C function)c.strsephNtauh1hhjehhhNhNubj)}(hhh](j)}(h(char * strsep (char **s, const char *ct)h]j)}(h&char *strsep(char **s, const char *ct)h](j )}(hcharh]hchar}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjehhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjehhhjwhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjwhMubj{)}(hstrseph]j)}(hstrseph]hstrsep}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjwhMubj)}(h(char **s, const char *ct)h](j)}(hchar **sh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjώhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj܎hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *cth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcth]hct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjwhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jhjwhMhj^hhubj)}(hhh]h)}(hSplit a string into tokensh]hSplit a string into tokens}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(hXt**Parameters** ``char **s`` The string to be searched ``const char *ct`` The characters to search for **Description** strsep() updates **s** to point after the token, ready for the next call. It returns empty tokens, too, behaving exactly like the libc function of that name. In fact, it was stolen from glibc2 and de-fancy-fied. Same semantics, slimmer shape. ;)h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj )}(hhh](j)}(h'``char **s`` The string to be searched h](j)}(h ``char **s``h]j)}(hjh]hchar **s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjɏhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŏhMhjƏubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjŏhMhjubj)}(h0``const char *ct`` The characters to search for h](j)}(h``const char *ct``h]j)}(hjh]hconst char *ct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe characters to search forh]hThe characters to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubh)}(hIstrsep() updates **s** to point after the token, ready for the next call.h](hstrsep() updates }(hj:hhhNhNubj)}(h**s**h]hs}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh3 to point after the token, ready for the next call.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubh)}(hIt returns empty tokens, too, behaving exactly like the libc function of that name. In fact, it was stolen from glibc2 and de-fancy-fied. Same semantics, slimmer shape. ;)h]hIt returns empty tokens, too, behaving exactly like the libc function of that name. In fact, it was stolen from glibc2 and de-fancy-fied. Same semantics, slimmer shape. ;)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset (C function)c.memsethNtauh1hhjehhhNhNubj)}(hhh](j)}(h,void * memset (void *s, int c, size_t count)h]j)}(h*void *memset(void *s, int c, size_t count)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(hmemseth]j)}(hmemseth]hmemset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(void *s, int c, size_t count)h](j)}(hvoid *sh](j )}(hvoidh]hvoid}(hjԐhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjАubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjАubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjАubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjАubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj̐ubj)}(hint ch](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hc}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj̐ubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjNmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.memsetasbuh1hhjEubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hcounth]hcount}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj̐ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h,Fill a region of memory with the given valueh]h,Fill a region of memory with the given value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(h**Parameters** ``void *s`` Pointer to the start of the area. ``int c`` The byte to fill the area with ``size_t count`` The size of the area. **Description** Do not use memset() to access IO space, use memset_io() instead.h](h)}(h**Parameters**h]j)}(hjƑh]h Parameters}(hjȑhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjđubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj )}(hhh](j)}(h.``void *s`` Pointer to the start of the area. h](j)}(h ``void *s``h]j)}(hjh]hvoid *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjߑubj2)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjߑubeh}(h]h ]h"]h$]h&]uh1jhjhMhjܑubj)}(h)``int c`` The byte to fill the area with h](j)}(h ``int c``h]j)}(hjh]hint c}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe byte to fill the area withh]hThe byte to fill the area with}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjܑubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hjWh]h size_t count}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjQubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjܑubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubh)}(h@Do not use memset() to access IO space, use memset_io() instead.h]h@Do not use memset() to access IO space, use memset_io() instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset16 (C function) c.memset16hNtauh1hhjehhhNhNubj)}(hhh](j)}(h7void * memset16 (uint16_t *s, uint16_t v, size_t count)h]j)}(h5void *memset16(uint16_t *s, uint16_t v, size_t count)h](j )}(hvoidh]hvoid}(hjגhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjӒhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjӒhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӒhhhjhMubj{)}(hmemset16h]j)}(hmemset16h]hmemset16}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjӒhhhjhMubj)}(h'(uint16_t *s, uint16_t v, size_t count)h](j)}(h uint16_t *sh](h)}(hhh]j)}(huint16_th]huint16_t}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj&modnameN classnameNj] j` )}jc ]jf )}jY jsb c.memset16asbuh1hhjubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h uint16_t vh](h)}(hhh]j)}(huint16_th]huint16_t}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|modnameN classnameNj] j` )}jc ]j@ c.memset16asbuh1hhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hvh]hv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj“hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjēmodnameN classnameNj] j` )}jc ]j@ c.memset16asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjӒhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjϒhhhjhMubah}(h]jʒah ](jjeh"]h$]h&]jj)jhuh1jhjhMhj̒hhubj)}(hhh]h)}(h"Fill a memory area with a uint16_th]h"Fill a memory area with a uint16_t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj̒hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jhhhjehNhNubj)}(hXZ**Parameters** ``uint16_t *s`` Pointer to the start of the area. ``uint16_t v`` The value to fill the area with ``size_t count`` The number of values to store **Description** Differs from memset() in that it fills with a uint16_t instead of a byte. Remember that **count** is the number of uint16_ts to store, not the number of bytes.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj4ubj )}(hhh](j)}(h2``uint16_t *s`` Pointer to the start of the area. h](j)}(h``uint16_t *s``h]j)}(hjYh]h uint16_t *s}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjSubj2)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjPubj)}(h/``uint16_t v`` The value to fill the area with h](j)}(h``uint16_t v``h]j)}(hjh]h uint16_t v}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe value to fill the area withh]hThe value to fill the area with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubj)}(h/``size_t count`` The number of values to store h](j)}(h``size_t count``h]j)}(hj˔h]h size_t count}(hj͔hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɔubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjŔubj2)}(hhh]h)}(hThe number of values to storeh]hThe number of values to store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjŔubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubeh}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj4ubh)}(hDiffers from memset() in that it fills with a uint16_t instead of a byte. Remember that **count** is the number of uint16_ts to store, not the number of bytes.h](hYDiffers from memset() in that it fills with a uint16_t instead of a byte. Remember that }(hjhhhNhNubj)}(h **count**h]hcount}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> is the number of uint16_ts to store, not the number of bytes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset32 (C function) c.memset32hNtauh1hhjehhhNhNubj)}(hhh](j)}(h7void * memset32 (uint32_t *s, uint32_t v, size_t count)h]j)}(h5void *memset32(uint32_t *s, uint32_t v, size_t count)h](j )}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM'ubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYhhhjkhM'ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhM'ubj{)}(hmemset32h]j)}(hmemset32h]hmemset32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYhhhjkhM'ubj)}(h'(uint32_t *s, uint32_t v, size_t count)h](j)}(h uint32_t *sh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.memset32asbuh1hhjubj2)}(h h]h }(hjʕhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjؕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h uint32_t vh](h)}(hhh]j)}(huint32_th]huint32_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jƕ c.memset32asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hv}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjImodnameN classnameNj] j` )}jc ]jƕ c.memset32asbuh1hhj@ubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hcounth]hcount}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjkhM'ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjkhM'ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1jhjkhM'hjRhhubj)}(hhh]h)}(h"Fill a memory area with a uint32_th]h"Fill a memory area with a uint32_t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM'hjhhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjkhM'ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(hXZ**Parameters** ``uint32_t *s`` Pointer to the start of the area. ``uint32_t v`` The value to fill the area with ``size_t count`` The number of values to store **Description** Differs from memset() in that it fills with a uint32_t instead of a byte. Remember that **count** is the number of uint32_ts to store, not the number of bytes.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM+hjubj )}(hhh](j)}(h2``uint32_t *s`` Pointer to the start of the area. h](j)}(h``uint32_t *s``h]j)}(hjޖh]h uint32_t *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܖubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM(hjؖubj2)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1j1hjؖubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjՖubj)}(h/``uint32_t v`` The value to fill the area with h](j)}(h``uint32_t v``h]j)}(hjh]h uint32_t v}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM)hjubj2)}(hhh]h)}(hThe value to fill the area withh]hThe value to fill the area with}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM)hj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hM)hjՖubj)}(h/``size_t count`` The number of values to store h](j)}(h``size_t count``h]j)}(hjPh]h size_t count}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM*hjJubj2)}(hhh]h)}(hThe number of values to storeh]hThe number of values to store}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM*hjfubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjehM*hjՖubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM,hjubh)}(hDiffers from memset() in that it fills with a uint32_t instead of a byte. Remember that **count** is the number of uint32_ts to store, not the number of bytes.h](hYDiffers from memset() in that it fills with a uint32_t instead of a byte. Remember that }(hjhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> is the number of uint32_ts to store, not the number of bytes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM+hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset64 (C function) c.memset64hNtauh1hhjehhhNhNubj)}(hhh](j)}(h7void * memset64 (uint64_t *s, uint64_t v, size_t count)h]j)}(h5void *memset64(uint64_t *s, uint64_t v, size_t count)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjޗhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM=ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjޗhhhjhM=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޗhhhjhM=ubj{)}(hmemset64h]j)}(hmemset64h]hmemset64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjޗhhhjhM=ubj)}(h'(uint64_t *s, uint64_t v, size_t count)h](j)}(h uint64_t *sh](h)}(hhh]j)}(huint64_th]huint64_t}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj1modnameN classnameNj] j` )}jc ]jf )}jY jsb c.memset64asbuh1hhj(ubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hjY)h]hs}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(h uint64_t vh](h)}(hhh]j)}(huint64_th]huint64_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jK c.memset64asbuh1hhj~ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ubj)}(hjh]hv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hj̘hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɘubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjΘmodnameN classnameNj] j` )}jc ]jK c.memset64asbuh1hhjŘubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjŘubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŘubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhjޗhhhjhM=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjڗhhhjhM=ubah}(h]j՗ah ](jjeh"]h$]h&]jj)jhuh1jhjhM=hjחhhubj)}(hhh]h)}(h"Fill a memory area with a uint64_th]h"Fill a memory area with a uint64_t}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM=hjhhubah}(h]h ]h"]h$]h&]uh1jhjחhhhjhM=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1jhhhjehNhNubj)}(hXZ**Parameters** ``uint64_t *s`` Pointer to the start of the area. ``uint64_t v`` The value to fill the area with ``size_t count`` The number of values to store **Description** Differs from memset() in that it fills with a uint64_t instead of a byte. Remember that **count** is the number of uint64_ts to store, not the number of bytes.h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMAhj>ubj )}(hhh](j)}(h2``uint64_t *s`` Pointer to the start of the area. h](j)}(h``uint64_t *s``h]j)}(hjch]h uint64_t *s}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM>hj]ubj2)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM>hjyubah}(h]h ]h"]h$]h&]uh1j1hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM>hjZubj)}(h/``uint64_t v`` The value to fill the area with h](j)}(h``uint64_t v``h]j)}(hjh]h uint64_t v}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM?hjubj2)}(hhh]h)}(hThe value to fill the area withh]hThe value to fill the area with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjZubj)}(h/``size_t count`` The number of values to store h](j)}(h``size_t count``h]j)}(hjՙh]h size_t count}(hjיhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjәubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM@hjϙubj2)}(hhh]h)}(hThe number of values to storeh]hThe number of values to store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM@hjubah}(h]h ]h"]h$]h&]uh1j1hjϙubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjZubeh}(h]h ]h"]h$]h&]uh1j hj>ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMBhj>ubh)}(hDiffers from memset() in that it fills with a uint64_t instead of a byte. Remember that **count** is the number of uint64_ts to store, not the number of bytes.h](hYDiffers from memset() in that it fills with a uint64_t instead of a byte. Remember that }(hj&hhhNhNubj)}(h **count**h]hcount}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh> is the number of uint64_ts to store, not the number of bytes.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMAhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memcpy (C function)c.memcpyhNtauh1hhjehhhNhNubj)}(hhh](j)}(h9void * memcpy (void *dest, const void *src, size_t count)h]j)}(h7void *memcpy(void *dest, const void *src, size_t count)h](j )}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjchhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMSubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjchhhjuhMSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjuhMSubj{)}(hmemcpyh]j)}(hmemcpyh]hmemcpy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjchhhjuhMSubj)}(h+(void *dest, const void *src, size_t count)h](j)}(h void *desth](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj͚hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdesth]hdest}(hjښhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjUmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.memcpyasbuh1hhjLubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjuhMSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj_hhhjuhMSubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1jhjuhMShj\hhubj)}(hhh]h)}(h"Copy one area of memory to anotherh]h"Copy one area of memory to another}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMShjhhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjÛjjÛjjjuh1jhhhjehNhNubj)}(h**Parameters** ``void *dest`` Where to copy to ``const void *src`` Where to copy from ``size_t count`` The size of the area. **Description** You should not use this function to access IO space, use memcpy_toio() or memcpy_fromio() instead.h](h)}(h**Parameters**h]j)}(hj͛h]h Parameters}(hjϛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˛ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMWhjǛubj )}(hhh](j)}(h ``void *dest`` Where to copy to h](j)}(h``void *dest``h]j)}(hjh]h void *dest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMThjubj2)}(hhh]h)}(hWhere to copy toh]hWhere to copy to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjubj)}(h'``const void *src`` Where to copy from h](j)}(h``const void *src``h]j)}(hj%h]hconst void *src}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMUhjubj2)}(hhh]h)}(hWhere to copy fromh]hWhere to copy from}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMUhj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMUhjubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hj^h]h size_t count}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMVhjXubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMVhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMVhjubeh}(h]h ]h"]h$]h&]uh1j hjǛubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMXhjǛubh)}(hbYou should not use this function to access IO space, use memcpy_toio() or memcpy_fromio() instead.h]hbYou should not use this function to access IO space, use memcpy_toio() or memcpy_fromio() instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMWhjǛubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memmove (C function) c.memmovehNtauh1hhjehhhNhNubj)}(hhh](j)}(h:void * memmove (void *dest, const void *src, size_t count)h]j)}(h8void *memmove(void *dest, const void *src, size_t count)h](j )}(hvoidh]hvoid}(hjޜhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjڜhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMiubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjڜhhhjhMiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڜhhhjhMiubj{)}(hmemmoveh]j)}(hmemmoveh]hmemmove}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjڜhhhjhMiubj)}(h+(void *dest, const void *src, size_t count)h](j)}(h void *desth](j )}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hdesth]hdest}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst void *srch](j)}(hjh]hconst}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjʝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǝubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj̝modnameN classnameNj] j` )}jc ]jf )}jY jsb c.memmoveasbuh1hhjÝubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjÝubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÝubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjڜhhhjhMiubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj֜hhhjhMiubah}(h]jќah ](jjeh"]h$]h&]jj)jhuh1jhjhMihjӜhhubj)}(hhh]h)}(h"Copy one area of memory to anotherh]h"Copy one area of memory to another}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMihjhhubah}(h]h ]h"]h$]h&]uh1jhjӜhhhjhMiubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1jhhhjehNhNubj)}(h**Parameters** ``void *dest`` Where to copy to ``const void *src`` Where to copy from ``size_t count`` The size of the area. **Description** Unlike memcpy(), memmove() copes with overlapping areas.h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMmhj>ubj )}(hhh](j)}(h ``void *dest`` Where to copy to h](j)}(h``void *dest``h]j)}(hjch]h void *dest}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMjhj]ubj2)}(hhh]h)}(hWhere to copy toh]hWhere to copy to}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMjhjyubah}(h]h ]h"]h$]h&]uh1j1hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMjhjZubj)}(h'``const void *src`` Where to copy from h](j)}(h``const void *src``h]j)}(hjh]hconst void *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMkhjubj2)}(hhh]h)}(hWhere to copy fromh]hWhere to copy from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMkhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjZubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hj՞h]h size_t count}(hjמhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӞubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMlhjϞubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMlhjubah}(h]h ]h"]h$]h&]uh1j1hjϞubeh}(h]h ]h"]h$]h&]uh1jhjhMlhjZubeh}(h]h ]h"]h$]h&]uh1j hj>ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMnhj>ubh)}(h8Unlike memcpy(), memmove() copes with overlapping areas.h]h8Unlike memcpy(), memmove() copes with overlapping areas.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMmhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memcmp (C function)c.memcmphNtauh1hhjehhhNhNubj)}(hhh](j)}(hC__visible int memcmp (const void *cs, const void *ct, size_t count)h]j)}(hB__visible int memcmp(const void *cs, const void *ct, size_t count)h](h __visible}(hjQhhhNhNubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj )}(hinth]hint}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQhhhjghMubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQhhhjghMubj{)}(hmemcmph]j)}(hmemcmph]hmemcmp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQhhhjghMubj)}(h.(const void *cs, const void *ct, size_t count)h](j)}(hconst void *csh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj͟hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj۟hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcsh]hcs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *cth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcth]hct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjcmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.memcmpasbuh1hhjZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjQhhhjghMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjghMubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1jhjghMhjJhhubj)}(hhh]h)}(hCompare two areas of memoryh]hCompare two areas of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjѠjjѠjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const void *cs`` One area of memory ``const void *ct`` Another area of memory ``size_t count`` The size of the area.h](h)}(h**Parameters**h]j)}(hj۠h]h Parameters}(hjݠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٠ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjՠubj )}(hhh](j)}(h&``const void *cs`` One area of memory h](j)}(h``const void *cs``h]j)}(hjh]hconst void *cs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hOne area of memoryh]hOne area of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``const void *ct`` Another area of memory h](j)}(h``const void *ct``h]j)}(hj3h]hconst void *ct}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj-ubj2)}(hhh]h)}(hAnother area of memoryh]hAnother area of memory}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjubj)}(h&``size_t count`` The size of the area.h](j)}(h``size_t count``h]j)}(hjlh]h size_t count}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjfubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjՠubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bcmp (C function)c.bcmphNtauh1hhjehhhNhNubj)}(hhh](j)}(h3int bcmp (const void *a, const void *b, size_t len)h]j)}(h2int bcmp(const void *a, const void *b, size_t len)h](j )}(hinth]hint}(hjơhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj¡hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjաhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj¡hhhjԡhMubj{)}(hbcmph]j)}(hbcmph]hbcmp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj¡hhhjԡhMubj)}(h*(const void *a, const void *b, size_t len)h](j)}(h const void *ah](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hah]ha}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *bh](j)}(hjh]hconst}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj )}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hbh]hb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj¢modnameN classnameNj] j` )}jc ]jf )}jY jsbc.bcmpasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj¡hhhjԡhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjԡhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjԡhMhjhhubj)}(hhh]h)}(h=returns 0 if and only if the buffers have identical contents.h]h=returns 0 if and only if the buffers have identical contents.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԡhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jhhhjehNhNubj)}(hX**Parameters** ``const void *a`` pointer to first buffer. ``const void *b`` pointer to second buffer. ``size_t len`` size of buffers. **Description** The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient bcmp(). So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj4ubj )}(hhh](j)}(h+``const void *a`` pointer to first buffer. h](j)}(h``const void *a``h]j)}(hjYh]h const void *a}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjSubj2)}(hhh]h)}(hpointer to first buffer.h]hpointer to first buffer.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjPubj)}(h,``const void *b`` pointer to second buffer. h](j)}(h``const void *b``h]j)}(hjh]h const void *b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hpointer to second buffer.h]hpointer to second buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubj)}(h ``size_t len`` size of buffers. h](j)}(h``size_t len``h]j)}(hjˣh]h size_t len}(hjͣhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɣubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjţubj2)}(hhh]h)}(hsize of buffers.h]hsize of buffers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjţubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubeh}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj4ubh)}(hX!The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient bcmp(). So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.h]hX!The sign or magnitude of a non-zero return value has no particular meaning, and architectures may implement their own more efficient bcmp(). So while this particular implementation is a simple (tail) call to memcmp, do not rely on anything but whether the return value is zero or non-zero.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memscan (C function) c.memscanhNtauh1hhjehhhNhNubj)}(hhh](j)}(h/void * memscan (void *addr, int c, size_t size)h]j)}(h-void *memscan(void *addr, int c, size_t size)h](j )}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGhhhjYhMubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjYhMubj{)}(hmemscanh]j)}(hmemscanh]hmemscan}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjYhMubj)}(h (void *addr, int c, size_t size)h](j)}(h void *addrh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint ch](j )}(hinth]hint}(hjפhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjӤubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjӤubj)}(hjh]hc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӤubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j{sb c.memscanasbuh1hhjubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhjYhMhj@hhubj)}(hhh]h)}(h&Find a character in an area of memory.h]h&Find a character in an area of memory.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhjehNhNubj)}(h**Parameters** ``void *addr`` The memory area ``int c`` The byte to search for ``size_t size`` The size of the area. **Description** returns the address of the first occurrence of **c**, or 1 byte past the area if **c** is not foundh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj )}(hhh](j)}(h``void *addr`` The memory area h](j)}(h``void *addr``h]j)}(hjh]h void *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe memory areah]hThe memory area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``int c`` The byte to search for h](j)}(h ``int c``h]j)}(hjh]hint c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޥubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjڥubj2)}(hhh]h)}(hThe byte to search forh]hThe byte to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjڥubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``size_t size`` The size of the area. h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubh)}(hcreturns the address of the first occurrence of **c**, or 1 byte past the area if **c** is not foundh](h/returns the address of the first occurrence of }(hjjhhhNhNubj)}(h**c**h]hc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh, or 1 byte past the area if }(hjjhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh is not found}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strstr (C function)c.strstrhNtauh1hhjehhhNhNubj)}(hhh](j)}(h.char * strstr (const char *s1, const char *s2)h]j)}(h,char *strstr(const char *s1, const char *s2)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hj̦hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj˦hMubj)}(hjh]h*}(hjڦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj˦hMubj{)}(hstrstrh]j)}(hstrstrh]hstrstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj˦hMubj)}(h (const char *s1, const char *s2)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hs1h]hs1}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *s2h](j)}(hjh]hconst}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hs2h]hs2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj˦hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj˦hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj˦hMhjhhubj)}(hhh]h)}(h7Find the first substring in a ``NUL`` terminated stringh](hFind the first substring in a }(hjҧhhhNhNubj)}(h``NUL``h]hNUL}(hjڧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҧubh terminated string}(hjҧhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjϧhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj˦hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(hm**Parameters** ``const char *s1`` The string to be searched ``const char *s2`` The string to search forh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj )}(hhh](j)}(h-``const char *s1`` The string to be searched h](j)}(h``const char *s1``h]j)}(hj%h]hconst char *s1}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(h+``const char *s2`` The string to search forh](j)}(h``const char *s2``h]j)}(hj^h]hconst char *s2}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjXubj2)}(hhh]h)}(hThe string to search forh]hThe string to search for}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strnstr (C function) c.strnstrhNtauh1hhjehhhNhNubj)}(hhh](j)}(h;char * strnstr (const char *s1, const char *s2, size_t len)h]j)}(h9char *strnstr(const char *s1, const char *s2, size_t len)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMubj2)}(h h]h }(hjǨhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjƨhMubj)}(hjh]h*}(hjըhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjƨhMubj{)}(hstrnstrh]j)}(hstrnstrh]hstrnstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjƨhMubj)}(h,(const char *s1, const char *s2, size_t len)h](j)}(hconst char *s1h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hs1h]hs1}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *s2h](j)}(hjh]hconst}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj )}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hs2h]hs2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.strnstrasbuh1hhjubj2)}(h h]h }(hjߩhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjƨhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjƨhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjƨhMhjhhubj)}(hhh]h)}(h3Find the first substring in a length-limited stringh]h3Find the first substring in a length-limited string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjƨhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1jhhhjehNhNubj)}(h**Parameters** ``const char *s1`` The string to be searched ``const char *s2`` The string to search for ``size_t len`` the maximum number of characters to searchh](h)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhj3ubj )}(hhh](j)}(h-``const char *s1`` The string to be searched h](j)}(h``const char *s1``h]j)}(hjXh]hconst char *s1}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjRubj2)}(hhh]h)}(hThe string to be searchedh]hThe string to be searched}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(h,``const char *s2`` The string to search for h](j)}(h``const char *s2``h]j)}(hjh]hconst char *s2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe string to search forh]hThe string to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(h9``size_t len`` the maximum number of characters to searchh](j)}(h``size_t len``h]j)}(hjʪh]h size_t len}(hj̪hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȪubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjĪubj2)}(hhh]h)}(h*the maximum number of characters to searchh]h*the maximum number of characters to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubah}(h]h ]h"]h$]h&]uh1j1hjĪubeh}(h]h ]h"]h$]h&]uh1jhjߪhMhjOubeh}(h]h ]h"]h$]h&]uh1j hj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memchr (C function)c.memchrhNtauh1hhjehhhNhNubj)}(hhh](j)}(h.void * memchr (const void *s, int c, size_t n)h]j)}(h,void *memchr(const void *s, int c, size_t n)h](j )}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj2hM ubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj2hM ubj{)}(hmemchrh]j)}(hmemchrh]hmemchr}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj2hM ubj)}(h (const void *s, int c, size_t n)h](j)}(h const void *sh](j)}(hjh]hconst}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hint ch](j )}(hinth]hint}(hjʫhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjƫubj2)}(h h]h }(hjثhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjƫubj)}(hjh]hc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƫubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jTsbc.memchrasbuh1hhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj2hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj2hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj2hM hjhhubj)}(hhh]h)}(h&Find a character in an area of memory.h]h&Find a character in an area of memory.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM hjUhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const void *s`` The memory area ``int c`` The byte to search for ``size_t n`` The size of the area. **Description** returns the address of the first occurrence of **c**, or ``NULL`` if **c** is not foundh](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjtubj )}(hhh](j)}(h"``const void *s`` The memory area h](j)}(h``const void *s``h]j)}(hjh]h const void *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM hjubj2)}(hhh]h)}(hThe memory areah]hThe memory area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h!``int c`` The byte to search for h](j)}(h ``int c``h]j)}(hjҬh]hint c}(hjԬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЬubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM hj̬ubj2)}(hhh]h)}(hThe byte to search forh]hThe byte to search for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hj̬ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h#``size_t n`` The size of the area. h](j)}(h ``size_t n``h]j)}(hj h]hsize_t n}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj!ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1j hjtubh)}(h**Description**h]j)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjtubh)}(hWreturns the address of the first occurrence of **c**, or ``NULL`` if **c** is not foundh](h/returns the address of the first occurrence of }(hj\hhhNhNubj)}(h**c**h]hc}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh, or }(hj\hhhNhNubj)}(h``NULL``h]hNULL}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh if }(hj\hhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh is not found}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memchr_inv (C function) c.memchr_invhNtauh1hhjehhhNhNubj)}(hhh](j)}(h:void * memchr_inv (const void *start, int c, size_t bytes)h]j)}(h8void *memchr_inv(const void *start, int c, size_t bytes)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM,ubj2)}(h h]h }(hjЭhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjϭhM,ubj)}(hjh]h*}(hjޭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjϭhM,ubj{)}(h memchr_invh]j)}(h memchr_invh]h memchr_inv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjϭhM,ubj)}(h((const void *start, int c, size_t bytes)h](j)}(hconst void *starth](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstarth]hstart}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint ch](j )}(hinth]hint}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]hc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t bytesh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.memchr_invasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hbytesh]hbytes}(hjͮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjϭhM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjϭhM,ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjϭhM,hjhhubj)}(hhh]h)'}(h2Find an unmatching character in an area of memory.h]h2Find an unmatching character in an area of memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM,hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjϭhM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(hX**Parameters** ``const void *start`` The memory area ``int c`` Find a character other than c ``size_t bytes`` The size of the area. **Description** returns the address of the first character other than **c**, or ``NULL`` if the whole buffer contains just **c**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM0hjubj )}(hhh](j)}(h&``const void *start`` The memory area h](j)}(h``const void *start``h]j)}(hj8h]hconst void *start}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM-hj2ubj2)}(hhh]h)}(hThe memory areah]hThe memory area}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM-hjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhM-hj/ubj)}(h(``int c`` Find a character other than c h](j)}(h ``int c``h]j)}(hjqh]hint c}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM.hjkubj2)}(hhh]h)}(hFind a character other than ch]hFind a character other than c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjhM.hj/ubj)}(h'``size_t bytes`` The size of the area. h](j)}(h``size_t bytes``h]j)}(hjh]h size_t bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM/hjubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjïhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hj/ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM1hjubh)}(hqreturns the address of the first character other than **c**, or ``NULL`` if the whole buffer contains just **c**.h](h6returns the address of the first character other than }(hjhhhNhNubj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# if the whole buffer contains just }(hjhhhNhNubj)}(h**c**h]hc}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:36: ./lib/string.chM0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memdup_array_user (C function)c.memdup_array_userhNtauh1hhjehhhNhNubj)}(hhh](j)}(hHvoid * memdup_array_user (const void __user *src, size_t n, size_t size)h]j)}(hFvoid *memdup_array_user(const void __user *src, size_t n, size_t size)h](j )}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\hhhjnhKubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhjnhKubj{)}(hmemdup_array_userh]j)}(hmemdup_array_userh]hmemdup_array_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\hhhjnhKubj)}(h/(const void __user *src, size_t n, size_t size)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjŰhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjӰhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh__user}(hjhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.memdup_array_userasbuh1hhjubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgmodnameN classnameNj] j` )}jc ]j8c.memdup_array_userasbuh1hhj^ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhjnhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjnhKubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jhjnhKhjUhhubj)}(hhh]h)}(hduplicate array from user spaceh]hduplicate array from user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjnhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjӱjjӱjjjuh1jhhhjehNhNubj)}(hX**Parameters** ``const void __user *src`` source address in user space ``size_t n`` number of array members to copy ``size_t size`` size of one array member **Return** an ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().h](h)}(h**Parameters**h]j)}(hjݱh]h Parameters}(hj߱hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj۱ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjױubj )}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjh]hconst void __user *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjubj2)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h-``size_t n`` number of array members to copy h](j)}(h ``size_t n``h]j)}(hj5h]hsize_t n}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj/ubj2)}(hhh]h)}(hnumber of array members to copyh]hnumber of array members to copy}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjKubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjubj)}(h)``size_t size`` size of one array member h](j)}(h``size_t size``h]j)}(hjnh]h size_t size}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjhubj2)}(hhh]h)}(hsize of one array memberh]hsize of one array member}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hjױubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjױubh)}(hQan ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().h]hQan ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjױubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j vmemdup_array_user (C function)c.vmemdup_array_userhNtauh1hhjehhhNhNubj)}(hhh](j)}(hIvoid * vmemdup_array_user (const void __user *src, size_t n, size_t size)h]j)}(hGvoid *vmemdup_array_user(const void __user *src, size_t n, size_t size)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK+ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK+ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK+ubj{)}(hvmemdup_array_userh]j)}(hvmemdup_array_userh]hvmemdup_array_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK+ubj)}(h/(const void __user *src, size_t n, size_t size)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj )}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubh__user}(hj4hhhNhNubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.vmemdup_array_userasbuh1hhjubj2)}(h h]h }(hjʳhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hjسhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jƳc.vmemdup_array_userasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK+ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK+hjhhubj)}(hhh]h)}(hduplicate array from user spaceh]hduplicate array from user space}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK+hjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jhhhjehNhNubj)}(hX **Parameters** ``const void __user *src`` source address in user space ``size_t n`` number of array members to copy ``size_t size`` size of one array member **Return** an ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.h](h)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK/hjeubj )}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjh]hconst void __user *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK,hjubj2)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK,hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK,hjubj)}(h-``size_t n`` number of array members to copy h](j)}(h ``size_t n``h]j)}(hjôh]hsize_t n}(hjŴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK-hjubj2)}(hhh]h)}(hnumber of array members to copyh]hnumber of array members to copy}(hjܴhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjشhK-hjٴubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjشhK-hjubj)}(h)``size_t size`` size of one array member h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK.hjubj2)}(hhh]h)}(hsize of one array memberh]hsize of one array member}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK.hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK.hjubeh}(h]h ]h"]h$]h&]uh1j hjeubh)}(h **Return**h]j)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK0hjeubh)}(hWan ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.h]hWan ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK0hjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strscpy (C macro) c.strscpyhNtauh1hhjehhhNhNubj)}(hhh](j)}(hstrscpyh]j)}(hstrscpyh]j{)}(hstrscpyh]j)}(hjvh]hstrscpy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKYubah}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhKYubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhjhKYhjqhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjqhhhjhKYubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubh)}(h``strscpy (dst, src, ...)``h]j)}(hjh]hstrscpy (dst, src, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK[hjehhubj)}(h$Copy a C-string into a sized buffer h]h)}(h#Copy a C-string into a sized bufferh]h#Copy a C-string into a sized buffer}(hj̵hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKYhjȵubah}(h]h ]h"]h$]h&]uh1jhjڵhKYhjehhubj)}(hXq**Parameters** ``dst`` Where to copy the string to ``src`` Where to copy the string from ``...`` Size of destination buffer (optional) **Description** Copy the source string **src**, or as much of it as fits, into the destination **dst** buffer. The behavior is undefined if the string buffers overlap. The destination **dst** buffer is always NUL terminated, unless it's zero-sized. The size argument **...** is only required when **dst** is not an array, or when the copy needs to be smaller than sizeof(**dst**). Preferred to strncpy() since it always returns a valid string, and doesn't unnecessarily force the tail of the destination buffer to be zero padded. If padding is desired please use strscpy_pad(). Returns the number of characters copied in **dst** (not including the trailing ``NUL``) or -E2BIG if **size** is 0 or the copy from **src** was truncated.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK]hjubj )}(hhh](j)}(h$``dst`` Where to copy the string to h](j)}(h``dst``h]j)}(hjh]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKZhjubj2)}(hhh]h)}(hWhere to copy the string toh]hWhere to copy the string to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubj)}(h&``src`` Where to copy the string from h](j)}(h``src``h]j)}(hj?h]hsrc}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK[hj9ubj2)}(hhh]h)}(hWhere to copy the string fromh]hWhere to copy the string from}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThK[hjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThK[hjubj)}(h.``...`` Size of destination buffer (optional) h](j)}(h``...``h]j)}(hjxh]h...}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK\hjrubj2)}(hhh]h)}(h%Size of destination buffer (optional)h]h%Size of destination buffer (optional)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK^hjubh)}(hCopy the source string **src**, or as much of it as fits, into the destination **dst** buffer. The behavior is undefined if the string buffers overlap. The destination **dst** buffer is always NUL terminated, unless it's zero-sized.h](hCopy the source string }(hjɶhhhNhNubj)}(h**src**h]hsrc}(hjѶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɶubh1, or as much of it as fits, into the destination }(hjɶhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɶubhR buffer. The behavior is undefined if the string buffers overlap. The destination }(hjɶhhhNhNubj)}(h**dst**h]hdst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɶubh; buffer is always NUL terminated, unless it’s zero-sized.}(hjɶhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK]hjubh)}(hThe size argument **...** is only required when **dst** is not an array, or when the copy needs to be smaller than sizeof(**dst**).h](hThe size argument }(hjhhhNhNubj)}(h**...**h]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is only required when }(hjhhhNhNubj)}(h**dst**h]hdst}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC is not an array, or when the copy needs to be smaller than sizeof(}(hjhhhNhNubj)}(h**dst**h]hdst}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKbhjubh)}(hPreferred to strncpy() since it always returns a valid string, and doesn't unnecessarily force the tail of the destination buffer to be zero padded. If padding is desired please use strscpy_pad().h]hPreferred to strncpy() since it always returns a valid string, and doesn’t unnecessarily force the tail of the destination buffer to be zero padded. If padding is desired please use strscpy_pad().}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKehjubh)}(hReturns the number of characters copied in **dst** (not including the trailing ``NUL``) or -E2BIG if **size** is 0 or the copy from **src** was truncated.h](h+Returns the number of characters copied in }(hjbhhhNhNubj)}(h**dst**h]hdst}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh (not including the trailing }(hjbhhhNhNubj)}(h``NUL``h]hNUL}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh) or -E2BIG if }(hjbhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh is 0 or the copy from }(hjbhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh was truncated.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKihjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strscpy_pad (C macro) c.strscpy_padhNtauh1hhjehhhNhNubj)}(hhh](j)}(h strscpy_padh]j)}(h strscpy_padh]j{)}(h strscpy_padh]j)}(hjӷh]h strscpy_pad}(hjݷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٷubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjշhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK~ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjѷhhhjhK~ubah}(h]j̷ah ](jjeh"]h$]h&]jj)jhuh1jhjhK~hjηhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjηhhhjhK~ubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1jhhhjehNhNubh)}(h``strscpy_pad (dst, src, ...)``h]j)}(hjh]hstrscpy_pad (dst, src, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjehhubj)}(h$Copy a C-string into a sized buffer h]h)}(h#Copy a C-string into a sized bufferh]h#Copy a C-string into a sized buffer}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhK~hj%ubah}(h]h ]h"]h$]h&]uh1jhj7hK~hjehhubj)}(hX**Parameters** ``dst`` Where to copy the string to ``src`` Where to copy the string from ``...`` Size of destination buffer **Description** Copy the string, or as much of it as fits, into the dest buffer. The behavior is undefined if the string buffers overlap. The destination buffer is always ``NUL`` terminated, unless it's zero-sized. If the source string is shorter than the destination buffer, the remaining bytes in the buffer will be filled with ``NUL`` bytes. For full explanation of why you may want to consider using the 'strscpy' functions please see the function docstring for strscpy(). **Return** * The number of characters copied (not including the trailing ``NULs``) * -E2BIG if count is 0 or **src** was truncated.h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj>ubj )}(hhh](j)}(h$``dst`` Where to copy the string to h](j)}(h``dst``h]j)}(hjch]hdst}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj]ubj2)}(hhh]h)}(hWhere to copy the string toh]hWhere to copy the string to}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhKhjyubah}(h]h ]h"]h$]h&]uh1j1hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhKhjZubj)}(h&``src`` Where to copy the string from h](j)}(h``src``h]j)}(hjh]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjubj2)}(hhh]h)}(hWhere to copy the string fromh]hWhere to copy the string from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjZubj)}(h#``...`` Size of destination buffer h](j)}(h``...``h]j)}(hjոh]h...}(hj׸hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӸubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhjϸubj2)}(hhh]h)}(hSize of destination bufferh]hSize of destination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjϸubeh}(h]h ]h"]h$]h&]uh1jhjhKhjZubeh}(h]h ]h"]h$]h&]uh1j hj>ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj>ubh)}(hCopy the string, or as much of it as fits, into the dest buffer. The behavior is undefined if the string buffers overlap. The destination buffer is always ``NUL`` terminated, unless it's zero-sized.h](hCopy the string, or as much of it as fits, into the dest buffer. The behavior is undefined if the string buffers overlap. The destination buffer is always }(hj&hhhNhNubj)}(h``NUL``h]hNUL}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh& terminated, unless it’s zero-sized.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj>ubh)}(hIf the source string is shorter than the destination buffer, the remaining bytes in the buffer will be filled with ``NUL`` bytes.h](hsIf the source string is shorter than the destination buffer, the remaining bytes in the buffer will be filled with }(hjGhhhNhNubj)}(h``NUL``h]hNUL}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh bytes.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj>ubh)}(hFor full explanation of why you may want to consider using the 'strscpy' functions please see the function docstring for strscpy().h]hFor full explanation of why you may want to consider using the ‘strscpy’ functions please see the function docstring for strscpy().}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj>ubh)}(h **Return**h]j)}(hjyh]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhKhj>ubj)}(hhh](j)}(hEThe number of characters copied (not including the trailing ``NULs``)h]h)}(hjh](hubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j mem_is_zero (C function) c.mem_is_zerohNtauh1hhjehhhNhNubj)}(hhh](j)}(h*bool mem_is_zero (const void *s, size_t n)h]j)}(h)bool mem_is_zero(const void *s, size_t n)h](j )}(hj8h]hbool}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(h mem_is_zeroh]j)}(h mem_is_zeroh]h mem_is_zero}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(const void *s, size_t n)h](j)}(h const void *sh](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj )}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hsize_t nh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j.sb c.mem_is_zeroasbuh1hhjubj2)}(h h]h }(hjǺhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hjպhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h&Check if an area of memory is all 0's.h]h(Check if an area of memory is all 0’s.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const void *s`` The memory area ``size_t n`` The size of the area **Return** True if the area of memory is all 0's.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!hjubj )}(hhh](j)}(h"``const void *s`` The memory area h](j)}(h``const void *s``h]j)}(hj?h]h const void *s}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj9ubj2)}(hhh]h)}(hThe memory areah]hThe memory area}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhj6ubj)}(h"``size_t n`` The size of the area h](j)}(h ``size_t n``h]j)}(hjxh]hsize_t n}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjrubj2)}(hhh]h)}(hThe size of the areah]hThe size of the area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhj6ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!hjubh)}(h&True if the area of memory is all 0's.h]h(True if the area of memory is all 0’s.}(hjɻhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sysfs_match_string (C macro)c.sysfs_match_stringhNtauh1hhjehhhNhNubj)}(hhh](j)}(hsysfs_match_stringh]j)}(hsysfs_match_stringh]j{)}(hsysfs_match_stringh]j)}(hjh]hsysfs_match_string}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMGubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMGubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMGhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMGubeh}(h]h ](jmacroeh"]h$]h&]jjjj(jj(jjjuh1jhhhjehNhNubh)}(h``sysfs_match_string (_a, _s)``h]j)}(hj.h]hsysfs_match_string (_a, _s)}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMIhjehhubj)}(h!matches given string in an array h]h)}(h matches given string in an arrayh]h matches given string in an array}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMGhjDubah}(h]h ]h"]h$]h&]uh1jhjVhMGhjehhubj)}(h**Parameters** ``_a`` array of strings ``_s`` string to match with **Description** Helper for __sysfs_match_string(). Calculates the size of **a** automatically.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMKhj]ubj )}(hhh](j)}(h``_a`` array of strings h](j)}(h``_a``h]j)}(hjh]h_a}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMHhj|ubj2)}(hhh]h)}(harray of stringsh]harray of strings}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjyubj)}(h``_s`` string to match with h](j)}(h``_s``h]j)}(hjh]h_s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMIhjubj2)}(hhh]h)}(hstring to match withh]hstring to match with}(hjԼhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjмhMIhjѼubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjмhMIhjyubeh}(h]h ]h"]h$]h&]uh1j hj]ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMKhj]ubh)}(hNHelper for __sysfs_match_string(). Calculates the size of **a** automatically.h](h:Helper for __sysfs_match_string(). Calculates the size of }(hj hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh automatically.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMJhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memzero_explicit (C function)c.memzero_explicithNtauh1hhjehhhNhNubj)}(hhh](j)}(h-void memzero_explicit (void *s, size_t count)h]j)}(h,void memzero_explicit(void *s, size_t count)h](j )}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIhhhj[hM\ubj{)}(hmemzero_explicith]j)}(hmemzero_explicith]hmemzero_explicit}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIhhhj[hM\ubj)}(h(void *s, size_t count)h](j)}(hvoid *sh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjνhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˽ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjнmodnameN classnameNj] j` )}jc ]jf )}jY jpsbc.memzero_explicitasbuh1hhjǽubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjǽubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǽubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhj[hM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj[hM\ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jhj[hM\hjBhhubj)}(hhh]h)}(h=Fill a region of memory (e.g. sensitive keying data) with 0s.h]h=Fill a region of memory (e.g. sensitive keying data) with 0s.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM\hj#hhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jhhhjehNhNubj)}(hX**Parameters** ``void *s`` Pointer to the start of the area. ``size_t count`` The size of the area. **Note** usually using memset() is just fine (!), but in cases where clearing out _local_ data at the end of a scope is necessary, memzero_explicit() should be used instead in order to prevent the compiler from optimising away zeroing. memzero_explicit() doesn't need an arch-specific version as it just invokes the one of memset() implicitly.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM`hjBubj )}(hhh](j)}(h.``void *s`` Pointer to the start of the area. h](j)}(h ``void *s``h]j)}(hjgh]hvoid *s}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM^hjaubj2)}(hhh]h)}(h!Pointer to the start of the area.h]h!Pointer to the start of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hM^hj}ubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM^hj^ubj)}(h'``size_t count`` The size of the area. h](j)}(h``size_t count``h]j)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM_hjubj2)}(hhh]h)}(hThe size of the area.h]hThe size of the area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM_hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hj^ubeh}(h]h ]h"]h$]h&]uh1j hjBubh)}(h**Note**h]j)}(hj۾h]hNote}(hjݾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjپubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMahjBubh)}(husually using memset() is just fine (!), but in cases where clearing out _local_ data at the end of a scope is necessary, memzero_explicit() should be used instead in order to prevent the compiler from optimising away zeroing.h]husually using memset() is just fine (!), but in cases where clearing out _local_ data at the end of a scope is necessary, memzero_explicit() should be used instead in order to prevent the compiler from optimising away zeroing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMahjBubh)}(hkmemzero_explicit() doesn't need an arch-specific version as it just invokes the one of memset() implicitly.h]hmmemzero_explicit() doesn’t need an arch-specific version as it just invokes the one of memset() implicitly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMfhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kbasename (C function) c.kbasenamehNtauh1hhjehhhNhNubj)}(hhh](j)}(h)const char * kbasename (const char *path)h]j)}(h'const char *kbasename(const char *path)h](j)}(hjh]hconst}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMpubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+hhhj<hMpubj )}(hcharh]hchar}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+hhhj<hMpubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+hhhj<hMpubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj<hMpubj{)}(h kbasenameh]j)}(h kbasenameh]h kbasename}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+hhhj<hMpubj)}(h(const char *path)h]j)}(hconst char *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj˿hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjؿhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj+hhhj<hMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj<hMpubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jhj<hMphj$hhubj)}(hhh]h)}(h#return the last part of a pathname.h]h#return the last part of a pathname.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMphjhhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj<hMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const char *path`` path to extract the filename from. **Return** Pointer to the filename portion inside **path**. If no '/' exists, returns **path** unchanged.h](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMthjubj )}(hhh]j)}(h8``const char *path`` path to extract the filename from. h](j)}(h``const char *path``h]j)}(hjCh]hconst char *path}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMrhj=ubj2)}(hhh]h)}(h"path to extract the filename from.h]h"path to extract the filename from.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMrhjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMrhj:ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hj~h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMthjubh)}(h^Pointer to the filename portion inside **path**. If no '/' exists, returns **path** unchanged.h](h'Pointer to the filename portion inside }(hjhhhNhNubj)}(h**path**h]hpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh . If no ‘/’ exists, returns }(hjhhhNhNubj)}(h**path**h]hpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh unchanged.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strtomem_pad (C macro)c.strtomem_padhNtauh1hhjehhhNhNubj)}(hhh](j)}(h strtomem_padh]j)}(h strtomem_padh]j{)}(h strtomem_padh]j)}(hjh]h strtomem_pad}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubh)}(h!``strtomem_pad (dest, src, pad)``h]j)}(hjh]hstrtomem_pad (dest, src, pad)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjehhubj)}(h8Copy NUL-terminated string to non-NUL-terminated buffer h]h)}(h7Copy NUL-terminated string to non-NUL-terminated bufferh]h7Copy NUL-terminated string to non-NUL-terminated buffer}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj3ubah}(h]h ]h"]h$]h&]uh1jhjEhMhjehhubj)}(hX6**Parameters** ``dest`` Pointer of destination character array (marked as __nonstring) ``src`` Pointer to NUL-terminated string ``pad`` Padding character to fill any remaining bytes of **dest** after copy **Description** This is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and an explicit padding character. If padding is not required, use strtomem(). Note that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjLubj )}(hhh](j)}(hH``dest`` Pointer of destination character array (marked as __nonstring) h](j)}(h``dest``h]j)}(hjqh]hdest}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjkubj2)}(hhh]h)}(h>Pointer of destination character array (marked as __nonstring)h]h>Pointer of destination character array (marked as __nonstring)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(h)``src`` Pointer to NUL-terminated string h](j)}(h``src``h]j)}(hjh]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj2)}(hhh]h)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubj)}(hM``pad`` Padding character to fill any remaining bytes of **dest** after copy h](j)}(h``pad``h]j)}(hjh]hpad}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj2)}(hhh]h)}(hDPadding character to fill any remaining bytes of **dest** after copyh](h1Padding character to fill any remaining bytes of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh after copy}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubeh}(h]h ]h"]h$]h&]uh1j hjLubh)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjLubh)}(hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and an explicit padding character. If padding is not required, use strtomem().h]hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and an explicit padding character. If padding is not required, use strtomem().}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjLubh)}(hrNote that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](hNote that the size of }(hjUhhhNhNubj)}(h**dest**h]hdest}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh& is not an argument, as the length of }(hjUhhhNhNubj)}(h**dest**h]hdest}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh& must be discoverable by the compiler.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strtomem (C macro) c.strtomemhNtauh1hhjehhhNhNubj)}(hhh](j)}(hstrtomemh]j)}(hstrtomemh]j{)}(hstrtomemh]j)}(hjh]hstrtomem}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubh)}(h``strtomem (dest, src)``h]j)}(hjh]hstrtomem (dest, src)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjehhubj)}(h8Copy NUL-terminated string to non-NUL-terminated buffer h]h)}(h7Copy NUL-terminated string to non-NUL-terminated bufferh]h7Copy NUL-terminated string to non-NUL-terminated buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjehhubj)}(hX**Parameters** ``dest`` Pointer of destination character array (marked as __nonstring) ``src`` Pointer to NUL-terminated string **Description** This is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad(). Note that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj ubj )}(hhh](j)}(hH``dest`` Pointer of destination character array (marked as __nonstring) h](j)}(h``dest``h]j)}(hj2h]hdest}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj,ubj2)}(hhh]h)}(h>Pointer of destination character array (marked as __nonstring)h]h>Pointer of destination character array (marked as __nonstring)}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubj)}(h)``src`` Pointer to NUL-terminated string h](j)}(h``src``h]j)}(hjkh]hsrc}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjeubj2)}(hhh]h)}(h Pointer to NUL-terminated stringh]h Pointer to NUL-terminated string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj ubh)}(hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad().h]hThis is a replacement for strncpy() uses where the destination is not a NUL-terminated string, but with bounds checking on the source size, and without trailing padding. If padding is required, use strtomem_pad().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj ubh)}(hrNote that the size of **dest** is not an argument, as the length of **dest** must be discoverable by the compiler.h](hNote that the size of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh& is not an argument, as the length of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh& must be discoverable by the compiler.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memtostr (C macro) c.memtostrhNtauh1hhjehhhNhNubj)}(hhh](j)}(hmemtostrh]j)}(hmemtostrh]j{)}(hmemtostrh]j)}(hjh]hmemtostr}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj5hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj5hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj5hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjNjjNjjjuh1jhhhjehNhNubh)}(h``memtostr (dest, src)``h]j)}(hjTh]hmemtostr (dest, src)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjehhubj)}(h9Copy a possibly non-NUL-term string to a NUL-term string h]h)}(h8Copy a possibly non-NUL-term string to a NUL-term stringh]h8Copy a possibly non-NUL-term string to a NUL-term string}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjjubah}(h]h ]h"]h$]h&]uh1jhj|hMhjehhubj)}(hX@**Parameters** ``dest`` Pointer to destination NUL-terminates string ``src`` Pointer to character array (likely marked as __nonstring) **Description** This is a replacement for strncpy() uses where the source is not a NUL-terminated string. Note that sizes of **dest** and **src** must be known at compile-time.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj )}(hhh](j)}(h6``dest`` Pointer to destination NUL-terminates string h](j)}(h``dest``h]j)}(hjh]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj2)}(hhh]h)}(h,Pointer to destination NUL-terminates stringh]h,Pointer to destination NUL-terminates string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``src`` Pointer to character array (likely marked as __nonstring) h](j)}(h``src``h]j)}(hjh]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj2)}(hhh]h)}(h9Pointer to character array (likely marked as __nonstring)h]h9Pointer to character array (likely marked as __nonstring)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.h]hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hFNote that sizes of **dest** and **src** must be known at compile-time.h](hNote that sizes of }(hjAhhhNhNubj)}(h**dest**h]hdest}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh and }(hjAhhhNhNubj)}(h**src**h]hsrc}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh must be known at compile-time.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memtostr_pad (C macro)c.memtostr_padhNtauh1hhjehhhNhNubj)}(hhh](j)}(h memtostr_padh]j)}(h memtostr_padh]j{)}(h memtostr_padh]j)}(hjh]h memtostr_pad}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubh)}(h``memtostr_pad (dest, src)``h]j)}(hjh]hmemtostr_pad (dest, src)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjehhubj)}(h]Copy a possibly non-NUL-term string to a NUL-term string with NUL padding in the destination h]h)}(h\Copy a possibly non-NUL-term string to a NUL-term string with NUL padding in the destinationh]h\Copy a possibly non-NUL-term string to a NUL-term string with NUL padding in the destination}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjehhubj)}(hX@**Parameters** ``dest`` Pointer to destination NUL-terminates string ``src`` Pointer to character array (likely marked as __nonstring) **Description** This is a replacement for strncpy() uses where the source is not a NUL-terminated string. Note that sizes of **dest** and **src** must be known at compile-time.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj )}(hhh](j)}(h6``dest`` Pointer to destination NUL-terminates string h](j)}(h``dest``h]j)}(hjh]hdest}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj2)}(hhh]h)}(h,Pointer to destination NUL-terminates stringh]h,Pointer to destination NUL-terminates string}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(hB``src`` Pointer to character array (likely marked as __nonstring) h](j)}(h``src``h]j)}(hjWh]hsrc}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjQubj2)}(hhh]h)}(h9Pointer to character array (likely marked as __nonstring)h]h9Pointer to character array (likely marked as __nonstring)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.h]hYThis is a replacement for strncpy() uses where the source is not a NUL-terminated string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubh)}(hFNote that sizes of **dest** and **src** must be known at compile-time.h](hNote that sizes of }(hjhhhNhNubj)}(h**dest**h]hdest}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**src**h]hsrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be known at compile-time.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset_after (C macro)c.memset_afterhNtauh1hhjehhhNhNubj)}(hhh](j)}(h memset_afterh]j)}(h memset_afterh]j{)}(h memset_afterh]j)}(hjh]h memset_after}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj!hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj!hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj!hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj:jj:jjjuh1jhhhjehNhNubh)}(h!``memset_after (obj, v, member)``h]j)}(hj@h]hmemset_after (obj, v, member)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjehhubj)}(h9Set a value after a struct member to the end of a struct h]h)}(h8Set a value after a struct member to the end of a structh]h8Set a value after a struct member to the end of a struct}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjVubah}(h]h ]h"]h$]h&]uh1jhjhhMhjehhubj)}(h**Parameters** ``obj`` Address of target struct instance ``v`` Byte value to repeatedly write ``member`` after which struct member to start writing bytes **Description** This is good for clearing padding following the given member.h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjoubj )}(hhh](j)}(h*``obj`` Address of target struct instance h](j)}(h``obj``h]j)}(hjh]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj2)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``v`` Byte value to repeatedly write h](j)}(h``v``h]j)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj2)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``member`` after which struct member to start writing bytes h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj2)}(hhh]h)}(h0after which struct member to start writing bytesh]h0after which struct member to start writing bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjoubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjoubh)}(h=This is good for clearing padding following the given member.h]h=This is good for clearing padding following the given member.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memset_startat (C macro)c.memset_startathNtauh1hhjehhhNhNubj)}(hhh](j)}(hmemset_startath]j)}(hmemset_startath]j{)}(hmemset_startath]j)}(hjh]hmemset_startat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhjhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jhjhMhj{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{hhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubh)}(h#``memset_startat (obj, v, member)``h]j)}(hjh]hmemset_startat (obj, v, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjehhubj)}(h8Set a value starting at a member to the end of a struct h]h)}(h7Set a value starting at a member to the end of a structh]h7Set a value starting at a member to the end of a struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjehhubj)}(hX-**Parameters** ``obj`` Address of target struct instance ``v`` Byte value to repeatedly write ``member`` struct member to start writing at **Description** Note that if there is padding between the prior member and the target member, memset_after() should be used to clear the prior padding.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubj )}(hhh](j)}(h*``obj`` Address of target struct instance h](j)}(h``obj``h]j)}(hjh]hobj}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj ubj2)}(hhh]h)}(h!Address of target struct instanceh]h!Address of target struct instance}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(h%``v`` Byte value to repeatedly write h](j)}(h``v``h]j)}(hjIh]hv}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjCubj2)}(hhh]h)}(hByte value to repeatedly writeh]hByte value to repeatedly write}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hM hj_ubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM hjubj)}(h-``member`` struct member to start writing at h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hj|ubj2)}(hhh]h)}(h!struct member to start writing ath]h!struct member to start writing at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubh)}(hNote that if there is padding between the prior member and the target member, memset_after() should be used to clear the prior padding.h]hNote that if there is padding between the prior member and the target member, memset_after() should be used to clear the prior padding.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j str_has_prefix (C function)c.str_has_prefixhNtauh1hhjehhhNhNubj)}(hhh](j)}(h;size_t str_has_prefix (const char *str, const char *prefix)h]j)}(h:size_t str_has_prefix(const char *str, const char *prefix)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY str_has_prefixsbc.str_has_prefixasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj&hMubj{)}(hstr_has_prefixh]j)}(hj#h]hstr_has_prefix}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj&hMubj)}(h%(const char *str, const char *prefix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj )}(hcharh]hchar}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hconst char *prefixh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj&hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj&hMhjhhubj)}(hhh]h)}(h#Test if a string has a given prefixh]h#Test if a string has a given prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1jhhhjehNhNubj)}(hX**Parameters** ``const char *str`` The string to test ``const char *prefix`` The string to see if **str** starts with **Description** A common way to test a prefix of a string is to do: strncmp(str, prefix, sizeof(prefix) - 1) But this can lead to bugs due to typos, or if prefix is a pointer and not a constant. Instead use str_has_prefix(). **Return** * strlen(**prefix**) if **str** starts with **prefix** * 0 if **str** does not start with **prefix**h](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj;ubj )}(hhh](j)}(h'``const char *str`` The string to test h](j)}(h``const char *str``h]j)}(hj`h]hconst char *str}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjZubj2)}(hhh]h)}(hThe string to testh]hThe string to test}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjWubj)}(h@``const char *prefix`` The string to see if **str** starts with h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj2)}(hhh]h)}(h(The string to see if **str** starts withh](hThe string to see if }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh starts with}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjWubeh}(h]h ]h"]h$]h&]uh1j hj;ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj;ubj )}(hhh]j)}(h]A common way to test a prefix of a string is to do: strncmp(str, prefix, sizeof(prefix) - 1) h](j)}(h3A common way to test a prefix of a string is to do:h]h3A common way to test a prefix of a string is to do:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhjubj2)}(hhh]h)}(h(strncmp(str, prefix, sizeof(prefix) - 1)h]h(strncmp(str, prefix, sizeof(prefix) - 1)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hj;ubh)}(hsBut this can lead to bugs due to typos, or if prefix is a pointer and not a constant. Instead use str_has_prefix().h]hsBut this can lead to bugs due to typos, or if prefix is a pointer and not a constant. Instead use str_has_prefix().}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhMhj;ubh)}(h **Return**h]j)}(hjFh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM!hj;ubj)}(hhh](j)}(h4strlen(**prefix**) if **str** starts with **prefix**h]h)}(hjah](hstrlen(}(hjchhhNhNubj)}(h **prefix**h]hprefix}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh) if }(hjchhhNhNubj)}(h**str**h]hstr}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubh starts with }(hjchhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM"hj_ubah}(h]h ]h"]h$]h&]uh1jhj\ubj)}(h+0 if **str** does not start with **prefix**h]h)}(hjh](h0 if }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh does not start with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM#hjubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhjhM"hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strstarts (C function) c.strstartshNtauh1hhjehhhNhNubj)}(hhh](j)}(h4bool strstarts (const char *str, const char *prefix)h]j)}(h3bool strstarts(const char *str, const char *prefix)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM-ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM-ubj{)}(h strstartsh]j)}(h strstartsh]h strstarts}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM-ubj)}(h%(const char *str, const char *prefix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj )}(hcharh]hchar}(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hconst char *prefixh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprefixh]hprefix}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM-hjhhubj)}(hhh]h)}(h#does **str** start with **prefix**?h](hdoes }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh start with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh?}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM-hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const char *str`` string to examine ``const char *prefix`` prefix to look for. **Return** True if **str** begins with **prefix**. False in all other cases.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM1hjNubj )}(hhh](j)}(h&``const char *str`` string to examine h](j)}(h``const char *str``h]j)}(hjsh]hconst char *str}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM.hjmubj2)}(hhh]h)}(hstring to examineh]hstring to examine}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjjubj)}(h+``const char *prefix`` prefix to look for. h](j)}(h``const char *prefix``h]j)}(hjh]hconst char *prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM/hjubj2)}(hhh]h)}(hprefix to look for.h]hprefix to look for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjjubeh}(h]h ]h"]h$]h&]uh1j hjNubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM1hjNubh)}(hATrue if **str** begins with **prefix**. False in all other cases.h](hTrue if }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh begins with }(hjhhhNhNubj)}(h **prefix**h]hprefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. False in all other cases.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM1hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strends (C function) c.strendshNtauh1hhjehhhNhNubj)}(hhh](j)}(h3bool strends (const char *str, const char *suffix)h]j)}(h1bool strends(const char *str, const char *suffix)h](j )}(hj8h]hbool}(hjPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM:ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLhhhj]hM:ubj{)}(hstrendsh]j)}(hstrendsh]hstrends}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhhj]hM:ubj)}(h%(const char *str, const char *suffix)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstrh]hstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *suffixh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsuffixh]hsuffix}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjLhhhj]hM:ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhj]hM:ubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1jhj]hM:hjEhhubj)}(hhh]h)}(h+Check if a string ends with another string.h]h+Check if a string ends with another string.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM:hjThhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj]hM:ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhjehNhNubj)}(hX**Parameters** ``const char *str`` NULL-terminated string to check against **suffix** ``const char *suffix`` NULL-terminated string defining the suffix to look for in **str** **Return** True if **str** ends with **suffix**. False in all other cases.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM>hjsubj )}(hhh](j)}(hG``const char *str`` NULL-terminated string to check against **suffix** h](j)}(h``const char *str``h]j)}(hjh]hconst char *str}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM;hjubj2)}(hhh]h)}(h2NULL-terminated string to check against **suffix**h](h(NULL-terminated string to check against }(hjhhhNhNubj)}(h **suffix**h]hsuffix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubj)}(hY``const char *suffix`` NULL-terminated string defining the suffix to look for in **str** h](j)}(h``const char *suffix``h]j)}(hjh]hconst char *suffix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM<hjubj2)}(hhh]h)}(hANULL-terminated string defining the suffix to look for in **str**h](h:NULL-terminated string defining the suffix to look for in }(hjhhhNhNubj)}(h**str**h]hstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjubeh}(h]h ]h"]h$]h&]uh1j hjsubh)}(h **Return**h]j)}(hj(h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM>hjsubh)}(h?True if **str** ends with **suffix**. False in all other cases.h](hTrue if }(hj>hhhNhNubj)}(h**str**h]hstr}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh ends with }(hj>hhhNhNubj)}(h **suffix**h]hsuffix}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh. False in all other cases.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:39: ./include/linux/string.hhM>hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrdup (C function) c.kstrduphNtauh1hhjehhhNhNubj)}(hhh](j)}(h)char * kstrdup (const char *s, gfp_t gfp)h]j)}(h'char *kstrdup(const char *s, gfp_t gfp)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKKubj{)}(hkstrduph]j)}(hkstrduph]hkstrdup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKKubj)}(h(const char *s, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj<modnameN classnameNj] j` )}jc ]jf )}jY jsb c.kstrdupasbuh1hhj3ubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hgfph]hgfp}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKKhjhhubj)}(hhh]h)}(h.allocate space for and copy an existing stringh]h.allocate space for and copy an existing string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const char *s`` the string to duplicate ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Return** newly allocated copy of **s** or ``NULL`` in case of errorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjubj )}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKLhjubj2)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hj h]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKMhjubj2)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hKMhj"ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj!hKMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hjGh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjubh)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hj]hhhNhNubj)}(h**s**h]hs}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh or }(hj]hhhNhNubj)}(h``NULL``h]hNULL}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh in case of error}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrdup_const (C function)c.kstrdup_consthNtauh1hhjehhhNhNubj)}(hhh](j)}(h5const char * kstrdup_const (const char *s, gfp_t gfp)h]j)}(h3const char *kstrdup_const(const char *s, gfp_t gfp)h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKYubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhKYubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKYubj{)}(h kstrdup_consth]j)}(h kstrdup_consth]h kstrdup_const}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKYubj)}(h(const char *s, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjvmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.kstrdup_constasbuh1hhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKYhjhhubj)}(hhh]h)}(h0conditionally duplicate an existing const stringh]h0conditionally duplicate an existing const string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(hXT**Parameters** ``const char *s`` the string to duplicate ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Note** Strings allocated by kstrdup_const should be freed by kfree_const and must not be passed to krealloc(). **Return** source string if it is in .rodata section otherwise fallback to kstrdup.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK]hjubj )}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hj h]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKZhjubj2)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKZhj#ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj"hKZhjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjFh]h gfp_t gfp}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK[hj@ubj2)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hK[hj\ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hK[hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK]hjubh)}(hgStrings allocated by kstrdup_const should be freed by kfree_const and must not be passed to krealloc().h]hgStrings allocated by kstrdup_const should be freed by kfree_const and must not be passed to krealloc().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK]hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK`hjubh)}(hHsource string if it is in .rodata section otherwise fallback to kstrdup.h]hHsource string if it is in .rodata section otherwise fallback to kstrdup.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK`hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kstrndup (C function) c.kstrnduphNtauh1hhjehhhNhNubj)}(hhh](j)}(h6char * kstrndup (const char *s, size_t max, gfp_t gfp)h]j)}(h4char *kstrndup(const char *s, size_t max, gfp_t gfp)h](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKmubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKmubj{)}(hkstrnduph]j)}(hkstrnduph]hkstrndup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKmubj)}(h&(const char *s, size_t max, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj )}(hcharh]hchar}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjY)h]hs}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(h size_t maxh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.kstrndupasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.kstrndupasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfph]hgfp}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKmhjhhubj)}(hhh]h)}(h.allocate space for and copy an existing stringh]h.allocate space for and copy an existing string}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKmhj3hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhjehNhNubj)}(hXN**Parameters** ``const char *s`` the string to duplicate ``size_t max`` read at most **max** chars from **s** ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Note** Use kmemdup_nul() instead if the size is known exactly. **Return** newly allocated copy of **s** or ``NULL`` in case of errorh](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKqhjRubj )}(hhh](j)}(h*``const char *s`` the string to duplicate h](j)}(h``const char *s``h]j)}(hjwh]h const char *s}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKnhjqubj2)}(hhh]h)}(hthe string to duplicateh]hthe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKnhjubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjhKnhjnubj)}(h5``size_t max`` read at most **max** chars from **s** h](j)}(h``size_t max``h]j)}(hjh]h size_t max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKohjubj2)}(hhh]h)}(h%read at most **max** chars from **s**h](h read at most }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh chars from }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhKohjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKohjnubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hj h]h gfp_t gfp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKphjubj2)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKphjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKphjnubeh}(h]h ]h"]h$]h&]uh1j hjRubh)}(h**Note**h]j)}(hjDh]hNote}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKrhjRubh)}(h7Use kmemdup_nul() instead if the size is known exactly.h]h7Use kmemdup_nul() instead if the size is known exactly.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKrhjRubh)}(h **Return**h]j)}(hjkh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKthjRubh)}(h:newly allocated copy of **s** or ``NULL`` in case of errorh](hnewly allocated copy of }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in case of error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKthjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kmemdup (C function) c.kmemduphNtauh1hhjehhhNhNubj)}(hhh](j)}(h7void * kmemdup (const void *src, size_t len, gfp_t gfp)h]j)}(h5void *kmemdup(const void *src, size_t len, gfp_t gfp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK}ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK}ubj{)}(hkmemduph]j)}(hkmemduph]hkmemdup}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK}ubj)}(h((const void *src, size_t len, gfp_t gfp)h](j)}(hconst void *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.kmemdupasbuh1hhjwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.kmemdupasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK}ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK}hjhhubj)}(hhh]h)}(hduplicate region of memoryh]hduplicate region of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chK}hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1jhhhjehNhNubj)}(hX **Parameters** ``const void *src`` memory region to duplicate ``size_t len`` memory region length ``gfp_t gfp`` GFP mask to use **Return** newly allocated copy of **src** or ``NULL`` in case of error, result is physically contiguous. Use kfree() to free.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj:ubj )}(hhh](j)}(h/``const void *src`` memory region to duplicate h](j)}(h``const void *src``h]j)}(hj_h]hconst void *src}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjYubj2)}(hhh]h)}(hmemory region to duplicateh]hmemory region to duplicate}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthKhjuubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjthKhjVubj)}(h$``size_t len`` memory region length h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj2)}(hhh]h)}(hmemory region lengthh]hmemory region length}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjVubj)}(h``gfp_t gfp`` GFP mask to use h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj2)}(hhh]h)}(hGFP mask to useh]hGFP mask to use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjVubeh}(h]h ]h"]h$]h&]uh1j hj:ubh)}(h **Return**h]j)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj:ubh)}(hsnewly allocated copy of **src** or ``NULL`` in case of error, result is physically contiguous. Use kfree() to free.h](hnewly allocated copy of }(hj"hhhNhNubj)}(h**src**h]hsrc}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh or }(hj"hhhNhNubj)}(h``NULL``h]hNULL}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubhH in case of error, result is physically contiguous. Use kfree() to free.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kmemdup_nul (C function) c.kmemdup_nulhNtauh1hhjehhhNhNubj)}(hhh](j)}(h9char * kmemdup_nul (const char *s, size_t len, gfp_t gfp)h]j)}(h7char *kmemdup_nul(const char *s, size_t len, gfp_t gfp)h](j )}(hcharh]hchar}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhKubj{)}(h kmemdup_nulh]j)}(h kmemdup_nulh]h kmemdup_nul}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqhhhjhKubj)}(h&(const char *s, size_t len, gfp_t gfp)h](j)}(h const char *sh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsb c.kmemdup_nulasbuh1hhjubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]j: c.kmemdup_nulasbuh1hhjaubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhKubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjjhhubj)}(hhh]h)}(h5Create a NUL-terminated string from unterminated datah]h5Create a NUL-terminated string from unterminated data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjehNhNubj)}(hX **Parameters** ``const char *s`` The data to stringify ``size_t len`` The size of the data ``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory **Return** newly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj )}(hhh](j)}(h(``const char *s`` The data to stringify h](j)}(h``const char *s``h]j)}(hjh]h const char *s}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj2)}(hhh]h)}(hThe data to stringifyh]hThe data to stringify}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h$``size_t len`` The size of the data h](j)}(h``size_t len``h]j)}(hj8h]h size_t len}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj2ubj2)}(hhh]h)}(hThe size of the datah]hThe size of the data}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhKhjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhjubj)}(hM``gfp_t gfp`` the GFP mask used in the kmalloc() call when allocating memory h](j)}(h ``gfp_t gfp``h]j)}(hjqh]h gfp_t gfp}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjkubj2)}(hhh]h)}(h>the GFP mask used in the kmalloc() call when allocating memoryh]h>the GFP mask used in the kmalloc() call when allocating memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubh)}(hOnewly allocated copy of **s** with NUL-termination or ``NULL`` in case of errorh](hnewly allocated copy of }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh with NUL-termination or }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in case of error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memdup_user (C function) c.memdup_userhNtauh1hhjehhhNhNubj)}(hhh](j)}(h7void * memdup_user (const void __user *src, size_t len)h]j)}(h5void *memdup_user(const void __user *src, size_t len)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj#hKubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hKubj{)}(h memdup_userh]j)}(h memdup_userh]h memdup_user}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj#hKubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj )}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubh__user}(hj[hhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jEsb c.memdup_userasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj#hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj#hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj#hKhj hhubj)}(hhh]h)}(h'duplicate memory region from user spaceh]h'duplicate memory region from user space}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj&hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const void __user *src`` source address in user space ``size_t len`` number of bytes to copy **Return** an ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().h](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjEubj )}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjjh]hconst void __user *src}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjdubj2)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjhKhjaubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj2)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjaubeh}(h]h ]h"]h$]h&]uh1j hjEubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjEubh)}(hRan ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().h]hRan ERR_PTR() on failure. Result is physically contiguous, to be freed by kfree().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j vmemdup_user (C function)c.vmemdup_userhNtauh1hhjehhhNhNubj)}(hhh](j)}(h8void * vmemdup_user (const void __user *src, size_t len)h]j)}(h6void *vmemdup_user(const void __user *src, size_t len)h](j )}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj1hKubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj1hKubj{)}(h vmemdup_userh]j)}(h vmemdup_userh]h vmemdup_user}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj1hKubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjiubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubh__user}(hjihhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jSsbc.vmemdup_userasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj1hKhjhhubj)}(hhh]h)}(h'duplicate memory region from user spaceh]h'duplicate memory region from user space}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhj4hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOjjOjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const void __user *src`` source address in user space ``size_t len`` number of bytes to copy **Return** an ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.h](h)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjSubj )}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjxh]hconst void __user *src}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjrubj2)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhKhjoubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjubj2)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjoubeh}(h]h ]h"]h$]h&]uh1j hjSubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjSubh)}(hYan ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.h]hYan ERR_PTR() on failure. Result may be not physically contiguous. Use kvfree() to free.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chKhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j strndup_user (C function)c.strndup_userhNtauh1hhjehhhNhNubj)}(hhh](j)}(h2char * strndup_user (const char __user *s, long n)h]j)}(h0char *strndup_user(const char __user *s, long n)h](j )}(hcharh]hchar}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-hhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-hhhj?hMubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj?hMubj{)}(h strndup_userh]j)}(h strndup_userh]h strndup_user}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj?hMubj)}(h(const char __user *s, long n)h](j)}(hconst char __user *sh](j)}(hjh]hconst}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubh__user}(hjwhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hjY)h]hs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hlong nh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhj-hhhj?hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj?hMubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1jhj?hMhj&hhubj)}(hhh]h)}(h,duplicate an existing string from user spaceh]h,duplicate an existing string from user space}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhj+hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj?hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const char __user *s`` The string to duplicate ``long n`` Maximum number of bytes to copy, including the trailing NUL. **Return** newly allocated copy of **s** or an ERR_PTR() in case of errorh](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM hjJubj )}(hhh](j)}(h1``const char __user *s`` The string to duplicate h](j)}(h``const char __user *s``h]j)}(hjoh]hconst char __user *s}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhjiubj2)}(hhh]h)}(hThe string to duplicateh]hThe string to duplicate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubj)}(hH``long n`` Maximum number of bytes to copy, including the trailing NUL. h](j)}(h ``long n``h]j)}(hjh]hlong n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chMhjubj2)}(hhh]h)}(hnewly allocated copy of **s** or an ERR_PTR() in case of errorh](hnewly allocated copy of }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! or an ERR_PTR() in case of error}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memdup_user_nul (C function)c.memdup_user_nulhNtauh1hhjehhhNhNubj)}(hhh](j)}(h;void * memdup_user_nul (const void __user *src, size_t len)h]j)}(h9void *memdup_user_nul(const void __user *src, size_t len)h](j )}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6hhhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM$ubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6hhhjHhM$ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhjHhM$ubj{)}(hmemdup_user_nulh]j)}(hmemdup_user_nulh]hmemdup_user_nul}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6hhhjHhM$ubj)}(h$(const void __user *src, size_t len)h](j)}(hconst void __user *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh__user}(hjhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jjsbc.memdup_user_nulasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhjHhM$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjHhM$ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jhjHhM$hj/hhubj)}(hhh]h)}(h9duplicate memory region from user space and NUL-terminateh]h9duplicate memory region from user space and NUL-terminate}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM$hjKhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1jhhhjehNhNubj)}(h**Parameters** ``const void __user *src`` source address in user space ``size_t len`` number of bytes to copy **Return** an ERR_PTR() on failure.h](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM(hjjubj )}(hhh](j)}(h8``const void __user *src`` source address in user space h](j)}(h``const void __user *src``h]j)}(hjh]hconst void __user *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM&hjubj2)}(hhh]h)}(hsource address in user spaceh]hsource address in user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM&hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjubj)}(h'``size_t len`` number of bytes to copy h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM'hjubj2)}(hhh]h)}(hnumber of bytes to copyh]hnumber of bytes to copy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM'hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjubeh}(h]h ]h"]h$]h&]uh1j hjjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM)hjjubh)}(han ERR_PTR() on failure.h]han ERR_PTR() on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:42: ./mm/util.chM)hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjehhhNhNubeh}(h]string-manipulationah ]h"]string manipulationah$]h&]uh1hhhhhhhhKubeh}(h]basic-c-library-functionsah ]h"]basic c library functionsah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hBasic Kernel Library Functionsh]hBasic Kernel Library Functions}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hhhhhK/ubh)}(h7The Linux kernel provides more basic utility functions.h]h7The Linux kernel provides more basic utility functions.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hj?hhubh)}(hhh](h)}(hBit Operationsh]hBit Operations}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hhhhhK4ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j set_bit (C function) c.set_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(h4void set_bit (long nr, volatile unsigned long *addr)h]j)}(h3void set_bit(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hset_bith]j)}(hset_bith]hset_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hvolatileh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1jhjhKhj}hhubj)}(hhh]h)}(hAtomically set a bit in memoryh]hAtomically set a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(hX>**Parameters** ``long nr`` the bit to set ``volatile unsigned long *addr`` the address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers). Note that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjubj )}(hhh](j)}(h``long nr`` the bit to set h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjubj2)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjubj2)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjubh)}(hvNote that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h Note that }(hj_hhhNhNubj)}(h**nr**h]hnr}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubhf may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clear_bit (C function) c.clear_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(h6void clear_bit (long nr, volatile unsigned long *addr)h]j)}(h5void clear_bit(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK!ubj{)}(h clear_bith]j)}(h clear_bith]h clear_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK!ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hunsignedh]hunsigned}(hj-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK!hjhhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK!hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(h**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjubj )}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK"hjubj2)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjubj)}(h@``volatile unsigned long *addr`` Address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK#hjubj2)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hK#hj,ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj+hK#hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK%hjubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j change_bit (C function) c.change_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(h7void change_bit (long nr, volatile unsigned long *addr)h]j)}(h6void change_bit(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK.ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK.ubj{)}(h change_bith]j)}(h change_bith]h change_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK.ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hunsignedh]hunsigned}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK.ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK.hjhhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK.hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(hX9**Parameters** ``long nr`` Bit to change ``volatile unsigned long *addr`` Address to start counting from **Description** This is a relaxed atomic operation (no implied memory barriers). Note that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjubj )}(hhh](j)}(h``long nr`` Bit to change h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK/hjubj2)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK/hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK/hjubj)}(h@``volatile unsigned long *addr`` Address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hj h]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK0hjubj2)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hK0hj"ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj!hK0hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK2hjubh)}(h@This is a relaxed atomic operation (no implied memory barriers).h]h@This is a relaxed atomic operation (no implied memory barriers).}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK1hjubh)}(hvNote that **nr** may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.h](h Note that }(hjlhhhNhNubj)}(h**nr**h]hnr}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubhf may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK3hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j test_and_set_bit (C function)c.test_and_set_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(h=bool test_and_set_bit (long nr, volatile unsigned long *addr)h]j)}(hubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK>ubj{)}(htest_and_set_bith]j)}(htest_and_set_bith]htest_and_set_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK>ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK>hjhhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK>hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(h**Parameters** ``long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjubj )}(hhh](j)}(h``long nr`` Bit to set h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK?hjubj2)}(hhh]h)}(h Bit to seth]h Bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK?hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hj"h]hvolatile unsigned long *addr}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK@hjubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hK@hj8ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj7hK@hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj]h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKBhjubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKAhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j test_and_clear_bit (C function)c.test_and_clear_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(h?bool test_and_clear_bit (long nr, volatile unsigned long *addr)h]j)}(h>bool test_and_clear_bit(long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKLubj{)}(htest_and_clear_bith]j)}(htest_and_clear_bith]htest_and_clear_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKLubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKLhjhhubj)}(hhh]h)}(h$Clear a bit and return its old valueh]h$Clear a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKLhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(h**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjubj )}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKMhjubj2)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKNhjubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKNhj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hKNhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKPhjubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  test_and_change_bit (C function)c.test_and_change_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(h@bool test_and_change_bit (long nr, volatile unsigned long *addr)h]j)}(h?bool test_and_change_bit(long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKZubj{)}(htest_and_change_bith]j)}(htest_and_change_bith]htest_and_change_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKZubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hunsignedh]hunsigned}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKZubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKZhjhhubj)}(hhh]h)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhKZhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(h**Parameters** ``long nr`` Bit to change ``volatile unsigned long *addr`` Address to count from **Description** This is an atomic fully-ordered operation (implied full memory barrier).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjubj )}(hhh](j)}(h``long nr`` Bit to change h](j)}(h ``long nr``h]j)}(hjh]hlong nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK[hjubj2)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK[hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hj h]hvolatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK\hjubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hK\hj"ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj!hK\hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK^hjubh)}(hHThis is an atomic fully-ordered operation (implied full memory barrier).h]hHThis is an atomic fully-ordered operation (implied full memory barrier).}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hht/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:54: ./include/asm-generic/bitops/instrumented-atomic.hhK]hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ___set_bit (C function) c.___set_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(h@void ___set_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(h?void ___set_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h ___set_bith]j)}(h ___set_bith]h ___set_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hSet a bit in memoryh]hSet a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(hX,**Parameters** ``unsigned long nr`` the bit to set ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj )}(hhh](j)}(h$``unsigned long nr`` the bit to set h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj2)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjh]hvolatile unsigned long *addr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj2)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj4ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubh)}(hUnlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike set_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ___clear_bit (C function)c.___clear_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(hBvoid ___clear_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hAvoid ___clear_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK!ubj{)}(h ___clear_bith]j)}(h ___clear_bith]h ___clear_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK!ubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj )}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj )}(hlongh]hlong}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK!hjhhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK!hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(hX0**Parameters** ``unsigned long nr`` the bit to clear ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjubj )}(hhh](j)}(h&``unsigned long nr`` the bit to clear h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK"hjubj2)}(hhh]h)}(hthe bit to clearh]hthe bit to clear}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK"hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hK"hjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hj0h]hvolatile unsigned long *addr}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK#hj*ubj2)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhK#hjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhK#hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK%hjubh)}(hUnlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike clear_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK$hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ___change_bit (C function)c.___change_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(hCvoid ___change_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hBvoid ___change_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK1ubj{)}(h ___change_bith]j)}(h ___change_bith]h ___change_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK1ubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj )}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK1hjhhubj)}(hhh]h)}(hToggle a bit in memoryh]hToggle a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK1hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(hX2**Parameters** ``unsigned long nr`` the bit to change ``volatile unsigned long *addr`` the address to start counting from **Description** Unlike change_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK5hjubj )}(hhh](j)}(h'``unsigned long nr`` the bit to change h](j)}(h``unsigned long nr``h]j)}(hj h]hunsigned long nr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK2hjubj2)}(hhh]h)}(hthe bit to changeh]hthe bit to change}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK2hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjBh]hvolatile unsigned long *addr}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK3hj<ubj2)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhK3hjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhK3hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK5hjubh)}(hUnlike change_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.h]hUnlike change_bit(), this function is non-atomic. If it is called on the same region of memory concurrently, the effect may be that only one operation succeeds.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  ___test_and_set_bit (C function)c.___test_and_set_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(hIbool ___test_and_set_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hHbool ___test_and_set_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKYubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKYubj{)}(h___test_and_set_bith]j)}(h___test_and_set_bith]h___test_and_set_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKYubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj )}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKYhjhhubj)}(hhh]h)}(h"Set a bit and return its old valueh]h"Set a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKYhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK]hjubj )}(hhh](j)}(h ``unsigned long nr`` Bit to set h](j)}(h``unsigned long nr``h]j)}(hjh]hunsigned long nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKZhjubj2)}(hhh]h)}(h Bit to seth]h Bit to set}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hKZhj0ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj/hKZhjubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjSh]hvolatile unsigned long *addr}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK[hjMubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhK[hjiubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhK[hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK]hjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK\hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "___test_and_clear_bit (C function)c.___test_and_clear_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(hKbool ___test_and_clear_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hJbool ___test_and_clear_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKhubj{)}(h___test_and_clear_bith]j)}(h___test_and_clear_bith]h___test_and_clear_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKhubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hlongh]hlong}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hnrh]hnr}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj )}(hunsignedh]hunsigned}(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKhubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhhjhhubj)}(hhh]h)}(h$Clear a bit and return its old valueh]h$Clear a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKhubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to clear ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKlhjubj )}(hhh](j)}(h"``unsigned long nr`` Bit to clear h](j)}(h``unsigned long nr``h]j)}(hj+h]hunsigned long nr}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKihj%ubj2)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKihjAubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKihj"ubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjdh]hvolatile unsigned long *addr}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKjhj^ubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKjhjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKjhj"ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKlhjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #___test_and_change_bit (C function)c.___test_and_change_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(hLbool ___test_and_change_bit (unsigned long nr, volatile unsigned long *addr)h]j)}(hKbool ___test_and_change_bit(unsigned long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKwubj{)}(h___test_and_change_bith]j)}(h___test_and_change_bith]h___test_and_change_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKwubj)}(h0(unsigned long nr, volatile unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnrh]hnr}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKwhjhhubj)}(hhh]h)}(h%Change a bit and return its old valueh]h%Change a bit and return its old value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKwhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(h**Parameters** ``unsigned long nr`` Bit to change ``volatile unsigned long *addr`` Address to count from **Description** This operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjubj )}(hhh](j)}(h#``unsigned long nr`` Bit to change h](j)}(h``unsigned long nr``h]j)}(hj<h]hunsigned long nr}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKxhj6ubj2)}(hhh]h)}(h Bit to changeh]h Bit to change}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKxhjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKxhj3ubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjuh]hvolatile unsigned long *addr}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKyhjoubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKyhjubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjhKyhj3ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhK{hjubh)}(hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.h]hsThis operation is non-atomic. If two instances of this operation race, one can appear to succeed but actually fail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j _test_bit (C function) c._test_bithNtauh1hhj^hhhNhNubj)}(hhh](j)}(hEbool _test_bit (unsigned long nr, const volatile unsigned long *addr)h]j)}(hDbool _test_bit(unsigned long nr, volatile const unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h _test_bith]j)}(h _test_bith]h _test_bit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h6(unsigned long nr, volatile const unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj )}(hlongh]hlong}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-ubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj)}(hnrh]hnr}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ubj)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hDetermine whether a bit is seth]hDetermine whether a bit is set}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj$hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1jhhhj^hNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjCubj )}(hhh](j)}(h(``unsigned long nr`` bit number to test h](j)}(h``unsigned long nr``h]j)}(hjhh]hunsigned long nr}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjbubj2)}(hhh]h)}(hbit number to testh]hbit number to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKhj~ubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKhj_ubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjh]h"const volatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj2)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj_ubeh}(h]h ]h"]h$]h&]uh1j hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j _test_bit_acquire (C function)c._test_bit_acquirehNtauh1hhj^hhhNhNubj)}(hhh](j)}(hMbool _test_bit_acquire (unsigned long nr, const volatile unsigned long *addr)h]j)}(hLbool _test_bit_acquire(unsigned long nr, volatile const unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h_test_bit_acquireh]j)}(h_test_bit_acquireh]h_test_bit_acquire}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h6(unsigned long nr, volatile const unsigned long *addr)h](j)}(hunsigned long nrh](j )}(hunsignedh]hunsigned}(hj7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj )}(hlongh]hlong}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hnrh]hnr}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(h"volatile const unsigned long *addrh](j)}(hjh]hvolatile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h7Determine, with acquire semantics, whether a bit is seth]h7Determine, with acquire semantics, whether a bit is set}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhj*hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jhhhj^hNhNubj)}(h**Parameters** ``unsigned long nr`` bit number to test ``const volatile unsigned long *addr`` Address to start counting fromh](h)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjIubj )}(hhh](j)}(h(``unsigned long nr`` bit number to test h](j)}(h``unsigned long nr``h]j)}(hjnh]hunsigned long nr}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjhubj2)}(hhh]h)}(hbit number to testh]hbit number to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhjeubj)}(hE``const volatile unsigned long *addr`` Address to start counting fromh](j)}(h&``const volatile unsigned long *addr``h]j)}(hjh]h"const volatile unsigned long *addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubj2)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhx/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:57: ./include/asm-generic/bitops/instrumented-non-atomic.hhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjeubeh}(h]h ]h"]h$]h&]uh1j hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clear_bit_unlock (C function)c.clear_bit_unlockhNtauh1hhj^hhhNhNubj)}(hhh](j)}(h=void clear_bit_unlock (long nr, volatile unsigned long *addr)h]j)}(hah"]h$]h&]uh1j1hjhhhjhKubj{)}(hclear_bit_unlockh]j)}(hclear_bit_unlockh]hclear_bit_unlock}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj)}(hnrh]hnr}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h!Clear a bit in memory, for unlockh]h!Clear a bit in memory, for unlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(h**Parameters** ``long nr`` the bit to set ``volatile unsigned long *addr`` the address to start counting from **Description** This operation is atomic and provides release barrier semantics.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKhjubj )}(hhh](j)}(h``long nr`` the bit to set h](j)}(h ``long nr``h]j)}(hj>h]hlong nr}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKhj8ubj2)}(hhh]h)}(hthe bit to seth]hthe bit to set}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShKhjTubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShKhj5ubj)}(hD``volatile unsigned long *addr`` the address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjwh]hvolatile unsigned long *addr}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKhjqubj2)}(hhh]h)}(h"the address to start counting fromh]h"the address to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjhKhj5ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKhjubh)}(h@This operation is atomic and provides release barrier semantics.h]h@This operation is atomic and provides release barrier semantics.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __clear_bit_unlock (C function)c.__clear_bit_unlockhNtauh1hhj^hhhNhNubj)}(hhh](j)}(h?void __clear_bit_unlock (long nr, volatile unsigned long *addr)h]j)}(h>void __clear_bit_unlock(long nr, volatile unsigned long *addr)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h__clear_bit_unlockh]j)}(h__clear_bit_unlockh]h__clear_bit_unlock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hnrh]hnr}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hClears a bit in memoryh]hClears a bit in memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj^hNhNubj)}(hX7**Parameters** ``long nr`` Bit to clear ``volatile unsigned long *addr`` Address to start counting from **Description** This is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK#hjubj )}(hhh](j)}(h``long nr`` Bit to clear h](j)}(h ``long nr``h]j)}(hj4h]hlong nr}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK hj.ubj2)}(hhh]h)}(h Bit to clearh]h Bit to clear}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhK hjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhK hj+ubj)}(h@``volatile unsigned long *addr`` Address to start counting from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjmh]hvolatile unsigned long *addr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK!hjgubj2)}(hhh]h)}(hAddress to start counting fromh]hAddress to start counting from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK!hjubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjhK!hj+ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK#hjubh)}(hThis is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.h]hThis is a non-atomic operation but implies a release barrier before the memory operation. It can be used for an unlock if no other CPUs can concurrently modify other bits in the word.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "test_and_set_bit_lock (C function)c.test_and_set_bit_lockhNtauh1hhj^hhhNhNubj)}(hhh](j)}(hBbool test_and_set_bit_lock (long nr, volatile unsigned long *addr)h]j)}(hAbool test_and_set_bit_lock(long nr, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK/ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK/ubj{)}(htest_and_set_bit_lockh]j)}(htest_and_set_bit_lockh]htest_and_set_bit_lock}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK/ubj)}(h'(long nr, volatile unsigned long *addr)h](j)}(hlong nrh](j )}(hlongh]hlong}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hnrh]hnr}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj )}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>a'h"]h$]h&]uh1j1hjZubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK/hjhhubj)}(hhh]h)}(h,Set a bit and return its old value, for lockh]h,Set a bit and return its old value, for lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK/hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj^hNhNubj)}(h**Parameters** ``long nr`` Bit to set ``volatile unsigned long *addr`` Address to count from **Description** This operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK3hjubj )}(hhh](j)}(h``long nr`` Bit to set h](j)}(h ``long nr``h]j)}(hj)h]hlong nr}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK0hj#ubj2)}(hhh]h)}(h Bit to seth]h Bit to set}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hK0hj?ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hK0hj ubj)}(h7``volatile unsigned long *addr`` Address to count from h](j)}(h ``volatile unsigned long *addr``h]j)}(hjbh]hvolatile unsigned long *addr}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK1hj\ubj2)}(hhh]h)}(hAddress to count fromh]hAddress to count from}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhK1hjxubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhK1hj ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK3hjubh)}(hThis operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.h]hThis operation is atomic and provides acquire barrier semantics if the returned value is 0. It can be used to implement bit locks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (xor_unlock_is_negative_byte (C function)c.xor_unlock_is_negative_bytehNtauh1hhj^hhhNhNubj)}(hhh](j)}(hSbool xor_unlock_is_negative_byte (unsigned long mask, volatile unsigned long *addr)h]j)}(hRbool xor_unlock_is_negative_byte(unsigned long mask, volatile unsigned long *addr)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK>ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK>ubj{)}(hxor_unlock_is_negative_byteh]j)}(hxor_unlock_is_negative_byteh]hxor_unlock_is_negative_byte}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK>ubj)}(h2(unsigned long mask, volatile unsigned long *addr)h](j)}(hunsigned long maskh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj, hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hlongh]hlong}(hj: hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjH hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hmaskh]hmask}(hjV hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hvolatile unsigned long *addrh](j)}(hjh]hvolatile}(hjo hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk ubj2)}(h h]h }(hj| hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjk ubj )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjk ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjk ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjk ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjk ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk ubj)}(haddrh]haddr}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK>hjhhubj)}(hhh]h)}(hCXOR a single byte in memory and test if it is negative, for unlock.h]hCXOR a single byte in memory and test if it is negative, for unlock.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK>hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj^hNhNubj)}(hX-**Parameters** ``unsigned long mask`` Change the bits which are set in this mask. ``volatile unsigned long *addr`` The address of the word containing the byte to change. **Description** Changes some of bits 0-6 in the word pointed to by **addr**. This operation is atomic and provides release barrier semantics. Used to optimise some folio operations which are commonly paired with an unlock or end of writeback. Bit 7 is used as PG_waiters to indicate whether anybody is waiting for the unlock. **Return** Whether the top bit of the byte is set.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKBhj ubj )}(hhh](j)}(hC``unsigned long mask`` Change the bits which are set in this mask. h](j)}(h``unsigned long mask``h]j)}(hj: h]hunsigned long mask}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8 ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhK@hj4 ubj2)}(hhh]h)}(h+Change the bits which are set in this mask.h]h+Change the bits which are set in this mask.}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO hK@hjP ubah}(h]h ]h"]h$]h&]uh1j1hj4 ubeh}(h]h ]h"]h$]h&]uh1jhjO hK@hj1 ubj)}(hX``volatile unsigned long *addr`` The address of the word containing the byte to change. h](j)}(h ``volatile unsigned long *addr``h]j)}(hjs h]hvolatile unsigned long *addr}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq ubah}(h]h ]h"]h$]h&]uh1jhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKAhjm ubj2)}(hhh]h)}(h6The address of the word containing the byte to change.h]h6The address of the word containing the byte to change.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKAhj ubah}(h]h ]h"]h$]h&]uh1j1hjm ubeh}(h]h ]h"]h$]h&]uh1jhj hKAhj1 ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKChj ubh)}(hX6Changes some of bits 0-6 in the word pointed to by **addr**. This operation is atomic and provides release barrier semantics. Used to optimise some folio operations which are commonly paired with an unlock or end of writeback. Bit 7 is used as PG_waiters to indicate whether anybody is waiting for the unlock.h](h3Changes some of bits 0-6 in the word pointed to by }(hj hhhNhNubj)}(h**addr**h]haddr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh. This operation is atomic and provides release barrier semantics. Used to optimise some folio operations which are commonly paired with an unlock or end of writeback. Bit 7 is used as PG_waiters to indicate whether anybody is waiting for the unlock.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKBhj ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKHhj ubh)}(h'Whether the top bit of the byte is set.h]h'Whether the top bit of the byte is set.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhr/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:60: ./include/asm-generic/bitops/instrumented-lock.hhKIhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj^hhhNhNubeh}(h]bit-operationsah ]h"]bit operationsah$]h&]uh1hhj?hhhhhK4ubh)}(hhh](h)}(hBitmap Operationsh]hBitmap Operations}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK@ubh)}(hbitmaps provide an array of bits, implemented using an array of unsigned longs. The number of valid bits in a given bitmap does _not_ need to be an exact multiple of BITS_PER_LONG.h]hbitmaps provide an array of bits, implemented using an array of unsigned longs. The number of valid bits in a given bitmap does _not_ need to be an exact multiple of BITS_PER_LONG.}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhj hhubh)}(hXThe possible unused bits in the last, partially used word of a bitmap are 'don't care'. The implementation makes no particular effort to keep them zero. It ensures that their value will not affect the results of any operation. The bitmap operations that return Boolean (bitmap_empty, for example) or scalar (bitmap_weight, for example) results carefully filter out these unused bits from impacting their results.h]hXThe possible unused bits in the last, partially used word of a bitmap are ‘don’t care’. The implementation makes no particular effort to keep them zero. It ensures that their value will not affect the results of any operation. The bitmap operations that return Boolean (bitmap_empty, for example) or scalar (bitmap_weight, for example) results carefully filter out these unused bits from impacting their results.}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhj hhubh)}(hThe byte ordering of bitmaps is more natural on little endian architectures. See the big-endian headers include/asm-ppc64/bitops.h and include/asm-s390/bitops.h for the best explanations of this ordering.h]hThe byte ordering of bitmaps is more natural on little endian architectures. See the big-endian headers include/asm-ppc64/bitops.h and include/asm-s390/bitops.h for the best explanations of this ordering.}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:66: ./lib/bitmap.chKhj hhubh)}(hThe DECLARE_BITMAP(name,bits) macro, in linux/types.h, can be used to declare an array named 'name' of just enough unsigned longs to contain all bit positions from 0 to 'bits' - 1.h]hThe DECLARE_BITMAP(name,bits) macro, in linux/types.h, can be used to declare an array named ‘name’ of just enough unsigned longs to contain all bit positions from 0 to ‘bits’ - 1.}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:69: ./include/linux/bitmap.hhK}hj hhubh)}(hwThe available bitmap operations and their rough meaning in the case that the bitmap is a single unsigned long are thus:h]hwThe available bitmap operations and their rough meaning in the case that the bitmap is a single unsigned long are thus:}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK!hj hhubh)}(hcThe generated code is more efficient when nbits is known at compile-time and at most BITS_PER_LONG.h]hcThe generated code is more efficient when nbits is known at compile-time and at most BITS_PER_LONG.}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK$hj hhubjH)}(hXbitmap_zero(dst, nbits) *dst = 0UL bitmap_fill(dst, nbits) *dst = ~0UL bitmap_copy(dst, src, nbits) *dst = *src bitmap_and(dst, src1, src2, nbits) *dst = *src1 & *src2 bitmap_or(dst, src1, src2, nbits) *dst = *src1 | *src2 bitmap_weighted_or(dst, src1, src2, nbits) *dst = *src1 | *src2. Returns Hamming Weight of dst bitmap_weighted_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2. Returns Hamming Weight of dst bitmap_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2 bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2) bitmap_complement(dst, src, nbits) *dst = ~(*src) bitmap_equal(src1, src2, nbits) Are *src1 and *src2 equal? bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap? bitmap_subset(src1, src2, nbits) Is *src1 a subset of *src2? bitmap_empty(src, nbits) Are all bits zero in *src? bitmap_full(src, nbits) Are all bits set in *src? bitmap_weight(src, nbits) Hamming Weight: number set bits bitmap_weight_and(src1, src2, nbits) Hamming Weight of and'ed bitmap bitmap_weight_andnot(src1, src2, nbits) Hamming Weight of andnot'ed bitmap bitmap_weight_from(src, start, end) Hamming Weight starting from **start** bitmap_set(dst, pos, nbits) Set specified bit area bitmap_clear(dst, pos, nbits) Clear specified bit area bitmap_find_next_zero_area(buf, len, pos, n, mask) Find bit free area bitmap_find_next_zero_area_off(buf, len, pos, n, mask, mask_off) as above bitmap_shift_right(dst, src, n, nbits) *dst = *src >> n bitmap_shift_left(dst, src, n, nbits) *dst = *src << n bitmap_cut(dst, src, first, n, nbits) Cut n bits from first, copy rest bitmap_replace(dst, old, new, mask, nbits) *dst = (*old & ~(*mask)) | (*new & *mask) bitmap_scatter(dst, src, mask, nbits) *dst = map(dense, sparse)(src) bitmap_gather(dst, src, mask, nbits) *dst = map(sparse, dense)(src) bitmap_remap(dst, src, old, new, nbits) *dst = map(old, new)(src) bitmap_bitremap(oldbit, old, new, nbits) newbit = map(old, new)(oldbit) bitmap_onto(dst, orig, relmap, nbits) *dst = orig relative to relmap bitmap_fold(dst, orig, sz, nbits) dst bits = orig bits mod sz bitmap_parse(buf, buflen, dst, nbits) Parse bitmap dst from kernel buf bitmap_parse_user(ubuf, ulen, dst, nbits) Parse bitmap dst from user buf bitmap_parselist(buf, dst, nbits) Parse bitmap dst from kernel buf bitmap_parselist_user(buf, dst, nbits) Parse bitmap dst from user buf bitmap_find_free_region(bitmap, bits, order) Find and allocate bit region bitmap_release_region(bitmap, pos, order) Free specified bit region bitmap_allocate_region(bitmap, pos, order) Allocate specified bit region bitmap_from_arr32(dst, buf, nbits) Copy nbits from u32[] buf to dst bitmap_from_arr64(dst, buf, nbits) Copy nbits from u64[] buf to dst bitmap_to_arr32(buf, src, nbits) Copy nbits from buf to u32[] dst bitmap_to_arr64(buf, src, nbits) Copy nbits from buf to u64[] dst bitmap_get_value8(map, start) Get 8bit value from map at start bitmap_set_value8(map, value, start) Set 8bit value to map at start bitmap_read(map, start, nbits) Read an nbits-sized value from map at start bitmap_write(map, value, start, nbits) Write an nbits-sized value to map at starth]hXbitmap_zero(dst, nbits) *dst = 0UL bitmap_fill(dst, nbits) *dst = ~0UL bitmap_copy(dst, src, nbits) *dst = *src bitmap_and(dst, src1, src2, nbits) *dst = *src1 & *src2 bitmap_or(dst, src1, src2, nbits) *dst = *src1 | *src2 bitmap_weighted_or(dst, src1, src2, nbits) *dst = *src1 | *src2. Returns Hamming Weight of dst bitmap_weighted_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2. Returns Hamming Weight of dst bitmap_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2 bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2) bitmap_complement(dst, src, nbits) *dst = ~(*src) bitmap_equal(src1, src2, nbits) Are *src1 and *src2 equal? bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap? bitmap_subset(src1, src2, nbits) Is *src1 a subset of *src2? bitmap_empty(src, nbits) Are all bits zero in *src? bitmap_full(src, nbits) Are all bits set in *src? bitmap_weight(src, nbits) Hamming Weight: number set bits bitmap_weight_and(src1, src2, nbits) Hamming Weight of and'ed bitmap bitmap_weight_andnot(src1, src2, nbits) Hamming Weight of andnot'ed bitmap bitmap_weight_from(src, start, end) Hamming Weight starting from **start** bitmap_set(dst, pos, nbits) Set specified bit area bitmap_clear(dst, pos, nbits) Clear specified bit area bitmap_find_next_zero_area(buf, len, pos, n, mask) Find bit free area bitmap_find_next_zero_area_off(buf, len, pos, n, mask, mask_off) as above bitmap_shift_right(dst, src, n, nbits) *dst = *src >> n bitmap_shift_left(dst, src, n, nbits) *dst = *src << n bitmap_cut(dst, src, first, n, nbits) Cut n bits from first, copy rest bitmap_replace(dst, old, new, mask, nbits) *dst = (*old & ~(*mask)) | (*new & *mask) bitmap_scatter(dst, src, mask, nbits) *dst = map(dense, sparse)(src) bitmap_gather(dst, src, mask, nbits) *dst = map(sparse, dense)(src) bitmap_remap(dst, src, old, new, nbits) *dst = map(old, new)(src) bitmap_bitremap(oldbit, old, new, nbits) newbit = map(old, new)(oldbit) bitmap_onto(dst, orig, relmap, nbits) *dst = orig relative to relmap bitmap_fold(dst, orig, sz, nbits) dst bits = orig bits mod sz bitmap_parse(buf, buflen, dst, nbits) Parse bitmap dst from kernel buf bitmap_parse_user(ubuf, ulen, dst, nbits) Parse bitmap dst from user buf bitmap_parselist(buf, dst, nbits) Parse bitmap dst from kernel buf bitmap_parselist_user(buf, dst, nbits) Parse bitmap dst from user buf bitmap_find_free_region(bitmap, bits, order) Find and allocate bit region bitmap_release_region(bitmap, pos, order) Free specified bit region bitmap_allocate_region(bitmap, pos, order) Allocate specified bit region bitmap_from_arr32(dst, buf, nbits) Copy nbits from u32[] buf to dst bitmap_from_arr64(dst, buf, nbits) Copy nbits from u64[] buf to dst bitmap_to_arr32(buf, src, nbits) Copy nbits from buf to u32[] dst bitmap_to_arr64(buf, src, nbits) Copy nbits from buf to u64[] dst bitmap_get_value8(map, start) Get 8bit value from map at start bitmap_set_value8(map, value, start) Set 8bit value to map at start bitmap_read(map, start, nbits) Read an nbits-sized value from map at start bitmap_write(map, value, start, nbits) Write an nbits-sized value to map at start}hj sbah}(h]h ]h"]h$]h&]jjuh1jHhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK)hj hhubh)}(hXNote, bitmap_zero() and bitmap_fill() operate over the region of unsigned longs, that is, bits behind bitmap till the unsigned long boundary will be zeroed or filled as well. Consider to use bitmap_clear() or bitmap_set() to make explicit zeroing or filling respectively.h]hXNote, bitmap_zero() and bitmap_fill() operate over the region of unsigned longs, that is, bits behind bitmap till the unsigned long boundary will be zeroed or filled as well. Consider to use bitmap_clear() or bitmap_set() to make explicit zeroing or filling respectively.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:72: ./include/linux/bitmap.hhK\hj hhubh)}(hAAlso the following operations in asm/bitops.h apply to bitmaps.::h]h@Also the following operations in asm/bitops.h apply to bitmaps.:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKfhj hhubjH)}(hX{set_bit(bit, addr) *addr |= bit clear_bit(bit, addr) *addr &= ~bit change_bit(bit, addr) *addr ^= bit test_bit(bit, addr) Is bit set in *addr? test_and_set_bit(bit, addr) Set bit and return old value test_and_clear_bit(bit, addr) Clear bit and return old value test_and_change_bit(bit, addr) Change bit and return old value find_first_zero_bit(addr, nbits) Position first zero bit in *addr find_first_bit(addr, nbits) Position first set bit in *addr find_next_zero_bit(addr, nbits, bit) Position next zero bit in *addr >= bit find_next_bit(addr, nbits, bit) Position next set bit in *addr >= bit find_next_and_bit(addr1, addr2, nbits, bit) Same as find_next_bit, but in (*addr1 & *addr2)h]hX{set_bit(bit, addr) *addr |= bit clear_bit(bit, addr) *addr &= ~bit change_bit(bit, addr) *addr ^= bit test_bit(bit, addr) Is bit set in *addr? test_and_set_bit(bit, addr) Set bit and return old value test_and_clear_bit(bit, addr) Clear bit and return old value test_and_change_bit(bit, addr) Change bit and return old value find_first_zero_bit(addr, nbits) Position first zero bit in *addr find_first_bit(addr, nbits) Position first set bit in *addr find_next_zero_bit(addr, nbits, bit) Position next zero bit in *addr >= bit find_next_bit(addr, nbits, bit) Position next set bit in *addr >= bit find_next_and_bit(addr1, addr2, nbits, bit) Same as find_next_bit, but in (*addr1 & *addr2)}hj sbah}(h]h ]h"]h$]h&]jjuh1jHhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:75: ./include/linux/bitmap.hhKhhj hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !__bitmap_shift_right (C function)c.__bitmap_shift_righthNtauh1hhj hhhNhNubj)}(hhh](j)}(hhvoid __bitmap_shift_right (unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h]j)}(hgvoid __bitmap_shift_right(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKSubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hKSubj{)}(h__bitmap_shift_righth]j)}(h__bitmap_shift_righth]h__bitmap_shift_right}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hKSubj)}(hN(unsigned long *dst, const unsigned long *src, unsigned shift, unsigned nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj& hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hlongh]hlong}(hj4 hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjB hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjP hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdsth]hdst}(hj] hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjv hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjr ubj )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjr ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjr ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjr ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjr ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr ubj)}(hsrch]hsrc}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned shifth](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hshifth]hshift}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned nbitsh](j )}(hunsignedh]hunsigned}(hj$ hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj2 hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hnbitsh]hnbits}(hj@ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hKSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hKSubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hKShj hhubj)}(hhh]h)}(h+logical right shift of the bits in a bitmaph]h+logical right shift of the bits in a bitmap}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKShjg hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj hNhNubj)}(hX}**Parameters** ``unsigned long *dst`` destination bitmap ``const unsigned long *src`` source bitmap ``unsigned shift`` shift by this many bits ``unsigned nbits`` bitmap size, in bits **Description** Shifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKWhj ubj )}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hj h]hunsigned long *dst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKThj ubj2)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKThj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKThj ubj)}(h+``const unsigned long *src`` source bitmap h](j)}(h``const unsigned long *src``h]j)}(hj h]hconst unsigned long *src}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKUhj ubj2)}(hhh]h)}(h source bitmaph]h source bitmap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKUhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKUhj ubj)}(h+``unsigned shift`` shift by this many bits h](j)}(h``unsigned shift``h]j)}(hjh]hunsigned shift}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKVhjubj2)}(hhh]h)}(hshift by this many bitsh]hshift by this many bits}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKVhj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hKVhj ubj)}(h(``unsigned nbits`` bitmap size, in bits h](j)}(h``unsigned nbits``h]j)}(hjVh]hunsigned nbits}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKWhjPubj2)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKWhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKWhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKYhj ubh)}(hShifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.h]hShifting right (dividing) means moving bits in the MS -> LS bit direction. Zeros are fed into the vacated MS positions and the LS bits shifted off the bottom are lost.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKXhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  __bitmap_shift_left (C function)c.__bitmap_shift_lefthNtauh1hhj hhhNhNubj)}(hhh](j)}(hovoid __bitmap_shift_left (unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h]j)}(hnvoid __bitmap_shift_left(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h__bitmap_shift_lefth]j)}(h__bitmap_shift_lefth]h__bitmap_shift_left}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(hV(unsigned long *dst, const unsigned long *src, unsigned int shift, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj/hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdsth]hdst}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int shifth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hshifth]hshift}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj )}(hinth]hint}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hnbitsh]hnbits}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h*logical left shift of the bits in a bitmaph]h*logical left shift of the bits in a bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj hNhNubj)}(hX**Parameters** ``unsigned long *dst`` destination bitmap ``const unsigned long *src`` source bitmap ``unsigned int shift`` shift by this many bits ``unsigned int nbits`` bitmap size, in bits **Description** Shifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj )}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hjh]hunsigned long *dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj2)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h+``const unsigned long *src`` source bitmap h](j)}(h``const unsigned long *src``h]j)}(hjh]hconst unsigned long *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj2)}(hhh]h)}(h source bitmaph]h source bitmap}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKhj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hKhjubj)}(h/``unsigned int shift`` shift by this many bits h](j)}(h``unsigned int shift``h]j)}(hjPh]hunsigned int shift}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjJubj2)}(hhh]h)}(hshift by this many bitsh]hshift by this many bits}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehKhjfubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjehKhjubj)}(h,``unsigned int nbits`` bitmap size, in bits h](j)}(h``unsigned int nbits``h]j)}(hjh]hunsigned int nbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubj2)}(hhh]h)}(hbitmap size, in bitsh]hbitmap size, in bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubh)}(hShifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.h]hShifting left (multiplying) means moving bits in the LS -> MS direction. Zeros are fed into the vacated LS bit positions and those MS bits shifted off the top are lost.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_cut (C function) c.bitmap_cuthNtauh1hhj hhhNhNubj)}(hhh](j)}(hxvoid bitmap_cut (unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h]j)}(hwvoid bitmap_cut(unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h bitmap_cuth]j)}(h bitmap_cuth]h bitmap_cut}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(hh(unsigned long *dst, const unsigned long *src, unsigned int first, unsigned int cut, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj )}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hdsth]hdst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hunsigned int firsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfirsth]hfirst}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hunsigned int cuth](j )}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hcuth]hcut}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hah"]h$]h&]uh1j1hjhhhj'hMubj )}(hlongh]hlong}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhj'hMubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj'hMubj{)}(hbitmap_find_next_zero_area_offh]j)}(hbitmap_find_next_zero_area_offh]hbitmap_find_next_zero_area_off}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj'hMubj)}(h(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask, unsigned long align_offset)h](j)}(hunsigned long *maph](j )}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hstarth]hstart}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hunsigned long align_maskh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h align_maskh]h align_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hunsigned long align_offseth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h align_offseth]h align_offset}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj'hMhjhhubj)}(hhh]h)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjshhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj hNhNubj)}(hX**Parameters** ``unsigned long *map`` The address to base the search on ``unsigned long size`` The bitmap size in bits ``unsigned long start`` The bitnumber to start searching at ``unsigned int nr`` The number of zeroed bits we're looking for ``unsigned long align_mask`` Alignment mask for zero area ``unsigned long align_offset`` Alignment offset for zero area. **Description** The **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus **align_offset** is multiple of that power of 2. **Return** The bit offset of the found area or a value greater than or equal to **size** if no area is found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj )}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hjh]hunsigned long *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj2)}(hhh]h)}(h!The address to base the search onh]h!The address to base the search on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``unsigned long size`` The bitmap size in bits h](j)}(h``unsigned long size``h]j)}(hjh]hunsigned long size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj2)}(hhh]h)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``unsigned long start`` The bitnumber to start searching at h](j)}(h``unsigned long start``h]j)}(hj)h]hunsigned long start}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj#ubj2)}(hhh]h)}(h#The bitnumber to start searching ath]h#The bitnumber to start searching at}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjubj)}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j)}(h``unsigned int nr``h]j)}(hjbh]hunsigned int nr}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj\ubj2)}(hhh]h)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hjh]hunsigned long align_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj2)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``unsigned long align_offset`` Alignment offset for zero area. h](j)}(h``unsigned long align_offset``h]j)}(hjh]hunsigned long align_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj2)}(hhh]h)}(hAlignment offset for zero area.h]hAlignment offset for zero area.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hThe **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus **align_offset** is multiple of that power of 2.h](hThe }(hj%hhhNhNubj)}(h**align_mask**h]h align_mask}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubht should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus }(hj%hhhNhNubj)}(h**align_offset**h]h align_offset}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh is multiple of that power of 2.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(h **Return**h]j)}(hjZh]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubh)}(hbThe bit offset of the found area or a value greater than or equal to **size** if no area is found.h](hEThe bit offset of the found area or a value greater than or equal to }(hjphhhNhNubj)}(h**size**h]hsize}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubh if no area is found.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_remap (C function)c.bitmap_remaphNtauh1hhj hhhNhNubj)}(hhh](j)}(hvoid bitmap_remap (unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h]j)}(hvoid bitmap_remap(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(h bitmap_remaph]j)}(h bitmap_remaph]h bitmap_remap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hv(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdsth]hdst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj )}(hunsignedh]hunsigned}(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hsrch]hsrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst unsigned long *newh](j)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj )}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnbitsh]hnbits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h8Apply map defined by a pair of bitmaps to another bitmaph]h8Apply map defined by a pair of bitmaps to another bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhj hNhNubj)}(hX**Parameters** ``unsigned long *dst`` remapped result ``const unsigned long *src`` subset to be remapped ``const unsigned long *old`` defines domain of map ``const unsigned long *new`` defines range of map ``unsigned int nbits`` number of bits in each of these bitmaps **Description** Let **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w. If either of the **old** and **new** bitmaps are empty, or if **src** and **dst** point to the same location, then this routine copies **src** to **dst**. The positions of unset bits in **old** are mapped to themselves (the identity map). Apply the above specified mapping to **src**, placing the result in **dst**, clearing any bits previously set in **dst**. For example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **src** comes into this routine with bits 1, 5 and 7 set, then **dst** should leave with bits 1, 13 and 15 set.h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj5ubj )}(hhh](j)}(h'``unsigned long *dst`` remapped result h](j)}(h``unsigned long *dst``h]j)}(hjZh]hunsigned long *dst}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjTubj2)}(hhh]h)}(hremapped resulth]hremapped result}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(h3``const unsigned long *src`` subset to be remapped h](j)}(h``const unsigned long *src``h]j)}(hjh]hconst unsigned long *src}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj2)}(hhh]h)}(hsubset to be remappedh]hsubset to be remapped}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubj)}(h3``const unsigned long *old`` defines domain of map h](j)}(h``const unsigned long *old``h]j)}(hjh]hconst unsigned long *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj2)}(hhh]h)}(hdefines domain of maph]hdefines domain of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubj)}(h2``const unsigned long *new`` defines range of map h](j)}(h``const unsigned long *new``h]j)}(hjh]hconst unsigned long *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjubj2)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hj>h]hunsigned int nbits}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj8ubj2)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjQubeh}(h]h ]h"]h$]h&]uh1j hj5ubh)}(h**Description**h]j)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj5ubh)}(hXLet **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w.h](hLet }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" is mapped to the n-th set bit in }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is less than the weight of }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh*, map the position of the n-th set bit in }(hjhhhNhNubj)}(h**old**h]hold}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( to the position of the m-th set bit in }(hjhhhNhNubj)}(h**new**h]hnew}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, where m == n % w.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj5ubh)}(hIf either of the **old** and **new** bitmaps are empty, or if **src** and **dst** point to the same location, then this routine copies **src** to **dst**.h](hIf either of the }(hj. hhhNhNubj)}(h**old**h]hold}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj. ubh and }(hj. hhhNhNubj)}(h**new**h]hnew}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj. ubh bitmaps are empty, or if }(hj. hhhNhNubj)}(h**src**h]hsrc}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj. ubh and }(hj. hhhNhNubj)}(h**dst**h]hdst}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj. ubh6 point to the same location, then this routine copies }(hj. hhhNhNubj)}(h**src**h]hsrc}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj. ubh to }(hj. hhhNhNubj)}(h**dst**h]hdst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj. ubh.}(hj. hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj5ubh)}(hSThe positions of unset bits in **old** are mapped to themselves (the identity map).h](hThe positions of unset bits in }(hj hhhNhNubj)}(h**old**h]hold}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh- are mapped to themselves (the identity map).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj5ubh)}(hyApply the above specified mapping to **src**, placing the result in **dst**, clearing any bits previously set in **dst**.h](h%Apply the above specified mapping to }(hj hhhNhNubj)}(h**src**h]hsrc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh, placing the result in }(hj hhhNhNubj)}(h**dst**h]hdst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh&, clearing any bits previously set in }(hj hhhNhNubj)}(h**dst**h]hdst}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj5ubh)}(hXZFor example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **src** comes into this routine with bits 1, 5 and 7 set, then **dst** should leave with bits 1, 13 and 15 set.h](hFor example, lets say that }(hj!hhhNhNubj)}(h**old**h]hold}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh has bits 4 through 7 set, and }(hj!hhhNhNubj)}(h**new**h]hnew}(hj)!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say }(hj!hhhNhNubj)}(h**src**h]hsrc}(hj;!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh8 comes into this routine with bits 1, 5 and 7 set, then }(hj!hhhNhNubj)}(h**dst**h]hdst}(hjM!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh) should leave with bits 1, 13 and 15 set.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_bitremap (C function)c.bitmap_bitremaphNtauh1hhj hhhNhNubj)}(hhh](j)}(h^int bitmap_bitremap (int oldbit, const unsigned long *old, const unsigned long *new, int bits)h]j)}(h]int bitmap_bitremap(int oldbit, const unsigned long *old, const unsigned long *new, int bits)h](j )}(hinth]hint}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!hhhj!hMubj{)}(hbitmap_bitremaph]j)}(hbitmap_bitremaph]hbitmap_bitremap}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj!hhhj!hMubj)}(hJ(int oldbit, const unsigned long *old, const unsigned long *new, int bits)h](j)}(h int oldbith](j )}(hinth]hint}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(holdbith]holdbit}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hconst unsigned long *oldh](j)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj )}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj!"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj )}(hlongh]hlong}(hj/"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj="hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hjK"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(holdh]hold}(hjX"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hconst unsigned long *newh](j)}(hjh]hconst}(hjq"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm"ubj2)}(h h]h }(hj~"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjm"ubj )}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjm"ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjm"ubj )}(hlongh]hlong}(hj"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjm"ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjm"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm"ubj)}(hnewh]hnew}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hint bitsh](j )}(hinth]hint}(hj"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(hbitsh]hbits}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubeh}(h]h ]h"]h$]h&]jjuh1jhj!hhhj!hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj~!hhhj!hMubah}(h]jy!ah ](jjeh"]h$]h&]jj)jhuh1jhj!hMhj{!hhubj)}(hhh]h)}(h6Apply map defined by a pair of bitmaps to a single bith]h6Apply map defined by a pair of bitmaps to a single bit}(hj0#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj-#hhubah}(h]h ]h"]h$]h&]uh1jhj{!hhhj!hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjH#jjH#jjjuh1jhhhj hNhNubj)}(hXS**Parameters** ``int oldbit`` bit position to be mapped ``const unsigned long *old`` defines domain of map ``const unsigned long *new`` defines range of map ``int bits`` number of bits in each of these bitmaps **Description** Let **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w. The positions of unset bits in **old** are mapped to themselves (the identity map). Apply the above specified mapping to bit position **oldbit**, returning the new bit position. For example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **oldbit** is 5, then this routine returns 13.h](h)}(h**Parameters**h]j)}(hjR#h]h Parameters}(hjT#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP#ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjL#ubj )}(hhh](j)}(h)``int oldbit`` bit position to be mapped h](j)}(h``int oldbit``h]j)}(hjq#h]h int oldbit}(hjs#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhjk#ubj2)}(hhh]h)}(hbit position to be mappedh]hbit position to be mapped}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1j1hjk#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjh#ubj)}(h3``const unsigned long *old`` defines domain of map h](j)}(h``const unsigned long *old``h]j)}(hj#h]hconst unsigned long *old}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj#ubj2)}(hhh]h)}(hdefines domain of maph]hdefines domain of map}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjh#ubj)}(h2``const unsigned long *new`` defines range of map h](j)}(h``const unsigned long *new``h]j)}(hj#h]hconst unsigned long *new}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj#ubj2)}(hhh]h)}(hdefines range of maph]hdefines range of map}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjh#ubj)}(h5``int bits`` number of bits in each of these bitmaps h](j)}(h ``int bits``h]j)}(hj$h]hint bits}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMhj$ubj2)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj5$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1$hMhj2$ubah}(h]h ]h"]h$]h&]uh1j1hj$ubeh}(h]h ]h"]h$]h&]uh1jhj1$hMhjh#ubeh}(h]h ]h"]h$]h&]uh1j hjL#ubh)}(h**Description**h]j)}(hjW$h]h Description}(hjY$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU$ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM!hjL#ubh)}(hXLet **old** and **new** define a mapping of bit positions, such that whatever position is held by the n-th set bit in **old** is mapped to the n-th set bit in **new**. In the more general case, allowing for the possibility that the weight 'w' of **new** is less than the weight of **old**, map the position of the n-th set bit in **old** to the position of the m-th set bit in **new**, where m == n % w.h](hLet }(hjm$hhhNhNubj)}(h**old**h]hold}(hju$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm$ubh and }(hjm$hhhNhNubj)}(h**new**h]hnew}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm$ubh_ define a mapping of bit positions, such that whatever position is held by the n-th set bit in }(hjm$hhhNhNubj)}(h**old**h]hold}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm$ubh" is mapped to the n-th set bit in }(hjm$hhhNhNubj)}(h**new**h]hnew}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm$ubhU. In the more general case, allowing for the possibility that the weight ‘w’ of }(hjm$hhhNhNubj)}(h**new**h]hnew}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm$ubh is less than the weight of }(hjm$hhhNhNubj)}(h**old**h]hold}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm$ubh*, map the position of the n-th set bit in }(hjm$hhhNhNubj)}(h**old**h]hold}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm$ubh( to the position of the m-th set bit in }(hjm$hhhNhNubj)}(h**new**h]hnew}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm$ubh, where m == n % w.}(hjm$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM hjL#ubh)}(hSThe positions of unset bits in **old** are mapped to themselves (the identity map).h](hThe positions of unset bits in }(hj %hhhNhNubj)}(h**old**h]hold}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj %ubh- are mapped to themselves (the identity map).}(hj %hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM'hjL#ubh)}(h]Apply the above specified mapping to bit position **oldbit**, returning the new bit position.h](h2Apply the above specified mapping to bit position }(hj-%hhhNhNubj)}(h **oldbit**h]holdbit}(hj5%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-%ubh!, returning the new bit position.}(hj-%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM*hjL#ubh)}(hXFor example, lets say that **old** has bits 4 through 7 set, and **new** has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say **oldbit** is 5, then this routine returns 13.h](hFor example, lets say that }(hjN%hhhNhNubj)}(h**old**h]hold}(hjV%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN%ubh has bits 4 through 7 set, and }(hjN%hhhNhNubj)}(h**new**h]hnew}(hjh%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN%ubh has bits 12 through 15 set. This defines the mapping of bit position 4 to 12, 5 to 13, 6 to 14 and 7 to 15, and of all other bit positions unchanged. So if say }(hjN%hhhNhNubj)}(h **oldbit**h]holdbit}(hjz%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN%ubh$ is 5, then this routine returns 13.}(hjN%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM-hjL#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_from_arr32 (C function)c.bitmap_from_arr32hNtauh1hhj hhhNhNubj)}(hhh](j)}(hRvoid bitmap_from_arr32 (unsigned long *bitmap, const u32 *buf, unsigned int nbits)h]j)}(hQvoid bitmap_from_arr32(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM"ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%hhhj%hM"ubj{)}(hbitmap_from_arr32h]j)}(hbitmap_from_arr32h]hbitmap_from_arr32}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj%hhhj%hM"ubj)}(h;(unsigned long *bitmap, const u32 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj )}(hlongh]hlong}(hj &hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%ubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hjh]h*}(hj(&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hbitmaph]hbitmap}(hj5&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hconst u32 *bufh](j)}(hjh]hconst}(hjN&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ&ubj2)}(h h]h }(hj[&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ&ubh)}(hhh]j)}(hu32h]hu32}(hjl&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjn&modnameN classnameNj] j` )}jc ]jf )}jY j%sbc.bitmap_from_arr32asbuh1hhjJ&ubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ&ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ&ubj)}(hbufh]hbuf}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&ubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj )}(hinth]hint}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&ubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj)}(hnbitsh]hnbits}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj%hM"ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj%hM"ubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jhj%hM"hj%hhubj)}(hhh]h)}(h0copy the contents of u32 array of bits to bitmaph]h0copy the contents of u32 array of bits to bitmap}(hj"'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM"hj'hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:'jj:'jjjuh1jhhhj hNhNubj)}(h**Parameters** ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap ``const u32 *buf`` array of u32 (in host byte order), the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hjD'h]h Parameters}(hjF'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB'ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM&hj>'ubj )}(hhh](j)}(hJ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjc'h]hunsigned long *bitmap}(hje'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja'ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM#hj]'ubj2)}(hhh]h)}(h/array of unsigned longs, the destination bitmaph]h/array of unsigned longs, the destination bitmap}(hj|'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx'hM#hjy'ubah}(h]h ]h"]h$]h&]uh1j1hj]'ubeh}(h]h ]h"]h$]h&]uh1jhjx'hM#hjZ'ubj)}(hH``const u32 *buf`` array of u32 (in host byte order), the source bitmap h](j)}(h``const u32 *buf``h]j)}(hj'h]hconst u32 *buf}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM$hj'ubj2)}(hhh]h)}(h4array of u32 (in host byte order), the source bitmaph]h4array of u32 (in host byte order), the source bitmap}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM$hj'ubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM$hjZ'ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hj'h]hunsigned int nbits}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM&hj'ubj2)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hj'hhhNhNubj)}(h **bitmap**h]hbitmap}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM%hj'ubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM&hjZ'ubeh}(h]h ]h"]h$]h&]uh1j hj>'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_to_arr32 (C function)c.bitmap_to_arr32hNtauh1hhj hhhNhNubj)}(hhh](j)}(hPvoid bitmap_to_arr32 (u32 *buf, const unsigned long *bitmap, unsigned int nbits)h]j)}(hOvoid bitmap_to_arr32(u32 *buf, const unsigned long *bitmap, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj=(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9(hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM9ubj2)}(h h]h }(hjL(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9(hhhjK(hM9ubj{)}(hbitmap_to_arr32h]j)}(hbitmap_to_arr32h]hbitmap_to_arr32}(hj^(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9(hhhjK(hM9ubj)}(h;(u32 *buf, const unsigned long *bitmap, unsigned int nbits)h](j)}(hu32 *bufh](h)}(hhh]j)}(hu32h]hu32}(hj}(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz(ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj(modnameN classnameNj] j` )}jc ]jf )}jY j`(sbc.bitmap_to_arr32asbuh1hhjv(ubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjv(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv(ubj)}(hbufh]hbuf}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjr(ubj)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj )}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj )}(hlongh]hlong}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hjh]h*}(hj$)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hbitmaph]hbitmap}(hj1)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjr(ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjJ)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjF)ubj2)}(h h]h }(hjX)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjF)ubj )}(hinth]hint}(hjf)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjF)ubj2)}(h h]h }(hjt)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjF)ubj)}(hnbitsh]hnbits}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjr(ubeh}(h]h ]h"]h$]h&]jjuh1jhj9(hhhjK(hM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5(hhhjK(hM9ubah}(h]j0(ah ](jjeh"]h$]h&]jj)jhuh1jhjK(hM9hj2(hhubj)}(hhh]h)}(h2copy the contents of bitmap to a u32 array of bitsh]h2copy the contents of bitmap to a u32 array of bits}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM9hj)hhubah}(h]h ]h"]h$]h&]uh1jhj2(hhhjK(hM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jhhhj hNhNubj)}(h**Parameters** ``u32 *buf`` array of u32 (in host byte order), the dest bitmap ``const unsigned long *bitmap`` array of unsigned longs, the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM=hj)ubj )}(hhh](j)}(h@``u32 *buf`` array of u32 (in host byte order), the dest bitmap h](j)}(h ``u32 *buf``h]j)}(hj)h]hu32 *buf}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM:hj)ubj2)}(hhh]h)}(h2array of u32 (in host byte order), the dest bitmaph]h2array of u32 (in host byte order), the dest bitmap}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hM:hj*ubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhj*hM:hj)ubj)}(hK``const unsigned long *bitmap`` array of unsigned longs, the source bitmap h](j)}(h``const unsigned long *bitmap``h]j)}(hj&*h]hconst unsigned long *bitmap}(hj(*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$*ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM;hj *ubj2)}(hhh]h)}(h*array of unsigned longs, the source bitmaph]h*array of unsigned longs, the source bitmap}(hj?*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;*hM;hj<*ubah}(h]h ]h"]h$]h&]uh1j1hj *ubeh}(h]h ]h"]h$]h&]uh1jhj;*hM;hj)ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hj_*h]hunsigned int nbits}(hja*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]*ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM=hjY*ubj2)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hjx*hhhNhNubj)}(h **bitmap**h]hbitmap}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx*ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chM<hju*ubah}(h]h ]h"]h$]h&]uh1j1hjY*ubeh}(h]h ]h"]h$]h&]uh1jhjt*hM=hj)ubeh}(h]h ]h"]h$]h&]uh1j hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_from_arr64 (C function)c.bitmap_from_arr64hNtauh1hhj hhhNhNubj)}(hhh](j)}(hRvoid bitmap_from_arr64 (unsigned long *bitmap, const u64 *buf, unsigned int nbits)h]j)}(hQvoid bitmap_from_arr64(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](j )}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMRubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*hhhj*hMRubj{)}(hbitmap_from_arr64h]j)}(hbitmap_from_arr64h]hbitmap_from_arr64}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj*hhhj*hMRubj)}(h;(unsigned long *bitmap, const u64 *buf, unsigned int nbits)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj )}(hlongh]hlong}(hj +hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj.+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hjh]h*}(hj<+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hbitmaph]hbitmap}(hjI+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hconst u64 *bufh](j)}(hjh]hconst}(hjb+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^+ubj2)}(h h]h }(hjo+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^+ubh)}(hhh]j)}(hu64h]hu64}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}+ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj+modnameN classnameNj] j` )}jc ]jf )}jY j*sbc.bitmap_from_arr64asbuh1hhj^+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^+ubj)}(hbufh]hbuf}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj )}(hinth]hint}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hnbitsh]hnbits}(hj ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhj*hhhj*hMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj*hMRubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1jhj*hMRhj*hhubj)}(hhh]h)}(h0copy the contents of u64 array of bits to bitmaph]h0copy the contents of u64 array of bits to bitmap}(hj6,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMRhj3,hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjN,jjN,jjjuh1jhhhj hNhNubj)}(h**Parameters** ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap ``const u64 *buf`` array of u64 (in host byte order), the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hjX,h]h Parameters}(hjZ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV,ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMVhjR,ubj )}(hhh](j)}(hJ``unsigned long *bitmap`` array of unsigned longs, the destination bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjw,h]hunsigned long *bitmap}(hjy,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju,ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMShjq,ubj2)}(hhh]h)}(h/array of unsigned longs, the destination bitmaph]h/array of unsigned longs, the destination bitmap}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMShj,ubah}(h]h ]h"]h$]h&]uh1j1hjq,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMShjn,ubj)}(hH``const u64 *buf`` array of u64 (in host byte order), the source bitmap h](j)}(h``const u64 *buf``h]j)}(hj,h]hconst u64 *buf}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMThj,ubj2)}(hhh]h)}(h4array of u64 (in host byte order), the source bitmaph]h4array of u64 (in host byte order), the source bitmap}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMThj,ubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMThjn,ubj)}(h3``unsigned int nbits`` number of bits in **bitmap**h](j)}(h``unsigned int nbits``h]j)}(hj,h]hunsigned int nbits}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMVhj,ubj2)}(hhh]h)}(hnumber of bits in **bitmap**h](hnumber of bits in }(hj-hhhNhNubj)}(h **bitmap**h]hbitmap}(hj -hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMUhj,ubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMVhjn,ubeh}(h]h ]h"]h$]h&]uh1j hjR,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_to_arr64 (C function)c.bitmap_to_arr64hNtauh1hhj hhhNhNubj)}(hhh](j)}(hPvoid bitmap_to_arr64 (u64 *buf, const unsigned long *bitmap, unsigned int nbits)h]j)}(hOvoid bitmap_to_arr64(u64 *buf, const unsigned long *bitmap, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjQ-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjM-hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMpubj2)}(h h]h }(hj`-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjM-hhhj_-hMpubj{)}(hbitmap_to_arr64h]j)}(hbitmap_to_arr64h]hbitmap_to_arr64}(hjr-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjM-hhhj_-hMpubj)}(h;(u64 *buf, const unsigned long *bitmap, unsigned int nbits)h](j)}(hu64 *bufh](h)}(hhh]j)}(hu64h]hu64}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-modnameN classnameNj] j` )}jc ]jf )}jY jt-sbc.bitmap_to_arr64asbuh1hhj-ubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hbufh]hbuf}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj )}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj )}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-ubj2)}(h h]h }(hj*.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj)}(hjh]h*}(hj8.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hbitmaph]hbitmap}(hjE.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj^.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZ.ubj2)}(h h]h }(hjl.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZ.ubj )}(hinth]hint}(hjz.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZ.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZ.ubj)}(hnbitsh]hnbits}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhjM-hhhj_-hMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjI-hhhj_-hMpubah}(h]jD-ah ](jjeh"]h$]h&]jj)jhuh1jhj_-hMphjF-hhubj)}(hhh]h)}(h2copy the contents of bitmap to a u64 array of bitsh]h2copy the contents of bitmap to a u64 array of bits}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMphj.hhubah}(h]h ]h"]h$]h&]uh1jhjF-hhhj_-hMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1jhhhj hNhNubj)}(h**Parameters** ``u64 *buf`` array of u64 (in host byte order), the dest bitmap ``const unsigned long *bitmap`` array of unsigned longs, the source bitmap ``unsigned int nbits`` number of bits in **bitmap**h](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMthj.ubj )}(hhh](j)}(h@``u64 *buf`` array of u64 (in host byte order), the dest bitmap h](j)}(h ``u64 *buf``h]j)}(hj/h]hu64 *buf}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:78: ./lib/bitmap.chMqhj.ubj2)}(hhh]h)}(h2array of u64 (in host byte order), the dest bitmaph]h2array of u64 (in host byte order), the dest bitmap}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMqhj/ubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhj/hMqhj.ubj)}(hK``const unsigned long *bitmap`` array of unsigned longs, the source bitmap h](j)}(h``const unsigned long *bitmap``h]j)}(hj:/h]hconst unsigned long *bitmap}(hjah"]h$]h&]uh1j1hj/hhhj/hMubj{)}(hbitmap_pos_to_ordh]j)}(hbitmap_pos_to_ordh]hbitmap_pos_to_ord}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhj/hMubj)}(h@(const unsigned long *buf, unsigned int pos, unsigned int nbits)h](j)}(hconst unsigned long *bufh](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hj%0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj )}(hunsignedh]hunsigned}(hj30hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hjA0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj )}(hlongh]hlong}(hjO0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hj]0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hjh]h*}(hjk0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hbufh]hbuf}(hjx0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj )}(hinth]hint}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hposh]hpos}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj )}(hinth]hint}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hj 1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hnbitsh]hnbits}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhj/hhhj/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhj/hMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jhj/hMhj/hhubj)}(hhh]h)}(h3find ordinal of set bit at given position in bitmaph]h3find ordinal of set bit at given position in bitmap}(hjD1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjA1hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\1jj\1jjjuh1jhhhj hNhNubj)}(hX,**Parameters** ``const unsigned long *buf`` pointer to a bitmap ``unsigned int pos`` a bit position in **buf** (0 <= **pos** < **nbits**) ``unsigned int nbits`` number of valid bit positions in **buf** **Description** Map the bit at position **pos** in **buf** (of length **nbits**) to the ordinal of which set bit it is. If it is not set or if **pos** is not a valid bit position, map to -1. If for example, just bits 4 through 7 are set in **buf**, then **pos** values 4 through 7 will get mapped to 0 through 3, respectively, and other **pos** values will get mapped to -1. When **pos** value 7 gets mapped to (returns) **ord** value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in **buf**. The bit positions 0 through **bits** are valid positions in **buf**.h](h)}(h**Parameters**h]j)}(hjf1h]h Parameters}(hjh1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd1ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj`1ubj )}(hhh](j)}(h1``const unsigned long *buf`` pointer to a bitmap h](j)}(h``const unsigned long *buf``h]j)}(hj1h]hconst unsigned long *buf}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj1ubj2)}(hhh]h)}(hpointer to a bitmaph]hpointer to a bitmap}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj|1ubj)}(hJ``unsigned int pos`` a bit position in **buf** (0 <= **pos** < **nbits**) h](j)}(h``unsigned int pos``h]j)}(hj1h]hunsigned int pos}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj1ubj2)}(hhh]h)}(h4a bit position in **buf** (0 <= **pos** < **nbits**)h](ha bit position in }(hj1hhhNhNubj)}(h**buf**h]hbuf}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh (0 <= }(hj1hhhNhNubj)}(h**pos**h]hpos}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh < }(hj1hhhNhNubj)}(h **nbits**h]hnbits}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj|1ubj)}(h@``unsigned int nbits`` number of valid bit positions in **buf** h](j)}(h``unsigned int nbits``h]j)}(hj-2h]hunsigned int nbits}(hj/2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+2ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj'2ubj2)}(hhh]h)}(h(number of valid bit positions in **buf**h](h!number of valid bit positions in }(hjF2hhhNhNubj)}(h**buf**h]hbuf}(hjN2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF2ubeh}(h]h ]h"]h$]h&]uh1hhjB2hMhjC2ubah}(h]h ]h"]h$]h&]uh1j1hj'2ubeh}(h]h ]h"]h$]h&]uh1jhjB2hMhj|1ubeh}(h]h ]h"]h$]h&]uh1j hj`1ubh)}(h**Description**h]j)}(hjv2h]h Description}(hjx2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt2ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj`1ubh)}(hMap the bit at position **pos** in **buf** (of length **nbits**) to the ordinal of which set bit it is. If it is not set or if **pos** is not a valid bit position, map to -1.h](hMap the bit at position }(hj2hhhNhNubj)}(h**pos**h]hpos}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh in }(hj2hhhNhNubj)}(h**buf**h]hbuf}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh (of length }(hj2hhhNhNubj)}(h **nbits**h]hnbits}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubhA) to the ordinal of which set bit it is. If it is not set or if }(hj2hhhNhNubj)}(h**pos**h]hpos}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh( is not a valid bit position, map to -1.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj`1ubh)}(hXPIf for example, just bits 4 through 7 are set in **buf**, then **pos** values 4 through 7 will get mapped to 0 through 3, respectively, and other **pos** values will get mapped to -1. When **pos** value 7 gets mapped to (returns) **ord** value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in **buf**.h](h1If for example, just bits 4 through 7 are set in }(hj2hhhNhNubj)}(h**buf**h]hbuf}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh, then }(hj2hhhNhNubj)}(h**pos**h]hpos}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubhL values 4 through 7 will get mapped to 0 through 3, respectively, and other }(hj2hhhNhNubj)}(h**pos**h]hpos}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh% values will get mapped to -1. When }(hj2hhhNhNubj)}(h**pos**h]hpos}(hj!3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh" value 7 gets mapped to (returns) }(hj2hhhNhNubj)}(h**ord**h]hord}(hj33hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubhZ value 3 in this example, that means that bit 7 is the 3rd (starting with 0th) set bit in }(hj2hhhNhNubj)}(h**buf**h]hbuf}(hjE3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj`1ubh)}(hDThe bit positions 0 through **bits** are valid positions in **buf**.h](hThe bit positions 0 through }(hj^3hhhNhNubj)}(h**bits**h]hbits}(hjf3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^3ubh are valid positions in }(hj^3hhhNhNubj)}(h**buf**h]hbuf}(hjx3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^3ubh.}(hj^3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj`1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_onto (C function) c.bitmap_ontohNtauh1hhj hhhNhNubj)}(hhh](j)}(hpvoid bitmap_onto (unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h]j)}(hovoid bitmap_onto(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j )}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMBubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3hhhj3hMBubj{)}(h bitmap_ontoh]j)}(h bitmap_ontoh]h bitmap_onto}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhj3hMBubj)}(h_(unsigned long *dst, const unsigned long *orig, const unsigned long *relmap, unsigned int bits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj )}(hlongh]hlong}(hj 4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hj&4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hdsth]hdst}(hj34hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hjL4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH4ubj2)}(h h]h }(hjY4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH4ubj )}(hunsignedh]hunsigned}(hjg4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjH4ubj2)}(h h]h }(hju4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH4ubj )}(hlongh]hlong}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjH4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH4ubj)}(horigh]horig}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hconst unsigned long *relmaph](j)}(hjh]hconst}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj )}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj )}(hlongh]hlong}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hj 5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hrelmaph]hrelmap}(hj%5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj>5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:5ubj2)}(h h]h }(hjL5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:5ubj )}(hinth]hint}(hjZ5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:5ubj2)}(h h]h }(hjh5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:5ubj)}(hbitsh]hbits}(hjv5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hMBubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhj3hMBhj3hhubj)}(hhh]h)}(h(translate one bitmap relative to anotherh]h(translate one bitmap relative to another}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMBhj5hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1jhhhj hNhNubj)}(hX**Parameters** ``unsigned long *dst`` resulting translated bitmap ``const unsigned long *orig`` original untranslated bitmap ``const unsigned long *relmap`` bitmap relative to which translated ``unsigned int bits`` number of bits in each of these bitmaps **Description** Set the n-th bit of **dst** iff there exists some m such that the n-th bit of **relmap** is set, the m-th bit of **orig** is set, and the n-th bit of **relmap** is also the m-th _set_ bit of **relmap**. (If you understood the previous sentence the first time your read it, you're overqualified for your current job.) In other words, **orig** is mapped onto (surjectively) **dst**, using the map { | the n-th bit of **relmap** is the m-th set bit of **relmap** }. Any set bits in **orig** above bit number W, where W is the weight of (number of set bits in) **relmap** are mapped nowhere. In particular, if for all bits m set in **orig**, m >= W, then **dst** will end up empty. In situations where the possibility of such an empty result is not desired, one way to avoid it is to use the bitmap_fold() operator, below, to first fold the **orig** bitmap over itself so that all its set bits x are in the range 0 <= x < W. The bitmap_fold() operator does this by setting the bit (m % W) in **dst**, for each bit (m) set in **orig**. Example [1] for bitmap_onto(): Let's say **relmap** has bits 30-39 set, and **orig** has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, **dst** will have bits 31, 33, 35, 37 and 39 set. When bit 0 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the first bit (if any) that is turned on in **relmap**. Since bit 0 was off in the above example, we leave off that bit (bit 30) in **dst**. When bit 1 is set in **orig** (as in the above example), it means turn on the bit in **dst** corresponding to whatever is the second bit that is turned on in **relmap**. The second bit in **relmap** that was turned on in the above example was bit 31, so we turned on bit 31 in **dst**. Similarly, we turned on bits 33, 35, 37 and 39 in **dst**, because they were the 4th, 6th, 8th and 10th set bits set in **relmap**, and the 4th, 6th, 8th and 10th bits of **orig** (i.e. bits 3, 5, 7 and 9) were also set. When bit 11 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the twelfth bit that is turned on in **relmap**. In the above example, there were only ten bits turned on in **relmap** (30..39), so that bit 11 was set in **orig** had no affect on **dst**. Example [2] for bitmap_fold() + bitmap_onto(): Let's say **relmap** has these ten bits set:: 40 41 42 43 45 48 53 61 74 95 (for the curious, that's 40 plus the first ten terms of the Fibonacci sequence.) Further lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty **dst** result:: unsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits); Then this table shows what various values of **dst** would be, for various **orig**'s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the **orig** bitmap modulo ten (the weight of **relmap**): =============== ============== ================= **orig** tmp **dst** 0 0 40 1 1 41 9 9 95 10 0 40 [#f1]_ 1 3 5 7 1 3 5 7 41 43 48 61 0 1 2 3 4 0 1 2 3 4 40 41 42 43 45 0 9 18 27 0 9 8 7 40 61 74 95 0 10 20 30 0 40 0 11 22 33 0 1 2 3 40 41 42 43 0 12 24 36 0 2 4 6 40 42 45 53 78 102 211 1 2 8 41 42 74 [#f1]_ =============== ============== ================= .. [#f1] For these marked lines, if we hadn't first done bitmap_fold() into tmp, then the **dst** result would have been empty. If either of **orig** or **relmap** is empty (no set bits), then **dst** will be returned empty. If (as explained above) the only set bits in **orig** are in positions m where m >= W, (where W is the weight of **relmap**) then **dst** will once again be returned empty. All bits in **dst** not set by the above rule are cleared.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMFhj5ubj )}(hhh](j)}(h3``unsigned long *dst`` resulting translated bitmap h](j)}(h``unsigned long *dst``h]j)}(hj5h]hunsigned long *dst}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMChj5ubj2)}(hhh]h)}(hresulting translated bitmaph]hresulting translated bitmap}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMChj5ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMChj5ubj)}(h;``const unsigned long *orig`` original untranslated bitmap h](j)}(h``const unsigned long *orig``h]j)}(hj6h]hconst unsigned long *orig}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMDhj6ubj2)}(hhh]h)}(horiginal untranslated bitmaph]horiginal untranslated bitmap}(hj36hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/6hMDhj06ubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhj/6hMDhj5ubj)}(hD``const unsigned long *relmap`` bitmap relative to which translated h](j)}(h``const unsigned long *relmap``h]j)}(hjS6h]hconst unsigned long *relmap}(hjU6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ6ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMEhjM6ubj2)}(hhh]h)}(h#bitmap relative to which translatedh]h#bitmap relative to which translated}(hjl6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh6hMEhji6ubah}(h]h ]h"]h$]h&]uh1j1hjM6ubeh}(h]h ]h"]h$]h&]uh1jhjh6hMEhj5ubj)}(h>``unsigned int bits`` number of bits in each of these bitmaps h](j)}(h``unsigned int bits``h]j)}(hj6h]hunsigned int bits}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMFhj6ubj2)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMFhj6ubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMFhj5ubeh}(h]h ]h"]h$]h&]uh1j hj5ubh)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMHhj5ubh)}(hX<Set the n-th bit of **dst** iff there exists some m such that the n-th bit of **relmap** is set, the m-th bit of **orig** is set, and the n-th bit of **relmap** is also the m-th _set_ bit of **relmap**. (If you understood the previous sentence the first time your read it, you're overqualified for your current job.)h](hSet the n-th bit of }(hj6hhhNhNubj)}(h**dst**h]hdst}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh3 iff there exists some m such that the n-th bit of }(hj6hhhNhNubj)}(h **relmap**h]hrelmap}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is set, the m-th bit of }(hj6hhhNhNubj)}(h**orig**h]horig}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is set, and the n-th bit of }(hj6hhhNhNubj)}(h **relmap**h]hrelmap}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh is also the m-th _set_ bit of }(hj6hhhNhNubj)}(h **relmap**h]hrelmap}(hj-7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubhu. (If you understood the previous sentence the first time your read it, you’re overqualified for your current job.)}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMGhj5ubh)}(hIn other words, **orig** is mapped onto (surjectively) **dst**, using the map { | the n-th bit of **relmap** is the m-th set bit of **relmap** }.h](hIn other words, }(hjF7hhhNhNubj)}(h**orig**h]horig}(hjN7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF7ubh is mapped onto (surjectively) }(hjF7hhhNhNubj)}(h**dst**h]hdst}(hj`7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF7ubh+, using the map { | the n-th bit of }(hjF7hhhNhNubj)}(h **relmap**h]hrelmap}(hjr7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF7ubh is the m-th set bit of }(hjF7hhhNhNubj)}(h **relmap**h]hrelmap}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF7ubh }.}(hjF7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMMhj5ubh)}(hX9Any set bits in **orig** above bit number W, where W is the weight of (number of set bits in) **relmap** are mapped nowhere. In particular, if for all bits m set in **orig**, m >= W, then **dst** will end up empty. In situations where the possibility of such an empty result is not desired, one way to avoid it is to use the bitmap_fold() operator, below, to first fold the **orig** bitmap over itself so that all its set bits x are in the range 0 <= x < W. The bitmap_fold() operator does this by setting the bit (m % W) in **dst**, for each bit (m) set in **orig**.h](hAny set bits in }(hj7hhhNhNubj)}(h**orig**h]horig}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubhF above bit number W, where W is the weight of (number of set bits in) }(hj7hhhNhNubj)}(h **relmap**h]hrelmap}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh= are mapped nowhere. In particular, if for all bits m set in }(hj7hhhNhNubj)}(h**orig**h]horig}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, m >= W, then }(hj7hhhNhNubj)}(h**dst**h]hdst}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh will end up empty. In situations where the possibility of such an empty result is not desired, one way to avoid it is to use the bitmap_fold() operator, below, to first fold the }(hj7hhhNhNubj)}(h**orig**h]horig}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh bitmap over itself so that all its set bits x are in the range 0 <= x < W. The bitmap_fold() operator does this by setting the bit (m % W) in }(hj7hhhNhNubj)}(h**dst**h]hdst}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh, for each bit (m) set in }(hj7hhhNhNubj)}(h**orig**h]horig}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMQhj5ubj )}(hhh](j)}(hXExample [1] for bitmap_onto(): Let's say **relmap** has bits 30-39 set, and **orig** has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, **dst** will have bits 31, 33, 35, 37 and 39 set. When bit 0 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the first bit (if any) that is turned on in **relmap**. Since bit 0 was off in the above example, we leave off that bit (bit 30) in **dst**. When bit 1 is set in **orig** (as in the above example), it means turn on the bit in **dst** corresponding to whatever is the second bit that is turned on in **relmap**. The second bit in **relmap** that was turned on in the above example was bit 31, so we turned on bit 31 in **dst**. Similarly, we turned on bits 33, 35, 37 and 39 in **dst**, because they were the 4th, 6th, 8th and 10th set bits set in **relmap**, and the 4th, 6th, 8th and 10th bits of **orig** (i.e. bits 3, 5, 7 and 9) were also set. When bit 11 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the twelfth bit that is turned on in **relmap**. In the above example, there were only ten bits turned on in **relmap** (30..39), so that bit 11 was set in **orig** had no affect on **dst**. h](j)}(hExample [1] for bitmap_onto():h]hExample [1] for bitmap_onto():}(hj18hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMthj-8ubj2)}(hhh](h)}(hLet's say **relmap** has bits 30-39 set, and **orig** has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, **dst** will have bits 31, 33, 35, 37 and 39 set.h](h Let’s say }(hjC8hhhNhNubj)}(h **relmap**h]hrelmap}(hjK8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC8ubh has bits 30-39 set, and }(hjC8hhhNhNubj)}(h**orig**h]horig}(hj]8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC8ubhG has bits 1, 3, 5, 7, 9 and 11 set. Then on return from this routine, }(hjC8hhhNhNubj)}(h**dst**h]hdst}(hjo8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC8ubh* will have bits 31, 33, 35, 37 and 39 set.}(hjC8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM\hj@8ubh)}(hWhen bit 0 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the first bit (if any) that is turned on in **relmap**. Since bit 0 was off in the above example, we leave off that bit (bit 30) in **dst**.h](hWhen bit 0 is set in }(hj8hhhNhNubj)}(h**orig**h]horig}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh, it means turn on the bit in }(hj8hhhNhNubj)}(h**dst**h]hdst}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhJ corresponding to whatever is the first bit (if any) that is turned on in }(hj8hhhNhNubj)}(h **relmap**h]hrelmap}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhO. Since bit 0 was off in the above example, we leave off that bit (bit 30) in }(hj8hhhNhNubj)}(h**dst**h]hdst}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM`hj@8ubh)}(hXWhen bit 1 is set in **orig** (as in the above example), it means turn on the bit in **dst** corresponding to whatever is the second bit that is turned on in **relmap**. The second bit in **relmap** that was turned on in the above example was bit 31, so we turned on bit 31 in **dst**.h](hWhen bit 1 is set in }(hj8hhhNhNubj)}(h**orig**h]horig}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh8 (as in the above example), it means turn on the bit in }(hj8hhhNhNubj)}(h**dst**h]hdst}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhB corresponding to whatever is the second bit that is turned on in }(hj8hhhNhNubj)}(h **relmap**h]hrelmap}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh. The second bit in }(hj8hhhNhNubj)}(h **relmap**h]hrelmap}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubhO that was turned on in the above example was bit 31, so we turned on bit 31 in }(hj8hhhNhNubj)}(h**dst**h]hdst}(hj/9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMehj@8ubh)}(hSimilarly, we turned on bits 33, 35, 37 and 39 in **dst**, because they were the 4th, 6th, 8th and 10th set bits set in **relmap**, and the 4th, 6th, 8th and 10th bits of **orig** (i.e. bits 3, 5, 7 and 9) were also set.h](h2Similarly, we turned on bits 33, 35, 37 and 39 in }(hjH9hhhNhNubj)}(h**dst**h]hdst}(hjP9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH9ubh?, because they were the 4th, 6th, 8th and 10th set bits set in }(hjH9hhhNhNubj)}(h **relmap**h]hrelmap}(hjb9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH9ubh), and the 4th, 6th, 8th and 10th bits of }(hjH9hhhNhNubj)}(h**orig**h]horig}(hjt9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH9ubh) (i.e. bits 3, 5, 7 and 9) were also set.}(hjH9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMkhj@8ubh)}(hX When bit 11 is set in **orig**, it means turn on the bit in **dst** corresponding to whatever is the twelfth bit that is turned on in **relmap**. In the above example, there were only ten bits turned on in **relmap** (30..39), so that bit 11 was set in **orig** had no affect on **dst**.h](hWhen bit 11 is set in }(hj9hhhNhNubj)}(h**orig**h]horig}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh, it means turn on the bit in }(hj9hhhNhNubj)}(h**dst**h]hdst}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubhC corresponding to whatever is the twelfth bit that is turned on in }(hj9hhhNhNubj)}(h **relmap**h]hrelmap}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh?. In the above example, there were only ten bits turned on in }(hj9hhhNhNubj)}(h **relmap**h]hrelmap}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh% (30..39), so that bit 11 was set in }(hj9hhhNhNubj)}(h**orig**h]horig}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh had no affect on }(hj9hhhNhNubj)}(h**dst**h]hdst}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMphj@8ubeh}(h]h ]h"]h$]h&]uh1j1hj-8ubeh}(h]h ]h"]h$]h&]uh1jhj?8hMthj*8ubj)}(hXExample [2] for bitmap_fold() + bitmap_onto(): Let's say **relmap** has these ten bits set:: 40 41 42 43 45 48 53 61 74 95 (for the curious, that's 40 plus the first ten terms of the Fibonacci sequence.) Further lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty **dst** result:: unsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits); Then this table shows what various values of **dst** would be, for various **orig**'s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the **orig** bitmap modulo ten (the weight of **relmap**): =============== ============== ================= **orig** tmp **dst** 0 0 40 1 1 41 9 9 95 10 0 40 [#f1]_ 1 3 5 7 1 3 5 7 41 43 48 61 0 1 2 3 4 0 1 2 3 4 40 41 42 43 45 0 9 18 27 0 9 8 7 40 61 74 95 0 10 20 30 0 40 0 11 22 33 0 1 2 3 40 41 42 43 0 12 24 36 0 2 4 6 40 42 45 53 78 102 211 1 2 8 41 42 74 [#f1]_ =============== ============== ================= h](j)}(h.Example [2] for bitmap_fold() + bitmap_onto():h]h.Example [2] for bitmap_fold() + bitmap_onto():}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj:ubj2)}(hhh](h)}(h-Let's say **relmap** has these ten bits set::h](h Let’s say }(hj*:hhhNhNubj)}(h **relmap**h]hrelmap}(hj2:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*:ubh has these ten bits set:}(hj*:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMwhj':ubjH)}(h40 41 42 43 45 48 53 61 74 95h]h40 41 42 43 45 48 53 61 74 95}hjK:sbah}(h]h ]h"]h$]h&]jjuh1jHhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMyhj':ubh)}(hP(for the curious, that's 40 plus the first ten terms of the Fibonacci sequence.)h]hR(for the curious, that’s 40 plus the first ten terms of the Fibonacci sequence.)}(hjZ:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM{hj':ubh)}(hFurther lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty **dst** result::h](hFurther lets say we use the following code, invoking bitmap_fold() then bitmap_onto, as suggested above to avoid the possibility of an empty }(hji:hhhNhNubj)}(h**dst**h]hdst}(hjq:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji:ubh result:}(hji:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chM~hj':ubjH)}(hunsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits);h]hunsigned long *tmp; // a temporary bitmap's bits bitmap_fold(tmp, orig, bitmap_weight(relmap, bits), bits); bitmap_onto(dst, tmp, relmap, bits);}hj:sbah}(h]h ]h"]h$]h&]jjuh1jHhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj':ubh)}(hXThen this table shows what various values of **dst** would be, for various **orig**'s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the **orig** bitmap modulo ten (the weight of **relmap**):h](h-Then this table shows what various values of }(hj:hhhNhNubj)}(h**dst**h]hdst}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh would be, for various }(hj:hhhNhNubj)}(h**orig**h]horig}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh’s. I list the zero-based positions of each set bit. The tmp column shows the intermediate result, as computed by using bitmap_fold() to fold the }(hj:hhhNhNubj)}(h**orig**h]horig}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh" bitmap modulo ten (the weight of }(hj:hhhNhNubj)}(h **relmap**h]hrelmap}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh):}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj':ubj)}(hXF=============== ============== ================= **orig** tmp **dst** 0 0 40 1 1 41 9 9 95 10 0 40 [#f1]_ 1 3 5 7 1 3 5 7 41 43 48 61 0 1 2 3 4 0 1 2 3 4 40 41 42 43 45 0 9 18 27 0 9 8 7 40 61 74 95 0 10 20 30 0 40 0 11 22 33 0 1 2 3 40 41 42 43 0 12 24 36 0 2 4 6 40 42 45 53 78 102 211 1 2 8 41 42 74 [#f1]_ =============== ============== ================= h]htable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j:hj:ubj:)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j:hj:ubj:)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j:hj:ubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h**orig**h]j)}(hj/;h]horig}(hj1;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-;ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj*;ubah}(h]h ]h"]h$]h&]uh1j(;hj%;ubj);)}(hhh]h)}(htmph]htmp}(hjN;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD;hMhjK;ubah}(h]h ]h"]h$]h&]uh1j(;hj%;ubj);)}(hhh]h)}(h**dst**h]j)}(hjg;h]hdst}(hji;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje;ubah}(h]h ]h"]h$]h&]uh1hhjD;hMhjb;ubah}(h]h ]h"]h$]h&]uh1j(;hj%;ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h0h]h0}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj;ubah}(h]h ]h"]h$]h&]uh1j(;hj;ubj);)}(hhh]h)}(hj;h]h0}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1j(;hj;ubj);)}(hhh]h)}(h40h]h40}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1j(;hj;ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h1h]h1}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj;ubah}(h]h ]h"]h$]h&]uh1j(;hj;ubj);)}(hhh]h)}(hj;h]h1}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1j(;hj;ubj);)}(hhh]h)}(h41h]h41}(hj <hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1j(;hj;ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h9h]h9}(hj*<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj'<ubah}(h]h ]h"]h$]h&]uh1j(;hj$<ubj);)}(hhh]h)}(hj,<h]h9}(hjB<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8<hMhj?<ubah}(h]h ]h"]h$]h&]uh1j(;hj$<ubj);)}(hhh]h)}(h95h]h95}(hjX<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8<hMhjU<ubah}(h]h ]h"]h$]h&]uh1j(;hj$<ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h10h]h10}(hjx<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhju<ubah}(h]h ]h"]h$]h&]uh1j(;hjr<ubj);)}(hhh]h)}(hj;h]h0}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1j(;hjr<ubj);)}(hhh]h)}(h 40 [#f1]_h](h40 }(hj<hhhNhNubhfootnote_reference)}(h[#f1]_h]h1}(hj<hhhNhNubah}(h]id1ah ]h"]h$]h&]autoKrefidf1docnamecore-api/kernel-apiuh1j<hj<resolvedKubeh}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1j(;hjr<ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj<ubah}(h]h ]h"]h$]h&]uh1j(;hj<ubj);)}(hhh]h)}(h1 3 5 7h]h1 3 5 7}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1j(;hj<ubj);)}(hhh]h)}(h 41 43 48 61h]h 41 43 48 61}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMhj =ubah}(h]h ]h"]h$]h&]uh1j(;hj<ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hj,=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj)=ubah}(h]h ]h"]h$]h&]uh1j(;hj&=ubj);)}(hhh]h)}(h 0 1 2 3 4h]h 0 1 2 3 4}(hjD=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:=hMhjA=ubah}(h]h ]h"]h$]h&]uh1j(;hj&=ubj);)}(hhh]h)}(h40 41 42 43 45h]h40 41 42 43 45}(hj[=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:=hMhjX=ubah}(h]h ]h"]h$]h&]uh1j(;hj&=ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h 0 9 18 27h]h 0 9 18 27}(hj{=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjx=ubah}(h]h ]h"]h$]h&]uh1j(;hju=ubj);)}(hhh]h)}(h0 9 8 7h]h0 9 8 7}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1j(;hju=ubj);)}(hhh]h)}(h 40 61 74 95h]h 40 61 74 95}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1j(;hju=ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h 0 10 20 30h]h 0 10 20 30}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj=ubah}(h]h ]h"]h$]h&]uh1j(;hj=ubj);)}(hhh]h)}(hj;h]h0}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1j(;hj=ubj);)}(hhh]h)}(h40h]h40}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1j(;hj=ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h 0 11 22 33h]h 0 11 22 33}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubah}(h]h ]h"]h$]h&]uh1j(;hj>ubj);)}(hhh]h)}(h0 1 2 3h]h0 1 2 3}(hj0>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&>hMhj->ubah}(h]h ]h"]h$]h&]uh1j(;hj>ubj);)}(hhh]h)}(h 40 41 42 43h]h 40 41 42 43}(hjG>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&>hMhjD>ubah}(h]h ]h"]h$]h&]uh1j(;hj>ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h 0 12 24 36h]h 0 12 24 36}(hjg>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjd>ubah}(h]h ]h"]h$]h&]uh1j(;hja>ubj);)}(hhh]h)}(h0 2 4 6h]h0 2 4 6}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju>hMhj|>ubah}(h]h ]h"]h$]h&]uh1j(;hja>ubj);)}(hhh]h)}(h 40 42 45 53h]h 40 42 45 53}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhju>hMhj>ubah}(h]h ]h"]h$]h&]uh1j(;hja>ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubj$;)}(hhh](j);)}(hhh]h)}(h 78 102 211h]h 78 102 211}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj>ubah}(h]h ]h"]h$]h&]uh1j(;hj>ubj);)}(hhh]h)}(h1 2 8h]h1 2 8}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1j(;hj>ubj);)}(hhh]h)}(h41 42 74 [#f1]_h](h 41 42 74 }(hj>hhhNhNubj<)}(h[#f1]_h]h1}(hj>hhhNhNubah}(h]id2ah ]h"]h$]h&]j<Kj<j<j<j<uh1j<hj>j<Kubeh}(h]h ]h"]h$]h&]uh1hhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1j(;hj>ubeh}(h]h ]h"]h$]h&]uh1j#;hj ;ubeh}(h]h ]h"]h$]h&]uh1j;hj:ubeh}(h]h ]h"]h$]h&]colsKuh1j:hj:ubah}(h]h ]h"]h$]h&]uh1j:hj:ubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj':ubeh}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhj&:hMhj*8ubeh}(h]h ]h"]h$]h&]uh1j hj5ubhfootnote)}(hwFor these marked lines, if we hadn't first done bitmap_fold() into tmp, then the **dst** result would have been empty. h](hlabel)}(hhh]h1}(hjB?hhhNhNubah}(h]h ]h"]h$]h&]uh1j@?hjej<Kj<j<uh1j:?hP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj5ubh)}(h`If either of **orig** or **relmap** is empty (no set bits), then **dst** will be returned empty.h](h If either of }(hjx?hhhNhNubj)}(h**orig**h]horig}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx?ubh or }(hjx?hhhNhNubj)}(h **relmap**h]hrelmap}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx?ubh is empty (no set bits), then }(hjx?hhhNhNubj)}(h**dst**h]hdst}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx?ubh will be returned empty.}(hjx?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj5ubh)}(hIf (as explained above) the only set bits in **orig** are in positions m where m >= W, (where W is the weight of **relmap**) then **dst** will once again be returned empty.h](h-If (as explained above) the only set bits in }(hj?hhhNhNubj)}(h**orig**h]horig}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh< are in positions m where m >= W, (where W is the weight of }(hj?hhhNhNubj)}(h **relmap**h]hrelmap}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh) then }(hj?hhhNhNubj)}(h**dst**h]hdst}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh# will once again be returned empty.}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj5ubh)}(h:All bits in **dst** not set by the above rule are cleared.h](h All bits in }(hj@hhhNhNubj)}(h**dst**h]hdst}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh' not set by the above rule are cleared.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_fold (C function) c.bitmap_foldhNtauh1hhj hhhNhNubj)}(hhh](j)}(hevoid bitmap_fold (unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h]j)}(hdvoid bitmap_fold(unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjC@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?@hhhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMubj2)}(h h]h }(hjR@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?@hhhjQ@hMubj{)}(h bitmap_foldh]j)}(h bitmap_foldh]h bitmap_fold}(hjd@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?@hhhjQ@hMubj)}(hT(unsigned long *dst, const unsigned long *orig, unsigned int sz, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|@ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|@ubj )}(hlongh]hlong}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|@ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|@ubj)}(hdsth]hdst}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx@ubj)}(hconst unsigned long *origh](j)}(hjh]hconst}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj )}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj )}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hj#AhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hjh]h*}(hj1AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(horigh]horig}(hj>AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx@ubj)}(hunsigned int szh](j )}(hunsignedh]hunsigned}(hjWAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSAubj2)}(h h]h }(hjeAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSAubj )}(hinth]hint}(hjsAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSAubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSAubj)}(hszh]hsz}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx@ubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj )}(hinth]hint}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hnbitsh]hnbits}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx@ubeh}(h]h ]h"]h$]h&]jjuh1jhj?@hhhjQ@hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;@hhhjQ@hMubah}(h]j6@ah ](jjeh"]h$]h&]jj)jhuh1jhjQ@hMhj8@hhubj)}(hhh]h)}(h6fold larger bitmap into smaller, modulo specified sizeh]h6fold larger bitmap into smaller, modulo specified size}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhj8@hhhjQ@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"Bjj"Bjjjuh1jhhhj hNhNubj)}(hX**Parameters** ``unsigned long *dst`` resulting smaller bitmap ``const unsigned long *orig`` original larger bitmap ``unsigned int sz`` specified size ``unsigned int nbits`` number of bits in each of these bitmaps **Description** For each bit oldbit in **orig**, set bit oldbit mod **sz** in **dst**. Clear all other bits in **dst**. See further the comment and Example [2] for bitmap_onto() for why and how to use this.h](h)}(h**Parameters**h]j)}(hj,Bh]h Parameters}(hj.BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Bubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj&Bubj )}(hhh](j)}(h0``unsigned long *dst`` resulting smaller bitmap h](j)}(h``unsigned long *dst``h]j)}(hjKBh]hunsigned long *dst}(hjMBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIBubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjEBubj2)}(hhh]h)}(hresulting smaller bitmaph]hresulting smaller bitmap}(hjdBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`BhMhjaBubah}(h]h ]h"]h$]h&]uh1j1hjEBubeh}(h]h ]h"]h$]h&]uh1jhj`BhMhjBBubj)}(h5``const unsigned long *orig`` original larger bitmap h](j)}(h``const unsigned long *orig``h]j)}(hjBh]hconst unsigned long *orig}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj~Bubj2)}(hhh]h)}(horiginal larger bitmaph]horiginal larger bitmap}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1j1hj~Bubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjBBubj)}(h#``unsigned int sz`` specified size h](j)}(h``unsigned int sz``h]j)}(hjBh]hunsigned int sz}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjBubj2)}(hhh]h)}(hspecified sizeh]hspecified size}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjBBubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjBh]hunsigned int nbits}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhjBubj2)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ChMhj Cubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj ChMhjBBubeh}(h]h ]h"]h$]h&]uh1j hj&Bubh)}(h**Description**h]j)}(hj1Ch]h Description}(hj3ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Cubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj&Bubh)}(hFor each bit oldbit in **orig**, set bit oldbit mod **sz** in **dst**. Clear all other bits in **dst**. See further the comment and Example [2] for bitmap_onto() for why and how to use this.h](hFor each bit oldbit in }(hjGChhhNhNubj)}(h**orig**h]horig}(hjOChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGCubh, set bit oldbit mod }(hjGChhhNhNubj)}(h**sz**h]hsz}(hjaChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGCubh in }(hjGChhhNhNubj)}(h**dst**h]hdst}(hjsChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGCubh. Clear all other bits in }(hjGChhhNhNubj)}(h**dst**h]hdst}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGCubhY. See further the comment and Example [2] for bitmap_onto() for why and how to use this.}(hjGChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:81: ./lib/bitmap.chMhj&Bubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'bitmap_find_next_zero_area (C function)c.bitmap_find_next_zero_areahNtauh1hhj hhhNhNubj)}(hhh](j)}(hunsigned long bitmap_find_next_zero_area (unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h]j)}(hunsigned long bitmap_find_next_zero_area(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h](j )}(hunsignedh]hunsigned}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjChhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjChhhjChKubj )}(hlongh]hlong}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjChhhjChKubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjChhhjChKubj{)}(hbitmap_find_next_zero_areah]j)}(hbitmap_find_next_zero_areah]hbitmap_find_next_zero_area}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjChKubj)}(hh(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, unsigned long align_mask)h](j)}(hunsigned long *maph](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hj%DhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj )}(hlongh]hlong}(hj3DhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjADhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hjh]h*}(hjODhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hmaph]hmap}(hj\DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hjuDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqDubj )}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqDubj)}(hsizeh]hsize}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj )}(hlongh]hlong}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hstarth]hstart}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned int nrh](j )}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEubj2)}(h h]h }(hj%EhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj )}(hinth]hint}(hj3EhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjAEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hnrh]hnr}(hjOEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned long align_maskh](j )}(hunsignedh]hunsigned}(hjhEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdEubj2)}(h h]h }(hjvEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdEubj )}(hlongh]hlong}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdEubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdEubj)}(h align_maskh]h align_mask}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjChKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjChKubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1jhjChKhjChhubj)}(hhh]h)}(h#find a contiguous aligned zero areah]h#find a contiguous aligned zero area}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jhhhj hNhNubj)}(hX**Parameters** ``unsigned long *map`` The address to base the search on ``unsigned long size`` The bitmap size in bits ``unsigned long start`` The bitnumber to start searching at ``unsigned int nr`` The number of zeroed bits we're looking for ``unsigned long align_mask`` Alignment mask for zero area **Description** The **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A **align_mask** of 0 means no alignment is required. **Return** The bit offset of the found area or a value >= **size** if no area is found.h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEubj )}(hhh](j)}(h9``unsigned long *map`` The address to base the search on h](j)}(h``unsigned long *map``h]j)}(hj Fh]hunsigned long *map}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Fubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjFubj2)}(hhh]h)}(h!The address to base the search onh]h!The address to base the search on}(hj$FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj FhKhj!Fubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhj FhKhjFubj)}(h/``unsigned long size`` The bitmap size in bits h](j)}(h``unsigned long size``h]j)}(hjDFh]hunsigned long size}(hjFFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhj>Fubj2)}(hhh]h)}(hThe bitmap size in bitsh]hThe bitmap size in bits}(hj]FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYFhKhjZFubah}(h]h ]h"]h$]h&]uh1j1hj>Fubeh}(h]h ]h"]h$]h&]uh1jhjYFhKhjFubj)}(h<``unsigned long start`` The bitnumber to start searching at h](j)}(h``unsigned long start``h]j)}(hj}Fh]hunsigned long start}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Fubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjwFubj2)}(hhh]h)}(h#The bitnumber to start searching ath]h#The bitnumber to start searching at}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhKhjFubah}(h]h ]h"]h$]h&]uh1j1hjwFubeh}(h]h ]h"]h$]h&]uh1jhjFhKhjFubj)}(h@``unsigned int nr`` The number of zeroed bits we're looking for h](j)}(h``unsigned int nr``h]j)}(hjFh]hunsigned int nr}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjFubj2)}(hhh]h)}(h+The number of zeroed bits we're looking forh]h-The number of zeroed bits we’re looking for}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhKhjFubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjFhKhjFubj)}(h:``unsigned long align_mask`` Alignment mask for zero area h](j)}(h``unsigned long align_mask``h]j)}(hjFh]hunsigned long align_mask}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjFubj2)}(hhh]h)}(hAlignment mask for zero areah]hAlignment mask for zero area}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhKhjGubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjFubeh}(h]h ]h"]h$]h&]uh1j hjEubh)}(h**Description**h]j)}(hj*Gh]h Description}(hj,GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Gubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEubh)}(hThe **align_mask** should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A **align_mask** of 0 means no alignment is required.h](hThe }(hj@GhhhNhNubj)}(h**align_mask**h]h align_mask}(hjHGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Gubh should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds is multiples of that power of 2. A }(hj@GhhhNhNubj)}(h**align_mask**h]h align_mask}(hjZGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Gubh% of 0 means no alignment is required.}(hj@GhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEubh)}(h **Return**h]j)}(hjuGh]hReturn}(hjwGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsGubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEubh)}(hLThe bit offset of the found area or a value >= **size** if no area is found.h](h/The bit offset of the found area or a value >= }(hjGhhhNhNubj)}(h**size**h]hsize}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh if no area is found.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhKhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_or_equal (C function)c.bitmap_or_equalhNtauh1hhj hhhNhNubj)}(hhh](j)}(hzbool bitmap_or_equal (const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h]j)}(hybool bitmap_or_equal(const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h](j )}(hj8h]hbool}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGhhhjGhMubj{)}(hbitmap_or_equalh]j)}(hbitmap_or_equalh]hbitmap_or_equal}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjGhMubj)}(he(const unsigned long *src1, const unsigned long *src2, const unsigned long *src3, unsigned int nbits)h](j)}(hconst unsigned long *src1h](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj )}(hunsignedh]hunsigned}(hj#HhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHubj2)}(h h]h }(hj1HhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj )}(hlongh]hlong}(hj?HhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjMHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hj[HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hsrc1h]hsrc1}(hjhHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hconst unsigned long *src2h](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Hubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}Hubj )}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}Hubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}Hubj )}(hlongh]hlong}(hjHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}Hubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}Hubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Hubj)}(hsrc2h]hsrc2}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hconst unsigned long *src3h](j)}(hjh]hconst}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj )}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHubj2)}(h h]h }(hj#IhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj )}(hlongh]hlong}(hj1IhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHubj2)}(h h]h }(hj?IhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjMIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hsrc3h]hsrc3}(hjZIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjsIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoIubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoIubj )}(hinth]hint}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoIubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoIubj)}(hnbitsh]hnbits}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjGhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1jhjGhMhjGhhubj)}(hhh]h)}(h7Check whether the or of two bitmaps is equal to a thirdh]h7Check whether the or of two bitmaps is equal to a third}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jhhhj hNhNubj)}(hX**Parameters** ``const unsigned long *src1`` Pointer to bitmap 1 ``const unsigned long *src2`` Pointer to bitmap 2 will be or'ed with bitmap 1 ``const unsigned long *src3`` Pointer to bitmap 3. Compare to the result of ***src1** | ***src2** ``unsigned int nbits`` number of bits in each of these bitmaps **Return** True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubj )}(hhh](j)}(h2``const unsigned long *src1`` Pointer to bitmap 1 h](j)}(h``const unsigned long *src1``h]j)}(hjJh]hconst unsigned long *src1}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjJubj2)}(hhh]h)}(hPointer to bitmap 1h]hPointer to bitmap 1}(hj/JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+JhMhj,Jubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhj+JhMhj Jubj)}(hN``const unsigned long *src2`` Pointer to bitmap 2 will be or'ed with bitmap 1 h](j)}(h``const unsigned long *src2``h]j)}(hjOJh]hconst unsigned long *src2}(hjQJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIJubj2)}(hhh]h)}(h/Pointer to bitmap 2 will be or'ed with bitmap 1h]h1Pointer to bitmap 2 will be or’ed with bitmap 1}(hjhJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdJhMhjeJubah}(h]h ]h"]h$]h&]uh1j1hjIJubeh}(h]h ]h"]h$]h&]uh1jhjdJhMhj Jubj)}(hb``const unsigned long *src3`` Pointer to bitmap 3. Compare to the result of ***src1** | ***src2** h](j)}(h``const unsigned long *src3``h]j)}(hjJh]hconst unsigned long *src3}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjJubj2)}(hhh]h)}(hCPointer to bitmap 3. Compare to the result of ***src1** | ***src2**h](h.Pointer to bitmap 3. Compare to the result of }(hjJhhhNhNubj)}(h ***src1**h]h*src1}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh | }(hjJhhhNhNubj)}(h ***src2**h]h*src2}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj Jubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjJh]hunsigned int nbits}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjJubj2)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj Jubeh}(h]h ]h"]h$]h&]uh1j hjIubh)}(h **Return**h]j)}(hjKh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubh)}(h=True if (***src1** | ***src2**) == ***src3**, false otherwiseh](h True if (}(hj2KhhhNhNubj)}(h ***src1**h]h*src1}(hj:KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Kubh | }(hj2KhhhNhNubj)}(h ***src2**h]h*src2}(hjLKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Kubh) == }(hj2KhhhNhNubj)}(h ***src3**h]h*src3}(hj^KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Kubh, false otherwise}(hj2KhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_weight_from (C function)c.bitmap_weight_fromhNtauh1hhj hhhNhNubj)}(hhh](j)}(hdunsigned long bitmap_weight_from (const unsigned long *bitmap, unsigned int start, unsigned int end)h]j)}(hcunsigned long bitmap_weight_from(const unsigned long *bitmap, unsigned int start, unsigned int end)h](j )}(hunsignedh]hunsigned}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhjKhMubj )}(hlongh]hlong}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKhhhjKhMubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhjKhMubj{)}(hbitmap_weight_fromh]j)}(hbitmap_weight_fromh]hbitmap_weight_from}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhjKhMubj)}(hC(const unsigned long *bitmap, unsigned int start, unsigned int end)h](j)}(hconst unsigned long *bitmaph](j)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj )}(hunsignedh]hunsigned}(hj LhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj )}(hlongh]hlong}(hj'LhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKubj2)}(h h]h }(hj5LhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hjCLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hbitmaph]hbitmap}(hjPLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hunsigned int starth](j )}(hunsignedh]hunsigned}(hjiLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeLubj2)}(h h]h }(hjwLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeLubj )}(hinth]hint}(hjLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeLubj)}(hstarth]hstart}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hunsigned int endh](j )}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj )}(hinth]hint}(hjLhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hendh]hend}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjKhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhjKhMhjKhhubj)}(hhh]h)}(h"Hamming weight for a memory regionh]h"Hamming weight for a memory region}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjKhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4Mjj4Mjjjuh1jhhhj hNhNubj)}(hX**Parameters** ``const unsigned long *bitmap`` The base address ``unsigned int start`` The bitnumber to starts weighting ``unsigned int end`` the bitmap size in bits **Description** Returns the number of set bits in the region. If **start** >= **end**, return >= end.h](h)}(h**Parameters**h]j)}(hj>Mh]h Parameters}(hj@MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj= **end**, return >= end.h](h1Returns the number of set bits in the region. If }(hj NhhhNhNubj)}(h **start**h]hstart}(hj(NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Nubh >= }(hj NhhhNhNubj)}(h**end**h]hend}(hj:NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Nubh, return >= end.}(hj NhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj8Mubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_scatter (C function)c.bitmap_scatterhNtauh1hhj hhhNhNubj)}(hhh](j)}(hqvoid bitmap_scatter (unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h]j)}(hpvoid bitmap_scatter(unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjsNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoNhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMWubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoNhhhjNhMWubj{)}(hbitmap_scatterh]j)}(hbitmap_scatterh]hbitmap_scatter}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjoNhhhjNhMWubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj )}(hlongh]hlong}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hdsth]hdst}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Oubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Oubj )}(hunsignedh]hunsigned}(hj)OhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj Oubj2)}(h h]h }(hj7OhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Oubj )}(hlongh]hlong}(hjEOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj Oubj2)}(h h]h }(hjSOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Oubj)}(hjh]h*}(hjaOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Oubj)}(hsrch]hsrc}(hjnOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst unsigned long *maskh](j)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj )}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj )}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hmaskh]hmask}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj )}(hinth]hint}(hjPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj*PhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hnbitsh]hnbits}(hj8PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjoNhhhjNhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkNhhhjNhMWubah}(h]jfNah ](jjeh"]h$]h&]jj)jhuh1jhjNhMWhjhNhhubj)}(hhh]h)}(h,Scatter a bitmap according to the given maskh]h,Scatter a bitmap according to the given mask}(hjbPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMWhj_Phhubah}(h]h ]h"]h$]h&]uh1jhjhNhhhjNhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzPjjzPjjjuh1jhhhj hNhNubj)}(hX**Parameters** ``unsigned long *dst`` scattered bitmap ``const unsigned long *src`` gathered bitmap ``const unsigned long *mask`` mask representing bits to assign to in the scattered bitmap ``unsigned int nbits`` number of bits in each of these bitmaps **Description** Scatters bitmap with sequential bits according to the given **mask**. **Example** If **src** bitmap = 0x005a, with **mask** = 0x1313, **dst** will be 0x0302. Or in binary form **src** **mask** **dst** 0000000001011010 0001001100010011 0000001100000010 (Bits 0, 1, 2, 3, 4, 5 are copied to the bits 0, 1, 4, 8, 9, 12) A more 'visual' description of the operation:: src: 0000000001011010 |||||| +------+||||| | +----+|||| | |+----+||| | || +-+|| | || | || mask: ...v..vv...v..vv ...0..11...0..10 dst: 0000001100000010 A relationship exists between bitmap_scatter() and bitmap_gather(). See bitmap_gather() for the bitmap gather detailed operations. TL;DR: bitmap_gather() can be seen as the 'reverse' bitmap_scatter() operation.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM[hj~Pubj )}(hhh](j)}(h(``unsigned long *dst`` scattered bitmap h](j)}(h``unsigned long *dst``h]j)}(hjPh]hunsigned long *dst}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMXhjPubj2)}(hhh]h)}(hscattered bitmaph]hscattered bitmap}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMXhjPubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMXhjPubj)}(h-``const unsigned long *src`` gathered bitmap h](j)}(h``const unsigned long *src``h]j)}(hjPh]hconst unsigned long *src}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMYhjPubj2)}(hhh]h)}(hgathered bitmaph]hgathered bitmap}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMYhjPubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMYhjPubj)}(hZ``const unsigned long *mask`` mask representing bits to assign to in the scattered bitmap h](j)}(h``const unsigned long *mask``h]j)}(hjQh]hconst unsigned long *mask}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMZhjQubj2)}(hhh]h)}(h;mask representing bits to assign to in the scattered bitmaph]h;mask representing bits to assign to in the scattered bitmap}(hj.QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*QhMZhj+Qubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhj*QhMZhjPubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjNQh]hunsigned int nbits}(hjPQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLQubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM[hjHQubj2)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjgQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcQhM[hjdQubah}(h]h ]h"]h$]h&]uh1j1hjHQubeh}(h]h ]h"]h$]h&]uh1jhjcQhM[hjPubeh}(h]h ]h"]h$]h&]uh1j hj~Pubh)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM]hj~Pubh)}(hEScatters bitmap with sequential bits according to the given **mask**.h](h 0000000001011010 0001001100010011 0000001100000010}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMahj~Pubh)}(h@(Bits 0, 1, 2, 3, 4, 5 are copied to the bits 0, 1, 4, 8, 9, 12)h]h@(Bits 0, 1, 2, 3, 4, 5 are copied to the bits 0, 1, 4, 8, 9, 12)}(hjbRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMehj~Pubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hjqRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMghj~PubjH)}(hsrc: 0000000001011010 |||||| +------+||||| | +----+|||| | |+----+||| | || +-+|| | || | || mask: ...v..vv...v..vv ...0..11...0..10 dst: 0000001100000010h]hsrc: 0000000001011010 |||||| +------+||||| | +----+|||| | |+----+||| | || +-+|| | || | || mask: ...v..vv...v..vv ...0..11...0..10 dst: 0000001100000010}hjRsbah}(h]h ]h"]h$]h&]jjuh1jHhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMihj~Pubh)}(hA relationship exists between bitmap_scatter() and bitmap_gather(). See bitmap_gather() for the bitmap gather detailed operations. TL;DR: bitmap_gather() can be seen as the 'reverse' bitmap_scatter() operation.h]hA relationship exists between bitmap_scatter() and bitmap_gather(). See bitmap_gather() for the bitmap gather detailed operations. TL;DR: bitmap_gather() can be seen as the ‘reverse’ bitmap_scatter() operation.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMthj~Pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_gather (C function)c.bitmap_gatherhNtauh1hhj hhhNhNubj)}(hhh](j)}(hpvoid bitmap_gather (unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h]j)}(hovoid bitmap_gather(unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j )}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRhhhjRhMubj{)}(h bitmap_gatherh]j)}(h bitmap_gatherh]h bitmap_gather}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhjRhMubj)}(h](unsigned long *dst, const unsigned long *src, const unsigned long *mask, unsigned int nbits)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj2)}(h h]h }(hj ShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj )}(hlongh]hlong}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj2)}(h h]h }(hj%ShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hj3ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hdsth]hdst}(hj@ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hconst unsigned long *srch](j)}(hjh]hconst}(hjYShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUSubj2)}(h h]h }(hjfShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUSubj )}(hunsignedh]hunsigned}(hjtShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUSubj )}(hlongh]hlong}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUSubj)}(hsrch]hsrc}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hconst unsigned long *maskh](j)}(hjh]hconst}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj )}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj )}(hlongh]hlong}(hj ThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hjh]h*}(hj%ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hmaskh]hmask}(hj2ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hunsigned int nbitsh](j )}(hunsignedh]hunsigned}(hjKThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGTubj2)}(h h]h }(hjYThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGTubj )}(hinth]hint}(hjgThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGTubj2)}(h h]h }(hjuThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGTubj)}(hnbitsh]hnbits}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjRhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjRhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1jhjRhMhjRhhubj)}(hhh]h)}(h'Gather a bitmap according to given maskh]h'Gather a bitmap according to given mask}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjThhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1jhhhj hNhNubj)}(hXV**Parameters** ``unsigned long *dst`` gathered bitmap ``const unsigned long *src`` scattered bitmap ``const unsigned long *mask`` mask representing bits to extract from in the scattered bitmap ``unsigned int nbits`` number of bits in each of these bitmaps **Description** Gathers bitmap with sparse bits according to the given **mask**. **Example** If **src** bitmap = 0x0302, with **mask** = 0x1313, **dst** will be 0x001a. Or in binary form **src** **mask** **dst** 0000001100000010 0001001100010011 0000000000011010 (Bits 0, 1, 4, 8, 9, 12 are copied to the bits 0, 1, 2, 3, 4, 5) A more 'visual' description of the operation:: mask: ...v..vv...v..vv src: 0000001100000010 ^ ^^ ^ 0 | || | 10 | || > 010 | |+--> 1010 | +--> 11010 +----> 011010 dst: 0000000000011010 A relationship exists between bitmap_gather() and bitmap_scatter(). See bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: bitmap_scatter() can be seen as the 'reverse' bitmap_gather() operation. Suppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src. The result can be 'equivalent' because bitmap_scatter() and bitmap_gather() are not bijective. The result and src values are equivalent in that sense that a call to bitmap_scatter(res, src, mask, n) and a call to bitmap_scatter(res, result, mask, n) will lead to the same res value.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubj )}(hhh](j)}(h'``unsigned long *dst`` gathered bitmap h](j)}(h``unsigned long *dst``h]j)}(hjTh]hunsigned long *dst}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubj2)}(hhh]h)}(hgathered bitmaph]hgathered bitmap}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjTubj)}(h.``const unsigned long *src`` scattered bitmap h](j)}(h``const unsigned long *src``h]j)}(hj'Uh]hconst unsigned long *src}(hj)UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Uubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj!Uubj2)}(hhh]h)}(hscattered bitmaph]hscattered bitmap}(hj@UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmask representing bits to extract from in the scattered bitmaph]h>mask representing bits to extract from in the scattered bitmap}(hjyUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuUhMhjvUubah}(h]h ]h"]h$]h&]uh1j1hjZUubeh}(h]h ]h"]h$]h&]uh1jhjuUhMhjTubj)}(h?``unsigned int nbits`` number of bits in each of these bitmaps h](j)}(h``unsigned int nbits``h]j)}(hjUh]hunsigned int nbits}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjUubj2)}(hhh]h)}(h'number of bits in each of these bitmapsh]h'number of bits in each of these bitmaps}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjTubeh}(h]h ]h"]h$]h&]uh1j hjTubh)}(h**Description**h]j)}(hjUh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(h@Gathers bitmap with sparse bits according to the given **mask**.h](h7Gathers bitmap with sparse bits according to the given }(hjUhhhNhNubj)}(h**mask**h]hmask}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(h **Example**h]j)}(hj Vh]hExample}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Vubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(hKIf **src** bitmap = 0x0302, with **mask** = 0x1313, **dst** will be 0x001a.h](hIf }(hj#VhhhNhNubj)}(h**src**h]hsrc}(hj+VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Vubh bitmap = 0x0302, with }(hj#VhhhNhNubj)}(h**mask**h]hmask}(hj=VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Vubh = 0x1313, }(hj#VhhhNhNubj)}(h**dst**h]hdst}(hjOVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Vubh will be 0x001a.}(hj#VhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(hOr in binary form **src** **mask** **dst** 0000001100000010 0001001100010011 0000000000011010h](hOr in binary form }(hjhVhhhNhNubj)}(h**src**h]hsrc}(hjpVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhVubh }(hjhVhhhNhNubj)}(h**mask**h]hmask}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhVubh }(hjhVhhhNhNubj)}(h**dst**h]hdst}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhVubh> 0000001100000010 0001001100010011 0000000000011010}(hjhVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(h@(Bits 0, 1, 4, 8, 9, 12 are copied to the bits 0, 1, 2, 3, 4, 5)h]h@(Bits 0, 1, 4, 8, 9, 12 are copied to the bits 0, 1, 2, 3, 4, 5)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(h.A more 'visual' description of the operation::h]h1A more ‘visual’ description of the operation:}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubjH)}(hmask: ...v..vv...v..vv src: 0000001100000010 ^ ^^ ^ 0 | || | 10 | || > 010 | |+--> 1010 | +--> 11010 +----> 011010 dst: 0000000000011010h]hmask: ...v..vv...v..vv src: 0000001100000010 ^ ^^ ^ 0 | || | 10 | || > 010 | |+--> 1010 | +--> 11010 +----> 011010 dst: 0000000000011010}hjVsbah}(h]h ]h"]h$]h&]jjuh1jHhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(hA relationship exists between bitmap_gather() and bitmap_scatter(). See bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: bitmap_scatter() can be seen as the 'reverse' bitmap_gather() operation.h]hA relationship exists between bitmap_gather() and bitmap_scatter(). See bitmap_scatter() for the bitmap scatter detailed operations. TL;DR: bitmap_scatter() can be seen as the ‘reverse’ bitmap_gather() operation.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(hSuppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src.h]hSuppose scattered computed using bitmap_scatter(scattered, src, mask, n). The operation bitmap_gather(result, scattered, mask, n) leads to a result equal or equivalent to src.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubh)}(hXThe result can be 'equivalent' because bitmap_scatter() and bitmap_gather() are not bijective. The result and src values are equivalent in that sense that a call to bitmap_scatter(res, src, mask, n) and a call to bitmap_scatter(res, result, mask, n) will lead to the same res value.h]hXThe result can be ‘equivalent’ because bitmap_scatter() and bitmap_gather() are not bijective. The result and src values are equivalent in that sense that a call to bitmap_scatter(res, src, mask, n) and a call to bitmap_scatter(res, result, mask, n) will lead to the same res value.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "bitmap_release_region (C function)c.bitmap_release_regionhNtauh1hhj hhhNhNubj)}(hhh](j)}(hOvoid bitmap_release_region (unsigned long *bitmap, unsigned int pos, int order)h]j)}(hNvoid bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order)h](j )}(hvoidh]hvoid}(hj'WhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#WhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj2)}(h h]h }(hj6WhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#Whhhj5WhMubj{)}(hbitmap_release_regionh]j)}(hbitmap_release_regionh]hbitmap_release_region}(hjHWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#Whhhj5WhMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjdWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`Wubj2)}(h h]h }(hjrWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`Wubj )}(hlongh]hlong}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`Wubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`Wubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Wubj)}(hbitmaph]hbitmap}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\Wubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj )}(hinth]hint}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hposh]hpos}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\Wubj)}(h int orderh](j )}(hinth]hint}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXubj2)}(h h]h }(hj!XhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(horderh]horder}(hj/XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\Wubeh}(h]h ]h"]h$]h&]jjuh1jhj#Whhhj5WhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhj5WhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jhj5WhMhjWhhubj)}(hhh]h)}(hrelease allocated bitmap regionh]hrelease allocated bitmap region}(hjYXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjVXhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhj5WhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqXjjqXjjjuh1jhhhj hNhNubj)}(hXg**Parameters** ``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap ``unsigned int pos`` beginning of bit region to release ``int order`` region size (log base 2 of number of bits) to release **Description** This is the complement to __bitmap_find_free_region() and releases the found region (by clearing it in the bitmap).h](h)}(h**Parameters**h]j)}(hj{Xh]h Parameters}(hj}XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjuXubj )}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjXh]hunsigned long *bitmap}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubj2)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubj)}(h8``unsigned int pos`` beginning of bit region to release h](j)}(h``unsigned int pos``h]j)}(hjXh]hunsigned int pos}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjXubj2)}(hhh]h)}(h"beginning of bit region to releaseh]h"beginning of bit region to release}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubj)}(hD``int order`` region size (log base 2 of number of bits) to release h](j)}(h ``int order``h]j)}(hj Yh]h int order}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Yubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjYubj2)}(hhh]h)}(h5region size (log base 2 of number of bits) to releaseh]h5region size (log base 2 of number of bits) to release}(hj%YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!YhMhj"Yubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhj!YhMhjXubeh}(h]h ]h"]h$]h&]uh1j hjuXubh)}(h**Description**h]j)}(hjGYh]h Description}(hjIYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEYubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjuXubh)}(hsThis is the complement to __bitmap_find_free_region() and releases the found region (by clearing it in the bitmap).h]hsThis is the complement to __bitmap_find_free_region() and releases the found region (by clearing it in the bitmap).}(hj]YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjuXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #bitmap_allocate_region (C function)c.bitmap_allocate_regionhNtauh1hhj hhhNhNubj)}(hhh](j)}(hOint bitmap_allocate_region (unsigned long *bitmap, unsigned int pos, int order)h]j)}(hNint bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order)h](j )}(hinth]hint}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYhhhjYhMubj{)}(hbitmap_allocate_regionh]j)}(hbitmap_allocate_regionh]hbitmap_allocate_region}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYhhhjYhMubj)}(h4(unsigned long *bitmap, unsigned int pos, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj )}(hlongh]hlong}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hbitmaph]hbitmap}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hunsigned int posh](j )}(hunsignedh]hunsigned}(hj'ZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#Zubj2)}(h h]h }(hj5ZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#Zubj )}(hinth]hint}(hjCZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#Zubj2)}(h h]h }(hjQZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#Zubj)}(hposh]hpos}(hj_ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(h int orderh](j )}(hinth]hint}(hjxZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtZubj)}(horderh]horder}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhMubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1jhjYhMhjYhhubj)}(hhh]h)}(hallocate bitmap regionh]hallocate bitmap region}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhj hNhNubj)}(hX**Parameters** ``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap ``unsigned int pos`` beginning of bit region to allocate ``int order`` region size (log base 2 of number of bits) to allocate **Description** Allocate (set bits in) a specified region of a bitmap. **Return** 0 on success, or ``-EBUSY`` if specified region wasn't free (not all bits were zero).h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubj )}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hjZh]hunsigned long *bitmap}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubj2)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjZubj)}(h9``unsigned int pos`` beginning of bit region to allocate h](j)}(h``unsigned int pos``h]j)}(hj8[h]hunsigned int pos}(hj:[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6[ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj2[ubj2)}(hhh]h)}(h#beginning of bit region to allocateh]h#beginning of bit region to allocate}(hjQ[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM[hMhjN[ubah}(h]h ]h"]h$]h&]uh1j1hj2[ubeh}(h]h ]h"]h$]h&]uh1jhjM[hMhjZubj)}(hE``int order`` region size (log base 2 of number of bits) to allocate h](j)}(h ``int order``h]j)}(hjq[h]h int order}(hjs[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo[ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjk[ubj2)}(hhh]h)}(h6region size (log base 2 of number of bits) to allocateh]h6region size (log base 2 of number of bits) to allocate}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj[ubah}(h]h ]h"]h$]h&]uh1j1hjk[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjZubeh}(h]h ]h"]h$]h&]uh1j hjZubh)}(h**Description**h]j)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubh)}(h6Allocate (set bits in) a specified region of a bitmap.h]h6Allocate (set bits in) a specified region of a bitmap.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubh)}(h **Return**h]j)}(hj[h]hReturn}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubh)}(hU0 on success, or ``-EBUSY`` if specified region wasn't free (not all bits were zero).h](h0 on success, or }(hj[hhhNhNubj)}(h ``-EBUSY``h]h-EBUSY}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh< if specified region wasn’t free (not all bits were zero).}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $bitmap_find_free_region (C function)c.bitmap_find_free_regionhNtauh1hhj hhhNhNubj)}(hhh](j)}(hQint bitmap_find_free_region (unsigned long *bitmap, unsigned int bits, int order)h]j)}(hPint bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order)h](j )}(hinth]hint}(hj*\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&\hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubj2)}(h h]h }(hj9\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&\hhhj8\hMubj{)}(hbitmap_find_free_regionh]j)}(hbitmap_find_free_regionh]hbitmap_find_free_region}(hjK\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG\ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&\hhhj8\hMubj)}(h5(unsigned long *bitmap, unsigned int bits, int order)h](j)}(hunsigned long *bitmaph](j )}(hunsignedh]hunsigned}(hjg\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjc\ubj2)}(h h]h }(hju\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjc\ubj )}(hlongh]hlong}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjc\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjc\ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc\ubj)}(hbitmaph]hbitmap}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_\ubj)}(hunsigned int bitsh](j )}(hunsignedh]hunsigned}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj )}(hinth]hint}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hbitsh]hbits}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_\ubj)}(h int orderh](j )}(hinth]hint}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hj$]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(horderh]horder}(hj2]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_\ubeh}(h]h ]h"]h$]h&]jjuh1jhj&\hhhj8\hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"\hhhj8\hMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jhj8\hMhj\hhubj)}(hhh]h)}(h$find a contiguous aligned mem regionh]h$find a contiguous aligned mem region}(hj\]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjY]hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj8\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjt]jjt]jjjuh1jhhhj hNhNubj)}(hX1**Parameters** ``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap ``unsigned int bits`` number of bits in the bitmap ``int order`` region size (log base 2 of number of bits) to find **Description** Find a region of free (zero) bits in a **bitmap** of **bits** bits and allocate them (set them to one). Only consider regions of length a power (**order**) of two, aligned to that power of two, which makes the search algorithm much faster. **Return** the bit offset in bitmap of the allocated region, or -errno on failure.h](h)}(h**Parameters**h]j)}(hj~]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|]ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjx]ubj )}(hhh](j)}(hN``unsigned long *bitmap`` array of unsigned longs corresponding to the bitmap h](j)}(h``unsigned long *bitmap``h]j)}(hj]h]hunsigned long *bitmap}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj]ubj2)}(hhh]h)}(h3array of unsigned longs corresponding to the bitmaph]h3array of unsigned longs corresponding to the bitmap}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1j1hj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubj)}(h3``unsigned int bits`` number of bits in the bitmap h](j)}(h``unsigned int bits``h]j)}(hj]h]hunsigned int bits}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj]ubj2)}(hhh]h)}(hnumber of bits in the bitmaph]hnumber of bits in the bitmap}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1j1hj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubj)}(hA``int order`` region size (log base 2 of number of bits) to find h](j)}(h ``int order``h]j)}(hj^h]h int order}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ^ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj ^ubj2)}(hhh]h)}(h2region size (log base 2 of number of bits) to findh]h2region size (log base 2 of number of bits) to find}(hj(^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$^hMhj%^ubah}(h]h ]h"]h$]h&]uh1j1hj ^ubeh}(h]h ]h"]h$]h&]uh1jhj$^hMhj]ubeh}(h]h ]h"]h$]h&]uh1j hjx]ubh)}(h**Description**h]j)}(hjJ^h]h Description}(hjL^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjx]ubh)}(hFind a region of free (zero) bits in a **bitmap** of **bits** bits and allocate them (set them to one). Only consider regions of length a power (**order**) of two, aligned to that power of two, which makes the search algorithm much faster.h](h'Find a region of free (zero) bits in a }(hj`^hhhNhNubj)}(h **bitmap**h]hbitmap}(hjh^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`^ubh of }(hj`^hhhNhNubj)}(h**bits**h]hbits}(hjz^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`^ubhU bits and allocate them (set them to one). Only consider regions of length a power (}(hj`^hhhNhNubj)}(h **order**h]horder}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`^ubhU) of two, aligned to that power of two, which makes the search algorithm much faster.}(hj`^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjx]ubh)}(h **Return**h]j)}(hj^h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjx]ubh)}(hGthe bit offset in bitmap of the allocated region, or -errno on failure.h]hGthe bit offset in bitmap of the allocated region, or -errno on failure.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjx]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j BITMAP_FROM_U64 (C macro)c.BITMAP_FROM_U64hNtauh1hhj hhhNhNubj)}(hhh](j)}(hBITMAP_FROM_U64h]j)}(hBITMAP_FROM_U64h]j{)}(hBITMAP_FROM_U64h]j)}(hj^h]hBITMAP_FROM_U64}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj_hMubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1jhj_hMhj^hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj^hhhj_hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj_jj_jjjuh1jhhhj hNhNubh)}(h``BITMAP_FROM_U64 (n)``h]j)}(hj"_h]hBITMAP_FROM_U64 (n)}(hj$_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj _ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj hhubj)}(h7Represent u64 value in the format suitable for bitmap. h]h)}(h6Represent u64 value in the format suitable for bitmap.h]h6Represent u64 value in the format suitable for bitmap.}(hj<_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhj8_ubah}(h]h ]h"]h$]h&]uh1jhjJ_hMhj hhubj)}(hX**Parameters** ``n`` u64 value **Description** Linux bitmaps are internally arrays of unsigned longs, i.e. 32-bit integers in 32-bit environment, and 64-bit integers in 64-bit one. There are four combinations of endianness and length of the word in linux ABIs: LE64, BE64, LE32 and BE32. On 64-bit kernels 64-bit LE and BE numbers are naturally ordered in bitmaps and therefore don't require any special handling. On 32-bit kernels 32-bit LE ABI orders lo word of 64-bit number in memory prior to hi, and 32-bit BE orders hi word prior to lo. The bitmap on the other hand is represented as an array of 32-bit words and the position of bit N may therefore be calculated as: word #(N/32) and bit #(N``32``) in that word. For example, bit #42 is located at 10th position of 2nd word. It matches 32-bit LE ABI, and we can simply let the compiler store 64-bit values in memory as it usually does. But for BE we need to swap hi and lo words manually. With all that, the macro BITMAP_FROM_U64() does explicit reordering of hi and lo parts of u64. For LE32 it does nothing, and for BE environment it swaps hi and lo words, as is expected by bitmap.h](h)}(h**Parameters**h]j)}(hjW_h]h Parameters}(hjY_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU_ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQ_ubj )}(hhh]j)}(h``n`` u64 value h](j)}(h``n``h]j)}(hjv_h]hn}(hjx_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt_ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjp_ubj2)}(hhh]h)}(h u64 valueh]h u64 value}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj_ubah}(h]h ]h"]h$]h&]uh1j1hjp_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjm_ubah}(h]h ]h"]h$]h&]uh1j hjQ_ubh)}(h**Description**h]j)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQ_ubh)}(hLinux bitmaps are internally arrays of unsigned longs, i.e. 32-bit integers in 32-bit environment, and 64-bit integers in 64-bit one.h]hLinux bitmaps are internally arrays of unsigned longs, i.e. 32-bit integers in 32-bit environment, and 64-bit integers in 64-bit one.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQ_ubh)}(hjThere are four combinations of endianness and length of the word in linux ABIs: LE64, BE64, LE32 and BE32.h]hjThere are four combinations of endianness and length of the word in linux ABIs: LE64, BE64, LE32 and BE32.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQ_ubh)}(h}On 64-bit kernels 64-bit LE and BE numbers are naturally ordered in bitmaps and therefore don't require any special handling.h]hOn 64-bit kernels 64-bit LE and BE numbers are naturally ordered in bitmaps and therefore don’t require any special handling.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQ_ubh)}(hXOn 32-bit kernels 32-bit LE ABI orders lo word of 64-bit number in memory prior to hi, and 32-bit BE orders hi word prior to lo. The bitmap on the other hand is represented as an array of 32-bit words and the position of bit N may therefore be calculated as: word #(N/32) and bit #(N``32``) in that word. For example, bit #42 is located at 10th position of 2nd word. It matches 32-bit LE ABI, and we can simply let the compiler store 64-bit values in memory as it usually does. But for BE we need to swap hi and lo words manually.h]hXOn 32-bit kernels 32-bit LE ABI orders lo word of 64-bit number in memory prior to hi, and 32-bit BE orders hi word prior to lo. The bitmap on the other hand is represented as an array of 32-bit words and the position of bit N may therefore be calculated as: word #(N/32) and bit #(N``32``) in that word. For example, bit #42 is located at 10th position of 2nd word. It matches 32-bit LE ABI, and we can simply let the compiler store 64-bit values in memory as it usually does. But for BE we need to swap hi and lo words manually.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM hjQ_ubh)}(hWith all that, the macro BITMAP_FROM_U64() does explicit reordering of hi and lo parts of u64. For LE32 it does nothing, and for BE environment it swaps hi and lo words, as is expected by bitmap.h]hWith all that, the macro BITMAP_FROM_U64() does explicit reordering of hi and lo parts of u64. For LE32 it does nothing, and for BE environment it swaps hi and lo words, as is expected by bitmap.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMhjQ_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_from_u64 (C function)c.bitmap_from_u64hNtauh1hhj hhhNhNubj)}(hhh](j)}(h3void bitmap_from_u64 (unsigned long *dst, u64 mask)h]j)}(h2void bitmap_from_u64(unsigned long *dst, u64 mask)h](j )}(hvoidh]hvoid}(hj2`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.`hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM ubj2)}(h h]h }(hjA`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.`hhhj@`hM ubj{)}(hbitmap_from_u64h]j)}(hbitmap_from_u64h]hbitmap_from_u64}(hjS`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.`hhhj@`hM ubj)}(h(unsigned long *dst, u64 mask)h](j)}(hunsigned long *dsth](j )}(hunsignedh]hunsigned}(hjo`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjk`ubj2)}(h h]h }(hj}`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjk`ubj )}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjk`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjk`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk`ubj)}(hdsth]hdst}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjg`ubj)}(hu64 maskh](h)}(hhh]j)}(hu64h]hu64}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj`modnameN classnameNj] j` )}jc ]jf )}jY jU`sbc.bitmap_from_u64asbuh1hhj`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(hmaskh]hmask}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjg`ubeh}(h]h ]h"]h$]h&]jjuh1jhj.`hhhj@`hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*`hhhj@`hM ubah}(h]j%`ah ](jjeh"]h$]h&]jj)jhuh1jhj@`hM hj'`hhubj)}(hhh]h)}(h Check and swap words within u64.h]h Check and swap words within u64.}(hj(ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM hj%ahhubah}(h]h ]h"]h$]h&]uh1jhj'`hhhj@`hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@ajj@ajjjuh1jhhhj hNhNubj)}(hXE**Parameters** ``unsigned long *dst`` destination bitmap ``u64 mask`` source bitmap **Description** In 32-bit Big Endian kernel, when using ``(u32 *)(:c:type:`val`)[*]`` to read u64 mask, we will get the wrong word. That is ``(u32 *)(:c:type:`val`)[0]`` gets the upper 32 bits, but we expect the lower 32-bits of u64.h](h)}(h**Parameters**h]j)}(hjJah]h Parameters}(hjLahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM$hjDaubj )}(hhh](j)}(h*``unsigned long *dst`` destination bitmap h](j)}(h``unsigned long *dst``h]j)}(hjiah]hunsigned long *dst}(hjkahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM"hjcaubj2)}(hhh]h)}(hdestination bitmaph]hdestination bitmap}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ahM"hjaubah}(h]h ]h"]h$]h&]uh1j1hjcaubeh}(h]h ]h"]h$]h&]uh1jhj~ahM"hj`aubj)}(h``u64 mask`` source bitmap h](j)}(h ``u64 mask``h]j)}(hjah]hu64 mask}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM!hjaubj2)}(hhh]h)}(h source bitmaph]h source bitmap}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM!hjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahM!hj`aubeh}(h]h ]h"]h$]h&]uh1j hjDaubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM#hjDaubh)}(hIn 32-bit Big Endian kernel, when using ``(u32 *)(:c:type:`val`)[*]`` to read u64 mask, we will get the wrong word. That is ``(u32 *)(:c:type:`val`)[0]`` gets the upper 32 bits, but we expect the lower 32-bits of u64.h](h(In 32-bit Big Endian kernel, when using }(hjahhhNhNubj)}(h``(u32 *)(:c:type:`val`)[*]``h]h(u32 *)(:c:type:`val`)[*]}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh7 to read u64 mask, we will get the wrong word. That is }(hjahhhNhNubj)}(h``(u32 *)(:c:type:`val`)[0]``h]h(u32 *)(:c:type:`val`)[0]}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh@ gets the upper 32 bits, but we expect the lower 32-bits of u64.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM#hjDaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_read (C function) c.bitmap_readhNtauh1hhj hhhNhNubj)}(hhh](j)}(h^unsigned long bitmap_read (const unsigned long *map, unsigned long start, unsigned long nbits)h]j)}(h]unsigned long bitmap_read(const unsigned long *map, unsigned long start, unsigned long nbits)h](j )}(hunsignedh]hunsigned}(hjFbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBbhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM/ubj2)}(h h]h }(hjUbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBbhhhjTbhM/ubj )}(hlongh]hlong}(hjcbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBbhhhjTbhM/ubj2)}(h h]h }(hjqbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBbhhhjTbhM/ubj{)}(h bitmap_readh]j)}(h bitmap_readh]h bitmap_read}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBbhhhjTbhM/ubj)}(hD(const unsigned long *map, unsigned long start, unsigned long nbits)h](j)}(hconst unsigned long *maph](j)}(hjh]hconst}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj )}(hunsignedh]hunsigned}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj )}(hlongh]hlong}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hmaph]hmap}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubj2)}(h h]h }(hj&chhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj )}(hlongh]hlong}(hj4chhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjBchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hstarth]hstart}(hjPchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hunsigned long nbitsh](j )}(hunsignedh]hunsigned}(hjichhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjecubj2)}(h h]h }(hjwchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjecubj )}(hlongh]hlong}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjecubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjecubj)}(hnbitsh]hnbits}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjecubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhjBbhhhjTbhM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>bhhhjTbhM/ubah}(h]j9bah ](jjeh"]h$]h&]jj)jhuh1jhjTbhM/hj;bhhubj)}(hhh]h)}(h-read a value of n-bits from the memory regionh]h-read a value of n-bits from the memory region}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM/hjchhubah}(h]h ]h"]h$]h&]uh1jhj;bhhhjTbhM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1jhhhj hNhNubj)}(hX**Parameters** ``const unsigned long *map`` address to the bitmap memory region ``unsigned long start`` bit offset of the n-bit value ``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG **Return** value of **nbits** bits located at the **start** bit offset within the **map** memory region. For **nbits** = 0 and **nbits** > BITS_PER_LONG the return value is undefined.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM3hjcubj )}(hhh](j)}(hA``const unsigned long *map`` address to the bitmap memory region h](j)}(h``const unsigned long *map``h]j)}(hj dh]hconst unsigned long *map}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj dubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM0hjdubj2)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hj%dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!dhM0hj"dubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhj!dhM0hjdubj)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hjEdh]hunsigned long start}(hjGdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCdubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM1hj?dubj2)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hj^dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZdhM1hj[dubah}(h]h ]h"]h$]h&]uh1j1hj?dubeh}(h]h ]h"]h$]h&]uh1jhjZdhM1hjdubj)}(hL``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG h](j)}(h``unsigned long nbits``h]j)}(hj~dh]hunsigned long nbits}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|dubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM2hjxdubj2)}(hhh]h)}(h3size of value in bits, nonzero, up to BITS_PER_LONGh]h3size of value in bits, nonzero, up to BITS_PER_LONG}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM2hjdubah}(h]h ]h"]h$]h&]uh1j1hjxdubeh}(h]h ]h"]h$]h&]uh1jhjdhM2hjdubeh}(h]h ]h"]h$]h&]uh1j hjcubh)}(h **Return**h]j)}(hjdh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM4hjcubh)}(hvalue of **nbits** bits located at the **start** bit offset within the **map** memory region. For **nbits** = 0 and **nbits** > BITS_PER_LONG the return value is undefined.h](h value of }(hjdhhhNhNubj)}(h **nbits**h]hnbits}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh bits located at the }(hjdhhhNhNubj)}(h **start**h]hstart}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh bit offset within the }(hjdhhhNhNubj)}(h**map**h]hmap}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh memory region. For }(hjdhhhNhNubj)}(h **nbits**h]hnbits}(hj ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh = 0 and }(hjdhhhNhNubj)}(h **nbits**h]hnbits}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh/ > BITS_PER_LONG the return value is undefined.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhM4hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bitmap_write (C function)c.bitmap_writehNtauh1hhj hhhNhNubj)}(hhh](j)}(hevoid bitmap_write (unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h]j)}(hdvoid bitmap_write(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](j )}(hvoidh]hvoid}(hjXehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTehhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMLubj2)}(h h]h }(hjgehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTehhhjfehMLubj{)}(h bitmap_writeh]j)}(h bitmap_writeh]h bitmap_write}(hjyehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjueubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjTehhhjfehMLubj)}(hS(unsigned long *map, unsigned long value, unsigned long start, unsigned long nbits)h](j)}(hunsigned long *maph](j )}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj )}(hlongh]hlong}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hmaph]hmap}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hunsigned long valueh](j )}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj )}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hvalueh]hvalue}(hj+fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hunsigned long starth](j )}(hunsignedh]hunsigned}(hjDfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@fubj2)}(h h]h }(hjRfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@fubj )}(hlongh]hlong}(hj`fhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@fubj2)}(h h]h }(hjnfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@fubj)}(hstarth]hstart}(hj|fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hunsigned long nbitsh](j )}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj )}(hlongh]hlong}(hjfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hnbitsh]hnbits}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhjTehhhjfehMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPehhhjfehMLubah}(h]jKeah ](jjeh"]h$]h&]jj)jhuh1jhjfehMLhjMehhubj)}(hhh]h)}(h(write n-bit value within a memory regionh]h(write n-bit value within a memory region}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMLhjfhhubah}(h]h ]h"]h$]h&]uh1jhjMehhhjfehMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1jhhhj hNhNubj)}(hXG**Parameters** ``unsigned long *map`` address to the bitmap memory region ``unsigned long value`` value to write, clamped to nbits ``unsigned long start`` bit offset of the n-bit value ``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG. **Description** bitmap_write() behaves as-if implemented as **nbits** calls of __assign_bit(), i.e. bits beyond **nbits** are ignored: for (bit = 0; bit < nbits; bit++) __assign_bit(start + bit, bitmap, val & BIT(bit)); For **nbits** == 0 and **nbits** > BITS_PER_LONG no writes are performed.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMPhjgubj )}(hhh](j)}(h;``unsigned long *map`` address to the bitmap memory region h](j)}(h``unsigned long *map``h]j)}(hj8gh]hunsigned long *map}(hj:ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6gubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMMhj2gubj2)}(hhh]h)}(h#address to the bitmap memory regionh]h#address to the bitmap memory region}(hjQghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMghMMhjNgubah}(h]h ]h"]h$]h&]uh1j1hj2gubeh}(h]h ]h"]h$]h&]uh1jhjMghMMhj/gubj)}(h9``unsigned long value`` value to write, clamped to nbits h](j)}(h``unsigned long value``h]j)}(hjqgh]hunsigned long value}(hjsghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjogubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMNhjkgubj2)}(hhh]h)}(h value to write, clamped to nbitsh]h value to write, clamped to nbits}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMNhjgubah}(h]h ]h"]h$]h&]uh1j1hjkgubeh}(h]h ]h"]h$]h&]uh1jhjghMNhj/gubj)}(h6``unsigned long start`` bit offset of the n-bit value h](j)}(h``unsigned long start``h]j)}(hjgh]hunsigned long start}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMOhjgubj2)}(hhh]h)}(hbit offset of the n-bit valueh]hbit offset of the n-bit value}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMOhjgubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghMOhj/gubj)}(hM``unsigned long nbits`` size of value in bits, nonzero, up to BITS_PER_LONG. h](j)}(h``unsigned long nbits``h]j)}(hjgh]hunsigned long nbits}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMPhjgubj2)}(hhh]h)}(h4size of value in bits, nonzero, up to BITS_PER_LONG.h]h4size of value in bits, nonzero, up to BITS_PER_LONG.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMPhjgubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghMPhj/gubeh}(h]h ]h"]h$]h&]uh1j hjgubh)}(h**Description**h]j)}(hjhh]h Description}(hj hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMRhjgubh)}(hvbitmap_write() behaves as-if implemented as **nbits** calls of __assign_bit(), i.e. bits beyond **nbits** are ignored:h](h,bitmap_write() behaves as-if implemented as }(hj4hhhhNhNubj)}(h **nbits**h]hnbits}(hj BITS_PER_LONG no writes are performed.h](hFor }(hjhhhhNhNubj)}(h **nbits**h]hnbits}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh == 0 and }(hjhhhhNhNubj)}(h **nbits**h]hnbits}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh) > BITS_PER_LONG no writes are performed.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:84: ./include/linux/bitmap.hhMWhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h]bitmap-operationsah ]h"]bitmap operationsah$]h&]uh1hhj?hhhhhK@ubh)}(hhh](h)}(hCommand-line Parsingh]hCommand-line Parsing}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhhKXubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j get_option (C function) c.get_optionhNtauh1hhjhhhhNhNubj)}(hhh](j)}(h&int get_option (char **str, int *pint)h]j)}(h%int get_option(char **str, int *pint)h](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjihhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$ubj2)}(h h]h }(hj&ihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjihhhj%ihK$ubj{)}(h get_optionh]j)}(h get_optionh]h get_option}(hj8ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4iubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjihhhj%ihK$ubj)}(h(char **str, int *pint)h](j)}(h char **strh](j )}(hcharh]hchar}(hjTihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPiubj2)}(h h]h }(hjbihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPiubj)}(hjh]h*}(hjpihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPiubj)}(hjh]h*}(hj}ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPiubj)}(hstrh]hstr}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLiubj)}(h int *pinth](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjiubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hpinth]hpint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLiubeh}(h]h ]h"]h$]h&]jjuh1jhjihhhj%ihK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhj%ihK$ubah}(h]j iah ](jjeh"]h$]h&]jj)jhuh1jhj%ihK$hj ihhubj)}(hhh]h)}(h#Parse integer from an option stringh]h#Parse integer from an option string}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK$hjihhubah}(h]h ]h"]h$]h&]uh1jhj ihhhj%ihK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jhhhjhhNhNubj)}(hXT**Parameters** ``char **str`` option string ``int *pint`` (optional output) integer value parsed from **str** **Description** Read an int from an option string; if available accept a subsequent comma as well. When **pint** is NULL the function can be used as a validator of the current option in the string. Leading hyphen without integer is no integer case, but we consume it for the sake of simplification. **Return** 0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a rangeh](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjjubj )}(hhh](j)}(h``char **str`` option string h](j)}(h``char **str``h]j)}(hj7jh]h char **str}(hj9jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5jubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK%hj1jubj2)}(hhh]h)}(h option stringh]h option string}(hjPjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLjhK%hjMjubah}(h]h ]h"]h$]h&]uh1j1hj1jubeh}(h]h ]h"]h$]h&]uh1jhjLjhK%hj.jubj)}(hB``int *pint`` (optional output) integer value parsed from **str** h](j)}(h ``int *pint``h]j)}(hjpjh]h int *pint}(hjrjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK&hjjjubj2)}(hhh]h)}(h3(optional output) integer value parsed from **str**h](h,(optional output) integer value parsed from }(hjjhhhNhNubj)}(h**str**h]hstr}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1hhjjhK&hjjubah}(h]h ]h"]h$]h&]uh1j1hjjjubeh}(h]h ]h"]h$]h&]uh1jhjjhK&hj.jubeh}(h]h ]h"]h$]h&]uh1j hjjubh)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK(hjjubj)}(hXRead an int from an option string; if available accept a subsequent comma as well. When **pint** is NULL the function can be used as a validator of the current option in the string. Leading hyphen without integer is no integer case, but we consume it for the sake of simplification. h](h)}(hRRead an int from an option string; if available accept a subsequent comma as well.h]hRRead an int from an option string; if available accept a subsequent comma as well.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK'hjjubh)}(hbWhen **pint** is NULL the function can be used as a validator of the current option in the string.h](hWhen }(hjjhhhNhNubj)}(h**pint**h]hpint}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubhU is NULL the function can be used as a validator of the current option in the string.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK*hjjubh)}(hdLeading hyphen without integer is no integer case, but we consume it for the sake of simplification.h]hdLeading hyphen without integer is no integer case, but we consume it for the sake of simplification.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK.hjjubeh}(h]h ]h"]h$]h&]uh1jhjjhK'hjjubh)}(h **Return**h]j)}(hjkh]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK1hjjubh)}(h0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a rangeh]h0 - no int in string 1 - int found, no subsequent comma 2 - int found including a subsequent comma 3 - hyphen found to denote a range}(hj0khhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK.hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j get_options (C function) c.get_optionshNtauh1hhjhhhhNhNubj)}(hhh](j)}(h:char * get_options (const char *str, int nints, int *ints)h]j)}(h8char *get_options(const char *str, int nints, int *ints)h](j )}(hcharh]hchar}(hj_khhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[khhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKSubj2)}(h h]h }(hjnkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[khhhjmkhKSubj)}(hjh]h*}(hj|khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[khhhjmkhKSubj{)}(h get_optionsh]j)}(h get_optionsh]h get_options}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[khhhjmkhKSubj)}(h'(const char *str, int nints, int *ints)h](j)}(hconst char *strh](j)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj )}(hcharh]hchar}(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hstrh]hstr}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h int nintsh](j )}(hinth]hint}(hjlhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hnintsh]hnints}(hj"lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h int *intsh](j )}(hinth]hint}(hj;lhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7lubj2)}(h h]h }(hjIlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7lubj)}(hjh]h*}(hjWlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7lubj)}(hintsh]hints}(hjdlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhj[khhhjmkhKSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWkhhhjmkhKSubah}(h]jRkah ](jjeh"]h$]h&]jj)jhuh1jhjmkhKShjTkhhubj)}(hhh]h)}(h&Parse a string into a list of integersh]h&Parse a string into a list of integers}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKShjlhhubah}(h]h ]h"]h$]h&]uh1jhjTkhhhjmkhKSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1jhhhjhhNhNubj)}(hX**Parameters** ``const char *str`` String to be parsed ``int nints`` size of integer array ``int *ints`` integer array (must have room for at least one element) **Description** This function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string. When **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below. The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**. Return value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](h)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKWhjlubj )}(hhh](j)}(h(``const char *str`` String to be parsed h](j)}(h``const char *str``h]j)}(hjlh]hconst char *str}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKThjlubj2)}(hhh]h)}(hString to be parsedh]hString to be parsed}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKThjlubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhKThjlubj)}(h$``int nints`` size of integer array h](j)}(h ``int nints``h]j)}(hjmh]h int nints}(hj mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKUhjmubj2)}(hhh]h)}(hsize of integer arrayh]hsize of integer array}(hj!mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKUhjmubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjmhKUhjlubj)}(hF``int *ints`` integer array (must have room for at least one element) h](j)}(h ``int *ints``h]j)}(hjAmh]h int *ints}(hjCmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?mubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKVhj;mubj2)}(hhh]h)}(h7integer array (must have room for at least one element)h]h7integer array (must have room for at least one element)}(hjZmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVmhKVhjWmubah}(h]h ]h"]h$]h&]uh1j1hj;mubeh}(h]h ]h"]h$]h&]uh1jhjVmhKVhjlubeh}(h]h ]h"]h$]h&]uh1j hjlubh)}(h**Description**h]j)}(hj|mh]h Description}(hj~mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzmubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKXhjlubj)}(hXThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string. When **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below. The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**. Return value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](h)}(hThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string.h]hThis function parses a string containing a comma-separated list of integers, a hyphen-separated range of _positive_ integers, or a combination of both. The parse halts when the array is full, or when no more numbers can be retrieved from the string.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKWhjmubh)}(hWhen **nints** is 0, the function just validates the given **str** and returns the amount of parseable integers as described below.h](hWhen }(hjmhhhNhNubj)}(h **nints**h]hnints}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh- is 0, the function just validates the given }(hjmhhhNhNubj)}(h**str**h]hstr}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubhA and returns the amount of parseable integers as described below.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chK]hjmubh)}(h{The first element is filled by the number of collected integers in the range. The rest is what was parsed from the **str**.h](hsThe first element is filled by the number of collected integers in the range. The rest is what was parsed from the }(hjmhhhNhNubj)}(h**str**h]hstr}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKahjmubh)}(hReturn value is the character in the string which caused the parse to end (typically a null terminator, if **str** is completely parseable).h](hkReturn value is the character in the string which caused the parse to end (typically a null terminator, if }(hjmhhhNhNubj)}(h**str**h]hstr}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh is completely parseable).}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:90: ./lib/cmdline.chKdhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhKWhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memparse (C function) c.memparsehNtauh1hhjhhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjah"]h$]h&]uh1j1hjah"]h$]h&]uh1j1hjah"]h$]h&]uh1j1hjnubj )}(hcharh]hchar}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hptrh]hptr}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h char **retptrh](j )}(hcharh]hchar}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoubj2)}(h h]h }(hj ohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]h*}(hj.ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hjh]h*}(hj;ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hretptrh]hretptr}(hjHohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjah"]h$]h&]uh1j1hjqhhhjqhKubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhKubj{)}(hERR_PTRh]j)}(hERR_PTRh]hERR_PTR}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqhhhjqhKubj)}(h (long error)h]j)}(h long errorh](j )}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrubj2)}(h h]h }(hj*rhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(herrorh]herror}(hj8rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhjqhhhjqhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjqhKubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhjqhKhjqhhubj)}(hhh]h)}(hCreate an error pointer.h]hCreate an error pointer.}(hjbrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhj_rhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzrjjzrjjjuh1jhhhjphNhNubj)}(hX**Parameters** ``long error`` A negative error code. **Description** Encodes **error** into a pointer value. Users should consider the result opaque and not assume anything about how the error is encoded. **Return** A pointer with **error** encoded within its value.h](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK#hj~rubj )}(hhh]j)}(h&``long error`` A negative error code. h](j)}(h``long error``h]j)}(hjrh]h long error}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK hjrubj2)}(hhh]h)}(hA negative error code.h]hA negative error code.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhK hjrubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjrhK hjrubah}(h]h ]h"]h$]h&]uh1j hj~rubh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK"hj~rubh)}(hEncodes **error** into a pointer value. Users should consider the result opaque and not assume anything about how the error is encoded.h](hEncodes }(hjrhhhNhNubj)}(h **error**h]herror}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubhv into a pointer value. Users should consider the result opaque and not assume anything about how the error is encoded.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK!hj~rubh)}(h **Return**h]j)}(hjsh]hReturn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK$hj~rubh)}(h2A pointer with **error** encoded within its value.h](hA pointer with }(hj-shhhNhNubj)}(h **error**h]herror}(hj5shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-subh encoded within its value.}(hj-shhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK%hj~rubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j INIT_ERR_PTR (C macro)c.INIT_ERR_PTRhNtauh1hhjphhhNhNubj)}(hhh](j)}(h INIT_ERR_PTRh]j)}(h INIT_ERR_PTRh]j{)}(h INIT_ERR_PTRh]j)}(hjhsh]h INIT_ERR_PTR}(hjrshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjshhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK-ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjfshhhjshK-ubah}(h]jasah ](jjeh"]h$]h&]jj)jhuh1jhjshK-hjcshhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjcshhhjshK-ubeh}(h]h ](jmacroeh"]h$]h&]jjjjsjjsjjjuh1jhhhjphNhNubh)}(h``INIT_ERR_PTR (error)``h]j)}(hjsh]hINIT_ERR_PTR (error)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK/hjphhubj)}(hInit a const error pointer. h]h)}(hInit a const error pointer.h]hInit a const error pointer.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK-hjsubah}(h]h ]h"]h$]h&]uh1jhjshK-hjphhubj)}(h**Parameters** ``error`` A negative error code. **Description** Like ERR_PTR(), but usable to initialize static variables.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK1hjsubj )}(hhh]j)}(h!``error`` A negative error code. h](j)}(h ``error``h]j)}(hjsh]herror}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK.hjsubj2)}(hhh]h)}(hA negative error code.h]hA negative error code.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhj thK.hjtubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhj thK.hjsubah}(h]h ]h"]h$]h&]uh1j hjsubh)}(h**Description**h]j)}(hj3th]h Description}(hj5thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1tubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK0hjsubh)}(h:Like ERR_PTR(), but usable to initialize static variables.h]h:Like ERR_PTR(), but usable to initialize static variables.}(hjIthhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK/hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j PTR_ERR (C function) c.PTR_ERRhNtauh1hhjphhhNhNubj)}(hhh](j)}(h&long PTR_ERR (__force const void *ptr)h]j)}(h%long PTR_ERR(__force const void *ptr)h](j )}(hlongh]hlong}(hjxthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtthhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK;ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtthhhjthK;ubj{)}(hPTR_ERRh]j)}(hPTR_ERRh]hPTR_ERR}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjtthhhjthK;ubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjthhhNhNubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj)}(hjh]hconst}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj )}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hptrh]hptr}(hj uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubah}(h]h ]h"]h$]h&]jjuh1jhjtthhhjthK;ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjpthhhjthK;ubah}(h]jktah ](jjeh"]h$]h&]jj)jhuh1jhjthK;hjmthhubj)}(hhh]h)}(h-Extract the error code from an error pointer.h]h-Extract the error code from an error pointer.}(hj5uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK;hj2uhhubah}(h]h ]h"]h$]h&]uh1jhjmthhhjthK;ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMujjMujjjuh1jhhhjphNhNubj)}(hk**Parameters** ``__force const void *ptr`` An error pointer. **Return** The error code within **ptr**.h](h)}(h**Parameters**h]j)}(hjWuh]h Parameters}(hjYuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUuubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK?hjQuubj )}(hhh]j)}(h.``__force const void *ptr`` An error pointer. h](j)}(h``__force const void *ptr``h]j)}(hjvuh]h__force const void *ptr}(hjxuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtuubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKhjQuubh)}(hThe error code within **ptr**.h](hThe error code within }(hjuhhhNhNubj)}(h**ptr**h]hptr}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK=hjQuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j IS_ERR (C function)c.IS_ERRhNtauh1hhjphhhNhNubj)}(hhh](j)}(h%bool IS_ERR (__force const void *ptr)h]j)}(h$bool IS_ERR(__force const void *ptr)h](j )}(hj8h]hbool}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKHubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjvhKHubj{)}(hIS_ERRh]j)}(hIS_ERRh]hIS_ERR}(hj(vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$vubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjvhKHubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hj@vhhhNhNubj2)}(h h]h }(hjHvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@vubj)}(hjh]hconst}(hjVvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@vubj2)}(h h]h }(hjcvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@vubj )}(hvoidh]hvoid}(hjqvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@vubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@vubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@vubj)}(hptrh]hptr}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@vubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKKhjvubh)}(h5true if **ptr** is an error pointer, false otherwise.h](htrue if }(hjVwhhhNhNubj)}(h**ptr**h]hptr}(hj^whhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVwubh& is an error pointer, false otherwise.}(hjVwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKJhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j IS_ERR_OR_NULL (C function)c.IS_ERR_OR_NULLhNtauh1hhjphhhNhNubj)}(hhh](j)}(h-bool IS_ERR_OR_NULL (__force const void *ptr)h]j)}(h,bool IS_ERR_OR_NULL(__force const void *ptr)h](j )}(hj8h]hbool}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKUubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwhhhjwhKUubj{)}(hIS_ERR_OR_NULLh]j)}(hIS_ERR_OR_NULLh]hIS_ERR_OR_NULL}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhjwhKUubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjwhhhNhNubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hptrh]hptr}(hj)xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubah}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhKUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjwhKUubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jhjwhKUhjwhhubj)}(hhh]h)}(h*Detect an error pointer or a null pointer.h]h*Detect an error pointer or a null pointer.}(hjSxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKUhjPxhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhKUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkxjjkxjjjuh1jhhhjphNhNubj)}(h**Parameters** ``__force const void *ptr`` The pointer to check. **Description** Like IS_ERR(), but also returns true for a null pointer.h](h)}(h**Parameters**h]j)}(hjuxh]h Parameters}(hjwxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsxubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKYhjoxubj )}(hhh]j)}(h2``__force const void *ptr`` The pointer to check. h](j)}(h``__force const void *ptr``h]j)}(hjxh]h__force const void *ptr}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKVhjxubj2)}(hhh]h)}(hThe pointer to check.h]hThe pointer to check.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhKVhjxubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjxhKVhjxubah}(h]h ]h"]h$]h&]uh1j hjoxubh)}(h**Description**h]j)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKXhjoxubh)}(h8Like IS_ERR(), but also returns true for a null pointer.h]h8Like IS_ERR(), but also returns true for a null pointer.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKWhjoxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ERR_CAST (C function) c.ERR_CASThNtauh1hhjphhhNhNubj)}(hhh](j)}(h)void * ERR_CAST (__force const void *ptr)h]j)}(h'void *ERR_CAST(__force const void *ptr)h](j )}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK`ubj2)}(h h]h }(hj#yhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhj"yhK`ubj)}(hjh]h*}(hj1yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhj"yhK`ubj{)}(hERR_CASTh]j)}(hERR_CASTh]hERR_CAST}(hjByhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>yubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhj"yhK`ubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjZyhhhNhNubj2)}(h h]h }(hjbyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZyubj)}(hjh]hconst}(hjpyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZyubj2)}(h h]h }(hj}yhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZyubj )}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZyubj)}(hptrh]hptr}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVyubah}(h]h ]h"]h$]h&]jjuh1jhjyhhhj"yhK`ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj yhhhj"yhK`ubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jhj"yhK`hj yhhubj)}(hhh]h)}(h?Explicitly cast an error-valued pointer to another pointer typeh]h?Explicitly cast an error-valued pointer to another pointer type}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK`hjyhhubah}(h]h ]h"]h$]h&]uh1jhj yhhhj"yhK`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1jhhhjphNhNubj)}(h**Parameters** ``__force const void *ptr`` The pointer to cast. **Description** Explicitly cast an error-valued pointer to another pointer type in such a way as to make it clear that's what's going on.h](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKdhjyubj )}(hhh]j)}(h1``__force const void *ptr`` The pointer to cast. h](j)}(h``__force const void *ptr``h]j)}(hjzh]h__force const void *ptr}(hj!zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKahjzubj2)}(hhh]h)}(hThe pointer to cast.h]hThe pointer to cast.}(hj8zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4zhKahj5zubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhj4zhKahjzubah}(h]h ]h"]h$]h&]uh1j hjyubh)}(h**Description**h]j)}(hjZzh]h Description}(hj\zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXzubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKchjyubh)}(hyExplicitly cast an error-valued pointer to another pointer type in such a way as to make it clear that's what's going on.h]h}Explicitly cast an error-valued pointer to another pointer type in such a way as to make it clear that’s what’s going on.}(hjpzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKbhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j PTR_ERR_OR_ZERO (C function)c.PTR_ERR_OR_ZEROhNtauh1hhjphhhNhNubj)}(hhh](j)}(h-int PTR_ERR_OR_ZERO (__force const void *ptr)h]j)}(h,int PTR_ERR_OR_ZERO(__force const void *ptr)h](j )}(hinth]hint}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKmubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzhhhjzhKmubj{)}(hPTR_ERR_OR_ZEROh]j)}(hPTR_ERR_OR_ZEROh]hPTR_ERR_OR_ZERO}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzhhhjzhKmubj)}(h(__force const void *ptr)h]j)}(h__force const void *ptrh](h__force}(hjzhhhNhNubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hjh]hconst}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj )}(hvoidh]hvoid}(hj {hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hjh]h*}(hj%{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hptrh]hptr}(hj2{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubah}(h]h ]h"]h$]h&]jjuh1jhjzhhhjzhKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjzhKmubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1jhjzhKmhjzhhubj)}(hhh]h)}(h4Extract the error code from a pointer if it has one.h]h4Extract the error code from a pointer if it has one.}(hj\{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKmhjY{hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjt{jjt{jjjuh1jhhhjphNhNubj)}(hX**Parameters** ``__force const void *ptr`` A potential error pointer. **Description** Convenience function that can be used inside a function that returns an error code to propagate errors received as error pointers. For example, ``return PTR_ERR_OR_ZERO(ptr);`` replaces: .. code-block:: c if (IS_ERR(ptr)) return PTR_ERR(ptr); else return 0; **Return** The error code within **ptr** if it is an error pointer; 0 otherwise.h](h)}(h**Parameters**h]j)}(hj~{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|{ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKqhjx{ubj )}(hhh]j)}(h7``__force const void *ptr`` A potential error pointer. h](j)}(h``__force const void *ptr``h]j)}(hj{h]h__force const void *ptr}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKnhj{ubj2)}(hhh]h)}(hA potential error pointer.h]hA potential error pointer.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hKnhj{ubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hKnhj{ubah}(h]h ]h"]h$]h&]uh1j hjx{ubh)}(h**Description**h]j)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKphjx{ubh)}(hConvenience function that can be used inside a function that returns an error code to propagate errors received as error pointers. For example, ``return PTR_ERR_OR_ZERO(ptr);`` replaces:h](hConvenience function that can be used inside a function that returns an error code to propagate errors received as error pointers. For example, }(hj{hhhNhNubj)}(h ``return PTR_ERR_OR_ZERO(ptr);``h]hreturn PTR_ERR_OR_ZERO(ptr);}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh replaces:}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKohjx{ubjH)}(hDif (IS_ERR(ptr)) return PTR_ERR(ptr); else return 0;h]hDif (IS_ERR(ptr)) return PTR_ERR(ptr); else return 0;}hj|sbah}(h]h ]h"]h$]h&]jjforcelanguagejhighlight_args}uh1jHhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKshjx{ubh)}(h **Return**h]j)}(hj$|h]hReturn}(hj&|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"|ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhKzhjx{ubh)}(hEThe error code within **ptr** if it is an error pointer; 0 otherwise.h](hThe error code within }(hj:|hhhNhNubj)}(h**ptr**h]hptr}(hjB|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:|ubh( if it is an error pointer; 0 otherwise.}(hj:|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:96: ./include/linux/err.hhK{hjx{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjphhhNhNubeh}(h]error-pointersah ]h"]error pointersah$]h&]uh1hhj?hhhhhK^ubh)}(hhh](h)}(hSortingh]hSorting}(hjm|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj|hhhhhKdubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sort_r (C function)c.sort_rhNtauh1hhjj|hhhNhNubj)}(hhh](j)}(hsvoid sort_r (void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h]j)}(hrvoid sort_r(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h](j )}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|hhhj|hMubj{)}(hsort_rh]j)}(hsort_rh]hsort_r}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|hhhj|hMubj)}(hg(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h](j)}(h void *baseh](j )}(hvoidh]hvoid}(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hbaseh]hbase}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h size_t numh](h)}(hhh]j)}(hsize_th]hsize_t}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj}modnameN classnameNj] j` )}jc ]jf )}jY j|sbc.sort_rasbuh1hhj}ubj2)}(h h]h }(hj6}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}ubj)}(hnumh]hnum}(hjD}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj`}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjb}modnameN classnameNj] j` )}jc ]j2}c.sort_rasbuh1hhjY}ubj2)}(h h]h }(hj~}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjY}ubj)}(hsizeh]hsize}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hcmp_r_func_t cmp_funch](h)}(hhh]j)}(h cmp_r_func_th]h cmp_r_func_t}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj}modnameN classnameNj] j` )}jc ]j2}c.sort_rasbuh1hhj}ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}ubj)}(hcmp_funch]hcmp_func}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hswap_r_func_t swap_funch](h)}(hhh]j)}(h swap_r_func_th]h swap_r_func_t}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj}modnameN classnameNj] j` )}jc ]j2}c.sort_rasbuh1hhj}ubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}ubj)}(h swap_funch]h swap_func}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hconst void *privh](j)}(hjh]hconst}(hj5~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1~ubj2)}(h h]h }(hjB~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1~ubj )}(hvoidh]hvoid}(hjP~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1~ubj2)}(h h]h }(hj^~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1~ubj)}(hjh]h*}(hjl~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1~ubj)}(hprivh]hpriv}(hjy~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhj|hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hMubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1jhj|hMhj|hhubj)}(hhh]h)}(hsort an array of elementsh]hsort an array of elements}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhjj|hNhNubj)}(hX`**Parameters** ``void *base`` pointer to data to sort ``size_t num`` number of elements ``size_t size`` size of each element ``cmp_r_func_t cmp_func`` pointer to comparison function ``swap_r_func_t swap_func`` pointer to swap function or NULL ``const void *priv`` third argument passed to comparison function **Description** This function does a heapsort on the given array. You may provide a swap_func function if you need to do something more than a memory copy (e.g. fix up pointers or auxiliary data), but the built-in swap avoids a slow retpoline and so is significantly faster. The comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp_func(a, b) must return the opposite sign of cmp_func(b, a). - Transitivity: if cmp_func(a, b) <= 0 and cmp_func(b, c) <= 0, then cmp_func(a, c) <= 0. Sorting time is O(n log n) both on average and worst-case. While quicksort is slightly faster on average, it suffers from exploitable O(n*n) worst-case behavior and extra memory requirements that make it less suitable for kernel use.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhj~ubj )}(hhh](j)}(h'``void *base`` pointer to data to sort h](j)}(h``void *base``h]j)}(hj~h]h void *base}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhj~ubj2)}(hhh]h)}(hpointer to data to sorth]hpointer to data to sort}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhj~ubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj~ubj)}(h"``size_t num`` number of elements h](j)}(h``size_t num``h]j)}(hjh]h size_t num}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjubj2)}(hhh]h)}(hnumber of elementsh]hnumber of elements}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj~ubj)}(h%``size_t size`` size of each element h](j)}(h``size_t size``h]j)}(hjVh]h size_t size}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjPubj2)}(hhh]h)}(hsize of each elementh]hsize of each element}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhj~ubj)}(h9``cmp_r_func_t cmp_func`` pointer to comparison function h](j)}(h``cmp_r_func_t cmp_func``h]j)}(hjh]hcmp_r_func_t cmp_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjubj2)}(hhh]h)}(hpointer to comparison functionh]hpointer to comparison function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(h=``swap_r_func_t swap_func`` pointer to swap function or NULL h](j)}(h``swap_r_func_t swap_func``h]j)}(hjh]hswap_r_func_t swap_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjubj2)}(hhh]h)}(h pointer to swap function or NULLh]h pointer to swap function or NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(hB``const void *priv`` third argument passed to comparison function h](j)}(h``const void *priv``h]j)}(hjh]hconst void *priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhjubj2)}(hhh]h)}(h,third argument passed to comparison functionh]h,third argument passed to comparison function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubeh}(h]h ]h"]h$]h&]uh1j hj~ubh)}(h**Description**h]j)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhj~ubh)}(hXThis function does a heapsort on the given array. You may provide a swap_func function if you need to do something more than a memory copy (e.g. fix up pointers or auxiliary data), but the built-in swap avoids a slow retpoline and so is significantly faster.h]hXThis function does a heapsort on the given array. You may provide a swap_func function if you need to do something more than a memory copy (e.g. fix up pointers or auxiliary data), but the built-in swap avoids a slow retpoline and so is significantly faster.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMhj~ubh)}(hXThe comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp_func(a, b) must return the opposite sign of cmp_func(b, a). - Transitivity: if cmp_func(a, b) <= 0 and cmp_func(b, c) <= 0, then cmp_func(a, c) <= 0.h]hXThe comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp_func(a, b) must return the opposite sign of cmp_func(b, a). - Transitivity: if cmp_func(a, b) <= 0 and cmp_func(b, c) <= 0, then cmp_func(a, c) <= 0.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM"hj~ubh)}(hSorting time is O(n log n) both on average and worst-case. While quicksort is slightly faster on average, it suffers from exploitable O(n*n) worst-case behavior and extra memory requirements that make it less suitable for kernel use.h]hSorting time is O(n log n) both on average and worst-case. While quicksort is slightly faster on average, it suffers from exploitable O(n*n) worst-case behavior and extra memory requirements that make it less suitable for kernel use.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM)hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sort_r_nonatomic (C function)c.sort_r_nonatomichNtauh1hhjj|hhhNhNubj)}(hhh](j)}(h}void sort_r_nonatomic (void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h]j)}(h|void sort_r_nonatomic(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM9ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM9ubj{)}(hsort_r_nonatomich]j)}(hsort_r_nonatomich]hsort_r_nonatomic}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM9ubj)}(hg(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, const void *priv)h](j)}(h void *baseh](j )}(hvoidh]hvoid}(hj܀hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj؀ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj؀ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؀ubj)}(hbaseh]hbase}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj؀ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjԀubj)}(h size_t numh](h)}(hhh]j)}(hsize_th]hsize_t}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jf )}jY j€sbc.sort_r_nonatomicasbuh1hhjubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnumh]hnum}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjԀubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmmodnameN classnameNj] j` )}jc ]j=c.sort_r_nonatomicasbuh1hhjdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjԀubj)}(hcmp_r_func_t cmp_funch](h)}(hhh]j)}(h cmp_r_func_th]h cmp_r_func_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j=c.sort_r_nonatomicasbuh1hhjubj2)}(h h]h }(hjсhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcmp_funch]hcmp_func}(hj߁hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjԀubj)}(hswap_r_func_t swap_funch](h)}(hhh]j)}(h swap_r_func_th]h swap_r_func_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j=c.sort_r_nonatomicasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h swap_funch]h swap_func}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjԀubj)}(hconst void *privh](j)}(hjh]hconst}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj )}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hprivh]hpriv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjԀubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM9hjhhubj)}(hhh]h)}(h,sort an array of elements, with cond_reschedh]h,sort an array of elements, with cond_resched}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM9hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjƂjjƂjjjuh1jhhhjj|hNhNubj)}(hX**Parameters** ``void *base`` pointer to data to sort ``size_t num`` number of elements ``size_t size`` size of each element ``cmp_r_func_t cmp_func`` pointer to comparison function ``swap_r_func_t swap_func`` pointer to swap function or NULL ``const void *priv`` third argument passed to comparison function **Description** Same as sort_r, but preferred for larger arrays as it does a periodic cond_resched().h](h)}(h**Parameters**h]j)}(hjЂh]h Parameters}(hj҂hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj΂ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM=hjʂubj )}(hhh](j)}(h'``void *base`` pointer to data to sort h](j)}(h``void *base``h]j)}(hjh]h void *base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM:hjubj2)}(hhh]h)}(hpointer to data to sorth]hpointer to data to sort}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubj)}(h"``size_t num`` number of elements h](j)}(h``size_t num``h]j)}(hj(h]h size_t num}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM;hj"ubj2)}(hhh]h)}(hnumber of elementsh]hnumber of elements}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM;hj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hM;hjubj)}(h%``size_t size`` size of each element h](j)}(h``size_t size``h]j)}(hjah]h size_t size}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM<hj[ubj2)}(hhh]h)}(hsize of each elementh]hsize of each element}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM<hjwubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM<hjubj)}(h9``cmp_r_func_t cmp_func`` pointer to comparison function h](j)}(h``cmp_r_func_t cmp_func``h]j)}(hjh]hcmp_r_func_t cmp_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM=hjubj2)}(hhh]h)}(hpointer to comparison functionh]hpointer to comparison function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjubj)}(h=``swap_r_func_t swap_func`` pointer to swap function or NULL h](j)}(h``swap_r_func_t swap_func``h]j)}(hjӃh]hswap_r_func_t swap_func}(hjՃhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjуubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM>hj̓ubj2)}(hhh]h)}(h pointer to swap function or NULLh]h pointer to swap function or NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1j1hj̓ubeh}(h]h ]h"]h$]h&]uh1jhjhM>hjubj)}(hB``const void *priv`` third argument passed to comparison function h](j)}(h``const void *priv``h]j)}(hj h]hconst void *priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM?hjubj2)}(hhh]h)}(h,third argument passed to comparison functionh]h,third argument passed to comparison function}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM?hj"ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj!hM?hjubeh}(h]h ]h"]h$]h&]uh1j hjʂubh)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chMAhjʂubh)}(hUSame as sort_r, but preferred for larger arrays as it does a periodic cond_resched().h]hUSame as sort_r, but preferred for larger arrays as it does a periodic cond_resched().}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:102: ./lib/sort.chM@hjʂubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjj|hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_sort (C function) c.list_sorthNtauh1hhjj|hhhNhNubj)}(hhh](j)}(hHvoid list_sort (void *priv, struct list_head *head, list_cmp_func_t cmp)h]j)}(hGvoid list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKYubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKYubj{)}(h list_sorth]j)}(h list_sorth]h list_sort}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKYubj)}(h9(void *priv, struct list_head *head, list_cmp_func_t cmp)h](j)}(h void *privh](j )}(hvoidh]hvoid}(hjɄhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjńubj2)}(h h]h }(hjׄhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjńubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjńubj)}(hprivh]hpriv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjńubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct list_head *headh](j)}(hstructh]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h list_headh]h list_head}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,modnameN classnameNj] j` )}jc ]jf )}jY jsb c.list_sortasbuh1hhjubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hlist_cmp_func_t cmph](h)}(hhh]j)}(hlist_cmp_func_th]hlist_cmp_func_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jF c.list_sortasbuh1hhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hcmph]hcmp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKYubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKYhjhhubj)}(hhh]h)}(h sort a listh]h sort a list}(hjׅhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKYhjԅhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKYubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjj|hNhNubj)}(hX**Parameters** ``void *priv`` private data, opaque to list_sort(), passed to **cmp** ``struct list_head *head`` the list to sort ``list_cmp_func_t cmp`` the elements comparison function **Description** The comparison function **cmp** must return > 0 if **a** should sort after **b** ("**a** > **b**" if you want an ascending sort), and <= 0 if **a** should sort before **b** *or* their original order should be preserved. It is always called with the element that came first in the input in **a**, and list_sort is a stable sort, so it is not necessary to distinguish the **a** < **b** and **a** == **b** cases. The comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(**a**, **b**) must return the opposite sign of cmp(**b**, **a**). - Transitivity: if cmp(**a**, **b**) <= 0 and cmp(**b**, **c**) <= 0, then cmp(**a**, **c**) <= 0. This is compatible with two styles of **cmp** function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c). A good way to write a multi-word comparison is:: if (a->high != b->high) return a->high > b->high; if (a->middle != b->middle) return a->middle > b->middle; return a->low > b->low; This mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements. Thus, it will avoid cache thrashing as long as 3*2^k elements can fit into the cache. Not quite as good as a fully-eager bottom-up mergesort, but it does use 0.2*n fewer comparisons, so is faster in the common case that everything fits into L1. The merging is controlled by "count", the number of elements in the pending lists. This is beautifully simple code, but rather subtle. Each time we increment "count", we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1). This merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it's safe to merge away two lists of size 2^k. After this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending. The number of pending lists of size 2^k is determined by the state of bit k of "count" plus two extra pieces of information: - The state of bit k-1 (when k == 0, consider bit -1 always set), and - Whether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)). There are six states we distinguish. "x" represents some arbitrary bits, and "y" represents some arbitrary non-zero bits: 0: 00x: 0 pending of size 2^k; x pending of sizes < 2^k 1: 01x: 0 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 2: x10x: 0 pending of size 2^k; 2^k + x pending of sizes < 2^k 3: x11x: 1 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 4: y00x: 1 pending of size 2^k; 2^k + x pending of sizes < 2^k 5: y01x: 2 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k (merge and loop back to state 2) We gain lists of size 2^k in the 2->3 and 4->5 transitions (because bit k-1 is set while the more significant bits are non-zero) and merge them away in the 5->2 transition. Note in particular that just before the 5->2 transition, all lower-order bits are 11 (state 3), so there is one list of each smaller size. When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK]hjubj )}(hhh](j)}(hF``void *priv`` private data, opaque to list_sort(), passed to **cmp** h](j)}(h``void *priv``h]j)}(hjh]h void *priv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKZhjubj2)}(hhh]h)}(h6private data, opaque to list_sort(), passed to **cmp**h](h/private data, opaque to list_sort(), passed to }(hj1hhhNhNubj)}(h**cmp**h]hcmp}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1hhj-hKZhj.ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj-hKZhjubj)}(h,``struct list_head *head`` the list to sort h](j)}(h``struct list_head *head``h]j)}(hj_h]hstruct list_head *head}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK[hjYubj2)}(hhh]h)}(hthe list to sorth]hthe list to sort}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthK[hjuubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjthK[hjubj)}(h9``list_cmp_func_t cmp`` the elements comparison function h](j)}(h``list_cmp_func_t cmp``h]j)}(hjh]hlist_cmp_func_t cmp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK\hjubj2)}(hhh]h)}(h the elements comparison functionh]h the elements comparison function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjӆh]h Description}(hjՆhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjцubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK^hjubh)}(hXThe comparison function **cmp** must return > 0 if **a** should sort after **b** ("**a** > **b**" if you want an ascending sort), and <= 0 if **a** should sort before **b** *or* their original order should be preserved. It is always called with the element that came first in the input in **a**, and list_sort is a stable sort, so it is not necessary to distinguish the **a** < **b** and **a** == **b** cases.h](hThe comparison function }(hjhhhNhNubj)}(h**cmp**h]hcmp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must return > 0 if }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should sort after }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (”}(hjhhhNhNubj)}(h**a**h]ha}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh > }(hjhhhNhNubj)}(h**b**h]hb}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0” if you want an ascending sort), and <= 0 if }(hjhhhNhNubj)}(h**a**h]ha}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh should sort before }(hjhhhNhNubj)}(h**b**h]hb}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh }(hjhhhNhNubhemphasis)}(h*or*h]hor}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1johjubhq their original order should be preserved. It is always called with the element that came first in the input in }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhL, and list_sort is a stable sort, so it is not necessary to distinguish the }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh < }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh == }(hjhhhNhNubj)}(h**b**h]hb}(hjˇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh cases.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK]hjubh)}(hX&The comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(**a**, **b**) must return the opposite sign of cmp(**b**, **a**). - Transitivity: if cmp(**a**, **b**) <= 0 and cmp(**b**, **c**) <= 0, then cmp(**a**, **c**) <= 0.h](hThe comparison function must adhere to specific mathematical properties to ensure correct and stable sorting: - Antisymmetry: cmp(}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh') must return the opposite sign of cmp(}(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**a**h]ha}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh). - Transitivity: if cmp(}(hjhhhNhNubj)}(h**a**h]ha}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**b**h]hb}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) <= 0 and cmp(}(hjhhhNhNubj)}(h**b**h]hb}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**c**h]hc}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) <= 0, then cmp(}(hjhhhNhNubj)}(h**a**h]ha}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }hjsbj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) <= 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKdhjubh)}(hXThis is compatible with two styles of **cmp** function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c).h](h&This is compatible with two styles of }(hjhhhNhNubj)}(h**cmp**h]hcmp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh function: - The traditional style which returns <0 / =0 / >0, or - Returning a boolean 0/1. The latter offers a chance to save a few cycles in the comparison (which is used by e.g. plug_ctx_cmp() in block/blk-mq.c).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKkhjubh)}(h0A good way to write a multi-word comparison is::h]h/A good way to write a multi-word comparison is:}(hjȈhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKqhjubjH)}(hif (a->high != b->high) return a->high > b->high; if (a->middle != b->middle) return a->middle > b->middle; return a->low > b->low;h]hif (a->high != b->high) return a->high > b->high; if (a->middle != b->middle) return a->middle > b->middle; return a->low > b->low;}hj׈sbah}(h]h ]h"]h$]h&]jjuh1jHhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKshjubh)}(hThis mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements.h]hThis mergesort is as eager as possible while always performing at least 2:1 balanced merges. Given two pending sublists of size 2^k, they are merged to a size-2^(k+1) list as soon as we have 2^k following elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKzhjubh)}(hThus, it will avoid cache thrashing as long as 3*2^k elements can fit into the cache. Not quite as good as a fully-eager bottom-up mergesort, but it does use 0.2*n fewer comparisons, so is faster in the common case that everything fits into L1.h]hThus, it will avoid cache thrashing as long as 3*2^k elements can fit into the cache. Not quite as good as a fully-eager bottom-up mergesort, but it does use 0.2*n fewer comparisons, so is faster in the common case that everything fits into L1.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chK~hjubh)}(hThe merging is controlled by "count", the number of elements in the pending lists. This is beautifully simple code, but rather subtle.h]hThe merging is controlled by “count”, the number of elements in the pending lists. This is beautifully simple code, but rather subtle.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hEach time we increment "count", we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1).h]hEach time we increment “count”, we set one bit (bit k) and clear bits k-1 .. 0. Each time this happens (except the very first time for each bit, when count increments to 2^k), we merge two lists of size 2^k into one list of size 2^(k+1).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hThis merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it's safe to merge away two lists of size 2^k.h]hThis merge happens exactly when the count reaches an odd multiple of 2^k, which is when we have 2^k elements pending in smaller lists, so it’s safe to merge away two lists of size 2^k.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hAfter this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending.h]hAfter this happens twice, we have created two lists of size 2^(k+1), which will be merged into a list of size 2^(k+2) before we create a third list of size 2^(k+1), so there are never more than two pending.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(h|The number of pending lists of size 2^k is determined by the state of bit k of "count" plus two extra pieces of information:h]hThe number of pending lists of size 2^k is determined by the state of bit k of “count” plus two extra pieces of information:}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubj)}(hhh](j)}(hCThe state of bit k-1 (when k == 0, consider bit -1 always set), andh]h)}(hjTh]hCThe state of bit k-1 (when k == 0, consider bit -1 always set), and}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjRubah}(h]h ]h"]h$]h&]uh1jhjOubj)}(hOWhether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)). h]h)}(hNWhether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)).h]hNWhether the higher-order bits are zero or non-zero (i.e. is count >= 2^(k+1)).}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjjubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjchKhjubh)}(hX-There are six states we distinguish. "x" represents some arbitrary bits, and "y" represents some arbitrary non-zero bits: 0: 00x: 0 pending of size 2^k; x pending of sizes < 2^k 1: 01x: 0 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 2: x10x: 0 pending of size 2^k; 2^k + x pending of sizes < 2^k 3: x11x: 1 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 4: y00x: 1 pending of size 2^k; 2^k + x pending of sizes < 2^k 5: y01x: 2 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k (merge and loop back to state 2)h]hX5There are six states we distinguish. “x” represents some arbitrary bits, and “y” represents some arbitrary non-zero bits: 0: 00x: 0 pending of size 2^k; x pending of sizes < 2^k 1: 01x: 0 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 2: x10x: 0 pending of size 2^k; 2^k + x pending of sizes < 2^k 3: x11x: 1 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k 4: y00x: 1 pending of size 2^k; 2^k + x pending of sizes < 2^k 5: y01x: 2 pending of size 2^k; 2^(k-1) + x pending of sizes < 2^k (merge and loop back to state 2)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hX8We gain lists of size 2^k in the 2->3 and 4->5 transitions (because bit k-1 is set while the more significant bits are non-zero) and merge them away in the 5->2 transition. Note in particular that just before the 5->2 transition, all lower-order bits are 11 (state 3), so there is one list of each smaller size.h]hX8We gain lists of size 2^k in the 2->3 and 4->5 transitions (because bit k-1 is set while the more significant bits are non-zero) and merge them away in the 5->2 transition. Note in particular that just before the 5->2 transition, all lower-order bits are 11 (state 3), so there is one list of each smaller size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubh)}(hX>When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).h]hX>When we reach the end of the input, we merge all the pending lists, from smallest to largest. If you work through cases 2 to 5 above, you can see that the number of elements we merge with a list of size 2^k varies from 2^(k-1) (cases 3 and 5 when x == 0) to 2^(k+1) - 1 (second merge of case 5 when x == 2^(k-1) - 1).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:105: ./lib/list_sort.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjj|hhhNhNubeh}(h]sortingah ]h"]sortingah$]h&]uh1hhj?hhhhhKdubh)}(hhh](h)}(hText Searchingh]hText Searching}(hjȉhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjʼnhhhhhKmubh)}(h INTRODUCTIONh]h INTRODUCTION}(hj։hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK hjʼnhhubj)}(hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user. h]h)}(hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user.h]hThe textsearch infrastructure provides text searching facilities for both linear and non-linear data. Individual search algorithms are implemented in modules and chosen by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjʼnhhubh)}(h ARCHITECTUREh]h ARCHITECTURE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjʼnhhubjH)}(hX User +----------------+ | finish()|<--------------(6)-----------------+ |get_next_block()|<--------------(5)---------------+ | | | Algorithm | | | | +------------------------------+ | | | init() find() destroy() | | | +------------------------------+ | | Core API ^ ^ ^ | | +---------------+ (2) (4) (8) | (1)|----->| prepare() |---+ | | | (3)|----->| find()/next() |-----------+ | | (7)|----->| destroy() |----------------------+ +----------------+ +---------------+ (1) User configures a search by calling textsearch_prepare() specifying the search parameters such as the pattern and algorithm name. (2) Core requests the algorithm to allocate and initialize a search configuration according to the specified parameters. (3) User starts the search(es) by calling textsearch_find() or textsearch_next() to fetch subsequent occurrences. A state variable is provided to the algorithm to store persistent variables. (4) Core eventually resets the search offset and forwards the find() request to the algorithm. (5) Algorithm calls get_next_block() provided by the user continuously to fetch the data to be searched in block by block. (6) Algorithm invokes finish() after the last call to get_next_block to clean up any leftovers from get_next_block. (Optional) (7) User destroys the configuration by calling textsearch_destroy(). (8) Core notifies the algorithm to destroy algorithm specific allocations. (Optional)h]hX User +----------------+ | finish()|<--------------(6)-----------------+ |get_next_block()|<--------------(5)---------------+ | | | Algorithm | | | | +------------------------------+ | | | init() find() destroy() | | | +------------------------------+ | | Core API ^ ^ ^ | | +---------------+ (2) (4) (8) | (1)|----->| prepare() |---+ | | | (3)|----->| find()/next() |-----------+ | | (7)|----->| destroy() |----------------------+ +----------------+ +---------------+ (1) User configures a search by calling textsearch_prepare() specifying the search parameters such as the pattern and algorithm name. (2) Core requests the algorithm to allocate and initialize a search configuration according to the specified parameters. (3) User starts the search(es) by calling textsearch_find() or textsearch_next() to fetch subsequent occurrences. A state variable is provided to the algorithm to store persistent variables. (4) Core eventually resets the search offset and forwards the find() request to the algorithm. (5) Algorithm calls get_next_block() provided by the user continuously to fetch the data to be searched in block by block. (6) Algorithm invokes finish() after the last call to get_next_block to clean up any leftovers from get_next_block. (Optional) (7) User destroys the configuration by calling textsearch_destroy(). (8) Core notifies the algorithm to destroy algorithm specific allocations. (Optional)}hj sbah}(h]h ]h"]h$]h&]jjj|j|nonej|}uh1jHhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKhjʼnhhubh)}(hUSAGEh]hUSAGE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK6hjʼnhhubj)}(hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance. The actual search is performed by either calling textsearch_find_continuous() for linear data or by providing an own get_next_block() implementation and calling textsearch_find(). Both functions return the position of the first occurrence of the pattern or UINT_MAX if no match was found. Subsequent occurrences can be found by calling textsearch_next() regardless of the linearity of the data. Once you're done using a configuration it must be given back via textsearch_destroy. h](h)}(hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance.h]hXBefore a search can be performed, a configuration must be created by calling textsearch_prepare() specifying the searching algorithm, the pattern to look for and flags. As a flag, you can set TS_IGNORECASE to perform case insensitive matching. But it might slow down performance of algorithm, so you should use it at own your risk. The returned configuration may then be used for an arbitrary amount of times and even in parallel as long as a separate struct ts_state variable is provided to every instance.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chK8hj-ubh)}(hXThe actual search is performed by either calling textsearch_find_continuous() for linear data or by providing an own get_next_block() implementation and calling textsearch_find(). Both functions return the position of the first occurrence of the pattern or UINT_MAX if no match was found. Subsequent occurrences can be found by calling textsearch_next() regardless of the linearity of the data.h]hXThe actual search is performed by either calling textsearch_find_continuous() for linear data or by providing an own get_next_block() implementation and calling textsearch_find(). Both functions return the position of the first occurrence of the pattern or UINT_MAX if no match was found. Subsequent occurrences can be found by calling textsearch_next() regardless of the linearity of the data.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKAhj-ubh)}(hTOnce you're done using a configuration it must be given back via textsearch_destroy.h]hVOnce you’re done using a configuration it must be given back via textsearch_destroy.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKIhj-ubeh}(h]h ]h"]h$]h&]uh1jhj?hK8hjʼnhhubh)}(h EXAMPLE::h]hEXAMPLE:}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKLhjʼnhhubjH)}(hXint pos; struct ts_config *conf; struct ts_state state; const char *pattern = "chicken"; const char *example = "We dance the funky chicken"; conf = textsearch_prepare("kmp", pattern, strlen(pattern), GFP_KERNEL, TS_AUTOLOAD); if (IS_ERR(conf)) { err = PTR_ERR(conf); goto errout; } pos = textsearch_find_continuous(conf, &state, example, strlen(example)); if (pos != UINT_MAX) panic("Oh my god, dancing chickens at %d\n", pos); textsearch_destroy(conf);h]hXint pos; struct ts_config *conf; struct ts_state state; const char *pattern = "chicken"; const char *example = "We dance the funky chicken"; conf = textsearch_prepare("kmp", pattern, strlen(pattern), GFP_KERNEL, TS_AUTOLOAD); if (IS_ERR(conf)) { err = PTR_ERR(conf); goto errout; } pos = textsearch_find_continuous(conf, &state, example, strlen(example)); if (pos != UINT_MAX) panic("Oh my god, dancing chickens at %d\n", pos); textsearch_destroy(conf);}hjssbah}(h]h ]h"]h$]h&]jjuh1jHhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:111: ./lib/textsearch.chKNhjʼnhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  textsearch_register (C function)c.textsearch_registerhNtauh1hhjʼnhhhNhNubj)}(hhh](j)}(h,int textsearch_register (struct ts_ops *ops)h]j)}(h+int textsearch_register(struct ts_ops *ops)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(htextsearch_registerh]j)}(htextsearch_registerh]htextsearch_register}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hj h]hstruct}(hj؊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԊubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjԊubh)}(hhh]j)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.textsearch_registerasbuh1hhjԊubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjԊubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԊubj)}(hopsh]hops}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԊubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjЊubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hregister a textsearch moduleh]hregister a textsearch module}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjXhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhjʼnhNhNubj)}(hX**Parameters** ``struct ts_ops *ops`` operations lookup table **Description** This function must be called by textsearch modules to announce their presence. The specified &**ops** must have ``name`` set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented. Returns 0 or -EEXISTS if another module has already registered with same name.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjwubj )}(hhh]j)}(h/``struct ts_ops *ops`` operations lookup table h](j)}(h``struct ts_ops *ops``h]j)}(hjh]hstruct ts_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj2)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjwubh)}(h**Description**h]j)}(hj׋h]h Description}(hjًhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՋubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjwubh)}(hThis function must be called by textsearch modules to announce their presence. The specified &**ops** must have ``name`` set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented.h](hpThis function must be called by textsearch modules to announce their presence. The specified &**ops** must have }(hjhhhNhNubj)}(h``name``h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhw set to a unique identifier and the callbacks find(), init(), get_pattern(), and get_pattern_len() must be implemented.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjwubh)}(hNReturns 0 or -EEXISTS if another module has already registered with same name.h]hNReturns 0 or -EEXISTS if another module has already registered with same name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjʼnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "textsearch_unregister (C function)c.textsearch_unregisterhNtauh1hhjʼnhhhNhNubj)}(hhh](j)}(h.int textsearch_unregister (struct ts_ops *ops)h]j)}(h-int textsearch_unregister(struct ts_ops *ops)h](j )}(hinth]hint}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9hhhjKhKubj{)}(htextsearch_unregisterh]j)}(htextsearch_unregisterh]htextsearch_unregister}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9hhhjKhKubj)}(h(struct ts_ops *ops)h]j)}(hstruct ts_ops *opsh](j)}(hj h]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubh)}(hhh]j)}(hts_opsh]hts_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j`sbc.textsearch_unregisterasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]h*}(hjƌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hopsh]hops}(hjӌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhj9hhhjKhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhjKhKubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jhjKhKhj2hhubj)}(hhh]h)}(hunregister a textsearch moduleh]hunregister a textsearch module}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjʼnhNhNubj)}(hXu**Parameters** ``struct ts_ops *ops`` operations lookup table **Description** This function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The :c:type:`ops` parameter must be the same as the one during the registration. Returns 0 on success or -ENOENT if no matching textsearch registration was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj )}(hhh]j)}(h/``struct ts_ops *ops`` operations lookup table h](j)}(h``struct ts_ops *ops``h]j)}(hj>h]hstruct ts_ops *ops}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj8ubj2)}(hhh]h)}(hoperations lookup tableh]hoperations lookup table}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShKhjTubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShKhj5ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(hThis function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The :c:type:`ops` parameter must be the same as the one during the registration.h](hThis function must be called by textsearch modules to announce their disappearance for examples when the module gets unloaded. The }(hjhhhNhNubh)}(h :c:type:`ops`h]j)}(hjh]hops}(hjhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] j` )}jc ]sb reftargetopsuh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh? parameter must be the same as the one during the registration.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubh)}(hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.h]hQReturns 0 on success or -ENOENT if no matching textsearch registration was found.}(hjƍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjʼnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'textsearch_find_continuous (C function)c.textsearch_find_continuoushNtauh1hhjʼnhhhNhNubj)}(hhh](j)}(h|unsigned int textsearch_find_continuous (struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h]j)}(h{unsigned int textsearch_find_continuous(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhKubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(htextsearch_find_continuoush]j)}(htextsearch_find_continuoush]htextsearch_find_continuous}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(hT(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)h](j)}(hstruct ts_config *confh](j)}(hj h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubh)}(hhh]j)}(h ts_configh]h ts_config}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnmodnameN classnameNj] j` )}jc ]jf )}jY j4sbc.textsearch_find_continuousasbuh1hhjJubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct ts_state *stateh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj͎hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hts_stateh]hts_state}(hjގhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjێubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.textsearch_find_continuousasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hconst void *datah](j)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj )}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hdatah]hdata}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjŏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h*search a pattern in continuous/linear datah]h*search a pattern in continuous/linear data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjʼnhNhNubj)}(hX**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state ``const void *data`` data to search in ``unsigned int len`` length of data **Description** A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches. Returns the position of first occurrence of the pattern or ``UINT_MAX`` if no occurrence was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj ubj )}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hj0h]hstruct ts_config *conf}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj*ubj2)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKhjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj'ubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjih]hstruct ts_state *state}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjcubj2)}(hhh]h)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKhjubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKhj'ubj)}(h'``const void *data`` data to search in h](j)}(h``const void *data``h]j)}(hjh]hconst void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj2)}(hhh]h)}(hdata to search inh]hdata to search in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj'ubj)}(h$``unsigned int len`` length of data h](j)}(h``unsigned int len``h]j)}(hjېh]hunsigned int len}(hjݐhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjِubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjՐubj2)}(hhh]h)}(hlength of datah]hlength of data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjՐubeh}(h]h ]h"]h$]h&]uh1jhjhKhj'ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj ubh)}(h|A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches.h]h|A simplified version of textsearch_find() for continuous/linear data. Call textsearch_next() to retrieve subsequent matches.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj ubh)}(hcReturns the position of first occurrence of the pattern or ``UINT_MAX`` if no occurrence was found.h](h;Returns the position of first occurrence of the pattern or }(hj;hhhNhNubj)}(h ``UINT_MAX``h]hUINT_MAX}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh if no occurrence was found.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjʼnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j textsearch_prepare (C function)c.textsearch_preparehNtauh1hhjʼnhhhNhNubj)}(hhh](j)}(hzstruct ts_config * textsearch_prepare (const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h]j)}(hxstruct ts_config *textsearch_prepare(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h](j)}(hj h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhjhKubh)}(hhh]j)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY textsearch_preparesbc.textsearch_prepareasbuh1hhjxhhhjhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhjhKubj)}(hjh]h*}(hjʑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhKubj{)}(htextsearch_prepareh]j)}(hjh]htextsearch_prepare}(hjۑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjבubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhjhKubj)}(hT(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)h](j)}(hconst char *algoh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(halgoh]halgo}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *patternh](j)}(hjh]hconst}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj )}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hpatternh]hpattern}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hj̒hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjڒhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.textsearch_prepareasbuh1hhjubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfp_maskh]hgfp_mask}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hflagsh]hflags}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhKubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjqhhubj)}(hhh]h)}(hPrepare a searchh]hPrepare a search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjʼnhNhNubj)}(hXZ**Parameters** ``const char *algo`` name of search algorithm ``const void *pattern`` pattern data ``unsigned int len`` length of pattern ``gfp_t gfp_mask`` allocation mask ``int flags`` search flags **Description** Looks up the search algorithm module and creates a new textsearch configuration for the specified pattern. **Note** The format of the pattern may not be compatible between the various search algorithms. Returns a new textsearch configuration according to the specified parameters or a ERR_PTR(). If a zero length pattern is passed, this function returns EINVAL.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj )}(hhh](j)}(h.``const char *algo`` name of search algorithm h](j)}(h``const char *algo``h]j)}(hjГh]hconst char *algo}(hjғhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΓubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjʓubj2)}(hhh]h)}(hname of search algorithmh]hname of search algorithm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjʓubeh}(h]h ]h"]h$]h&]uh1jhjhKhjǓubj)}(h%``const void *pattern`` pattern data h](j)}(h``const void *pattern``h]j)}(hj h]hconst void *pattern}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj2)}(hhh]h)}(h pattern datah]h pattern data}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjǓubj)}(h'``unsigned int len`` length of pattern h](j)}(h``unsigned int len``h]j)}(hjBh]hunsigned int len}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhj<ubj2)}(hhh]h)}(hlength of patternh]hlength of pattern}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKhjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKhjǓubj)}(h#``gfp_t gfp_mask`` allocation mask h](j)}(h``gfp_t gfp_mask``h]j)}(hj{h]hgfp_t gfp_mask}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjuubj2)}(hhh]h)}(hallocation maskh]hallocation mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjhKhjǓubj)}(h``int flags`` search flags h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h& ]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj2)}(hhh]h)}(h search flagsh]h search flags}(hj͔hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɔhKhjʔubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjɔhKhjǓubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(hjLooks up the search algorithm module and creates a new textsearch configuration for the specified pattern.h]hjLooks up the search algorithm module and creates a new textsearch configuration for the specified pattern.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chKhjubj )}(hhh]j)}(hWThe format of the pattern may not be compatible between the various search algorithms. h](j)}(h7The format of the pattern may not be compatible betweenh]h7The format of the pattern may not be compatible between}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chMhj/ubj2)}(hhh]h)}(hthe various search algorithms.h]hthe various search algorithms.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj,ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(hReturns a new textsearch configuration according to the specified parameters or a ERR_PTR(). If a zero length pattern is passed, this function returns EINVAL.h]hReturns a new textsearch configuration according to the specified parameters or a ERR_PTR(). If a zero length pattern is passed, this function returns EINVAL.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjʼnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j textsearch_destroy (C function)c.textsearch_destroyhNtauh1hhjʼnhhhNhNubj)}(hhh](j)}(h0void textsearch_destroy (struct ts_config *conf)h]j)}(h/void textsearch_destroy(struct ts_config *conf)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM3ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM3ubj{)}(htextsearch_destroyh]j)}(htextsearch_destroyh]htextsearch_destroy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM3ubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hj h]hstruct}(hjѕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͕ubj2)}(h h]h }(hjޕhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj͕ubh)}(hhh]j)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.textsearch_destroyasbuh1hhj͕ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj͕ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͕ubj)}(hconfh]hconf}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͕ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjɕubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM3hjhhubj)}(hhh]h)}(hdestroy a search configurationh]hdestroy a search configuration}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM3hjQhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1jhhhjʼnhNhNubj)}(h**Parameters** ``struct ts_config *conf`` search configuration **Description** Releases all references of the configuration and frees up the memory.h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM7hjpubj )}(hhh]j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM4hjubj2)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM4hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjubah}(h]h ]h"]h$]h&]uh1j hjpubh)}(h**Description**h]j)}(hjЖh]h Description}(hjҖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΖubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM6hjpubh)}(hEReleases all references of the configuration and frees up the memory.h]hEReleases all references of the configuration and frees up the memory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:114: ./lib/textsearch.chM5hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjʼnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j textsearch_next (C function)c.textsearch_nexthNtauh1hhjʼnhhhNhNubj)}(hhh](j)}(hMunsigned int textsearch_next (struct ts_config *conf, struct ts_state *state)h]j)}(hLunsigned int textsearch_next(struct ts_config *conf, struct ts_state *state)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK_ubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj#hK_ubj )}(hinth]hint}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhj#hK_ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj#hK_ubj{)}(htextsearch_nexth]j)}(htextsearch_nexth]htextsearch_next}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj#hK_ubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(hstruct ts_config *confh](j)}(hj h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubh)}(hhh]j)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jTsbc.textsearch_nextasbuh1hhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hconfh]hconf}(hjǗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hstruct ts_state *stateh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܗubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjܗubh)}(hhh]j)}(hts_stateh]hts_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.textsearch_nextasbuh1hhjܗubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjܗubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܗubj)}(hstateh]hstate}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܗubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj#hK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj#hK_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj#hK_hj hhubj)}(hhh]h)}(h continue searching for a patternh]h continue searching for a pattern}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK_hj^hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1jhhhjʼnhNhNubj)}(hXy**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state **Description** Continues a search looking for more occurrences of the pattern. textsearch_find() must be called to find the first occurrence in order to reset the state. Returns the position of the next occurrence of the pattern or UINT_MAX if not match was found.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKchj}ubj )}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhK`hjubj2)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK`hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK`hjubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hjۘh]hstruct ts_state *state}(hjݘhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٘ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKahj՘ubj2)}(hhh]h)}(h search stateh]h search state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKahjubah}(h]h ]h"]h$]h&]uh1j1hj՘ubeh}(h]h ]h"]h$]h&]uh1jhjhKahjubeh}(h]h ]h"]h$]h&]uh1j hj}ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKchj}ubh)}(hContinues a search looking for more occurrences of the pattern. textsearch_find() must be called to find the first occurrence in order to reset the state.h]hContinues a search looking for more occurrences of the pattern. textsearch_find() must be called to find the first occurrence in order to reset the state.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKbhj}ubh)}(h^Returns the position of the next occurrence of the pattern or UINT_MAX if not match was found.h]h^Returns the position of the next occurrence of the pattern or UINT_MAX if not match was found.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKfhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjʼnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j textsearch_find (C function)c.textsearch_findhNtauh1hhjʼnhhhNhNubj)}(hhh](j)}(hMunsigned int textsearch_find (struct ts_config *conf, struct ts_state *state)h]j)}(hLunsigned int textsearch_find(struct ts_config *conf, struct ts_state *state)h](j )}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKvubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfhhhjxhKvubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfhhhjxhKvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfhhhjxhKvubj{)}(htextsearch_findh]j)}(htextsearch_findh]htextsearch_find}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjfhhhjxhKvubj)}(h0(struct ts_config *conf, struct ts_state *state)h](j)}(hstruct ts_config *confh](j)}(hj h]hstruct}(hjÙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjЙhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޙubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.textsearch_findasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hconfh]hconf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct ts_state *stateh](j)}(hj h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubh)}(hhh]j)}(hts_stateh]hts_state}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjUmodnameN classnameNj] j` )}jc ]jc.textsearch_findasbuh1hhj1ubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hstateh]hstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjxhKvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhKvubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1jhjxhKvhj_hhubj)}(hhh]h)}(hstart searching for a patternh]hstart searching for a pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKvhjhhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhKvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjΚjjΚjjjuh1jhhhjʼnhNhNubj)}(h**Parameters** ``struct ts_config *conf`` search configuration ``struct ts_state *state`` search state **Description** Returns the position of first occurrence of the pattern or UINT_MAX if no match was found.h](h)}(h**Parameters**h]j)}(hjؚh]h Parameters}(hjښhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֚ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKzhjҚubj )}(hhh](j)}(h0``struct ts_config *conf`` search configuration h](j)}(h``struct ts_config *conf``h]j)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKwhjubj2)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKwhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKwhjubj)}(h(``struct ts_state *state`` search state h](j)}(h``struct ts_state *state``h]j)}(hj0h]hstruct ts_state *state}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKxhj*ubj2)}(hhh]h)}(h search stateh]h search state}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKxhjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKxhjubeh}(h]h ]h"]h$]h&]uh1j hjҚubh)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKzhjҚubh)}(hZReturns the position of first occurrence of the pattern or UINT_MAX if no match was found.h]hZReturns the position of first occurrence of the pattern or UINT_MAX if no match was found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKyhjҚubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjʼnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #textsearch_get_pattern (C function)c.textsearch_get_patternhNtauh1hhjʼnhhhNhNubj)}(hhh](j)}(h6void * textsearch_get_pattern (struct ts_config *conf)h]j)}(h4void *textsearch_get_pattern(struct ts_config *conf)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj)}(hjh]h*}(hj͛hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj{)}(htextsearch_get_patternh]j)}(htextsearch_get_patternh]htextsearch_get_pattern}(hjޛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڛubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.textsearch_get_patternasbuh1hhjubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hconfh]hconf}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hreturn head of the patternh]hreturn head of the pattern}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjzhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjʼnhNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjubj )}(hhh]j)}(h/``struct ts_config *conf`` search configurationh](j)}(h``struct ts_config *conf``h]j)}(hjh]hstruct ts_config *conf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjubj2)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjלhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjԜubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjӜhKhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjʼnhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'textsearch_get_pattern_len (C function)c.textsearch_get_pattern_lenhNtauh1hhjʼnhhhNhNubj)}(hhh](j)}(h@unsigned int textsearch_get_pattern_len (struct ts_config *conf)h]j)}(h?unsigned int textsearch_get_pattern_len(struct ts_config *conf)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj&hKubj )}(hinth]hint}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhj&hKubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj&hKubj{)}(htextsearch_get_pattern_lenh]j)}(htextsearch_get_pattern_lenh]htextsearch_get_pattern_len}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj&hKubj)}(h(struct ts_config *conf)h]j)}(hstruct ts_config *confh](j)}(hj h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubh)}(hhh]j)}(h ts_configh]h ts_config}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jWsbc.textsearch_get_pattern_lenasbuh1hhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hconfh]hconf}(hjʝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj&hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj&hKhj hhubj)}(hhh]h)}(hreturn length of the patternh]hreturn length of the pattern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjʼnhNhNubj)}(hA**Parameters** ``struct ts_config *conf`` search configurationh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjubj )}(hhh]j)}(h/``struct ts_config *conf`` search configurationh](j)}(h``struct ts_config *conf``h]j)}(hj5h]hstruct ts_config *conf}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhj/ubj2)}(hhh]h)}(hsearch configurationh]hsearch configuration}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:117: ./include/linux/textsearch.hhKhjKubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhKhj,ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjʼnhhhNhNubeh}(h]text-searchingah ]h"]text searchingah$]h&]uh1hhj?hhhhhKmubeh}(h]basic-kernel-library-functionsah ]h"]basic kernel library functionsah$]h&]uh1hhhhhhhhK/ubh)}(hhh](h)}(hCRC and Math Functions in Linuxh]hCRC and Math Functions in Linux}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKzubh)}(hhh](h)}(hArithmetic Overflow Checkingh]hArithmetic Overflow Checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK}ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j check_add_overflow (C macro)c.check_add_overflowhNtauh1hhjhhhNhNubj)}(hhh](j)}(hcheck_add_overflowh]j)}(hcheck_add_overflowh]j{)}(hcheck_add_overflowh]j)}(hjh]hcheck_add_overflow}(hjŞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK3ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj؞hK3ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj؞hK3hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj؞hK3ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h ``check_add_overflow (a, b, d)``h]j)}(hjh]hcheck_add_overflow (a, b, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK5hjhhubj)}(h*Calculate addition with overflow checking h]h)}(h)Calculate addition with overflow checkingh]h)Calculate addition with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK3hj ubah}(h]h ]h"]h$]h&]uh1jhjhK3hjhhubj)}(h**Parameters** ``a`` first addend ``b`` second addend ``d`` pointer to store sum **Description** Returns true on wrap-around, false otherwise. ***d** holds the results of the attempted addition, regardless of whether wrap-around occurred.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK7hj&ubj )}(hhh](j)}(h``a`` first addend h](j)}(h``a``h]j)}(hjKh]ha}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK4hjEubj2)}(hhh]h)}(h first addendh]h first addend}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hK4hjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hK4hjBubj)}(h``b`` second addend h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK5hj~ubj2)}(hhh]h)}(h second addendh]h second addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjBubj)}(h``d`` pointer to store sum h](j)}(h``d``h]j)}(hjh]hd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK6hjubj2)}(hhh]h)}(hpointer to store sumh]hpointer to store sum}(hj֟hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjҟhK6hjӟubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjҟhK6hjBubeh}(h]h ]h"]h$]h&]uh1j hj&ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK8hj&ubh)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK7hj&ubh)}(h_***d** holds the results of the attempted addition, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhY holds the results of the attempted addition, regardless of whether wrap-around occurred.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhK9hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j wrapping_add (C macro)c.wrapping_addhNtauh1hhjhhhNhNubj)}(hhh](j)}(h wrapping_addh]j)}(h wrapping_addh]j{)}(h wrapping_addh]j)}(hjTh]h wrapping_add}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKAubah}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjqhKAubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjqhKAhjOhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjOhhhjqhKAubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``wrapping_add (type, a, b)``h]j)}(hjh]hwrapping_add (type, a, b)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKChjhhubj)}(h*Intentionally perform a wrapping addition h]h)}(h)Intentionally perform a wrapping additionh]h)Intentionally perform a wrapping addition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKAhjubah}(h]h ]h"]h$]h&]uh1jhjhKAhjhhubj)}(h**Parameters** ``type`` type for result of calculation ``a`` first addend ``b`` second addend **Description** Return the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hjŠh]h Parameters}(hjǠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjàubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKEhjubj )}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKBhjޠubj2)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKBhjubah}(h]h ]h"]h$]h&]uh1j1hjޠubeh}(h]h ]h"]h$]h&]uh1jhjhKBhj۠ubj)}(h``a`` first addend h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKChjubj2)}(hhh]h)}(h first addendh]h first addend}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKChj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hKChj۠ubj)}(h``b`` second addend h](j)}(h``b``h]j)}(hjVh]hb}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKDhjPubj2)}(hhh]h)}(h second addendh]h second addend}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKDhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKDhj۠ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKFhjubh)}(hoReturn the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.h]hoReturn the potentially wrapped-around addition without tripping any wrap-around sanitizers that may be enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKEhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j wrapping_assign_add (C macro)c.wrapping_assign_addhNtauh1hhjhhhNhNubj)}(hhh](j)}(hwrapping_assign_addh]j)}(hwrapping_assign_addh]j{)}(hwrapping_assign_addh]j)}(hjСh]hwrapping_assign_add}(hjڡhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֡ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjҡhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKQubah}(h]h ]h"]h$]h&]jjjuh1jjjhjΡhhhjhKQubah}(h]jɡah ](jjeh"]h$]h&]jj)jhuh1jhjhKQhjˡhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjˡhhhjhKQubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h%``wrapping_assign_add (var, offset)``h]j)}(hj h]h!wrapping_assign_add (var, offset)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKShjhhubj)}(h6Intentionally perform a wrapping increment assignment h]h)}(h5Intentionally perform a wrapping increment assignmenth]h5Intentionally perform a wrapping increment assignment}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKQhj"ubah}(h]h ]h"]h$]h&]uh1jhj4hKQhjhhubj)}(hX **Parameters** ``var`` variable to be incremented ``offset`` amount to add **Description** Increments **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers. Returns the new value of **var**.h](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKUhj;ubj )}(hhh](j)}(h#``var`` variable to be incremented h](j)}(h``var``h]j)}(hj`h]hvar}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKRhjZubj2)}(hhh]h)}(hvariable to be incrementedh]hvariable to be incremented}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKRhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKRhjWubj)}(h``offset`` amount to add h](j)}(h ``offset``h]j)}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKShjubj2)}(hhh]h)}(h amount to addh]h amount to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKShjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKShjWubeh}(h]h ]h"]h$]h&]uh1j hj;ubh)}(h**Description**h]j)}(hjԢh]h Description}(hj֢hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҢubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKUhj;ubh)}(hIncrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers.h](h Increments }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh by }(hjhhhNhNubj)}(h **offset**h]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 with wrap-around. Returns the resulting value of }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+. Will not trip any wrap-around sanitizers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKThj;ubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hj/hhhNhNubj)}(h**var**h]hvar}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKWhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j check_sub_overflow (C macro)c.check_sub_overflowhNtauh1hhjhhhNhNubj)}(hhh](j)}(hcheck_sub_overflowh]j)}(hcheck_sub_overflowh]j{)}(hcheck_sub_overflowh]j)}(hjjh]hcheck_sub_overflow}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKaubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjhKaubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhjhKahjehhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjehhhjhKaubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h ``check_sub_overflow (a, b, d)``h]j)}(hjh]hcheck_sub_overflow (a, b, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKchjhhubj)}(h-Calculate subtraction with overflow checking h]h)}(h,Calculate subtraction with overflow checkingh]h,Calculate subtraction with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKahjubah}(h]h ]h"]h$]h&]uh1jhjΣhKahjhhubj)}(hX2**Parameters** ``a`` minuend; value to subtract from ``b`` subtrahend; value to subtract from **a** ``d`` pointer to store difference **Description** Returns true on wrap-around, false otherwise. ***d** holds the results of the attempted subtraction, regardless of whether wrap-around occurred.h](h)}(h**Parameters**h]j)}(hjۣh]h Parameters}(hjݣhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٣ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKehjգubj )}(hhh](j)}(h&``a`` minuend; value to subtract from h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKbhjubj2)}(hhh]h)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKbhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKbhjubj)}(h/``b`` subtrahend; value to subtract from **a** h](j)}(h``b``h]j)}(hj3h]hb}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKchj-ubj2)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hjLhhhNhNubj)}(h**a**h]ha}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1hhjHhKchjIubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhKchjubj)}(h"``d`` pointer to store difference h](j)}(h``d``h]j)}(hjzh]hd}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKdhjtubj2)}(hhh]h)}(hpointer to store differenceh]hpointer to store difference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKdhjubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjhKdhjubeh}(h]h ]h"]h$]h&]uh1j hjգubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKfhjգubh)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjˤhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKehjգubh)}(hb***d** holds the results of the attempted subtraction, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjޤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڤubh\ holds the results of the attempted subtraction, regardless of whether wrap-around occurred.}(hjڤhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKghjգubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j wrapping_sub (C macro)c.wrapping_subhNtauh1hhjhhhNhNubj)}(hhh](j)}(h wrapping_subh]j)}(h wrapping_subh]j{)}(h wrapping_subh]j)}(hjh]h wrapping_sub}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKoubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj.hKoubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj.hKohj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj.hKoubeh}(h]h ](jmacroeh"]h$]h&]jjjjGjjGjjjuh1jhhhjhNhNubh)}(h``wrapping_sub (type, a, b)``h]j)}(hjMh]hwrapping_sub (type, a, b)}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKqhjhhubj)}(h-Intentionally perform a wrapping subtraction h]h)}(h,Intentionally perform a wrapping subtractionh]h,Intentionally perform a wrapping subtraction}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKohjcubah}(h]h ]h"]h$]h&]uh1jhjuhKohjhhubj)}(hX**Parameters** ``type`` type for result of calculation ``a`` minuend; value to subtract from ``b`` subtrahend; value to subtract from **a** **Description** Return the potentially wrapped-around subtraction without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKshj|ubj )}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKphjubj2)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKphjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKphjubj)}(h&``a`` minuend; value to subtract from h](j)}(h``a``h]j)}(hjڥh]ha}(hjܥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjإubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKqhjԥubj2)}(hhh]h)}(hminuend; value to subtract fromh]hminuend; value to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKqhjubah}(h]h ]h"]h$]h&]uh1j1hjԥubeh}(h]h ]h"]h$]h&]uh1jhjhKqhjubj)}(h/``b`` subtrahend; value to subtract from **a** h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKrhj ubj2)}(hhh]h)}(h(subtrahend; value to subtract from **a**h](h#subtrahend; value to subtract from }(hj,hhhNhNubj)}(h**a**h]ha}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1hhj(hKrhj)ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKrhjubeh}(h]h ]h"]h$]h&]uh1j hj|ubh)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKthj|ubh)}(hrReturn the potentially wrapped-around subtraction without tripping any wrap-around sanitizers that may be enabled.h]hrReturn the potentially wrapped-around subtraction without tripping any wrap-around sanitizers that may be enabled.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKshj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j wrapping_assign_sub (C macro)c.wrapping_assign_subhNtauh1hhjhhhNhNubj)}(hhh](j)}(hwrapping_assign_subh]j)}(hwrapping_assign_subh]j{)}(hwrapping_assign_subh]j)}(hjh]hwrapping_assign_sub}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjѦjjѦjjjuh1jhhhjhNhNubh)}(h%``wrapping_assign_sub (var, offset)``h]j)}(hjצh]h!wrapping_assign_sub (var, offset)}(hj٦hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjզubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h2Intentionally perform a wrapping decrement assign h]h)}(h1Intentionally perform a wrapping decrement assignh]h1Intentionally perform a wrapping decrement assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``var`` variable to be decremented ``offset`` amount to subtract **Description** Decrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers. Returns the new value of **var**.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj )}(hhh](j)}(h#``var`` variable to be decremented h](j)}(h``var``h]j)}(hj+h]hvar}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj%ubj2)}(hhh]h)}(hvariable to be decrementedh]hvariable to be decremented}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKhjAubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj"ubj)}(h``offset`` amount to subtract h](j)}(h ``offset``h]j)}(hjdh]hoffset}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj^ubj2)}(hhh]h)}(hamount to subtracth]hamount to subtract}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKhjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj"ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hDecrements **var** by **offset** with wrap-around. Returns the resulting value of **var**. Will not trip any wrap-around sanitizers.h](h Decrements }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh by }(hjhhhNhNubj)}(h **offset**h]hoffset}(hjϧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 with wrap-around. Returns the resulting value of }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+. Will not trip any wrap-around sanitizers.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h!Returns the new value of **var**.h](hReturns the new value of }(hjhhhNhNubj)}(h**var**h]hvar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j check_mul_overflow (C macro)c.check_mul_overflowhNtauh1hhjhhhNhNubj)}(hhh](j)}(hcheck_mul_overflowh]j)}(hcheck_mul_overflowh]j{)}(hcheck_mul_overflowh]j)}(hj5h]hcheck_mul_overflow}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhjRhKubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jhjRhKhj0hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj0hhhjRhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjkjjkjjjuh1jhhhjhNhNubh)}(h ``check_mul_overflow (a, b, d)``h]j)}(hjqh]hcheck_mul_overflow (a, b, d)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h0Calculate multiplication with overflow checking h]h)}(h/Calculate multiplication with overflow checkingh]h/Calculate multiplication with overflow checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``a`` first factor ``b`` second factor ``d`` pointer to store product **Description** Returns true on wrap-around, false otherwise. ***d** holds the results of the attempted multiplication, regardless of whether wrap-around occurred.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj )}(hhh](j)}(h``a`` first factor h](j)}(h``a``h]j)}(hjŨh]ha}(hjǨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjèubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj2)}(hhh]h)}(h first factorh]h first factor}(hjިhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڨhKhjۨubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjڨhKhjubj)}(h``b`` second factor h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj2)}(hhh]h)}(h second factorh]h second factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``d`` pointer to store product h](j)}(h``d``h]j)}(hj7h]hd}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj1ubj2)}(hhh]h)}(hpointer to store producth]hpointer to store product}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhKhjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h-Returns true on wrap-around, false otherwise.h]h-Returns true on wrap-around, false otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(he***d** holds the results of the attempted multiplication, regardless of whether wrap-around occurred.h](j)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh_ holds the results of the attempted multiplication, regardless of whether wrap-around occurred.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j wrapping_mul (C macro)c.wrapping_mulhNtauh1hhjhhhNhNubj)}(hhh](j)}(h wrapping_mulh]j)}(h wrapping_mulh]j{)}(h wrapping_mulh]j)}(hjΩh]h wrapping_mul}(hjةhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԩubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjЩhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj̩hhhjhKubah}(h]jǩah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjɩhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjɩhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``wrapping_mul (type, a, b)``h]j)}(hj h]hwrapping_mul (type, a, b)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h0Intentionally perform a wrapping multiplication h]h)}(h/Intentionally perform a wrapping multiplicationh]h/Intentionally perform a wrapping multiplication}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj2hKhjhhubj)}(h**Parameters** ``type`` type for result of calculation ``a`` first factor ``b`` second factor **Description** Return the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.h](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj9ubj )}(hhh](j)}(h(``type`` type for result of calculation h](j)}(h``type``h]j)}(hj^h]htype}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjXubj2)}(hhh]h)}(htype for result of calculationh]htype for result of calculation}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshKhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshKhjUubj)}(h``a`` first factor h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj2)}(hhh]h)}(h first factorh]h first factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjUubj)}(h``b`` second factor h](j)}(h``b``h]j)}(hjЪh]hb}(hjҪhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΪubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjʪubj2)}(hhh]h)}(h second factorh]h second factor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjʪubeh}(h]h ]h"]h$]h&]uh1jhjhKhjUubeh}(h]h ]h"]h$]h&]uh1j hj9ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj9ubh)}(huReturn the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.h]huReturn the potentially wrapped-around multiplication without tripping any wrap-around sanitizers that may be enabled.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j check_shl_overflow (C macro)c.check_shl_overflowhNtauh1hhjhhhNhNubj)}(hhh](j)}(hcheck_shl_overflowh]j)}(hcheck_shl_overflowh]j{)}(hcheck_shl_overflowh]j)}(hjJh]hcheck_shl_overflow}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhjghKubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1jhjghKhjEhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjEhhhjghKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h ``check_shl_overflow (a, s, d)``h]j)}(hjh]hcheck_shl_overflow (a, s, d)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h2Calculate a left-shifted value and check overflow h]h)}(h1Calculate a left-shifted value and check overflowh]h1Calculate a left-shifted value and check overflow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``a`` Value to be shifted ``s`` How many bits left to shift ``d`` Pointer to where to store the result **Description** Computes ***d** = (**a** << **s**) Returns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions: - '**a** << **s**' causes bits to be lost when stored in ***d**. - '**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0. - '**a**' is negative. - '**a** << **s**' sets the sign bit, if any, in '***d**'. '***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj )}(hhh](j)}(h``a`` Value to be shifted h](j)}(h``a``h]j)}(hjګh]ha}(hjܫhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjثubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjԫubj2)}(hhh]h)}(hValue to be shiftedh]hValue to be shifted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjԫubeh}(h]h ]h"]h$]h&]uh1jhjhKhjѫubj)}(h"``s`` How many bits left to shift h](j)}(h``s``h]j)}(hjh]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj ubj2)}(hhh]h)}(hHow many bits left to shifth]hHow many bits left to shift}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKhj)ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKhjѫubj)}(h+``d`` Pointer to where to store the result h](j)}(h``d``h]j)}(hjLh]hd}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjFubj2)}(hhh]h)}(h$Pointer to where to store the resulth]h$Pointer to where to store the result}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKhjbubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjahKhjѫubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h"Computes ***d** = (**a** << **s**)h](h Computes }(hjhhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh = (}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjɬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hpReturns true if '***d**' cannot hold the result or when '**a** << **s**' doesn't make sense. Example conditions:h](hReturns true if ‘}(hjhhhNhNubj)}(h***d**h]h*d}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh&’ cannot hold the result or when ‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh-’ doesn’t make sense. Example conditions:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj)}(hhh](j)}(h>'**a** << **s**' causes bits to be lost when stored in ***d**.h]h)}(hj,h](h‘}(hj.hhhNhNubj)}(h**a**h]ha}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh << }(hj.hhhNhNubj)}(h**s**h]hs}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh*’ causes bits to be lost when stored in }(hj.hhhNhNubj)}(h***d**h]h*d}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj*ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(hi'**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0.h]h)}(hi'**s**' is garbage (e.g. negative) or so large that the result of '**a** << **s**' is guaranteed to be 0.h](h‘}(hj|hhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubhA’ is garbage (e.g. negative) or so large that the result of ‘}(hj|hhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh << }(hj|hhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh’ is guaranteed to be 0.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjxubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(h'**a**' is negative.h]h)}(hjɭh](h‘}(hj˭hhhNhNubj)}(h**a**h]ha}(hjҭhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˭ubh’ is negative.}(hj˭hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjǭubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(h9'**a** << **s**' sets the sign bit, if any, in '***d**'. h]h)}(h8'**a** << **s**' sets the sign bit, if any, in '***d**'.h](h‘}(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh << }(hjhhhNhNubj)}(h**s**h]hs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh%’ sets the sign bit, if any, in ‘}(hjhhhNhNubj)}(h***d**h]h*d}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]jjuh1jhjqhKhjubh)}(hp'***d**' will hold the results of the attempted shift, but is not considered "safe for use" if true is returned.h](h‘}(hjFhhhNhNubj)}(h***d**h]h*d}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubho’ will hold the results of the attempted shift, but is not considered “safe for use” if true is returned.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j overflows_type (C macro)c.overflows_typehNtauh1hhjhhhNhNubj)}(hhh](j)}(hoverflows_typeh]j)}(hoverflows_typeh]j{)}(hoverflows_typeh]j)}(hjh]hoverflows_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1jhjhKhj|hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj|hhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``overflows_type (n, T)``h]j)}(hjh]hoverflows_type (n, T)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(hIhelper for checking the overflows between value, variables, or data type h]h)}(hHhelper for checking the overflows between value, variables, or data typeh]hHhelper for checking the overflows between value, variables, or data type}(hj׮hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjӮubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``n`` source constant value or variable to be checked ``T`` destination variable or data type proposed to store **x** **Description** Compares the **x** expression for whether or not it can safely fit in the storage of the type in **T**. **x** and **T** can have different types. If **x** is a constant expression, this will also resolve to a constant expression. **Return** true if overflow can occur, false otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj )}(hhh](j)}(h6``n`` source constant value or variable to be checked h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhj ubj2)}(hhh]h)}(h/source constant value or variable to be checkedh]h/source constant value or variable to be checked}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj'ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjubj)}(h@``T`` destination variable or data type proposed to store **x** h](j)}(h``T``h]j)}(hjJh]hT}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjDubj2)}(hhh]h)}(h9destination variable or data type proposed to store **x**h](h4destination variable or data type proposed to store }(hjchhhNhNubj)}(h**x**h]hx}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1hhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hCompares the **x** expression for whether or not it can safely fit in the storage of the type in **T**. **x** and **T** can have different types. If **x** is a constant expression, this will also resolve to a constant expression.h](h Compares the }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhO expression for whether or not it can safely fit in the storage of the type in }(hjhhhNhNubj)}(h**T**h]hT}(hjïhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**x**h]hx}(hjկhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**T**h]hT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can have different types. If }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK is a constant expression, this will also resolve to a constant expression.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h,true if overflow can occur, false otherwise.h]h,true if overflow can occur, false otherwise.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j range_overflows (C macro)c.range_overflowshNtauh1hhjhhhNhNubj)}(hhh](j)}(hrange_overflowsh]j)}(hrange_overflowsh]j{)}(hrange_overflowsh]j)}(hjSh]hrange_overflows}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjphKubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jhjphKhjNhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjNhhhjphKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h&``range_overflows (start, size, max)``h]j)}(hjh]h"range_overflows (start, size, max)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjhhubj)}(h"Check if a range is out of bounds h]h)}(h!Check if a range is out of boundsh]h!Check if a range is out of bounds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** A strict check to determine if the range [**start**, **start** + **size**) is invalid with respect to the allowable range [0, **max**). Any range starting at or beyond **max** is considered an overflow, even if **size** is 0. **Return** true if the range is out of bounds.h](h)}(h**Parameters**h]j)}(hjİh]h Parameters}(hjưhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj°ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj )}(hhh](j)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hjh]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjݰubj2)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjݰubeh}(h]h ]h"]h$]h&]uh1jhjhKhjڰubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubj2)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKhj2ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj1hKhjڰubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjUh]hmax}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjOubj2)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKhjkubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhKhjڰubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(hA strict check to determine if the range [**start**, **start** + **size**) is invalid with respect to the allowable range [0, **max**). Any range starting at or beyond **max** is considered an overflow, even if **size** is 0.h](h*A strict check to determine if the range [}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**size**h]hsize}(hjұhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5) is invalid with respect to the allowable range [0, }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh#). Any range starting at or beyond }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ is considered an overflow, even if }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h **Return**h]j)}(hj#h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubh)}(h#true if the range is out of bounds.h]h#true if the range is out of bounds.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j range_overflows_t (C macro)c.range_overflows_thNtauh1hhjhhhNhNubj)}(hhh](j)}(hrange_overflows_th]j)}(hrange_overflows_th]j{)}(hrange_overflows_th]j)}(hjbh]hrange_overflows_t}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjhMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jhjhMhj]hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj]hhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h.``range_overflows_t (type, start, size, max)``h]j)}(hjh]h*range_overflows_t (type, start, size, max)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h"Check if a range is out of bounds h]h)}(h!Check if a range is out of boundsh]h!Check if a range is out of bounds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjƲhMhjhhubj)}(hX**Parameters** ``type`` Data type to use. ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** Same as range_overflows() but forcing the parameters to **type**. **Return** true if the range is out of bounds.h](h)}(h**Parameters**h]j)}(hjӲh]h Parameters}(hjղhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѲubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjͲubj )}(hhh](j)}(h``type`` Data type to use. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hData type to use.h]hData type to use.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hj+h]hstart}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj%ubj2)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjdh]hsize}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj^ubj2)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjh]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjͲubh)}(h**Description**h]j)}(hjسh]h Description}(hjڳhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjֳubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjͲubh)}(hASame as range_overflows() but forcing the parameters to **type**.h](h8Same as range_overflows() but forcing the parameters to }(hjhhhNhNubj)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjͲubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjͲubh)}(h#true if the range is out of bounds.h]h#true if the range is out of bounds.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjͲubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j range_end_overflows (C macro)c.range_end_overflowshNtauh1hhjhhhNhNubj)}(hhh](j)}(hrange_end_overflowsh]j)}(hrange_end_overflowsh]j{)}(hrange_end_overflowsh]j)}(hjPh]hrange_end_overflows}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjmhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jhjmhMhjKhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjKhhhjmhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h*``range_end_overflows (start, size, max)``h]j)}(hjh]h&range_end_overflows (start, size, max)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h-Check if a range's endpoint is out of bounds h]h)}(h,Check if a range's endpoint is out of boundsh]h.Check if a range’s endpoint is out of bounds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX**Parameters** ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** Checks only if the endpoint of a range (**start** + **size**) exceeds **max**. Unlike range_overflows(), a zero-sized range at the boundary (**start** == **max**) is not considered an overflow. Useful for iterator-style checks. **Return** true if the endpoint exceeds the boundary.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjôhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj )}(hhh](j)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hjh]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޴ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjڴubj2)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjڴubeh}(h]h ]h"]h$]h&]uh1jhjhMhj״ubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj״ubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjRh]hmax}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjLubj2)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhj״ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(hChecks only if the endpoint of a range (**start** + **size**) exceeds **max**. Unlike range_overflows(), a zero-sized range at the boundary (**start** == **max**) is not considered an overflow. Useful for iterator-style checks.h](h(Checks only if the endpoint of a range (}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh + }(hjhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ) exceeds }(hjhhhNhNubj)}(h**max**h]hmax}(hjϵhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@. Unlike range_overflows(), a zero-sized range at the boundary (}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh == }(hjhhhNhNubj)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhB) is not considered an overflow. Useful for iterator-style checks.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h*true if the endpoint exceeds the boundary.h]h*true if the endpoint exceeds the boundary.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j range_end_overflows_t (C macro)c.range_end_overflows_thNtauh1hhjhhhNhNubj)}(hhh](j)}(hrange_end_overflows_th]j)}(hrange_end_overflows_th]j{)}(hrange_end_overflows_th]j)}(hjMh]hrange_end_overflows_t}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM$ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjjhM$ubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjjhM$hjHhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjHhhhjjhM$ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h2``range_end_overflows_t (type, start, size, max)``h]j)}(hjh]h.range_end_overflows_t (type, start, size, max)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM&hjhhubj)}(h-Check if a range's endpoint is out of bounds h]h)}(h,Check if a range's endpoint is out of boundsh]h.Check if a range’s endpoint is out of bounds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM$hjubah}(h]h ]h"]h$]h&]uh1jhjhM$hjhhubj)}(hX!**Parameters** ``type`` Data type to use. ``start`` Start of the range. ``size`` Size of the range. ``max`` Exclusive upper boundary. **Description** Same as range_end_overflows() but forcing the parameters to **type**. **Return** true if the endpoint exceeds the boundary.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM(hjubj )}(hhh](j)}(h``type`` Data type to use. h](j)}(h``type``h]j)}(hjݶh]htype}(hj߶hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj۶ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM%hj׶ubj2)}(hhh]h)}(hData type to use.h]hData type to use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1j1hj׶ubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjԶubj)}(h``start`` Start of the range. h](j)}(h ``start``h]j)}(hjh]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM&hjubj2)}(hhh]h)}(hStart of the range.h]hStart of the range.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM&hj,ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj+hM&hjԶubj)}(h``size`` Size of the range. h](j)}(h``size``h]j)}(hjOh]hsize}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM'hjIubj2)}(hhh]h)}(hSize of the range.h]hSize of the range.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM'hjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhM'hjԶubj)}(h"``max`` Exclusive upper boundary. h](j)}(h``max``h]j)}(hjh]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM(hjubj2)}(hhh]h)}(hExclusive upper boundary.h]hExclusive upper boundary.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjԶubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj÷h]h Description}(hjŷhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM*hjubh)}(hESame as range_end_overflows() but forcing the parameters to **type**.h](hah"]h$]h&]uh1j1hjhhhjhMBubj{)}(hsize_mulh]j)}(hjh]hsize_mul}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMBubj)}(h (size_t factor1, size_t factor2)h](j)}(hsize_t factor1h](h)}(hhh]j)}(hsize_th]hsize_t}(hjٹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֹubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj۹modnameN classnameNj] j` )}jc ]j c.size_mulasbuh1hhjҹubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjҹubj)}(hfactor1h]hfactor1}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҹubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjιubj)}(hsize_t factor2h](h)}(hhh]j)}(hsize_th]hsize_t}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]j c.size_mulasbuh1hhjubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfactor2h]hfactor2}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjιubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhMBubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jhjhMBhjyhhubj)}(hhh]h)}(h;Calculate size_t multiplication with saturation at SIZE_MAXh]h;Calculate size_t multiplication with saturation at SIZE_MAX}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMBhjthhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``size_t factor1`` first factor ``size_t factor2`` second factor **Return** calculate **factor1** * **factor2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMFhjubj )}(hhh](j)}(h ``size_t factor1`` first factor h](j)}(h``size_t factor1``h]j)}(hjh]hsize_t factor1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMChjubj2)}(hhh]h)}(h first factorh]h first factor}(hjѺhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjͺhMChjκubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjͺhMChjubj)}(h!``size_t factor2`` second factor h](j)}(h``size_t factor2``h]j)}(hjh]hsize_t factor2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMDhjubj2)}(hhh]h)}(h second factorh]h second factor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hj,h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMFhjubh)}(hcalculate **factor1** * **factor2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h calculate }(hjBhhhNhNubj)}(h **factor1**h]hfactor1}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh * }(hjBhhhNhNubj)}(h **factor2**h]hfactor2}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMFhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j size_add (C function) c.size_addhNtauh1hhjhhhNhNubj)}(hhh](j)}(h0size_t size_add (size_t addend1, size_t addend2)h]j)}(h/size_t size_add(size_t addend1, size_t addend2)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY size_addsb c.size_addasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMUubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMUubj{)}(hsize_addh]j)}(hjh]hsize_add}(hj̻hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȻubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMUubj)}(h (size_t addend1, size_t addend2)h](j)}(hsize_t addend1h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.size_addasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(haddend1h]haddend1}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj߻ubj)}(hsize_t addend2h](h)}(hhh]j)}(hsize_th]hsize_t}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]j c.size_addasbuh1hhj+ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(haddend2h]haddend2}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj߻ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMUubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMUhjhhubj)}(hhh]h)}(h5Calculate size_t addition with saturation at SIZE_MAXh]h5Calculate size_t addition with saturation at SIZE_MAX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMUhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``size_t addend1`` first addend ``size_t addend2`` second addend **Return** calculate **addend1** + **addend2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMYhjubj )}(hhh](j)}(h ``size_t addend1`` first addend h](j)}(h``size_t addend1``h]j)}(hjɼh]hsize_t addend1}(hj˼hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǼubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMVhjüubj2)}(hhh]h)}(h first addendh]h first addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj޼hMVhj߼ubah}(h]h ]h"]h$]h&]uh1j1hjüubeh}(h]h ]h"]h$]h&]uh1jhj޼hMVhjubj)}(h!``size_t addend2`` second addend h](j)}(h``size_t addend2``h]j)}(hjh]hsize_t addend2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMWhjubj2)}(hhh]h)}(h second addendh]h second addend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hj=h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMYhjubh)}(hcalculate **addend1** + **addend2**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.h](h calculate }(hjShhhNhNubj)}(h **addend1**h]haddend1}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh + }(hjShhhNhNubj)}(h **addend2**h]haddend2}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. The lvalue must be size_t to avoid implicit type conversion.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j size_sub (C function) c.size_subhNtauh1hhjhhhNhNubj)}(hhh](j)}(h3size_t size_sub (size_t minuend, size_t subtrahend)h]j)}(h2size_t size_sub(size_t minuend, size_t subtrahend)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY size_subsb c.size_subasbuh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhubj2)}(h h]h }(hj˽hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjʽhMhubj{)}(hsize_subh]j)}(hjǽh]hsize_sub}(hjݽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٽubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjʽhMhubj)}(h#(size_t minuend, size_t subtrahend)h](j)}(hsize_t minuendh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jŽ c.size_subasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hminuendh]hminuend}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t subtrahendh](h)}(hhh]j)}(hsize_th]hsize_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jŽ c.size_subasbuh1hhj<ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(h subtrahendh]h subtrahend}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjʽhMhubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjʽhMhubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjʽhMhhjhhubj)}(hhh]h)}(h8Calculate size_t subtraction with saturation at SIZE_MAXh]h8Calculate size_t subtraction with saturation at SIZE_MAX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjʽhMhubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``size_t minuend`` value to subtract from ``size_t subtrahend`` value to subtract from **minuend** **Return** calculate **minuend** - **subtrahend**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. For composition with the size_add() and size_mul() helpers, neither argument may be SIZE_MAX (or the result with be forced to SIZE_MAX). The lvalue must be size_t to avoid implicit type conversion.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMlhjubj )}(hhh](j)}(h*``size_t minuend`` value to subtract from h](j)}(h``size_t minuend``h]j)}(hjھh]hsize_t minuend}(hjܾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjؾubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMihjԾubj2)}(hhh]h)}(hvalue to subtract fromh]hvalue to subtract from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1j1hjԾubeh}(h]h ]h"]h$]h&]uh1jhjhMihjѾubj)}(h9``size_t subtrahend`` value to subtract from **minuend** h](j)}(h``size_t subtrahend``h]j)}(hjh]hsize_t subtrahend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMjhj ubj2)}(hhh]h)}(h"value to subtract from **minuend**h](hvalue to subtract from }(hj,hhhNhNubj)}(h **minuend**h]hminuend}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1hhj(hMjhj)ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMjhjѾubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hj\h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMlhjubh)}(hXAcalculate **minuend** - **subtrahend**, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. For composition with the size_add() and size_mul() helpers, neither argument may be SIZE_MAX (or the result with be forced to SIZE_MAX). The lvalue must be size_t to avoid implicit type conversion.h](h calculate }(hjrhhhNhNubj)}(h **minuend**h]hminuend}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh - }(hjrhhhNhNubj)}(h**subtrahend**h]h subtrahend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubhX, both promoted to size_t, with any overflow causing the return value to be SIZE_MAX. For composition with the size_add() and size_mul() helpers, neither argument may be SIZE_MAX (or the result with be forced to SIZE_MAX). The lvalue must be size_t to avoid implicit type conversion.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j array_size (C macro) c.array_sizehNtauh1hhjhhhNhNubj)}(hhh](j)}(h array_sizeh]j)}(h array_sizeh]j{)}(h array_sizeh]j)}(hjh]h array_size}(hjɿhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjſubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM~ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjܿhM~ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjܿhM~hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjܿhM~ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``array_size (a, b)``h]j)}(hjh]harray_size (a, b)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h'Calculate size of 2-dimensional array. h]h)}(h&Calculate size of 2-dimensional array.h]h&Calculate size of 2-dimensional array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM~hjubah}(h]h ]h"]h$]h&]uh1jhj#hM~hjhhubj)}(h**Parameters** ``a`` dimension one ``b`` dimension two **Description** Calculates size of 2-dimensional array: **a** * **b**. **Return** number of bytes needed to represent the array or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj*ubj )}(hhh](j)}(h``a`` dimension one h](j)}(h``a``h]j)}(hjOh]ha}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjIubj2)}(hhh]h)}(h dimension oneh]h dimension one}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjFubj)}(h``b`` dimension two h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(h dimension twoh]h dimension two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjFubeh}(h]h ]h"]h$]h&]uh1j hj*ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj*ubh)}(h6Calculates size of 2-dimensional array: **a** * **b**.h](h(Calculates size of 2-dimensional array: }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj*ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj*ubh)}(hFnumber of bytes needed to represent the array or SIZE_MAX on overflow.h]hFnumber of bytes needed to represent the array or SIZE_MAX on overflow.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j array3_size (C macro) c.array3_sizehNtauh1hhjhhhNhNubj)}(hhh](j)}(h array3_sizeh]j)}(h array3_sizeh]j{)}(h array3_sizeh]j)}(hjMh]h array3_size}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjjhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjjhMhjHhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjHhhhjjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``array3_size (a, b, c)``h]j)}(hjh]harray3_size (a, b, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h'Calculate size of 3-dimensional array. h]h)}(h&Calculate size of 3-dimensional array.h]h&Calculate size of 3-dimensional array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``a`` dimension one ``b`` dimension two ``c`` dimension three **Description** Calculates size of 3-dimensional array: **a** * **b** * **c**. **Return** number of bytes needed to represent the array or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj )}(hhh](j)}(h``a`` dimension one h](j)}(h``a``h]j)}(hjh]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(h dimension oneh]h dimension one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``b`` dimension two h](j)}(h``b``h]j)}(hjh]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(h dimension twoh]h dimension two}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjubj)}(h``c`` dimension three h](j)}(h``c``h]j)}(hjOh]hc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjIubj2)}(hhh]h)}(hdimension threeh]hdimension three}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h>Calculates size of 3-dimensional array: **a** * **b** * **c**.h](h(Calculates size of 3-dimensional array: }(hjhhhNhNubj)}(h**a**h]ha}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh * }hjsbj)}(h**c**h]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(hFnumber of bytes needed to represent the array or SIZE_MAX on overflow.h]hFnumber of bytes needed to represent the array or SIZE_MAX on overflow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j flex_array_size (C macro)c.flex_array_sizehNtauh1hhjhhhNhNubj)}(hhh](j)}(hflex_array_sizeh]j)}(hflex_array_sizeh]j{)}(hflex_array_sizeh]j)}(hj&h]hflex_array_size}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhjChMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjChMhj!hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj!hhhjChMubeh}(h]h ](jmacroeh"]h$]h&]jjjj\jj\jjjuh1jhhhjhNhNubh)}(h&``flex_array_size (p, member, count)``h]j)}(hjbh]h"flex_array_size (p, member, count)}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(hICalculate size of a flexible array member within an enclosing structure. h]h)}(hHCalculate size of a flexible array member within an enclosing structure.h]hHCalculate size of a flexible array member within an enclosing structure.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjxubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hXN**Parameters** ``p`` Pointer to the structure. ``member`` Name of the flexible array member. ``count`` Number of elements in the array. **Description** Calculates size of a flexible array of **count** number of **member** elements, at the end of structure **p**. **Return** number of bytes needed or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj )}(hhh](j)}(h ``p`` Pointer to the structure. h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hPointer to the structure.h]hPointer to the structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``member`` Name of the flexible array member. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(h"Name of the flexible array member.h]h"Name of the flexible array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``count`` Number of elements in the array. h](j)}(h ``count``h]j)}(hj(h]hcount}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj"ubj2)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(hnCalculates size of a flexible array of **count** number of **member** elements, at the end of structure **p**.h](h'Calculates size of a flexible array of }(hjyhhhNhNubj)}(h **count**h]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh number of }(hjyhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh# elements, at the end of structure }(hjyhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubh)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j struct_size (C macro) c.struct_sizehNtauh1hhjhhhNhNubj)}(hhh](j)}(h struct_sizeh]j)}(h struct_sizeh]j{)}(h struct_sizeh]j)}(hjh]h struct_size}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj5jj5jjjuh1jhhhjhNhNubh)}(h"``struct_size (p, member, count)``h]j)}(hj;h]hstruct_size (p, member, count)}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h:Calculate size of structure with trailing flexible array. h]h)}(h9Calculate size of structure with trailing flexible array.h]h9Calculate size of structure with trailing flexible array.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjQubah}(h]h ]h"]h$]h&]uh1jhjchMhjhhubj)}(hXO**Parameters** ``p`` Pointer to the structure. ``member`` Name of the array member. ``count`` Number of elements in the array. **Description** Calculates size of memory needed for structure of **p** followed by an array of **count** number of **member** elements. **Return** number of bytes needed or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjjubj )}(hhh](j)}(h ``p`` Pointer to the structure. h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hPointer to the structure.h]hPointer to the structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``count`` Number of elements in the array. h](j)}(h ``count``h]j)}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjjubh)}(h**Description**h]j)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjjubh)}(hxCalculates size of memory needed for structure of **p** followed by an array of **count** number of **member** elements.h](h2Calculates size of memory needed for structure of }(hjRhhhNhNubj)}(h**p**h]hp}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh followed by an array of }(hjRhhhNhNubj)}(h **count**h]hcount}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh number of }(hjRhhhNhNubj)}(h **member**h]hmember}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh elements.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjjubh)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j struct_size_t (C macro)c.struct_size_thNtauh1hhjhhhNhNubj)}(hhh](j)}(h struct_size_th]j)}(h struct_size_th]j{)}(h struct_size_th]j)}(hjh]h struct_size_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h'``struct_size_t (type, member, count)``h]j)}(hjh]h#struct_size_t (type, member, count)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h9Calculate size of structure with trailing flexible array h]h)}(h8Calculate size of structure with trailing flexible arrayh]h8Calculate size of structure with trailing flexible array}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj*ubah}(h]h ]h"]h$]h&]uh1jhj<hMhjhhubj)}(hX**Parameters** ``type`` structure type name. ``member`` Name of the array member. ``count`` Number of elements in the array. **Description** Calculates size of memory needed for structure **type** followed by an array of **count** number of **member** elements. Prefer using struct_size() when possible instead, to keep calculations associated with a specific instance variable of type **type**. **Return** number of bytes needed or SIZE_MAX on overflow.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjCubj )}(hhh](j)}(h``type`` structure type name. h](j)}(h``type``h]j)}(hjhh]htype}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjbubj2)}(hhh]h)}(hstructure type name.h]hstructure type name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj_ubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj_ubj)}(h+``count`` Number of elements in the array. h](j)}(h ``count``h]j)}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(h Number of elements in the array.h]h Number of elements in the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj_ubeh}(h]h ]h"]h$]h&]uh1j hjCubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjCubh)}(hCalculates size of memory needed for structure **type** followed by an array of **count** number of **member** elements. Prefer using struct_size() when possible instead, to keep calculations associated with a specific instance variable of type **type**.h](h/Calculates size of memory needed for structure }(hj+hhhNhNubj)}(h**type**h]htype}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh followed by an array of }(hj+hhhNhNubj)}(h **count**h]hcount}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh number of }(hj+hhhNhNubj)}(h **member**h]hmember}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh elements. Prefer using struct_size() when possible instead, to keep calculations associated with a specific instance variable of type }(hj+hhhNhNubj)}(h**type**h]htype}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjCubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjCubh)}(h/number of bytes needed or SIZE_MAX on overflow.h]h/number of bytes needed or SIZE_MAX on overflow.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j struct_offset (C macro)c.struct_offsethNtauh1hhjhhhNhNubj)}(hhh](j)}(h struct_offseth]j)}(h struct_offseth]j{)}(h struct_offseth]j)}(hjh]h struct_offset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``struct_offset (p, member)``h]j)}(hjh]hstruct_offset (p, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(h1Calculate the offset of a member within a struct h]h)}(h0Calculate the offset of a member within a structh]h0Calculate the offset of a member within a struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj'hMhjhhubj)}(hX**Parameters** ``p`` Pointer to the struct ``member`` Name of the member to get the offset of **Description** Calculates the offset of a particular **member** of the structure pointed to by **p**. **Return** number of bytes to the location of **member**.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj.ubj )}(hhh](j)}(h``p`` Pointer to the struct h](j)}(h``p``h]j)}(hjSh]hp}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjMubj2)}(hhh]h)}(hPointer to the structh]hPointer to the struct}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjJubj)}(h3``member`` Name of the member to get the offset of h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(h'Name of the member to get the offset ofh]h'Name of the member to get the offset of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjJubeh}(h]h ]h"]h$]h&]uh1j hj.ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj.ubh)}(hVCalculates the offset of a particular **member** of the structure pointed to by **p**.h](h&Calculates the offset of a particular }(hjhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of the structure pointed to by }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj.ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj.ubh)}(h.number of bytes to the location of **member**.h](h#number of bytes to the location of }(hj(hhhNhNubj)}(h **member**h]hmember}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __DEFINE_FLEX (C macro)c.__DEFINE_FLEXhNtauh1hhjhhhNhNubj)}(hhh](j)}(h __DEFINE_FLEXh]j)}(h __DEFINE_FLEXh]j{)}(h __DEFINE_FLEXh]j)}(hjch]h __DEFINE_FLEX}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jhjhMhj^hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj^hhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h9``__DEFINE_FLEX (type, name, member, count, trailer...)``h]j)}(hjh]h5__DEFINE_FLEX (type, name, member, count, trailer...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(hchelper macro for DEFINE_FLEX() family. Enables caller macro to pass arbitrary trailing expressions h]h)}(hbhelper macro for DEFINE_FLEX() family. Enables caller macro to pass arbitrary trailing expressionsh]hbhelper macro for DEFINE_FLEX() family. Enables caller macro to pass arbitrary trailing expressions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX3**Parameters** ``type`` structure type name, including "struct" keyword. ``name`` Name for a variable to define. ``member`` Name of the array member. ``count`` Number of elements in the array; must be compile-time const. ``trailer...`` Trailing expressions for attributes and/or initializers.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj )}(hhh](j)}(h:``type`` structure type name, including "struct" keyword. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``name`` Name for a variable to define. h](j)}(h``name``h]j)}(hj,h]hname}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj&ubj2)}(hhh]h)}(hName for a variable to define.h]hName for a variable to define.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hjeh]hmember}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj_ubj2)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjubj)}(hG``count`` Number of elements in the array; must be compile-time const. h](j)}(h ``count``h]j)}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hmember**) to get compile-time size of **name** members. Use STACK_FLEX_ARRAY_SIZE(**name**, **member**) to get compile-time number of elements in array **member**.h](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubj )}(hhh](j)}(h:``type`` structure type name, including "struct" keyword. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``name`` Name for a variable to define. h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hName for a variable to define.h]hName for a variable to define.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``member`` Name of the array member. h](j)}(h ``member``h]j)}(hj h]hmember}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hG``count`` Number of elements in the array; must be compile-time const. h](j)}(h ``count``h]j)}(hjBh]hcount}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj<ubj2)}(hhh]h)}(hmember**) to get compile-time size of **name** members. Use STACK_FLEX_ARRAY_SIZE(**name**, **member**) to get compile-time number of elements in array **member**.h](h'Define a zeroed, on-stack, instance of }(hjhhhNhNubj)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhD structure with a trailing flexible array member. Use __struct_size(}(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh?) to get compile-time size of it afterwards. Use __member_size(}(hjhhhNhNubj)}(h**name->member**h]h name->member}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) to get compile-time size of }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ members. Use STACK_FLEX_ARRAY_SIZE(}(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2) to get compile-time number of elements in array }(hjhhhNhNubj)}(h **member**h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j DEFINE_FLEX (C macro) c.DEFINE_FLEXhNtauh1hhjhhhNhNubj)}(hhh](j)}(h DEFINE_FLEXh]j)}(h DEFINE_FLEXh]j{)}(h DEFINE_FLEXh]j)}(hj:h]h DEFINE_FLEX}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjWhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhjWhMhj5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj5hhhjWhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1jhhhjhNhNubh)}(h4``DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)``h]j)}(hjvh]h0DEFINE_FLEX (TYPE, NAME, MEMBER, COUNTER, COUNT)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjhhubj)}(hPDefine an on-stack instance of structure with a trailing flexible array member. h]h)}(hODefine an on-stack instance of structure with a trailing flexible array member.h]hODefine an on-stack instance of structure with a trailing flexible array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX**Parameters** ``TYPE`` structure type name, including "struct" keyword. ``NAME`` Name for a variable to define. ``MEMBER`` Name of the array member. ``COUNTER`` Name of the __counted_by member. ``COUNT`` Number of elements in the array; must be compile-time const. **Description** Define a zeroed, on-stack, instance of **TYPE** structure with a trailing flexible array member. Use __struct_size(**NAME**) to get compile-time size of it afterwards. Use __member_size(**NAME->member**) to get compile-time size of **NAME** members. Use STACK_FLEX_ARRAY_SIZE(**name**, **member**) to get compile-time number of elements in array **member**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjubj )}(hhh](j)}(h:``TYPE`` structure type name, including "struct" keyword. h](j)}(h``TYPE``h]j)}(hjh]hTYPE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjubj2)}(hhh]h)}(h0structure type name, including "struct" keyword.h]h4structure type name, including “struct” keyword.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h(``NAME`` Name for a variable to define. h](j)}(h``NAME``h]j)}(hjh]hNAME}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjubj2)}(hhh]h)}(hName for a variable to define.h]hName for a variable to define.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h%``MEMBER`` Name of the array member. h](j)}(h ``MEMBER``h]j)}(hj<h]hMEMBER}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hj6ubj2)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM hjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjubj)}(h-``COUNTER`` Name of the __counted_by member. h](j)}(h ``COUNTER``h]j)}(hjuh]hCOUNTER}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hjoubj2)}(hhh]h)}(h Name of the __counted_by member.h]h Name of the __counted_by member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hG``COUNT`` Number of elements in the array; must be compile-time const. h](j)}(h ``COUNT``h]j)}(hjh]hCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubj2)}(hhh]h)}(hmember**) to get compile-time size of **NAME** members. Use STACK_FLEX_ARRAY_SIZE(**name**, **member**) to get compile-time number of elements in array **member**.h](h'Define a zeroed, on-stack, instance of }(hjhhhNhNubj)}(h**TYPE**h]hTYPE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhD structure with a trailing flexible array member. Use __struct_size(}(hjhhhNhNubj)}(h**NAME**h]hNAME}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh?) to get compile-time size of it afterwards. Use __member_size(}(hjhhhNhNubj)}(h**NAME->member**h]h NAME->member}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) to get compile-time size of }(hjhhhNhNubj)}(h**NAME**h]hNAME}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ members. Use STACK_FLEX_ARRAY_SIZE(}(hjhhhNhNubj)}(h**name**h]hname}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, }(hjhhhNhNubj)}(h **member**h]hmember}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2) to get compile-time number of elements in array }(hjhhhNhNubj)}(h **member**h]hmember}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j STACK_FLEX_ARRAY_SIZE (C macro)c.STACK_FLEX_ARRAY_SIZEhNtauh1hhjhhhNhNubj)}(hhh](j)}(hSTACK_FLEX_ARRAY_SIZEh]j)}(hSTACK_FLEX_ARRAY_SIZEh]j{)}(hSTACK_FLEX_ARRAY_SIZEh]j)}(hjh]hSTACK_FLEX_ARRAY_SIZE}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h'``STACK_FLEX_ARRAY_SIZE (name, array)``h]j)}(hjh]h#STACK_FLEX_ARRAY_SIZE (name, array)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjhhubj)}(hThelper macro for DEFINE_FLEX() family. Returns the number of elements in **array**. h]h)}(hShelper macro for DEFINE_FLEX() family. Returns the number of elements in **array**.h](hIhelper macro for DEFINE_FLEX() family. Returns the number of elements in }(hjhhhNhNubj)}(h **array**h]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). ``array`` Name of the array member.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhj#ubj )}(hhh](j)}(hI``name`` Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX(). h](j)}(h``name``h]j)}(hjHh]hname}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjBubj2)}(hhh]h)}(h?Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX().h]h?Name for a variable defined in DEFINE_RAW_FLEX()/DEFINE_FLEX().}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?ubj)}(h#``array`` Name of the array member.h](j)}(h ``array``h]j)}(hjh]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM hj{ubj2)}(hhh]h)}(hName of the array member.h]hName of the array member.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMhjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhM hj?ubeh}(h]h ]h"]h$]h&]uh1j hj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j typeof_flex_counter (C macro)c.typeof_flex_counterhNtauh1hhjhhhNhNubj)}(hhh](j)}(htypeof_flex_counterh]j)}(htypeof_flex_counterh]j{)}(htypeof_flex_counterh]j)}(hjh]htypeof_flex_counter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM&ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM&ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM&hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM&ubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubh)}(h``typeof_flex_counter (FAM)``h]j)}(hjh]htypeof_flex_counter (FAM)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM(hjhhubj)}(hfReturn the type of the counter variable of a given flexible array member annotated by __counted_by(). h]h)}(heReturn the type of the counter variable of a given flexible array member annotated by __counted_by().h]heReturn the type of the counter variable of a given flexible array member annotated by __counted_by().}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM&hj'ubah}(h]h ]h"]h$]h&]uh1jhj9hM&hjhhubj)}(h**Parameters** ``FAM`` Instance of flexible array member within a given struct. **Return** "size_t" if no annotation exists.h](h)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM*hj@ubj )}(hhh]j)}(hA``FAM`` Instance of flexible array member within a given struct. h](j)}(h``FAM``h]j)}(hjeh]hFAM}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM(hj_ubj2)}(hhh]h)}(h8Instance of flexible array member within a given struct.h]h8Instance of flexible array member within a given struct.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhM(hj{ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhM(hj\ubah}(h]h ]h"]h$]h&]uh1j hj@ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM*hj@ubh)}(h!"size_t" if no annotation exists.h]h%“size_t” if no annotation exists.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM*hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %overflows_flex_counter_type (C macro)c.overflows_flex_counter_typehNtauh1hhjhhhNhNubj)}(hhh](j)}(hoverflows_flex_counter_typeh]j)}(hoverflows_flex_counter_typeh]j{)}(hoverflows_flex_counter_typeh]j)}(hjh]hoverflows_flex_counter_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM2ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM2ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM2hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM2ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h2``overflows_flex_counter_type (TYPE, FAM, COUNT)``h]j)}(hjh]h.overflows_flex_counter_type (TYPE, FAM, COUNT)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM4hjhhubj)}(h\Check if the counter associated with the given flexible array member can represent a value. h]h)}(h[Check if the counter associated with the given flexible array member can represent a value.h]h[Check if the counter associated with the given flexible array member can represent a value.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM2hj1ubah}(h]h ]h"]h$]h&]uh1jhjChM2hjhhubj)}(hXa**Parameters** ``TYPE`` Type of the struct that contains the **FAM**. ``FAM`` Member name of the FAM within **TYPE**. ``COUNT`` Value to check against the __counted_by annotated **FAM**'s counter. **Return** true if **COUNT** can be represented in the **FAM**'s counter. When **FAM** is not annotated with __counted_by(), always returns true.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM6hjJubj )}(hhh](j)}(h7``TYPE`` Type of the struct that contains the **FAM**. h](j)}(h``TYPE``h]j)}(hjoh]hTYPE}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM5hjiubj2)}(hhh]h)}(h-Type of the struct that contains the **FAM**.h](h%Type of the struct that contains the }(hjhhhNhNubj)}(h**FAM**h]hFAM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjfubj)}(h0``FAM`` Member name of the FAM within **TYPE**. h](j)}(h``FAM``h]j)}(hjh]hFAM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM6hjubj2)}(hhh]h)}(h'Member name of the FAM within **TYPE**.h](hMember name of the FAM within }(hjhhhNhNubj)}(h**TYPE**h]hTYPE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjfubj)}(hO``COUNT`` Value to check against the __counted_by annotated **FAM**'s counter. h](j)}(h ``COUNT``h]j)}(hjh]hCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM7hjubj2)}(hhh]h)}(hDValue to check against the __counted_by annotated **FAM**'s counter.h](h2Value to check against the __counted_by annotated }(hjhhhNhNubj)}(h**FAM**h]hFAM}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ’s counter.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjfubeh}(h]h ]h"]h$]h&]uh1j hjJubh)}(h **Return**h]j)}(hjRh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM9hjJubh)}(htrue if **COUNT** can be represented in the **FAM**'s counter. When **FAM** is not annotated with __counted_by(), always returns true.h](htrue if }(hjhhhhNhNubj)}(h **COUNT**h]hCOUNT}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh can be represented in the }(hjhhhhNhNubj)}(h**FAM**h]hFAM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh’s counter. When }(hjhhhhNhNubj)}(h**FAM**h]hFAM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh; is not annotated with __counted_by(), always returns true.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM9hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __set_flex_counter (C macro)c.__set_flex_counterhNtauh1hhjhhhNhNubj)}(hhh](j)}(h__set_flex_counterh]j)}(h__set_flex_counterh]j{)}(h__set_flex_counterh]j)}(hjh]h__set_flex_counter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM@ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM@ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM@hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM@ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h#``__set_flex_counter (FAM, COUNT)``h]j)}(hjh]h__set_flex_counter (FAM, COUNT)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMBhjhhubj)}(hjSet the counter associated with the given flexible array member that has been annoated by __counted_by(). h]h)}(hiSet the counter associated with the given flexible array member that has been annoated by __counted_by().h]hiSet the counter associated with the given flexible array member that has been annoated by __counted_by().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhM@hjubah}(h]h ]h"]h$]h&]uh1jhj+hM@hjhhubj)}(hX7**Parameters** ``FAM`` Instance of flexible array member within a given struct. ``COUNT`` Value to store to the __counted_by annotated **FAM_PTR**'s counter. **Description** This is a no-op if no annotation exists. Count needs to be checked with overflows_flex_counter_type() before using this function.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMDhj2ubj )}(hhh](j)}(hA``FAM`` Instance of flexible array member within a given struct. h](j)}(h``FAM``h]j)}(hjWh]hFAM}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMBhjQubj2)}(hhh]h)}(h8Instance of flexible array member within a given struct.h]h8Instance of flexible array member within a given struct.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMBhjmubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMBhjNubj)}(hN``COUNT`` Value to store to the __counted_by annotated **FAM_PTR**'s counter. h](j)}(h ``COUNT``h]j)}(hjh]hCOUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMChjubj2)}(hhh]h)}(hCValue to store to the __counted_by annotated **FAM_PTR**'s counter.h](h-Value to store to the __counted_by annotated }(hjhhhNhNubj)}(h **FAM_PTR**h]hFAM_PTR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ’s counter.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjNubeh}(h]h ]h"]h$]h&]uh1j hj2ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMEhj2ubh)}(hThis is a no-op if no annotation exists. Count needs to be checked with overflows_flex_counter_type() before using this function.h]hThis is a no-op if no annotation exists. Count needs to be checked with overflows_flex_counter_type() before using this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:127: ./include/linux/overflow.hhMDhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]arithmetic-overflow-checkingah ]h"]arithmetic overflow checkingah$]h&]uh1hhjhhhhhK}ubh)}(hhh](h)}(h CRC Functionsh]h CRC Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc4 (C function)c.crc4hNtauh1hhjhhhNhNubj)}(hhh](j)}(h.uint8_t crc4 (uint8_t c, uint64_t x, int bits)h]j)}(h-uint8_t crc4(uint8_t c, uint64_t x, int bits)h](h)}(hhh]j)}(huint8_th]huint8_t}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@modnameN classnameNj] j` )}jc ]jf )}jY crc4sbc.crc4asbuh1hhj7hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7hhhj_hKubj{)}(hcrc4h]j)}(hj\h]hcrc4}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhhj_hKubj)}(h!(uint8_t c, uint64_t x, int bits)h](j)}(h uint8_t ch](h)}(hhh]j)}(huint8_th]huint8_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jZc.crc4asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h uint64_t xh](h)}(hhh]j)}(huint64_th]huint64_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jZc.crc4asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hxh]hx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint bitsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hbitsh]hbits}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhj_hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj_hKubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jhj_hKhj0hhubj)}(hhh]h)}(h#calculate the 4-bit crc of a value.h]h#calculate the 4-bit crc of a value.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj_hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj_hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jhhhjhNhNubj)}(hX<**Parameters** ``uint8_t c`` starting crc4 ``uint64_t x`` value to checksum ``int bits`` number of bits in **x** to checksum **Description** Returns the crc4 value of **x**, using polynomial 0b10111. The **x** value is treated as left-aligned, and bits above **bits** are ignored in the crc calculations.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj~ubj )}(hhh](j)}(h``uint8_t c`` starting crc4 h](j)}(h ``uint8_t c``h]j)}(hjh]h uint8_t c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubj2)}(hhh]h)}(h starting crc4h]h starting crc4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h!``uint64_t x`` value to checksum h](j)}(h``uint64_t x``h]j)}(hjh]h uint64_t x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubj2)}(hhh]h)}(hvalue to checksumh]hvalue to checksum}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h1``int bits`` number of bits in **x** to checksum h](j)}(h ``int bits``h]j)}(hjh]hint bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhjubj2)}(hhh]h)}(h#number of bits in **x** to checksumh](hnumber of bits in }(hj.hhhNhNubj)}(h**x**h]hx}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh to checksum}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj*hKhj+ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj*hKhjubeh}(h]h ]h"]h$]h&]uh1j hj~ubh)}(h**Description**h]j)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj~ubh)}(h:Returns the crc4 value of **x**, using polynomial 0b10111.h](hReturns the crc4 value of }(hjxhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh, using polynomial 0b10111.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj~ubh)}(hhThe **x** value is treated as left-aligned, and bits above **bits** are ignored in the crc calculations.h](hThe }(hjhhhNhNubj)}(h**x**h]hx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 value is treated as left-aligned, and bits above }(hjhhhNhNubj)}(h**bits**h]hbits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% are ignored in the crc calculations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:133: ./lib/crc/crc4.chKhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc7_be (C function) c.crc7_behNtauh1hhjhhhNhNubj)}(hhh](j)}(h1u8 crc7_be (u8 crc, const u8 *buffer, size_t len)h]j)}(h0u8 crc7_be(u8 crc, const u8 *buffer, size_t len)h](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY crc7_besb c.crc7_beasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK5ubj{)}(hcrc7_beh]j)}(hj h]hcrc7_be}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK5ubj)}(h&(u8 crc, const u8 *buffer, size_t len)h](j)}(hu8 crch](h)}(hhh]j)}(hu8h]hu8}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]j  c.crc7_beasbuh1hhj:ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj)}(hcrch]hcrc}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hconst u8 *bufferh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j  c.crc7_beasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j  c.crc7_beasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK5ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK5hjhhubj)}(hhh]h)}(h#update the CRC7 for the data bufferh]h#update the CRC7 for the data buffer}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK5hjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1jhhhjhNhNubj)}(hXS**Parameters** ``u8 crc`` previous CRC7 value ``const u8 *buffer`` data pointer ``size_t len`` number of bytes in the buffer **Context** any **Description** Returns the updated CRC7 value. The CRC7 is left-aligned in the byte (the lsbit is always 0), as that makes the computation easier, and all callers want it in that form.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hjkubj )}(hhh](j)}(h``u8 crc`` previous CRC7 value h](j)}(h ``u8 crc``h]j)}(hjh]hu8 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK6hjubj2)}(hhh]h)}(hprevious CRC7 valueh]hprevious CRC7 value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK6hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK6hjubj)}(h"``const u8 *buffer`` data pointer h](j)}(h``const u8 *buffer``h]j)}(hjh]hconst u8 *buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK7hjubj2)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK7hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjubj)}(h-``size_t len`` number of bytes in the buffer h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK8hjubj2)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK8hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubeh}(h]h ]h"]h$]h&]uh1j hjkubh)}(h **Context**h]j)}(hj=h]hContext}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK:hjkubh)}(hanyh]hany}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK9hjkubh)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK;hjkubh)}(hReturns the updated CRC7 value. The CRC7 is left-aligned in the byte (the lsbit is always 0), as that makes the computation easier, and all callers want it in that form.h]hReturns the updated CRC7 value. The CRC7 is left-aligned in the byte (the lsbit is always 0), as that makes the computation easier, and all callers want it in that form.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:136: ./lib/crc/crc7.chK:hjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc8_populate_msb (C function)c.crc8_populate_msbhNtauh1hhjhhhNhNubj)}(hhh](j)}(hAvoid crc8_populate_msb (u8 table[CRC8_TABLE_SIZE], u8 polynomial)h]j)}(h@void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hcrc8_populate_msbh]j)}(hcrc8_populate_msbh]hcrc8_populate_msb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h*(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j)}(hu8 table[CRC8_TABLE_SIZE]h](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.crc8_populate_msbasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(htableh]htable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h[h]h[}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jc.crc8_populate_msbasbuh1hhjubj)}(h]h]h]}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 polynomialh](h)}(hhh]j)}(hu8h]hu8}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]jc.crc8_populate_msbasbuh1hhjiubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(h polynomialh]h polynomial}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h9fill crc table for given polynomial in reverse bit order.h]h9fill crc table for given polynomial in reverse bit order.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``u8 table[CRC8_TABLE_SIZE]`` table to be filled. ``u8 polynomial`` polynomial for which table is to be filled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjubj )}(hhh](j)}(h2``u8 table[CRC8_TABLE_SIZE]`` table to be filled. h](j)}(h``u8 table[CRC8_TABLE_SIZE]``h]j)}(hjh]hu8 table[CRC8_TABLE_SIZE]}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjubj2)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h=``u8 polynomial`` polynomial for which table is to be filled.h](j)}(h``u8 polynomial``h]j)}(hj@h]h u8 polynomial}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhj:ubj2)}(hhh]h)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKhjVubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc8_populate_lsb (C function)c.crc8_populate_lsbhNtauh1hhjhhhNhNubj)}(hhh](j)}(hAvoid crc8_populate_lsb (u8 table[CRC8_TABLE_SIZE], u8 polynomial)h]j)}(h@void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK/ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK/ubj{)}(hcrc8_populate_lsbh]j)}(hcrc8_populate_lsbh]hcrc8_populate_lsb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK/ubj)}(h*(u8 table[CRC8_TABLE_SIZE], u8 polynomial)h](j)}(hu8 table[CRC8_TABLE_SIZE]h](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.crc8_populate_lsbasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(htableh]htable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj'h]h[}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj(modnameN classnameNj] j` )}jc ]jc.crc8_populate_lsbasbuh1hhjubj)}(hjVh]h]}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 polynomialh](h)}(hhh]j)}(hu8h]hu8}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjamodnameN classnameNj] j` )}jc ]jc.crc8_populate_lsbasbuh1hhjXubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(h polynomialh]h polynomial}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK/hjhhubj)}(hhh]h)}(h9fill crc table for given polynomial in regular bit order.h]h9fill crc table for given polynomial in regular bit order.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK/hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``u8 table[CRC8_TABLE_SIZE]`` table to be filled. ``u8 polynomial`` polynomial for which table is to be filled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK3hjubj )}(hhh](j)}(h2``u8 table[CRC8_TABLE_SIZE]`` table to be filled. h](j)}(h``u8 table[CRC8_TABLE_SIZE]``h]j)}(hjh]hu8 table[CRC8_TABLE_SIZE]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK1hjubj2)}(hhh]h)}(htable to be filled.h]htable to be filled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK1hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hK1hjubj)}(h=``u8 polynomial`` polynomial for which table is to be filled.h](j)}(h``u8 polynomial``h]j)}(hj/h]h u8 polynomial}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK3hj)ubj2)}(hhh]h)}(h+polynomial for which table is to be filled.h]h+polynomial for which table is to be filled.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chK2hjEubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhK3hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc8 (C function)c.crc8hNtauh1hhjhhhNhNubj)}(hhh](j)}(hQu8 crc8 (const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h]j)}(hPu8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY crc8sbc.crc8asbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKDubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKDubj{)}(hcrc8h]j)}(hjh]hcrc8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKDubj)}(hI(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc)h](j)}(hconst u8 table[CRC8_TABLE_SIZE]h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.crc8asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(htableh]htable}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj'h]h[}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j)}(hCRC8_TABLE_SIZEh]hCRC8_TABLE_SIZE}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jc.crc8asbuh1hhjubj)}(hjVh]h]}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst u8 *pdatah](j)}(hjh]hconst}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.crc8asbuh1hhjuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hpdatah]hpdata}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t nbytesh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.crc8asbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnbytesh]hnbytes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu8 crch](h)}(hhh]j)}(hu8h]hu8}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6modnameN classnameNj] j` )}jc ]jc.crc8asbuh1hhj-ubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj)}(hcrch]hcrc}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKDubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1jhjhKDhj~hhubj)}(hhh]h)}(h+calculate a crc8 over the given input data.h]h+calculate a crc8 over the given input data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKDhjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhKDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``const u8 table[CRC8_TABLE_SIZE]`` crc table used for calculation. ``const u8 *pdata`` pointer to data buffer. ``size_t nbytes`` number of bytes in data buffer. ``u8 crc`` previous returned crc8 value.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKHhjubj )}(hhh](j)}(hD``const u8 table[CRC8_TABLE_SIZE]`` crc table used for calculation. h](j)}(h#``const u8 table[CRC8_TABLE_SIZE]``h]j)}(hjh]hconst u8 table[CRC8_TABLE_SIZE]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKFhjubj2)}(hhh]h)}(hcrc table used for calculation.h]hcrc table used for calculation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKFhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjubj)}(h,``const u8 *pdata`` pointer to data buffer. h](j)}(h``const u8 *pdata``h]j)}(hjh]hconst u8 *pdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKGhjubj2)}(hhh]h)}(hpointer to data buffer.h]hpointer to data buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjubj)}(h2``size_t nbytes`` number of bytes in data buffer. h](j)}(h``size_t nbytes``h]j)}(hj=h]h size_t nbytes}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKHhj7ubj2)}(hhh]h)}(hnumber of bytes in data buffer.h]hnumber of bytes in data buffer.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhKHhjSubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhKHhjubj)}(h(``u8 crc`` previous returned crc8 value.h](j)}(h ``u8 crc``h]j)}(hjvh]hu8 crc}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKJhjpubj2)}(hhh]h)}(hprevious returned crc8 value.h]hprevious returned crc8 value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:139: ./lib/crc/crc8.chKIhjubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc16 (C function)c.crc16hNtauh1hhjhhhNhNubj)}(hhh](j)}(h,u16 crc16 (u16 crc, const u8 *p, size_t len)h]j)}(h+u16 crc16(u16 crc, const u8 *p, size_t len)h](h)}(hhh]j)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY crc16sbc.crc16asbuh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK0ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK0ubj{)}(hcrc16h]j)}(hjh]hcrc16}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK0ubj)}(h"(u16 crc, const u8 *p, size_t len)h](j)}(hu16 crch](h)}(hhh]j)}(hu16h]hu16}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj'modnameN classnameNj] j` )}jc ]jc.crc16asbuh1hhjubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcrch]hcrc}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const u8 *ph](j)}(hjh]hconst}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.crc16asbuh1hhjfubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.crc16asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK0ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK0hjhhubj)}(hhh]h)}(h&compute the CRC-16 for the data bufferh]h&compute the CRC-16 for the data buffer}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK0hj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhjhNhNubj)}(h**Parameters** ``u16 crc`` previous CRC value ``const u8 *p`` data pointer ``size_t len`` number of bytes in the buffer **Description** Returns the updated CRC value.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK4hjNubj )}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hjsh]hu16 crc}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK1hjmubj2)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjjubj)}(h``const u8 *p`` data pointer h](j)}(h``const u8 *p``h]j)}(hjh]h const u8 *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK2hjubj2)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK2hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK2hjjubj)}(h-``size_t len`` number of bytes in the buffer h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK3hjubj2)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK3hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK3hjjubeh}(h]h ]h"]h$]h&]uh1j hjNubh)}(h**Description**h]j)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK5hjNubh)}(hReturns the updated CRC value.h]hReturns the updated CRC value.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:142: ./lib/crc/crc16.chK4hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc_ccitt (C function) c.crc_ccitthNtauh1hhjhhhNhNubj)}(hhh](j)}(h5u16 crc_ccitt (u16 crc, u8 const *buffer, size_t len)h]j)}(h4u16 crc_ccitt(u16 crc, u8 const *buffer, size_t len)h](h)}(hhh]j)}(hu16h]hu16}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]jf )}jY crc_ccittsb c.crc_ccittasbuh1hhjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK3ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjahhhjhK3ubj{)}(h crc_ccitth]j)}(hjh]h crc_ccitt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjhK3ubj)}(h'(u16 crc, u8 const *buffer, size_t len)h](j)}(hu16 crch](h)}(hhh]j)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.crc_ccittasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu8 const *bufferh](h)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.crc_ccittasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hconst}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufferh]hbuffer}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtmodnameN classnameNj] j` )}jc ]j c.crc_ccittasbuh1hhjkubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhjhK3ubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhjhK3hjZhhubj)}(hhh]h)}(h9recompute the CRC (CRC-CCITT variant) for the data bufferh]h9recompute the CRC (CRC-CCITT variant) for the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK3hjhhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``u16 crc`` previous CRC value ``u8 const *buffer`` data pointer ``size_t len`` number of bytes in the bufferh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK7hjubj )}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hj h]hu16 crc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK5hjubj2)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjubj)}(h"``u8 const *buffer`` data pointer h](j)}(h``u8 const *buffer``h]j)}(hjBh]hu8 const *buffer}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK6hj<ubj2)}(hhh]h)}(h data pointerh]h data pointer}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhK6hjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhK6hjubj)}(h,``size_t len`` number of bytes in the bufferh](j)}(h``size_t len``h]j)}(hj{h]h size_t len}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK8hjuubj2)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:145: ./lib/crc/crc-ccitt.chK7hjubah}(h]h ]h"]h$]h&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc_itu_t (C function) c.crc_itu_thNtauh1hhjhhhNhNubj)}(hhh](j)}(h5u16 crc_itu_t (u16 crc, const u8 *buffer, size_t len)h]j)}(h4u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len)h](h)}(hhh]j)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY crc_itu_tsb c.crc_itu_tasbuh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK2ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK2ubj{)}(h crc_itu_th]j)}(hjh]h crc_itu_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK2ubj)}(h'(u16 crc, const u8 *buffer, size_t len)h](j)}(hu16 crch](h)}(hhh]j)}(hu16h]hu16}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,modnameN classnameNj] j` )}jc ]j c.crc_itu_tasbuh1hhj#ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hcrch]hcrc}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst u8 *bufferh](j)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubh)}(hhh]j)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.crc_itu_tasbuh1hhjkubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hbufferh]hbuffer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.crc_itu_tasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK2ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK2hjhhubj)}(hhh]h)}(h)Compute the CRC-ITU-T for the data bufferh]h)Compute the CRC-ITU-T for the data buffer}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK2hj5hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1jhhhjhNhNubj)}(h**Parameters** ``u16 crc`` previous CRC value ``const u8 *buffer`` data pointer ``size_t len`` number of bytes in the buffer **Description** Returns the updated CRC valueh](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK6hjTubj )}(hhh](j)}(h``u16 crc`` previous CRC value h](j)}(h ``u16 crc``h]j)}(hjyh]hu16 crc}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK4hjsubj2)}(hhh]h)}(hprevious CRC valueh]hprevious CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK4hjubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjhK4hjpubj)}(h"``const u8 *buffer`` data pointer h](j)}(h``const u8 *buffer``h]j)}(hjh]hconst u8 *buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK5hjubj2)}(hhh]h)}(h data pointerh]h data pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjpubj)}(h-``size_t len`` number of bytes in the buffer h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK6hjubj2)}(hhh]h)}(hnumber of bytes in the bufferh]hnumber of bytes in the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK6hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK6hjpubeh}(h]h ]h"]h$]h&]uh1j hjTubh)}(h**Description**h]j)}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK8hjTubh)}(hReturns the updated CRC valueh]hReturns the updated CRC value}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:148: ./lib/crc/crc-itu-t.chK7hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc32_le (C function) c.crc32_lehNtauh1hhjhhhNhNubj)}(hhh](j)}(h1u32 crc32_le (u32 crc, const void *p, size_t len)h]j)}(h0u32 crc32_le(u32 crc, const void *p, size_t len)h](h)}(hhh]j)}(hu32h]hu32}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]jf )}jY crc32_lesb c.crc32_leasbuh1hhjghhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjghhhjhK ubj{)}(hcrc32_leh]j)}(hjh]hcrc32_le}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjghhhjhK ubj)}(h$(u32 crc, const void *p, size_t len)h](j)}(hu32 crch](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.crc32_leasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *ph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]j c.crc32_leasbuh1hhj]ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjhK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjhK ubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1jhjhK hj`hhubj)}(hhh]h)}(h/Compute least-significant-bit-first IEEE CRC-32h]h/Compute least-significant-bit-first IEEE CRC-32}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjhhubah}(h]h ]h"]h$]h&]uh1jhj`hhhjhK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXx**Parameters** ``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. ``const void *p`` Pointer to the data buffer ``size_t len`` Length of data in bytes **Description** This implements the CRC variant that is often known as the IEEE CRC-32, or simply CRC-32, and is widely used in Ethernet and other applications: - Polynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0 - Bit order: Least-significant-bit-first - Polynomial in integer form: 0xedb88320 This does *not* invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended. For new applications, prefer to use CRC-32C instead. See crc32c(). **Context** Any context **Return** The new CRC valueh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjubj )}(hhh](j)}(h``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. h](j)}(h ``u32 crc``h]j)}(hjh]hu32 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjubj2)}(hhh]h)}(hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.h]hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hj5h]h const void *p}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hj/ubj2)}(hhh]h)}(hPointer to the data bufferh]hPointer to the data buffer}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhK hjKubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhK hjubj)}(h'``size_t len`` Length of data in bytes h](j)}(h``size_t len``h]j)}(hjnh]h size_t len}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK hjhubj2)}(hhh]h)}(hLength of data in bytesh]hLength of data in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(hThis implements the CRC variant that is often known as the IEEE CRC-32, or simply CRC-32, and is widely used in Ethernet and other applications:h]hThis implements the CRC variant that is often known as the IEEE CRC-32, or simply CRC-32, and is widely used in Ethernet and other applications:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubj)}(hhh](j)}(hwPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0h]j )}(hhh]j)}(hkPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0h](j)}(hIPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 +h]hIPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 +}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubj2)}(hhh]h)}(h!x^7 + x^5 + x^4 + x^2 + x^1 + x^0h]h!x^7 + x^5 + x^4 + x^2 + x^1 + x^0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h&Bit order: Least-significant-bit-firsth]h)}(hjh]h&Bit order: Least-significant-bit-first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h'Polynomial in integer form: 0xedb88320 h]h)}(h&Polynomial in integer form: 0xedb88320h]h&Polynomial in integer form: 0xedb88320}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjubh)}(hThis does *not* invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended.h](h This does }(hjLhhhNhNubjp)}(h*not*h]hnot}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1johjLubh invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(hCFor new applications, prefer to use CRC-32C instead. See crc32c().h]hCFor new applications, prefer to use CRC-32C instead. See crc32c().}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(h **Context**h]j)}(hj~h]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(h Any contexth]h Any context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubh)}(hThe new CRC valueh]hThe new CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc32_be (C function) c.crc32_behNtauh1hhjhhhNhNubj)}(hhh](j)}(h1u32 crc32_be (u32 crc, const void *p, size_t len)h]j)}(h0u32 crc32_be(u32 crc, const void *p, size_t len)h](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY crc32_besb c.crc32_beasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK(ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK(ubj{)}(hcrc32_beh]j)}(hj h]hcrc32_be}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK(ubj)}(h$(u32 crc, const void *p, size_t len)h](j)}(hu32 crch](h)}(hhh]j)}(hu32h]hu32}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjAmodnameN classnameNj] j` )}jc ]j  c.crc32_beasbuh1hhj8ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubj)}(hcrch]hcrc}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(h const void *ph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j  c.crc32_beasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj4ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK(ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK(ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK(hjhhubj)}(hhh]h)}(h.Compute most-significant-bit-first IEEE CRC-32h]h.Compute most-significant-bit-first IEEE CRC-32}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK(hj6hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1jhhhjhNhNubj)}(hX:**Parameters** ``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. ``const void *p`` Pointer to the data buffer ``size_t len`` Length of data in bytes **Description** crc32_be() is the same as crc32_le() except that crc32_be() computes the *most-significant-bit-first* variant of the CRC. I.e., within each byte, the most significant bit is processed first (treated as highest order polynomial coefficient). The same bit order is also used for the CRC value itself: - Polynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0 - Bit order: Most-significant-bit-first - Polynomial in integer form: 0x04c11db7 **Context** Any context **Return** The new CRC valueh](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK,hjUubj )}(hhh](j)}(h``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. h](j)}(h ``u32 crc``h]j)}(hjzh]hu32 crc}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK*hjtubj2)}(hhh]h)}(hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.h]hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK)hjubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjhK*hjqubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK+hjubj2)}(hhh]h)}(hPointer to the data bufferh]hPointer to the data buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK+hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK+hjqubj)}(h'``size_t len`` Length of data in bytes h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK,hjubj2)}(hhh]h)}(hLength of data in bytesh]hLength of data in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK,hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK,hjqubeh}(h]h ]h"]h$]h&]uh1j hjUubh)}(h**Description**h]j)}(hj(h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK.hjUubh)}(hX,crc32_be() is the same as crc32_le() except that crc32_be() computes the *most-significant-bit-first* variant of the CRC. I.e., within each byte, the most significant bit is processed first (treated as highest order polynomial coefficient). The same bit order is also used for the CRC value itself:h](hIcrc32_be() is the same as crc32_le() except that crc32_be() computes the }(hj>hhhNhNubjp)}(h*most-significant-bit-first*h]hmost-significant-bit-first}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1johj>ubh variant of the CRC. I.e., within each byte, the most significant bit is processed first (treated as highest order polynomial coefficient). The same bit order is also used for the CRC value itself:}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK-hjUubj)}(hhh](j)}(hwPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0h]j )}(hhh]j)}(hkPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0h](j)}(hIPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 +h]hIPolynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 +}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK2hjiubj2)}(hhh]h)}(h!x^7 + x^5 + x^4 + x^2 + x^1 + x^0h]h!x^7 + x^5 + x^4 + x^2 + x^1 + x^0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK3hj|ubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhj{hK2hjfubah}(h]h ]h"]h$]h&]uh1j hjbubah}(h]h ]h"]h$]h&]uh1jhj_ubj)}(h%Bit order: Most-significant-bit-firsth]h)}(hjh]h%Bit order: Most-significant-bit-first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK4hjubah}(h]h ]h"]h$]h&]uh1jhj_ubj)}(h'Polynomial in integer form: 0x04c11db7 h]h)}(h&Polynomial in integer form: 0x04c11db7h]h&Polynomial in integer form: 0x04c11db7}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK5hjubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhj{hK2hjUubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK7hjUubh)}(h Any contexth]h Any context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK8hjUubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK:hjUubh)}(hThe new CRC valueh]hThe new CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK9hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc32c (C function)c.crc32chNtauh1hhjhhhNhNubj)}(hhh](j)}(h/u32 crc32c (u32 crc, const void *p, size_t len)h]j)}(h.u32 crc32c(u32 crc, const void *p, size_t len)h](h)}(hhh]j)}(hu32h]hu32}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjPmodnameN classnameNj] j` )}jc ]jf )}jY crc32csbc.crc32casbuh1hhjGhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK>ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGhhhjohK>ubj{)}(hcrc32ch]j)}(hjlh]hcrc32c}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjohK>ubj)}(h$(u32 crc, const void *p, size_t len)h](j)}(hu32 crch](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jjc.crc32casbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *ph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjFmodnameN classnameNj] j` )}jc ]jjc.crc32casbuh1hhj=ubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj)}(hlenh]hlen}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjohK>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjohK>ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhjohK>hj@hhubj)}(hhh]h)}(hCompute CRC-32Ch]hCompute CRC-32C}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK>hjhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjohK>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXD**Parameters** ``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. ``const void *p`` Pointer to the data buffer ``size_t len`` Length of data in bytes **Description** This implements CRC-32C, i.e. the Castagnoli CRC. This is the recommended CRC variant to use in new applications that want a 32-bit CRC. - Polynomial: x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 + x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0 - Bit order: Least-significant-bit-first - Polynomial in integer form: 0x82f63b78 This does *not* invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended. **Context** Any context **Return** The new CRC valueh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKBhjubj )}(hhh](j)}(h``u32 crc`` Initial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally. h](j)}(h ``u32 crc``h]j)}(hjh]hu32 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK@hjubj2)}(hhh]h)}(hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.h]hzInitial CRC value. ~0 (recommended) or 0 for a new CRC computation, or the previous CRC value if computing incrementally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhK?hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubj)}(h-``const void *p`` Pointer to the data buffer h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKAhjubj2)}(hhh]h)}(hPointer to the data bufferh]hPointer to the data buffer}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKAhj+ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj*hKAhjubj)}(h'``size_t len`` Length of data in bytes h](j)}(h``size_t len``h]j)}(hjNh]h size_t len}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKBhjHubj2)}(hhh]h)}(hLength of data in bytesh]hLength of data in bytes}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKBhjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchKBhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKDhjubh)}(hThis implements CRC-32C, i.e. the Castagnoli CRC. This is the recommended CRC variant to use in new applications that want a 32-bit CRC.h]hThis implements CRC-32C, i.e. the Castagnoli CRC. This is the recommended CRC variant to use in new applications that want a 32-bit CRC.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKChjubj)}(hhh](j)}(hPolynomial: x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 + x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0h]j )}(hhh]j)}(hPolynomial: x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 + x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0h](j)}(hJPolynomial: x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 +h]hJPolynomial: x^32 + x^28 + x^27 + x^26 + x^25 + x^23 + x^22 + x^20 + x^19 +}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKFhjubj2)}(hhh]h)}(h8x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0h]h8x^18 + x^14 + x^13 + x^11 + x^10 + x^9 + x^8 + x^6 + x^0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKGhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h&Bit order: Least-significant-bit-firsth]h)}(hjh]h&Bit order: Least-significant-bit-first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKHhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h'Polynomial in integer form: 0x82f63b78 h]h)}(h&Polynomial in integer form: 0x82f63b78h]h&Polynomial in integer form: 0x82f63b78}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKIhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKFhjubh)}(hThis does *not* invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended.h](h This does }(hj,hhhNhNubjp)}(h*not*h]hnot}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1johj,ubh invert the CRC at the beginning or end. The caller is expected to do that if it needs to. Inverting at both ends is recommended.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKKhjubh)}(h **Context**h]j)}(hjOh]hContext}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKNhjubh)}(h Any contexth]h Any context}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKOhjubh)}(h **Return**h]j)}(hjvh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKQhjubh)}(hThe new CRC valueh]hThe new CRC value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:151: ./include/linux/crc32.hhKPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc64_be (C function) c.crc64_behNtauh1hhjhhhNhNubj)}(hhh](j)}(h1u64 crc64_be (u64 crc, const void *p, size_t len)h]j)}(h0u64 crc64_be(u64 crc, const void *p, size_t len)h](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY crc64_besb c.crc64_beasbuh1hhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hcrc64_beh]j)}(hjh]hcrc64_be}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h$(u64 crc, const void *p, size_t len)h](j)}(hu64 crch](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.crc64_beasbuh1hhj ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hcrch]hcrc}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const void *ph](j)}(hjh]hconst}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj )}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.crc64_beasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h+Calculate bitwise big-endian ECMA-182 CRC64h]h+Calculate bitwise big-endian ECMA-182 CRC64}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``u64 crc`` seed value for computation. 0 or (u64)~0 for a new CRC calculation, or the previous crc64 value if computing incrementally. ``const void *p`` pointer to buffer over which CRC64 is run ``size_t len`` length of buffer **p**h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hj&ubj )}(hhh](j)}(h``u64 crc`` seed value for computation. 0 or (u64)~0 for a new CRC calculation, or the previous crc64 value if computing incrementally. h](j)}(h ``u64 crc``h]j)}(hjKh]hu64 crc}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjEubj2)}(hhh]h)}(h{seed value for computation. 0 or (u64)~0 for a new CRC calculation, or the previous crc64 value if computing incrementally.h]h{seed value for computation. 0 or (u64)~0 for a new CRC calculation, or the previous crc64 value if computing incrementally.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hK hjBubj)}(h<``const void *p`` pointer to buffer over which CRC64 is run h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjubj2)}(hhh]h)}(h)pointer to buffer over which CRC64 is runh]h)pointer to buffer over which CRC64 is run}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjBubj)}(h%``size_t len`` length of buffer **p**h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjubj2)}(hhh]h)}(hlength of buffer **p**h](hlength of buffer }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhK hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjBubeh}(h]h ]h"]h$]h&]uh1j hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j crc64_nvme (C function) c.crc64_nvmehNtauh1hhjhhhNhNubj)}(hhh](j)}(h3u64 crc64_nvme (u64 crc, const void *p, size_t len)h]j)}(h2u64 crc64_nvme(u64 crc, const void *p, size_t len)h](h)}(hhh]j)}(hu64h]hu64}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj+modnameN classnameNj] j` )}jc ]jf )}jY crc64_nvmesb c.crc64_nvmeasbuh1hhj"hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"hhhjJhKubj{)}(h crc64_nvmeh]j)}(hjGh]h crc64_nvme}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhjJhKubj)}(h$(u64 crc, const void *p, size_t len)h](j)}(hu64 crch](h)}(hhh]j)}(hu64h]hu64}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj}modnameN classnameNj] j` )}jc ]jE c.crc64_nvmeasbuh1hhjtubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj)}(hcrch]hcrc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(h const void *ph](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj!modnameN classnameNj] j` )}jc ]jE c.crc64_nvmeasbuh1hhjubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhjJhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjJhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjJhKhjhhubj)}(hhh]h)}(hCalculate CRC64-NVMEh]hCalculate CRC64-NVME}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjJhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``u64 crc`` seed value for computation. 0 for a new CRC calculation, or the previous crc64 value if computing incrementally. ``const void *p`` pointer to buffer over which CRC64 is run ``size_t len`` length of buffer **p** **Description** This computes the CRC64 defined in the NVME NVM Command Set Specification, *including the bitwise inversion at the beginning and end*.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubj )}(hhh](j)}(h}``u64 crc`` seed value for computation. 0 for a new CRC calculation, or the previous crc64 value if computing incrementally. h](j)}(h ``u64 crc``h]j)}(hjh]hu64 crc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubj2)}(hhh]h)}(hpseed value for computation. 0 for a new CRC calculation, or the previous crc64 value if computing incrementally.h]hpseed value for computation. 0 for a new CRC calculation, or the previous crc64 value if computing incrementally.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h<``const void *p`` pointer to buffer over which CRC64 is run h](j)}(h``const void *p``h]j)}(hjh]h const void *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubj2)}(hhh]h)}(h)pointer to buffer over which CRC64 is runh]h)pointer to buffer over which CRC64 is run}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h&``size_t len`` length of buffer **p** h](j)}(h``size_t len``h]j)}(hj)h]h size_t len}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhj#ubj2)}(hhh]h)}(hlength of buffer **p**h](hlength of buffer }(hjBhhhNhNubj)}(h**p**h]hp}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1hhj>hKhj?ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubh)}(hThis computes the CRC64 defined in the NVME NVM Command Set Specification, *including the bitwise inversion at the beginning and end*.h](hKThis computes the CRC64 defined in the NVME NVM Command Set Specification, }(hjhhhNhNubjp)}(h:*including the bitwise inversion at the beginning and end*h]h8including the bitwise inversion at the beginning and end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1johjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:153: ./include/linux/crc64.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] crc-functionsah ]h"] crc functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hBase 2 log and power Functionsh]hBase 2 log and power Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j is_power_of_2 (C function)c.is_power_of_2hNtauh1hhjhhhNhNubj)}(hhh](j)}(h$bool is_power_of_2 (unsigned long n)h]j)}(h#bool is_power_of_2(unsigned long n)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK%ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK%ubj{)}(h is_power_of_2h]j)}(h is_power_of_2h]h is_power_of_2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK%ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK%ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK%ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK%hjhhubj)}(hhh]h)}(h"check if a value is a power of twoh]h"check if a value is a power of two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK%hj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``unsigned long n`` the value to check **Description** Determine whether some value is a power of two, where zero is *not* considered a power of two. **Return** true if **n** is a power of 2, otherwise false.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK)hjubj )}(hhh]j)}(h'``unsigned long n`` the value to check h](j)}(h``unsigned long n``h]j)}(hjh]hunsigned long n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK&hjubj2)}(hhh]h)}(hthe value to checkh]hthe value to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK&hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK&hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK(hjubh)}(h^Determine whether some value is a power of two, where zero is *not* considered a power of two.h](h>Determine whether some value is a power of two, where zero is }(hjhhhNhNubjp)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1johjubh considered a power of two.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK'hjubh)}(h **Return**h]j)}(hj4h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK*hjubh)}(h/true if **n** is a power of 2, otherwise false.h](htrue if }(hjJhhhNhNubj)}(h**n**h]hn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh" is a power of 2, otherwise false.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !__roundup_pow_of_two (C function)c.__roundup_pow_of_twohNtauh1hhjhhhNhNubj)}(hhh](j)}(h4unsigned long __roundup_pow_of_two (unsigned long n)h]j)}(h3unsigned long __roundup_pow_of_two(unsigned long n)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK3ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK3ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhK3ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK3ubj{)}(h__roundup_pow_of_twoh]j)}(h__roundup_pow_of_twoh]h__roundup_pow_of_two}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK3ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK3ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1jhjhK3hjhhubj)}(hhh]h)}(h round up to nearest power of twoh]h round up to nearest power of two}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK3hjBhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jhhhjhNhNubj)}(h7**Parameters** ``unsigned long n`` value to round uph](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK7hjaubj )}(hhh]j)}(h%``unsigned long n`` value to round uph](j)}(h``unsigned long n``h]j)}(hjh]hunsigned long n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK9hjubj2)}(hhh]h)}(hvalue to round uph]hvalue to round up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK4hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK9hj}ubah}(h]h ]h"]h$]h&]uh1j hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #__rounddown_pow_of_two (C function)c.__rounddown_pow_of_twohNtauh1hhjhhhNhNubj)}(hhh](j)}(h6unsigned long __rounddown_pow_of_two (unsigned long n)h]j)}(h5unsigned long __rounddown_pow_of_two(unsigned long n)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK=ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK=ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhK=ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK=ubj{)}(h__rounddown_pow_of_twoh]j)}(h__rounddown_pow_of_twoh]h__rounddown_pow_of_two}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK=ubj)}(h(unsigned long n)h]j)}(hunsigned long nh](j )}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj )}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hjh]hn}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK=ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK=hjhhubj)}(hhh]h)}(h"round down to nearest power of twoh]h"round down to nearest power of two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK=hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h9**Parameters** ``unsigned long n`` value to round downh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKAhjubj )}(hhh]j)}(h'``unsigned long n`` value to round downh](j)}(h``unsigned long n``h]j)}(hjh]hunsigned long n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKChjubj2)}(hhh]h)}(hvalue to round downh]hvalue to round down}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhK>hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j const_ilog2 (C macro) c.const_ilog2hNtauh1hhjhhhNhNubj)}(hhh](j)}(h const_ilog2h]j)}(h const_ilog2h]j{)}(h const_ilog2h]j)}(hj/h]h const_ilog2}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKGubah}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjLhKGubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhjLhKGhj*hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj*hhhjLhKGubeh}(h]h ](jmacroeh"]h$]h&]jjjjejjejjjuh1jhhhjhNhNubh)}(h``const_ilog2 (n)``h]j)}(hjkh]hconst_ilog2 (n)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKIhjhhubj)}(h9log base 2 of 32-bit or a 64-bit constant unsigned value h]h)}(h8log base 2 of 32-bit or a 64-bit constant unsigned valueh]h8log base 2 of 32-bit or a 64-bit constant unsigned value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKGhjubah}(h]h ]h"]h$]h&]uh1jhjhKGhjhhubj)}(h**Parameters** ``n`` parameter **Description** Use this where sparse expects a true constant expression, e.g. for array indices.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKKhjubj )}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKHhjubj2)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKHhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKHhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKJhjubh)}(hQUse this where sparse expects a true constant expression, e.g. for array indices.h]hQUse this where sparse expects a true constant expression, e.g. for array indices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ilog2 (C macro)c.ilog2hNtauh1hhjhhhNhNubj)}(hhh](j)}(hilog2h]j)}(hilog2h]j{)}(hilog2h]j)}(hj9h]hilog2}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjVhKubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jhjVhKhj4hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj4hhhjVhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjojjojjjuh1jhhhjhNhNubh)}(h ``ilog2 (n)``h]j)}(hjuh]h ilog2 (n)}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjhhubj)}(h0log base 2 of 32-bit or a 64-bit unsigned value h]h)}(h/log base 2 of 32-bit or a 64-bit unsigned valueh]h/log base 2 of 32-bit or a 64-bit unsigned value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``n`` parameter **Description** constant-capable log of base 2 calculation - this can be used to initialise global variables from constant data, hence the massive ternary operator construction selects the appropriately-sized optimised version depending on sizeof(n)h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj )}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj2)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hconstant-capable log of base 2 calculation - this can be used to initialise global variables from constant data, hence the massive ternary operator constructionh]hconstant-capable log of base 2 calculation - this can be used to initialise global variables from constant data, hence the massive ternary operator construction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hHselects the appropriately-sized optimised version depending on sizeof(n)h]hHselects the appropriately-sized optimised version depending on sizeof(n)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j roundup_pow_of_two (C macro)c.roundup_pow_of_twohNtauh1hhjhhhNhNubj)}(hhh](j)}(hroundup_pow_of_twoh]j)}(hroundup_pow_of_twoh]j{)}(hroundup_pow_of_twoh]j)}(hjRh]hroundup_pow_of_two}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjohKubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhjohKhjMhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjMhhhjohKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``roundup_pow_of_two (n)``h]j)}(hjh]hroundup_pow_of_two (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjhhubj)}(h1round the given value up to nearest power of two h]h)}(h0round the given value up to nearest power of twoh]h0round the given value up to nearest power of two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(h**Parameters** ``n`` parameter **Description** round the given value up to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj )}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj2)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hround the given value up to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah]hround the given value up to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant data}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rounddown_pow_of_two (C macro)c.rounddown_pow_of_twohNtauh1hhjhhhNhNubj)}(hhh](j)}(hrounddown_pow_of_twoh]j)}(hrounddown_pow_of_twoh]j{)}(hrounddown_pow_of_twoh]j)}(hj\h]hrounddown_pow_of_two}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhjyhKubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jhjyhKhjWhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjWhhhjyhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``rounddown_pow_of_two (n)``h]j)}(hjh]hrounddown_pow_of_two (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjhhubj)}(h3round the given value down to nearest power of two h]h)}(h2round the given value down to nearest power of twoh]h2round the given value down to nearest power of two}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(h**Parameters** ``n`` parameter **Description** round the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj )}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj2)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hround the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant datah]hround the given value down to the nearest power of two - the result is undefined when n == 0 - this can be used to initialise global variables from constant data}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j order_base_2 (C macro)c.order_base_2hNtauh1hhjhhhNhNubj)}(hhh](j)}(h order_base_2h]j)}(h order_base_2h]j{)}(h order_base_2h]j)}(hjfh]h order_base_2}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjhKubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjahhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjahhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``order_base_2 (n)``h]j)}(hjh]horder_base_2 (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjhhubj)}(h8calculate the (rounded up) base 2 order of the argument h]h)}(h7calculate the (rounded up) base 2 order of the argumenth]h7calculate the (rounded up) base 2 order of the argument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(h**Parameters** ``n`` parameter **Description** The first few values calculated by this routine: ob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj )}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj2)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj )}(hhh]j)}(hThe first few values calculated by this routine: ob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.h](j)}(h0The first few values calculated by this routine:h]h0The first few values calculated by this routine:}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjJubj2)}(hhh]h)}(hPob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.h]hPob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj]ubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhj\hKhjGubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bits_per (C macro) c.bits_perhNtauh1hhjhhhNhNubj)}(hhh](j)}(hbits_perh]j)}(hbits_perh]j{)}(hbits_perh]j)}(hjh]hbits_per}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``bits_per (n)``h]j)}(hjh]h bits_per (n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjhhubj)}(h7calculate the number of bits required for the argument h]h)}(h6calculate the number of bits required for the argumenth]h6calculate the number of bits required for the argument}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``n`` parameter **Description** This is constant-capable and can be used for compile time initializations, e.g bitfields. The first few values calculated by this routine: bf(0) = 1 bf(1) = 1 bf(2) = 2 bf(3) = 2 bf(4) = 3 ... and so on.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubj )}(hhh]j)}(h``n`` parameter h](j)}(h``n``h]j)}(hj+h]hn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhj%ubj2)}(hhh]h)}(h parameterh]h parameter}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKhjAubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj"ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hYThis is constant-capable and can be used for compile time initializations, e.g bitfields.h]hYThis is constant-capable and can be used for compile time initializations, e.g bitfields.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubh)}(hqThe first few values calculated by this routine: bf(0) = 1 bf(1) = 1 bf(2) = 2 bf(3) = 2 bf(4) = 3 ... and so on.h]hqThe first few values calculated by this routine: bf(0) = 1 bf(1) = 1 bf(2) = 2 bf(3) = 2 bf(4) = 3 ... and so on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "max_pow_of_two_factor (C function)c.max_pow_of_two_factorhNtauh1hhjhhhNhNubj)}(hhh](j)}(h3unsigned int max_pow_of_two_factor (unsigned int n)h]j)}(h2unsigned int max_pow_of_two_factor(unsigned int n)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hmax_pow_of_two_factorh]j)}(hmax_pow_of_two_factorh]hmax_pow_of_two_factor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(unsigned int n)h]j)}(hunsigned int nh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hj/hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h return highest power-of-2 factorh]h return highest power-of-2 factor}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``unsigned int n`` parameter **Description** find highest power-of-2 which is evenly divisible into n. 0 is returned for n == 0 or 1.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjubj )}(hhh]j)}(h``unsigned int n`` parameter h](j)}(h``unsigned int n``h]j)}(hjh]hunsigned int n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjubj2)}(hhh]h)}(h parameterh]h parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjubh)}(hXfind highest power-of-2 which is evenly divisible into n. 0 is returned for n == 0 or 1.h]hXfind highest power-of-2 which is evenly divisible into n. 0 is returned for n == 0 or 1.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:158: ./include/linux/log2.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]base-2-log-and-power-functionsah ]h"]base 2 log and power functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hInteger log and power Functionsh]hInteger log and power Functions}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j intlog2 (C function) c.intlog2hNtauh1hhj$hhhNhNubj)}(hhh](j)}(h unsigned int intlog2 (u32 value)h]j)}(hunsigned int intlog2(u32 value)h](j )}(hunsignedh]hunsigned}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhj\hKubj )}(hinth]hint}(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhhj\hKubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhj\hKubj{)}(hintlog2h]j)}(hintlog2h]hintlog2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhj\hKubj)}(h (u32 value)h]j)}(h u32 valueh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.intlog2asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhj\hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhj\hKubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jhj\hKhjChhubj)}(hhh]h)}(h?computes log2 of a value; the result is shifted left by 24 bitsh]h?computes log2 of a value; the result is shifted left by 24 bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj\hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj$hNhNubj)}(hX**Parameters** ``u32 value`` The value (must be != 0) **Description** to use rational values you can use the following method: intlog2(value) = intlog2(value * 2^x) - x * 2^24 Some usecase examples: intlog2(8) will give 3 << 24 = 3 * 2^24 intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24 intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24 **Return** log2(value) * 2^24h](h)}(h**Parameters**h]j)}(hj$ h]h Parameters}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj" ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubj )}(hhh]j)}(h'``u32 value`` The value (must be != 0) h](j)}(h ``u32 value``h]j)}(hjC h]h u32 value}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj= ubj2)}(hhh]h)}(hThe value (must be != 0)h]hThe value (must be != 0)}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX hKhjY ubah}(h]h ]h"]h$]h&]uh1j1hj= ubeh}(h]h ]h"]h$]h&]uh1jhjX hKhj: ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hj~ h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj| ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubh)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubj)}(h1intlog2(value) = intlog2(value * 2^x) - x * 2^24 h]h)}(h0intlog2(value) = intlog2(value * 2^x) - x * 2^24h]h0intlog2(value) = intlog2(value * 2^x) - x * 2^24}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubh)}(hSome usecase examples:h]hSome usecase examples:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubj)}(hintlog2(8) will give 3 << 24 = 3 * 2^24 intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24 intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24 h](h)}(h'intlog2(8) will give 3 << 24 = 3 * 2^24h]h'intlog2(8) will give 3 << 24 = 3 * 2^24}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubh)}(h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24h]h3intlog2(9) will give 3 << 24 + ... = 3.16... * 2^24}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubh)}(h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24h]h2intlog2(1.5) = intlog2(3) - 2^24 = 0.584... * 2^24}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubh)}(hlog2(value) * 2^24h]hlog2(value) * 2^24}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j intlog10 (C function) c.intlog10hNtauh1hhj$hhhNhNubj)}(hhh](j)}(h!unsigned int intlog10 (u32 value)h]j)}(h unsigned int intlog10(u32 value)h](j )}(hunsignedh]hunsigned}(hjI hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjE hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK$ubj2)}(h h]h }(hjX hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjE hhhjW hK$ubj )}(hinth]hint}(hjf hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjE hhhjW hK$ubj2)}(h h]h }(hjt hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjE hhhjW hK$ubj{)}(hintlog10h]j)}(hintlog10h]hintlog10}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjE hhhjW hK$ubj)}(h (u32 value)h]j)}(h u32 valueh](h)}(hhh]j)}(hu32h]hu32}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY j sb c.intlog10asbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hvalueh]hvalue}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjE hhhjW hK$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjA hhhjW hK$ubah}(h]j< ah ](jjeh"]h$]h&]jj)jhuh1jhjW hK$hj> hhubj)}(hhh]h)}(h@computes log10 of a value; the result is shifted left by 24 bitsh]h@computes log10 of a value; the result is shifted left by 24 bits}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK$hj hhubah}(h]h ]h"]h$]h&]uh1jhj> hhhjW hK$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj$hNhNubj)}(hX**Parameters** ``u32 value`` The value (must be != 0) **Description** to use rational values you can use the following method: intlog10(value) = intlog10(value * 10^x) - x * 2^24 An usecase example: intlog10(1000) will give 3 << 24 = 3 * 2^24 due to the implementation intlog10(1000) might be not exactly 3 * 2^24 look at intlog2 for similar examples **Return** log10(value) * 2^24h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK(hj ubj )}(hhh]j)}(h'``u32 value`` The value (must be != 0) h](j)}(h ``u32 value``h]j)}(hj> h]h u32 value}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj< ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK&hj8 ubj2)}(hhh]h)}(hThe value (must be != 0)h]hThe value (must be != 0)}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS hK&hjT ubah}(h]h ]h"]h$]h&]uh1j1hj8 ubeh}(h]h ]h"]h$]h&]uh1jhjS hK&hj5 ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjy h]h Description}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK(hj ubh)}(h8to use rational values you can use the following method:h]h8to use rational values you can use the following method:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK'hj ubj)}(h4intlog10(value) = intlog10(value * 10^x) - x * 2^24 h]h)}(h3intlog10(value) = intlog10(value * 10^x) - x * 2^24h]h3intlog10(value) = intlog10(value * 10^x) - x * 2^24}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK)hj ubah}(h]h ]h"]h$]h&]uh1jhj hK)hj ubh)}(hAn usecase example:h]hAn usecase example:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK+hj ubj)}(hw intlog10(1000) will give 3 << 24 = 3 * 2^24 due to the implementation intlog10(1000) might be not exactly 3 * 2^24 h](j)}(h,intlog10(1000) will give 3 << 24 = 3 * 2^24 h]h)}(h+intlog10(1000) will give 3 << 24 = 3 * 2^24h]h+intlog10(1000) will give 3 << 24 = 3 * 2^24}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK-hj ubah}(h]h ]h"]h$]h&]uh1jhj hK-hj ubh)}(hFdue to the implementation intlog10(1000) might be not exactly 3 * 2^24h]hFdue to the implementation intlog10(1000) might be not exactly 3 * 2^24}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK/hj ubeh}(h]h ]h"]h$]h&]uh1jhj hK-hj ubh)}(h$look at intlog2 for similar examplesh]h$look at intlog2 for similar examples}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK1hj ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK3hj ubh)}(hlog10(value) * 2^24h]hlog10(value) * 2^24}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:164: ./include/linux/int_log.hhK4hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j int_pow (C function) c.int_powhNtauh1hhj$hhhNhNubj)}(hhh](j)}(h(u64 int_pow (u64 base, unsigned int exp)h]j)}(h'u64 int_pow(u64 base, unsigned int exp)h](h)}(hhh]j)}(hu64h]hu64}(hjQ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjS modnameN classnameNj] j` )}jc ]jf )}jY int_powsb c.int_powasbuh1hhjJ hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK ubj2)}(h h]h }(hjs hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ hhhjr hK ubj{)}(hint_powh]j)}(hjo h]hint_pow}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJ hhhjr hK ubj)}(h(u64 base, unsigned int exp)h](j)}(hu64 baseh](h)}(hhh]j)}(hu64h]hu64}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jm  c.int_powasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hbaseh]hbase}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int exph](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hexph]hexp}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjJ hhhjr hK ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjF hhhjr hK ubah}(h]jA ah ](jjeh"]h$]h&]jj)jhuh1jhjr hK hjC hhubj)}(hhh]h)}(h:computes the exponentiation of the given base and exponenth]h:computes the exponentiation of the given base and exponent}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chK hjG hhubah}(h]h ]h"]h$]h&]uh1jhjC hhhjr hK ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjb jjb jjjuh1jhhhj$hNhNubj)}(h**Parameters** ``u64 base`` base which will be raised to the given power ``unsigned int exp`` power to be raised to **Description** Computes: pow(base, exp), i.e. **base** raised to the **exp** powerh](h)}(h**Parameters**h]j)}(hjl h]h Parameters}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjf ubj )}(hhh](j)}(h:``u64 base`` base which will be raised to the given power h](j)}(h ``u64 base``h]j)}(hj h]hu64 base}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhj ubj2)}(hhh]h)}(h,base which will be raised to the given powerh]h,base which will be raised to the given power}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h+``unsigned int exp`` power to be raised to h](j)}(h``unsigned int exp``h]j)}(hj h]hunsigned int exp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhj ubj2)}(hhh]h)}(hpower to be raised toh]hpower to be raised to}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubeh}(h]h ]h"]h$]h&]uh1j hjf ubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjf ubh)}(hCComputes: pow(base, exp), i.e. **base** raised to the **exp** powerh](hComputes: pow(base, exp), i.e. }(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh raised to the }(hjhhhNhNubj)}(h**exp**h]hexp}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh power}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:166: ./lib/math/int_pow.chKhjf ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j int_sqrt (C function) c.int_sqrthNtauh1hhj$hhhNhNubj)}(hhh](j)}(h(unsigned long int_sqrt (unsigned long x)h]j)}(h'unsigned long int_sqrt(unsigned long x)h](j )}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdhhhjvhKubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdhhhjvhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdhhhjvhKubj{)}(hint_sqrth]j)}(hint_sqrth]hint_sqrt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhhjvhKubj)}(h(unsigned long x)h]j)}(hunsigned long xh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjdhhhjvhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhjvhKubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jhjvhKhj]hhubj)}(hhh]h)}(h computes the integer square rooth]h computes the integer square root}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj]hhhjvhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1jhhhj$hNhNubj)}(hw**Parameters** ``unsigned long x`` integer of which to calculate the sqrt **Description** Computes: floor(sqrt(x))h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhj>ubj )}(hhh]j)}(h;``unsigned long x`` integer of which to calculate the sqrt h](j)}(h``unsigned long x``h]j)}(hjch]hunsigned long x}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhj]ubj2)}(hhh]h)}(h&integer of which to calculate the sqrth]h&integer of which to calculate the sqrt}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhKhjyubah}(h]h ]h"]h$]h&]uh1j1hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhKhjZubah}(h]h ]h"]h$]h&]uh1j hj>ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhj>ubh)}(hComputes: floor(sqrt(x))h]hComputes: floor(sqrt(x))}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chKhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j int_sqrt64 (C function) c.int_sqrt64hNtauh1hhj$hhhNhNubj)}(hhh](j)}(hu32 int_sqrt64 (u64 x)h]j)}(hu32 int_sqrt64(u64 x)h](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY int_sqrt64sb c.int_sqrt64asbuh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK-ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK-ubj{)}(h int_sqrt64h]j)}(hjh]h int_sqrt64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK-ubj)}(h(u64 x)h]j)}(hu64 xh](h)}(hhh]j)}(hu64h]hu64}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:modnameN classnameNj] j` )}jc ]j c.int_sqrt64asbuh1hhj1ubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]hx}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK-hjhhubj)}(hhh]h)}(hGstrongly typed int_sqrt function when minimum 64 bit input is expected.h]hGstrongly typed int_sqrt function when minimum 64 bit input is expected.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK-hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj$hNhNubj)}(hH**Parameters** ``u64 x`` 64bit integer of which to calculate the sqrth](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK1hjubj )}(hhh]j)}(h6``u64 x`` 64bit integer of which to calculate the sqrth](j)}(h ``u64 x``h]j)}(hjh]hu64 x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK3hjubj2)}(hhh]h)}(h,64bit integer of which to calculate the sqrth]h,64bit integer of which to calculate the sqrt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:169: ./lib/math/int_sqrt.chK/hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK3hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj$hhhNhNubeh}(h]integer-log-and-power-functionsah ]h"]integer log and power functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hDivision Functionsh]hDivision Functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j do_div (C macro)c.do_divhNtauh1hhjhhhNhNubj)}(hhh](j)}(hdo_divh]j)}(hdo_divh]j{)}(hdo_divh]j)}(hj;h]hdo_div}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj=hhh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj9hhhjXhK ubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jhjXhK hj6hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj6hhhjXhK ubeh}(h]h ](jmacroeh"]h$]h&]jjjjqjjqjjjuh1jhhhjhNhNubh)}(h``do_div (n, base)``h]j)}(hjwh]hdo_div (n, base)}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK"hjhhubj)}(h>returns 2 values: calculate remainder and update new dividend h]h)}(h=returns 2 values: calculate remainder and update new dividendh]h=returns 2 values: calculate remainder and update new dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK hjubah}(h]h ]h"]h$]h&]uh1jhjhK hjhhubj)}(hX**Parameters** ``n`` uint64_t dividend (will be updated) ``base`` uint32_t divisor **Description** Summary: ``uint32_t remainder = n % base;`` ``n = n / base;`` **Return** (uint32_t)remainder **NOTE** macro parameter **n** is evaluated multiple times, beware of side effects!h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK$hjubj )}(hhh](j)}(h*``n`` uint64_t dividend (will be updated) h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK!hjubj2)}(hhh]h)}(h#uint64_t dividend (will be updated)h]h#uint64_t dividend (will be updated)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK!hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK!hjubj)}(h``base`` uint32_t divisor h](j)}(h``base``h]j)}(hjh]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK"hjubj2)}(hhh]h)}(huint32_t divisorh]huint32_t divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK$hjubh)}(h=Summary: ``uint32_t remainder = n % base;`` ``n = n / base;``h](h Summary: }(hjUhhhNhNubj)}(h"``uint32_t remainder = n % base;``h]huint32_t remainder = n % base;}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh }(hjUhhhNhNubj)}(h``n = n / base;``h]h n = n / base;}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK#hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK'hjubh)}(h(uint32_t)remainderh]h(uint32_t)remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK(hjubh)}(h**NOTE**h]j)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK*hjubh)}(hJmacro parameter **n** is evaluated multiple times, beware of side effects!h](hmacro parameter }(hjhhhNhNubj)}(h**n**h]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 is evaluated multiple times, beware of side effects!}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh`/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:175: ./include/asm-generic/div64.hhK*hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j div_u64_rem (C function) c.div_u64_remhNtauh1hhjhhhNhNubj)}(hhh](j)}(h;u64 div_u64_rem (u64 dividend, u32 divisor, u32 *remainder)h]j)}(h:u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)h](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY div_u64_remsb c.div_u64_remasbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj(hKubj{)}(h div_u64_remh]j)}(hj%h]h div_u64_rem}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj(hKubj)}(h+(u64 dividend, u32 divisor, u32 *remainder)h](j)}(h u64 dividendh](h)}(hhh]j)}(hu64h]hu64}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[modnameN classnameNj] j` )}jc ]j# c.div_u64_remasbuh1hhjRubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(h u32 divisorh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j# c.div_u64_remasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hu32 *remainderh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j# c.div_u64_remasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h remainderh]h remainder}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj(hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj(hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj(hKhjhhubj)}(hhh]h)}(h7unsigned 64bit divide with 32bit divisor with remainderh]h7unsigned 64bit divide with 32bit divisor with remainder}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjIhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1jhhhjhNhNubj)}(hXA**Parameters** ``u64 dividend`` unsigned 64bit dividend ``u32 divisor`` unsigned 32bit divisor ``u32 *remainder`` pointer to unsigned 32bit remainder **Return** sets ``*remainder``, then returns dividend / divisor **Description** This is commonly provided by 32bit archs to provide an optimized 64bit divide.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjhubj )}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hjh]h u64 dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h'``u32 divisor`` unsigned 32bit divisor h](j)}(h``u32 divisor``h]j)}(hjh]h u32 divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj2)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h7``u32 *remainder`` pointer to unsigned 32bit remainder h](j)}(h``u32 *remainder``h]j)}(hjh]hu32 *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjubj2)}(hhh]h)}(h#pointer to unsigned 32bit remainderh]h#pointer to unsigned 32bit remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hjhubh)}(h **Return**h]j)}(hj:h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjhubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjPhhhNhNubj)}(h``*remainder``h]h *remainder}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh!, then returns dividend / divisor}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjhubh)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjhubh)}(hNThis is commonly provided by 32bit archs to provide an optimized 64bit divide.h]hNThis is commonly provided by 32bit archs to provide an optimized 64bit divide.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j div_s64_rem (C function) c.div_s64_remhNtauh1hhjhhhNhNubj)}(hhh](j)}(h;s64 div_s64_rem (s64 dividend, s32 divisor, s32 *remainder)h]j)}(h:s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder)h](h)}(hhh]j)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY div_s64_remsb c.div_s64_remasbuh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK!ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK!ubj{)}(h div_s64_remh]j)}(hjh]h div_s64_rem}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK!ubj)}(h+(s64 dividend, s32 divisor, s32 *remainder)h](j)}(h s64 dividendh](h)}(hhh]j)}(hs64h]hs64}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.div_s64_remasbuh1hhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdividendh]hdividend}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h s32 divisorh](h)}(hhh]j)}(hs32h]hs32}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]j c.div_s64_remasbuh1hhjNubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hs32 *remainderh](h)}(hhh]j)}(hs32h]hs32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.div_s64_remasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h remainderh]h remainder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK!hjhhubj)}(hhh]h)}(h5signed 64bit divide with 32bit divisor with remainderh]h5signed 64bit divide with 32bit divisor with remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK!hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit divisor ``s32 *remainder`` pointer to signed 32bit remainder **Return** sets ``*remainder``, then returns dividend / divisorh](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK%hjubj )}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hjAh]h s64 dividend}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK"hj;ubj2)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhK"hjWubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhK"hj8ubj)}(h%``s32 divisor`` signed 32bit divisor h](j)}(h``s32 divisor``h]j)}(hjzh]h s32 divisor}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK#hjtubj2)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjhK#hj8ubj)}(h5``s32 *remainder`` pointer to signed 32bit remainder h](j)}(h``s32 *remainder``h]j)}(hjh]hs32 *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK$hjubj2)}(hhh]h)}(h!pointer to signed 32bit remainderh]h!pointer to signed 32bit remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK$hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK$hj8ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK&hjubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjhhhNhNubj)}(h``*remainder``h]h *remainder}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh!, then returns dividend / divisor}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK&hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j div64_u64_rem (C function)c.div64_u64_remhNtauh1hhjhhhNhNubj)}(hhh](j)}(h=u64 div64_u64_rem (u64 dividend, u64 divisor, u64 *remainder)h]j)}(hah"]h$]h&]uh1j1hjAhhhjihK/ubj{)}(h div64_u64_remh]j)}(hjfh]h div64_u64_rem}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjAhhhjihK/ubj)}(h+(u64 dividend, u64 divisor, u64 *remainder)h](j)}(h u64 dividendh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jdc.div64_u64_remasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 divisorh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jdc.div64_u64_remasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 *remainderh](h)}(hhh]j)}(hu64h]hu64}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,modnameN classnameNj] j` )}jc ]jdc.div64_u64_remasbuh1hhj#ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(h remainderh]h remainder}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhjihK/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhjihK/ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jhjihK/hj:hhubj)}(hhh]h)}(h6unsigned 64bit divide with 64bit divisor and remainderh]h6unsigned 64bit divide with 64bit divisor and remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK/hjhhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjihK/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``u64 dividend`` unsigned 64bit dividend ``u64 divisor`` unsigned 64bit divisor ``u64 *remainder`` pointer to unsigned 64bit remainder **Return** sets ``*remainder``, then returns dividend / divisorh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK3hjubj )}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hjh]h u64 dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK0hjubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK0hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjubj)}(h'``u64 divisor`` unsigned 64bit divisor h](j)}(h``u64 divisor``h]j)}(hjh]h u64 divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK1hjubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK1hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK1hjubj)}(h7``u64 *remainder`` pointer to unsigned 64bit remainder h](j)}(h``u64 *remainder``h]j)}(hj@h]hu64 *remainder}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK2hj:ubj2)}(hhh]h)}(h#pointer to unsigned 64bit remainderh]h#pointer to unsigned 64bit remainder}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhK2hjVubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhK2hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hj{h]hReturn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK4hjubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjhhhNhNubj)}(h``*remainder``h]h *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh!, then returns dividend / divisor}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j div64_s64_rem (C function)c.div64_s64_remhNtauh1hhjhhhNhNubj)}(hhh](j)}(h=s64 div64_s64_rem (s64 dividend, s64 divisor, s64 *remainder)h]j)}(hah"]h$]h&]uh1j1hjhhhjhK=ubj{)}(h div64_s64_remh]j)}(hjh]h div64_s64_rem}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK=ubj)}(h+(s64 dividend, s64 divisor, s64 *remainder)h](j)}(h s64 dividendh](h)}(hhh]j)}(hs64h]hs64}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj)modnameN classnameNj] j` )}jc ]jc.div64_s64_remasbuh1hhj ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hdividendh]hdividend}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h s64 divisorh](h)}(hhh]j)}(hs64h]hs64}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jc.div64_s64_remasbuh1hhjhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hdivisorh]hdivisor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hs64 *remainderh](h)}(hhh]j)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.div64_s64_remasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h remainderh]h remainder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK=ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK=hjhhubj)}(hhh]h)}(h4signed 64bit divide with 64bit divisor and remainderh]h4signed 64bit divide with 64bit divisor and remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK=hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jhhhjhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s64 divisor`` signed 64bit divisor ``s64 *remainder`` pointer to signed 64bit remainder **Return** sets ``*remainder``, then returns dividend / divisorh](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKAhj6ubj )}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hj[h]h s64 dividend}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK>hjUubj2)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphK>hjqubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjphK>hjRubj)}(h%``s64 divisor`` signed 64bit divisor h](j)}(h``s64 divisor``h]j)}(hjh]h s64 divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK?hjubj2)}(hhh]h)}(hsigned 64bit divisorh]hsigned 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK?hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjRubj)}(h5``s64 *remainder`` pointer to signed 64bit remainder h](j)}(h``s64 *remainder``h]j)}(hjh]hs64 *remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK@hjubj2)}(hhh]h)}(h!pointer to signed 64bit remainderh]h!pointer to signed 64bit remainder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK@hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjRubeh}(h]h ]h"]h$]h&]uh1j hj6ubh)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKBhj6ubh)}(h4sets ``*remainder``, then returns dividend / divisorh](hsets }(hjhhhNhNubj)}(h``*remainder``h]h *remainder}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh!, then returns dividend / divisor}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKBhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j div64_u64 (C function) c.div64_u64hNtauh1hhjhhhNhNubj)}(hhh](j)}(h)u64 div64_u64 (u64 dividend, u64 divisor)h]j)}(h(u64 div64_u64(u64 dividend, u64 divisor)h](h)}(hhh]j)}(hu64h]hu64}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjdmodnameN classnameNj] j` )}jc ]jf )}jY div64_u64sb c.div64_u64asbuh1hhj[hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[hhhjhKKubj{)}(h div64_u64h]j)}(hjh]h div64_u64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[hhhjhKKubj)}(h(u64 dividend, u64 divisor)h](j)}(h u64 dividendh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j~ c.div64_u64asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u64 divisorh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j~ c.div64_u64asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdivisorh]hdivisor}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj[hhhjhKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjhKKubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1jhjhKKhjThhubj)}(hhh]h)}(h(unsigned 64bit divide with 64bit divisorh]h(unsigned 64bit divide with 64bit divisor}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKKhjOhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjhKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``u64 dividend`` unsigned 64bit dividend ``u64 divisor`` unsigned 64bit divisor **Return** dividend / divisorh](h)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKOhjnubj )}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hjh]h u64 dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKLhjubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjubj)}(h'``u64 divisor`` unsigned 64bit divisor h](j)}(h``u64 divisor``h]j)}(hjh]h u64 divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKMhjubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubeh}(h]h ]h"]h$]h&]uh1j hjnubh)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKOhjnubh)}(hdividend / divisorh]hdividend / divisor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKOhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j div64_s64 (C function) c.div64_s64hNtauh1hhjhhhNhNubj)}(hhh](j)}(h)s64 div64_s64 (s64 dividend, s64 divisor)h]j)}(h(s64 div64_s64(s64 dividend, s64 divisor)h](h)}(hhh]j)}(hs64h]hs64}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQmodnameN classnameNj] j` )}jc ]jf )}jY div64_s64sb c.div64_s64asbuh1hhjHhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKWubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHhhhjphKWubj{)}(h div64_s64h]j)}(hjmh]h div64_s64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjphKWubj)}(h(s64 dividend, s64 divisor)h](j)}(h s64 dividendh](h)}(hhh]j)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jk c.div64_s64asbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdividendh]hdividend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h s64 divisorh](h)}(hhh]j)}(hs64h]hs64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jk c.div64_s64asbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdivisorh]hdivisor}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjHhhhjphKWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjphKWubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1jhjphKWhjAhhubj)}(hhh]h)}(h&signed 64bit divide with 64bit divisorh]h&signed 64bit divide with 64bit divisor}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKWhj< hhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjphKWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjW jjW jjjuh1jhhhjhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s64 divisor`` signed 64bit divisor **Return** dividend / divisorh](h)}(h**Parameters**h]j)}(hja h]h Parameters}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK[hj[ ubj )}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hj h]h s64 dividend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKXhjz ubj2)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKXhj ubah}(h]h ]h"]h$]h&]uh1j1hjz ubeh}(h]h ]h"]h$]h&]uh1jhj hKXhjw ubj)}(h%``s64 divisor`` signed 64bit divisor h](j)}(h``s64 divisor``h]j)}(hj h]h s64 divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKYhj ubj2)}(hhh]h)}(hsigned 64bit divisorh]hsigned 64bit divisor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKYhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKYhjw ubeh}(h]h ]h"]h$]h&]uh1j hj[ ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK[hj[ ubh)}(hdividend / divisorh]hdividend / divisor}(hj !hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhK[hj[ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j div_u64 (C function) c.div_u64hNtauh1hhjhhhNhNubj)}(hhh](j)}(h'u64 div_u64 (u64 dividend, u32 divisor)h]j)}(h&u64 div_u64(u64 dividend, u32 divisor)h](h)}(hhh]j)}(hu64h]hu64}(hj!modnameN classnameNj] j` )}jc ]jf )}jY div_u64sb c.div_u64asbuh1hhj5!hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKubj2)}(h h]h }(hj^!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5!hhhj]!hKubj{)}(hdiv_u64h]j)}(hjZ!h]hdiv_u64}(hjp!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl!ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5!hhhj]!hKubj)}(h(u64 dividend, u32 divisor)h](j)}(h u64 dividendh](h)}(hhh]j)}(hu64h]hu64}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj!modnameN classnameNj] j` )}jc ]jX! c.div_u64asbuh1hhj!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hdividendh]hdividend}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(h u32 divisorh](h)}(hhh]j)}(hu32h]hu32}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj!modnameN classnameNj] j` )}jc ]jX! c.div_u64asbuh1hhj!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hdivisorh]hdivisor}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubeh}(h]h ]h"]h$]h&]jjuh1jhj5!hhhj]!hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1!hhhj]!hKubah}(h]j,!ah ](jjeh"]h$]h&]jj)jhuh1jhj]!hKhj.!hhubj)}(hhh]h)}(h(unsigned 64bit divide with 32bit divisorh]h(unsigned 64bit divide with 32bit divisor}(hj,"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj)"hhubah}(h]h ]h"]h$]h&]uh1jhj.!hhhj]!hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjD"jjD"jjjuh1jhhhjhNhNubj)}(hX***Parameters** ``u64 dividend`` unsigned 64bit dividend ``u32 divisor`` unsigned 32bit divisor **Description** This is the most common 64bit divide and should be used if possible, as many 32bit archs can optimize this variant better than a full 64bit divide. **Return** dividend / divisorh](h)}(h**Parameters**h]j)}(hjN"h]h Parameters}(hjP"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL"ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjH"ubj )}(hhh](j)}(h)``u64 dividend`` unsigned 64bit dividend h](j)}(h``u64 dividend``h]j)}(hjm"h]h u64 dividend}(hjo"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk"ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjg"ubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKhj"ubah}(h]h ]h"]h$]h&]uh1j1hjg"ubeh}(h]h ]h"]h$]h&]uh1jhj"hKhjd"ubj)}(h'``u32 divisor`` unsigned 32bit divisor h](j)}(h``u32 divisor``h]j)}(hj"h]h u32 divisor}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj"ubj2)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKhj"ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hKhjd"ubeh}(h]h ]h"]h$]h&]uh1j hjH"ubh)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjH"ubh)}(hThis is the most common 64bit divide and should be used if possible, as many 32bit archs can optimize this variant better than a full 64bit divide.h]hThis is the most common 64bit divide and should be used if possible, as many 32bit archs can optimize this variant better than a full 64bit divide.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjH"ubh)}(h **Return**h]j)}(hj#h]hReturn}(hj #hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjH"ubh)}(hdividend / divisorh]hdividend / divisor}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhjH"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j div_s64 (C function) c.div_s64hNtauh1hhjhhhNhNubj)}(hhh](j)}(h's64 div_s64 (s64 dividend, s32 divisor)h]j)}(h&s64 div_s64(s64 dividend, s32 divisor)h](h)}(hhh]j)}(hs64h]hs64}(hjP#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjR#modnameN classnameNj] j` )}jc ]jf )}jY div_s64sb c.div_s64asbuh1hhjI#hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKubj2)}(h h]h }(hjr#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjI#hhhjq#hKubj{)}(hdiv_s64h]j)}(hjn#h]hdiv_s64}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjI#hhhjq#hKubj)}(h(s64 dividend, s32 divisor)h](j)}(h s64 dividendh](h)}(hhh]j)}(hs64h]hs64}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jl# c.div_s64asbuh1hhj#ubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hdividendh]hdividend}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(h s32 divisorh](h)}(hhh]j)}(hs32h]hs32}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jl# c.div_s64asbuh1hhj#ubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hdivisorh]hdivisor}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhjI#hhhjq#hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjE#hhhjq#hKubah}(h]j@#ah ](jjeh"]h$]h&]jj)jhuh1jhjq#hKhjB#hhubj)}(hhh]h)}(h&signed 64bit divide with 32bit divisorh]h&signed 64bit divide with 32bit divisor}(hj@$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj=$hhubah}(h]h ]h"]h$]h&]uh1jhjB#hhhjq#hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjX$jjX$jjjuh1jhhhjhNhNubj)}(h**Parameters** ``s64 dividend`` signed 64bit dividend ``s32 divisor`` signed 32bit divisor **Return** dividend / divisorh](h)}(h**Parameters**h]j)}(hjb$h]h Parameters}(hjd$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`$ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj\$ubj )}(hhh](j)}(h'``s64 dividend`` signed 64bit dividend h](j)}(h``s64 dividend``h]j)}(hj$h]h s64 dividend}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj{$ubj2)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj$ubah}(h]h ]h"]h$]h&]uh1j1hj{$ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjx$ubj)}(h%``s32 divisor`` signed 32bit divisor h](j)}(h``s32 divisor``h]j)}(hj$h]h s32 divisor}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj$ubj2)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj$ubah}(h]h ]h"]h$]h&]uh1j1hj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjx$ubeh}(h]h ]h"]h$]h&]uh1j hj\$ubh)}(h **Return**h]j)}(hj$h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj\$ubh)}(hdividend / divisorh]hdividend / divisor}(hj %hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhKhj\$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $mul_u64_add_u64_div_u64 (C function)c.mul_u64_add_u64_div_u64hNtauh1hhjhhhNhNubj)}(hhh](j)}(h8u64 mul_u64_add_u64_div_u64 (u64 a, u64 b, u64 c, u64 d)h]j)}(h7u64 mul_u64_add_u64_div_u64(u64 a, u64 b, u64 c, u64 d)h](h)}(hhh]j)}(hu64h]hu64}(hj=%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?%modnameN classnameNj] j` )}jc ]jf )}jY mul_u64_add_u64_div_u64sbc.mul_u64_add_u64_div_u64asbuh1hhj6%hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM;ubj2)}(h h]h }(hj_%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6%hhhj^%hM;ubj{)}(hmul_u64_add_u64_div_u64h]j)}(hj[%h]hmul_u64_add_u64_div_u64}(hjq%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6%hhhj^%hM;ubj)}(h(u64 a, u64 b, u64 c, u64 d)h](j)}(hu64 ah](h)}(hhh]j)}(hu64h]hu64}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj%modnameN classnameNj] j` )}jc ]jY%c.mul_u64_add_u64_div_u64asbuh1hhj%ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hjIh]ha}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hu64 bh](h)}(hhh]j)}(hu64h]hu64}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj%modnameN classnameNj] j` )}jc ]jY%c.mul_u64_add_u64_div_u64asbuh1hhj%ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hjh]hb}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hu64 ch](h)}(hhh]j)}(hu64h]hu64}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj&modnameN classnameNj] j` )}jc ]jY%c.mul_u64_add_u64_div_u64asbuh1hhj&ubj2)}(h h]h }(hj;&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj)}(hjh]hc}(hjI&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hu64 dh](h)}(hhh]j)}(hu64h]hu64}(hjd&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjf&modnameN classnameNj] j` )}jc ]jY%c.mul_u64_add_u64_div_u64asbuh1hhj]&ubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]&ubj)}(hdh]hd}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(h]h ]h"]h$]h&]jjuh1jhj6%hhhj^%hM;ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2%hhhj^%hM;ubah}(h]j-%ah ](jjeh"]h$]h&]jj)jhuh1jhj^%hM;hj/%hhubj)}(hhh]h)}(h(unsigned 64bit multiply, add, and divideh]h(unsigned 64bit multiply, add, and divide}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM;hj&hhubah}(h]h ]h"]h$]h&]uh1jhj/%hhhj^%hM;ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``u64 a`` first unsigned 64bit multiplicand ``u64 b`` second unsigned 64bit multiplicand ``u64 c`` unsigned 64bit addend ``u64 d`` unsigned 64bit divisor **Description** Multiply two 64bit values together to generate a 128bit product add a third value and then divide by a fourth. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow. **Return** (**a** * **b** + **c**) / **d**h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM?hj&ubj )}(hhh](j)}(h,``u64 a`` first unsigned 64bit multiplicand h](j)}(h ``u64 a``h]j)}(hj&h]hu64 a}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM<hj&ubj2)}(hhh]h)}(h!first unsigned 64bit multiplicandh]h!first unsigned 64bit multiplicand}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM<hj'ubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hM<hj&ubj)}(h-``u64 b`` second unsigned 64bit multiplicand h](j)}(h ``u64 b``h]j)}(hj4'h]hu64 b}(hj6'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2'ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM=hj.'ubj2)}(hhh]h)}(h"second unsigned 64bit multiplicandh]h"second unsigned 64bit multiplicand}(hjM'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI'hM=hjJ'ubah}(h]h ]h"]h$]h&]uh1j1hj.'ubeh}(h]h ]h"]h$]h&]uh1jhjI'hM=hj&ubj)}(h ``u64 c`` unsigned 64bit addend h](j)}(h ``u64 c``h]j)}(hjm'h]hu64 c}(hjo'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk'ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM>hjg'ubj2)}(hhh]h)}(hunsigned 64bit addendh]hunsigned 64bit addend}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM>hj'ubah}(h]h ]h"]h$]h&]uh1j1hjg'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM>hj&ubj)}(h!``u64 d`` unsigned 64bit divisor h](j)}(h ``u64 d``h]j)}(hj'h]hu64 d}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM?hj'ubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM?hj'ubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM?hj&ubeh}(h]h ]h"]h$]h&]uh1j hj&ubh)}(h**Description**h]j)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMAhj&ubh)}(hMultiply two 64bit values together to generate a 128bit product add a third value and then divide by a fourth. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.h](hMultiply two 64bit values together to generate a 128bit product add a third value and then divide by a fourth. The Generic code divides by 0 if }(hj'hhhNhNubj)}(h**d**h]hd}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubh] is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM@hj&ubh)}(h **Return**h]j)}(hj(h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMEhj&ubh)}(h(**a** * **b** + **c**) / **d**h](h(}(hj0(hhhNhNubj)}(h**a**h]ha}(hj8(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0(ubh * }(hj0(hhhNhNubj)}(h**b**h]hb}(hjJ(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0(ubh + }(hj0(hhhNhNubj)}(h**c**h]hc}(hj\(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0(ubh) / }(hj0(hhhNhNubj)}(h**d**h]hd}(hjn(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0(ubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMFhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j mul_u64_u64_div_u64 (C macro)c.mul_u64_u64_div_u64hNtauh1hhjhhhNhNubj)}(hhh](j)}(hmul_u64_u64_div_u64h]j)}(hmul_u64_u64_div_u64h]j{)}(hmul_u64_u64_div_u64h]j)}(hj(h]hmul_u64_u64_div_u64}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj(hMKubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhj(hMKhj(hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj(hhhj(hMKubeh}(h]h ](jmacroeh"]h$]h&]jjjj(jj(jjjuh1jhhhjhNhNubh)}(h!``mul_u64_u64_div_u64 (a, b, d)``h]j)}(hj(h]hmul_u64_u64_div_u64 (a, b, d)}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMMhjhhubj)}(h#unsigned 64bit multiply and divide h]h)}(h"unsigned 64bit multiply and divideh]h"unsigned 64bit multiply and divide}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMKhj(ubah}(h]h ]h"]h$]h&]uh1jhj)hMKhjhhubj)}(hX**Parameters** ``a`` first unsigned 64bit multiplicand ``b`` second unsigned 64bit multiplicand ``d`` unsigned 64bit divisor **Description** Multiply two 64bit values together to generate a 128bit product and then divide by a third value. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow. **Return** **a** * **b** / **d**h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj )ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMOhj)ubj )}(hhh](j)}(h(``a`` first unsigned 64bit multiplicand h](j)}(h``a``h]j)}(hj-)h]ha}(hj/)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+)ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMLhj')ubj2)}(hhh]h)}(h!first unsigned 64bit multiplicandh]h!first unsigned 64bit multiplicand}(hjF)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB)hMLhjC)ubah}(h]h ]h"]h$]h&]uh1j1hj')ubeh}(h]h ]h"]h$]h&]uh1jhjB)hMLhj$)ubj)}(h)``b`` second unsigned 64bit multiplicand h](j)}(h``b``h]j)}(hjf)h]hb}(hjh)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd)ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMMhj`)ubj2)}(hhh]h)}(h"second unsigned 64bit multiplicandh]h"second unsigned 64bit multiplicand}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{)hMMhj|)ubah}(h]h ]h"]h$]h&]uh1j1hj`)ubeh}(h]h ]h"]h$]h&]uh1jhj{)hMMhj$)ubj)}(h``d`` unsigned 64bit divisor h](j)}(h``d``h]j)}(hj)h]hd}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMNhj)ubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMNhj)ubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMNhj$)ubeh}(h]h ]h"]h$]h&]uh1j hj)ubh)}(h**Description**h]j)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMPhj)ubh)}(hMultiply two 64bit values together to generate a 128bit product and then divide by a third value. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.h](hMultiply two 64bit values together to generate a 128bit product and then divide by a third value. The Generic code divides by 0 if }(hj)hhhNhNubj)}(h**d**h]hd}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh] is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMOhj)ubh)}(h **Return**h]j)}(hj*h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMThj)ubh)}(h**a** * **b** / **d**h](j)}(h**a**h]ha}(hj-*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)*ubh * }(hj)*hhhNhNubj)}(h**b**h]hb}(hj?*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)*ubh / }(hj)*hhhNhNubj)}(h**d**h]hd}(hjQ*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)*ubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMUhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %mul_u64_u64_div_u64_roundup (C macro)c.mul_u64_u64_div_u64_rounduphNtauh1hhjhhhNhNubj)}(hhh](j)}(hmul_u64_u64_div_u64_rounduph]j)}(hmul_u64_u64_div_u64_rounduph]j{)}(hmul_u64_u64_div_u64_rounduph]j)}(hj*h]hmul_u64_u64_div_u64_roundup}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj*hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMZubah}(h]h ]h"]h$]h&]jjjuh1jjjhj~*hhhj*hMZubah}(h]jy*ah ](jjeh"]h$]h&]jj)jhuh1jhj*hMZhj{*hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{*hhhj*hMZubeh}(h]h ](jmacroeh"]h$]h&]jjjj*jj*jjjuh1jhhhjhNhNubh)}(h)``mul_u64_u64_div_u64_roundup (a, b, d)``h]j)}(hj*h]h%mul_u64_u64_div_u64_roundup (a, b, d)}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM\hjhhubj)}(h.unsigned 64bit multiply and divide rounded up h]h)}(h-unsigned 64bit multiply and divide rounded uph]h-unsigned 64bit multiply and divide rounded up}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMZhj*ubah}(h]h ]h"]h$]h&]uh1jhj*hMZhjhhubj)}(hX**Parameters** ``a`` first unsigned 64bit multiplicand ``b`` second unsigned 64bit multiplicand ``d`` unsigned 64bit divisor **Description** Multiply two 64bit values together to generate a 128bit product and then divide and round up. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow. **Return** (**a** * **b** + **d** - 1) / **d**h](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM^hj*ubj )}(hhh](j)}(h(``a`` first unsigned 64bit multiplicand h](j)}(h``a``h]j)}(hj+h]ha}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM[hj +ubj2)}(hhh]h)}(h!first unsigned 64bit multiplicandh]h!first unsigned 64bit multiplicand}(hj)+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%+hM[hj&+ubah}(h]h ]h"]h$]h&]uh1j1hj +ubeh}(h]h ]h"]h$]h&]uh1jhj%+hM[hj+ubj)}(h)``b`` second unsigned 64bit multiplicand h](j)}(h``b``h]j)}(hjI+h]hb}(hjK+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG+ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM\hjC+ubj2)}(hhh]h)}(h"second unsigned 64bit multiplicandh]h"second unsigned 64bit multiplicand,}(hjb+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^+hM\hj_+ubah}(h]h ]h"]h$]h&]uh1j1hjC+ubeh}(h]h ]h"]h$]h&]uh1jhj^+hM\hj+ubj)}(h``d`` unsigned 64bit divisor h](j)}(h``d``h]j)}(hj+h]hd}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM]hj|+ubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM]hj+ubah}(h]h ]h"]h$]h&]uh1j1hj|+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM]hj+ubeh}(h]h ]h"]h$]h&]uh1j hj*ubh)}(h**Description**h]j)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM_hj*ubh)}(hMultiply two 64bit values together to generate a 128bit product and then divide and round up. The Generic code divides by 0 if **d** is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.h](hMultiply two 64bit values together to generate a 128bit product and then divide and round up. The Generic code divides by 0 if }(hj+hhhNhNubj)}(h**d**h]hd}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh] is zero and returns ~0 on overflow. Architecture specific code may trap on zero or overflow.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM^hj*ubh)}(h **Return**h]j)}(hj+h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMchj*ubh)}(h#(**a** * **b** + **d** - 1) / **d**h](h(}(hj ,hhhNhNubj)}(h**a**h]ha}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ,ubh * }(hj ,hhhNhNubj)}(h**b**h]hb}(hj&,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ,ubh + }(hj ,hhhNhNubj)}(h**d**h]hd}(hj8,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ,ubh - 1) / }(hj ,hhhNhNubj)}(h**d**h]hd}(hjJ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ,ubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMdhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j DIV64_U64_ROUND_UP (C macro)c.DIV64_U64_ROUND_UPhNtauh1hhjhhhNhNubj)}(hhh](j)}(hDIV64_U64_ROUND_UPh]j)}(hDIV64_U64_ROUND_UPh]j{)}(hDIV64_U64_ROUND_UPh]j)}(hjy,h]hDIV64_U64_ROUND_UP}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{,hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMkubah}(h]h ]h"]h$]h&]jjjuh1jjjhjw,hhhj,hMkubah}(h]jr,ah ](jjeh"]h$]h&]jj)jhuh1jhj,hMkhjt,hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjt,hhhj,hMkubeh}(h]h ](jmacroeh"]h$]h&]jjjj,jj,jjjuh1jhhhjhNhNubh)}(h``DIV64_U64_ROUND_UP (ll, d)``h]j)}(hj,h]hDIV64_U64_ROUND_UP (ll, d)}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMmhjhhubj)}(h4unsigned 64bit divide with 64bit divisor rounded up h]h)}(h3unsigned 64bit divide with 64bit divisor rounded uph]h3unsigned 64bit divide with 64bit divisor rounded up}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMkhj,ubah}(h]h ]h"]h$]h&]uh1jhj,hMkhjhhubj)}(h**Parameters** ``ll`` unsigned 64bit dividend ``d`` unsigned 64bit divisor **Description** Divide unsigned 64bit dividend by unsigned 64bit divisor and round up. **Return** dividend / divisor rounded uph](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMohj,ubj )}(hhh](j)}(h``ll`` unsigned 64bit dividend h](j)}(h``ll``h]j)}(hj -h]hll}(hj -hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMlhj-ubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj"-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMlhj-ubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMlhj-ubj)}(h``d`` unsigned 64bit divisor h](j)}(h``d``h]j)}(hjB-h]hd}(hjD-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@-ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMmhj<-ubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj[-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW-hMmhjX-ubah}(h]h ]h"]h$]h&]uh1j1hj<-ubeh}(h]h ]h"]h$]h&]uh1jhjW-hMmhj-ubeh}(h]h ]h"]h$]h&]uh1j hj,ubh)}(h**Description**h]j)}(hj}-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{-ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMohj,ubh)}(hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 64bit divisor and round up.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMnhj,ubh)}(h **Return**h]j)}(hj-h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMqhj,ubh)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMrhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j DIV_U64_ROUND_UP (C macro)c.DIV_U64_ROUND_UPhNtauh1hhjhhhNhNubj)}(hhh](j)}(hDIV_U64_ROUND_UPh]j)}(hDIV_U64_ROUND_UPh]j{)}(hDIV_U64_ROUND_UPh]j)}(hj-h]hDIV_U64_ROUND_UP}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMxubah}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhj.hMxubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jhj.hMxhj-hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj-hhhj.hMxubeh}(h]h ](jmacroeh"]h$]h&]jjjj.jj.jjjuh1jhhhjhNhNubh)}(h``DIV_U64_ROUND_UP (ll, d)``h]j)}(hj.h]hDIV_U64_ROUND_UP (ll, d)}(hj!.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMzhjhhubj)}(h4unsigned 64bit divide with 32bit divisor rounded up h]h)}(h3unsigned 64bit divide with 32bit divisor rounded uph]h3unsigned 64bit divide with 32bit divisor rounded up}(hj9.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMxhj5.ubah}(h]h ]h"]h$]h&]uh1jhjG.hMxhjhhubj)}(h**Parameters** ``ll`` unsigned 64bit dividend ``d`` unsigned 32bit divisor **Description** Divide unsigned 64bit dividend by unsigned 32bit divisor and round up. **Return** dividend / divisor rounded uph](h)}(h**Parameters**h]j)}(hjT.h]h Parameters}(hjV.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR.ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM|hjN.ubj )}(hhh](j)}(h``ll`` unsigned 64bit dividend h](j)}(h``ll``h]j)}(hjs.h]hll}(hju.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq.ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMyhjm.ubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMyhj.ubah}(h]h ]h"]h$]h&]uh1j1hjm.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMyhjj.ubj)}(h``d`` unsigned 32bit divisor h](j)}(h``d``h]j)}(hj.h]hd}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMzhj.ubj2)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMzhj.ubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMzhjj.ubeh}(h]h ]h"]h$]h&]uh1j hjN.ubh)}(h**Description**h]j)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM|hjN.ubh)}(hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.h]hFDivide unsigned 64bit dividend by unsigned 32bit divisor and round up.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM{hjN.ubh)}(h **Return**h]j)}(hj/h]hReturn}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj /ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhM~hjN.ubh)}(hdividend / divisor rounded uph]hdividend / divisor rounded up}(hj$/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjN.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !DIV64_U64_ROUND_CLOSEST (C macro)c.DIV64_U64_ROUND_CLOSESThNtauh1hhjhhhNhNubj)}(hhh](j)}(hDIV64_U64_ROUND_CLOSESTh]j)}(hDIV64_U64_ROUND_CLOSESTh]j{)}(hDIV64_U64_ROUND_CLOSESTh]j)}(hjM/h]hDIV64_U64_ROUND_CLOSEST}(hjW/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjO/hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjK/hhhjj/hMubah}(h]jF/ah ](jjeh"]h$]h&]jj)jhuh1jhjj/hMhjH/hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjH/hhhjj/hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj/jj/jjjuh1jhhhjhNhNubh)}(h/``DIV64_U64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hj/h]h+DIV64_U64_ROUND_CLOSEST (dividend, divisor)}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjhhubj)}(hDunsigned 64bit divide with 64bit divisor rounded to nearest integer h]h)}(hCunsigned 64bit divide with 64bit divisor rounded to nearest integerh]hCunsigned 64bit divide with 64bit divisor rounded to nearest integer}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/hMhjhhubj)}(hX**Parameters** ``dividend`` unsigned 64bit dividend ``divisor`` unsigned 64bit divisor **Description** Divide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer. **Return** dividend / divisor rounded to nearest integerh](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj/ubj )}(hhh](j)}(h%``dividend`` unsigned 64bit dividend h](j)}(h ``dividend``h]j)}(hj/h]hdividend}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj/ubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubj)}(h#``divisor`` unsigned 64bit divisor h](j)}(h ``divisor``h]j)}(hj0h]hdivisor}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj0ubj2)}(hhh]h)}(hunsigned 64bit divisorh]hunsigned 64bit divisor}(hj/0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+0hMhj,0ubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhj+0hMhj/ubeh}(h]h ]h"]h$]h&]uh1j hj/ubh)}(h**Description**h]j)}(hjQ0h]h Description}(hjS0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO0ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj/ubh)}(hVDivide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer.h]hVDivide unsigned 64bit dividend by unsigned 64bit divisor and round to closest integer.}(hjg0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj/ubh)}(h **Return**h]j)}(hjx0h]hReturn}(hjz0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv0ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj/ubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j DIV_U64_ROUND_CLOSEST (C macro)c.DIV_U64_ROUND_CLOSESThNtauh1hhjhhhNhNubj)}(hhh](j)}(hDIV_U64_ROUND_CLOSESTh]j)}(hDIV_U64_ROUND_CLOSESTh]j{)}(hDIV_U64_ROUND_CLOSESTh]j)}(hj0h]hDIV_U64_ROUND_CLOSEST}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhj0hMubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jhj0hMhj0hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj0hhhj0hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj0jj0jjjuh1jhhhjhNhNubh)}(h-``DIV_U64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hj0h]h)DIV_U64_ROUND_CLOSEST (dividend, divisor)}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjhhubj)}(hDunsigned 64bit divide with 32bit divisor rounded to nearest integer h]h)}(hCunsigned 64bit divide with 32bit divisor rounded to nearest integerh]hCunsigned 64bit divide with 32bit divisor rounded to nearest integer}(hj 1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj 1ubah}(h]h ]h"]h$]h&]uh1jhj1hMhjhhubj)}(hX**Parameters** ``dividend`` unsigned 64bit dividend ``divisor`` unsigned 32bit divisor **Description** Divide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer. **Return** dividend / divisor rounded to nearest integerh](h)}(h**Parameters**h]j)}(hj(1h]h Parameters}(hj*1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&1ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj"1ubj )}(hhh](j)}(h%``dividend`` unsigned 64bit dividend h](j)}(h ``dividend``h]j)}(hjG1h]hdividend}(hjI1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE1ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjA1ubj2)}(hhh]h)}(hunsigned 64bit dividendh]hunsigned 64bit dividend}(hj`1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\1hMhj]1ubah}(h]h ]h"]h$]h&]uh1j1hjA1ubeh}(h]h ]h"]h$]h&]uh1jhj\1hMhj>1ubj)}(h#``divisor`` unsigned 32bit divisor h](j)}(h ``divisor``h]j)}(hj1h]hdivisor}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~1ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjz1ubj2)}(hhh]h)}(hunsigned 32bit divisorh]hunsigned 32bit divisor}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1j1hjz1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj>1ubeh}(h]h ]h"]h$]h&]uh1j hj"1ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj"1ubh)}(hVDivide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer.h]hVDivide unsigned 64bit dividend by unsigned 32bit divisor and round to closest integer.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj"1ubh)}(h **Return**h]j)}(hj1h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj"1ubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj"1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j DIV_S64_ROUND_CLOSEST (C macro)c.DIV_S64_ROUND_CLOSESThNtauh1hhjhhhNhNubj)}(hhh](j)}(hDIV_S64_ROUND_CLOSESTh]j)}(hDIV_S64_ROUND_CLOSESTh]j{)}(hDIV_S64_ROUND_CLOSESTh]j)}(hj!2h]hDIV_S64_ROUND_CLOSEST}(hj+2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'2ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#2hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj>2hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jhj>2hMhj2hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj2hhhj>2hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjW2jjW2jjjuh1jhhhjhNhNubh)}(h-``DIV_S64_ROUND_CLOSEST (dividend, divisor)``h]j)}(hj]2h]h)DIV_S64_ROUND_CLOSEST (dividend, divisor)}(hj_2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[2ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjhhubj)}(hBsigned 64bit divide with 32bit divisor rounded to nearest integer h]h)}(hAsigned 64bit divide with 32bit divisor rounded to nearest integerh]hAsigned 64bit divide with 32bit divisor rounded to nearest integer}(hjw2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhjs2ubah}(h]h ]h"]h$]h&]uh1jhj2hMhjhhubj)}(h**Parameters** ``dividend`` signed 64bit dividend ``divisor`` signed 32bit divisor **Description** Divide signed 64bit dividend by signed 32bit divisor and round to closest integer. **Return** dividend / divisor rounded to nearest integerh](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj2ubj )}(hhh](j)}(h#``dividend`` signed 64bit dividend h](j)}(h ``dividend``h]j)}(hj2h]hdividend}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj2ubj2)}(hhh]h)}(hsigned 64bit dividendh]hsigned 64bit dividend}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubj)}(h!``divisor`` signed 32bit divisor h](j)}(h ``divisor``h]j)}(hj2h]hdivisor}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj2ubj2)}(hhh]h)}(hsigned 32bit divisorh]hsigned 32bit divisor}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubeh}(h]h ]h"]h$]h&]uh1j hj2ubh)}(h**Description**h]j)}(hj%3h]h Description}(hj'3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#3ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj2ubh)}(hRDivide signed 64bit dividend by signed 32bit divisor and round to closest integer.h]hRDivide signed 64bit dividend by signed 32bit divisor and round to closest integer.}(hj;3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj2ubh)}(h **Return**h]j)}(hjL3h]hReturn}(hjN3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ3ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj2ubh)}(h-dividend / divisor rounded to nearest integerh]h-dividend / divisor rounded to nearest integer}(hjb3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j roundup_u64 (C function) c.roundup_u64hNtauh1hhjhhhNhNubj)}(hhh](j)}(hu64 roundup_u64 (u64 x, u32 y)h]j)}(hu64 roundup_u64(u64 x, u32 y)h](h)}(hhh]j)}(hu64h]hu64}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]jf )}jY roundup_u64sb c.roundup_u64asbuh1hhj3hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3hhhj3hMubj{)}(h roundup_u64h]j)}(hj3h]h roundup_u64}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhj3hMubj)}(h(u64 x, u32 y)h](j)}(hu64 xh](h)}(hhh]j)}(hu64h]hu64}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]j3 c.roundup_u64asbuh1hhj3ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]hx}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hu32 yh](h)}(hhh]j)}(hu32h]hu32}(hj-4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj/4modnameN classnameNj] j` )}jc ]j3 c.roundup_u64asbuh1hhj&4ubj2)}(h h]h }(hjK4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&4ubj)}(hyh]hy}(hjY4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhj3hMhj3hhubj)}(hhh]h)}(h;Round up a 64bit value to the next specified 32bit multipleh]h;Round up a 64bit value to the next specified 32bit multiple}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``u64 x`` the value to up ``u32 y`` 32bit multiple to round up to **Description** Rounds **x** to the next multiple of **y**. For 32bit **x** values, see roundup and the faster round_up() for powers of 2. **Return** rounded up value.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj4ubj )}(hhh](j)}(h``u64 x`` the value to up h](j)}(h ``u64 x``h]j)}(hj4h]hu64 x}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj4ubj2)}(hhh]h)}(hthe value to uph]hthe value to up}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj4ubj)}(h(``u32 y`` 32bit multiple to round up to h](j)}(h ``u32 y``h]j)}(hj4h]hu32 y}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj4ubj2)}(hhh]h)}(h32bit multiple to round up toh]h32bit multiple to round up to}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj4ubeh}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hj85h]h Description}(hj:5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj65ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj4ubh)}(hzRounds **x** to the next multiple of **y**. For 32bit **x** values, see roundup and the faster round_up() for powers of 2.h](hRounds }(hjN5hhhNhNubj)}(h**x**h]hx}(hjV5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN5ubh to the next multiple of }(hjN5hhhNhNubj)}(h**y**h]hy}(hjh5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN5ubh . For 32bit }(hjN5hhhNhNubj)}(h**x**h]hx}(hjz5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN5ubh? values, see roundup and the faster round_up() for powers of 2.}(hjN5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj4ubh)}(h **Return**h]j)}(hj5h]hReturn}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj4ubh)}(hrounded up value.h]hrounded up value.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:178: ./include/linux/math64.hhMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j gcd (C function)c.gcdhNtauh1hhjhhhNhNubj)}(hhh](j)}(h4unsigned long gcd (unsigned long a, unsigned long b)h]j)}(h3unsigned long gcd(unsigned long a, unsigned long b)h](j )}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhj5hK.ubj )}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5hhhj5hK.ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhj5hK.ubj{)}(hgcdh]j)}(hgcdh]hgcd}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhj5hK.ubj)}(h"(unsigned long a, unsigned long b)h](j)}(hunsigned long ah](j )}(hunsignedh]hunsigned}(hj36hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/6ubj2)}(h h]h }(hjA6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/6ubj )}(hlongh]hlong}(hjO6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/6ubj2)}(h h]h }(hj]6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/6ubj)}(hjIh]ha}(hjk6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+6ubj)}(hunsigned long bh](j )}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj )}(hlongh]hlong}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hjh]hb}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+6ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hK.ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jhj5hK.hj5hhubj)}(hhh]h)}(hDcalculate and return the greatest common divisor of 2 unsigned longsh]hDcalculate and return the greatest common divisor of 2 unsigned longs}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK.hj6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1jhhhjhNhNubj)}(hU**Parameters** ``unsigned long a`` first value ``unsigned long b`` second valueh](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK2hj7ubj )}(hhh](j)}(h ``unsigned long a`` first value h](j)}(h``unsigned long a``h]j)}(hj%7h]hunsigned long a}(hj'7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#7ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK/hj7ubj2)}(hhh]h)}(h first valueh]h first value}(hj>7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:7hK/hj;7ubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhj:7hK/hj7ubj)}(h ``unsigned long b`` second valueh](j)}(h``unsigned long b``h]j)}(hj^7h]hunsigned long b}(hj`7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\7ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK1hjX7ubj2)}(hhh]h)}(h second valueh]h second value}(hjw7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:181: ./lib/math/gcd.chK0hjt7ubah}(h]h ]h"]h$]h&]uh1j1hjX7ubeh}(h]h ]h"]h$]h&]uh1jhjs7hK1hj7ubeh}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]division-functionsah ]h"]division functionsah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h UUID/GUIDh]h UUID/GUID}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !generate_random_uuid (C function)c.generate_random_uuidhNtauh1hhj7hhhNhNubj)}(hhh](j)}(h2void generate_random_uuid (unsigned char uuid[16])h]j)}(h1void generate_random_uuid(unsigned char uuid[16])h](j )}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7hhhj7hKubj{)}(hgenerate_random_uuidh]j)}(hgenerate_random_uuidh]hgenerate_random_uuid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhhj7hKubj)}(h(unsigned char uuid[16])h]j)}(hunsigned char uuid[16]h](j )}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj 8ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj 8ubj )}(hcharh]hchar}(hj*8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj 8ubj2)}(h h]h }(hj88hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj 8ubj)}(huuidh]huuid}(hjF8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubj)}(hj'h]h[}(hjT8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubhdesc_sig_literal_number)}(h16h]h16}(hjc8hhhNhNubah}(h]h ]mah"]h$]h&]uh1ja8hj 8ubj)}(hjVh]h]}(hjr8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubah}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hKubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jhj7hKhj7hhubj)}(hhh]h)}(hgenerate a random UUIDh]hgenerate a random UUID}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1jhhhj7hNhNubj)}(h**Parameters** ``unsigned char uuid[16]`` where to put the generated UUID **Description** Random UUID interface Used to create a Boot ID or a filesystem UUID/GUID, but can be useful for other kernel drivers.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj8ubj )}(hhh]j)}(h;``unsigned char uuid[16]`` where to put the generated UUID h](j)}(h``unsigned char uuid[16]``h]j)}(hj8h]hunsigned char uuid[16]}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj8ubj2)}(hhh]h)}(hwhere to put the generated UUIDh]hwhere to put the generated UUID}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1j hj8ubh)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj8ubh)}(hRandom UUID interfaceh]hRandom UUID interface}(hj-9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj8ubh)}(h_Used to create a Boot ID or a filesystem UUID/GUID, but can be useful for other kernel drivers.h]h_Used to create a Boot ID or a filesystem UUID/GUID, but can be useful for other kernel drivers.}(hj<9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j uuid_is_valid (C function)c.uuid_is_validhNtauh1hhj7hhhNhNubj)}(hhh](j)}(h%bool uuid_is_valid (const char *uuid)h]j)}(h$bool uuid_is_valid(const char *uuid)h](j )}(hj8h]hbool}(hjk9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjg9hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKNubj2)}(h h]h }(hjy9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjg9hhhjx9hKNubj{)}(h uuid_is_validh]j)}(h uuid_is_validh]h uuid_is_valid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjg9hhhjx9hKNubj)}(h(const char *uuid)h]j)}(hconst char *uuidh](j)}(hjh]hconst}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj )}(hcharh]hchar}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(huuidh]huuid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubah}(h]h ]h"]h$]h&]jjuh1jhjg9hhhjx9hKNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjc9hhhjx9hKNubah}(h]j^9ah ](jjeh"]h$]h&]jj)jhuh1jhjx9hKNhj`9hhubj)}(hhh]h)}(h checks if a UUID string is validh]h checks if a UUID string is valid}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKNhj:hhubah}(h]h ]h"]h$]h&]uh1jhj`9hhhjx9hKNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-:jj-:jjjuh1jhhhj7hNhNubj)}(h**Parameters** ``const char *uuid`` UUID string to check **Description** It checks if the UUID string is following the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx where x is a hex digit. **Return** true if input is valid UUID string.h](h)}(h**Parameters**h]j)}(hj7:h]h Parameters}(hj9:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5:ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKRhj1:ubj )}(hhh]j)}(h*``const char *uuid`` UUID string to check h](j)}(h``const char *uuid``h]j)}(hjV:h]hconst char *uuid}(hjX:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT:ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKOhjP:ubj2)}(hhh]h)}(hUUID string to checkh]hUUID string to check}(hjo:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk:hKOhjl:ubah}(h]h ]h"]h$]h&]uh1j1hjP:ubeh}(h]h ]h"]h$]h&]uh1jhjk:hKOhjM:ubah}(h]h ]h"]h$]h&]uh1j hj1:ubh)}(h**Description**h]j)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKQhj1:ubj )}(hhh]j)}(h[It checks if the UUID string is following the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx h](j)}(h5It checks if the UUID string is following the format:h]h5It checks if the UUID string is following the format:}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKRhj:ubj2)}(hhh]h)}(h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxh]h$xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKRhj:ubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKRhj:ubah}(h]h ]h"]h$]h&]uh1j hj1:ubh)}(hwhere x is a hex digit.h]hwhere x is a hex digit.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKThj1:ubh)}(h **Return**h]j)}(hj:h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKVhj1:ubh)}(h#true if input is valid UUID string.h]h#true if input is valid UUID string.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:187: ./lib/uuid.chKWhj1:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubeh}(h] uuid-guidah ]h"] uuid/guidah$]h&]uh1hhjhhhhhKubeh}(h]crc-and-math-functions-in-linuxah ]h"]crc and math functions in linuxah$]h&]uh1hhhhhhhhKzubh)}(hhh](h)}(hKernel IPC facilitiesh]hKernel IPC facilities}(hj0;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-;hhhhhKubh)}(hhh](h)}(h IPC utilitiesh]h IPC utilities}(hjA;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>;hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_init (C function) c.ipc_inithNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hint ipc_init (void)h]j)}(hint ipc_init(void)h](j )}(hinth]hint}(hjh;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjd;hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQubj2)}(h h]h }(hjw;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjd;hhhjv;hKQubj{)}(hipc_inith]j)}(hipc_inith]hipc_init}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjd;hhhjv;hKQubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubah}(h]h ]h"]h$]h&]jjuh1jhjd;hhhjv;hKQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`;hhhjv;hKQubah}(h]j[;ah ](jjeh"]h$]h&]jj)jhuh1jhjv;hKQhj];hhubj)}(hhh]h)}(hinitialise ipc subsystemh]hinitialise ipc subsystem}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKQhj;hhubah}(h]h ]h"]h$]h&]uh1jhj];hhhjv;hKQubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1jhhhj>;hNhNubj)}(hXX**Parameters** ``void`` no arguments **Description** The various sysv ipc resources (semaphores, messages and shared memory) are initialised. A callback routine is registered into the memory hotplug notifier chain: since msgmni scales to lowmem this callback routine will be called upon successful memory add / remove to recompute msmgni.h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhj;ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj<h]hvoid}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj <ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj)<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%<hKhj&<ubah}(h]h ]h"]h$]h&]uh1j1hj <ubeh}(h]h ]h"]h$]h&]uh1jhj%<hKhj<ubah}(h]h ]h"]h$]h&]uh1j hj;ubh)}(h**Description**h]j)}(hjK<h]h Description}(hjM<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI<ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj;ubh)}(hXThe various sysv ipc resources (semaphores, messages and shared memory) are initialised.h]hXThe various sysv ipc resources (semaphores, messages and shared memory) are initialised.}(hja<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKRhj;ubh)}(hA callback routine is registered into the memory hotplug notifier chain: since msgmni scales to lowmem this callback routine will be called upon successful memory add / remove to recompute msmgni.h]hA callback routine is registered into the memory hotplug notifier chain: since msgmni scales to lowmem this callback routine will be called upon successful memory add / remove to recompute msmgni.}(hjp<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKUhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_init_ids (C function)c.ipc_init_idshNtauh1hhj>;hhhNhNubj)}(hhh](j)}(h'void ipc_init_ids (struct ipc_ids *ids)h]j)}(h&void ipc_init_ids(struct ipc_ids *ids)h](j )}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<hhhj<hKmubj{)}(h ipc_init_idsh]j)}(h ipc_init_idsh]h ipc_init_ids}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhhj<hKmubj)}(h(struct ipc_ids *ids)h]j)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj<modnameN classnameNj] j` )}jc ]jf )}jY j<sbc.ipc_init_idsasbuh1hhj<ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hj(=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hidsh]hids}(hj5=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubah}(h]h ]h"]h$]h&]jjuh1jhj<hhhj<hKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj<hhhj<hKmubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jhj<hKmhj<hhubj)}(hhh]h)}(hinitialise ipc identifiersh]hinitialise ipc identifiers}(hj_=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKmhj\=hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj<hKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjw=jjw=jjjuh1jhhhj>;hNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set **Description** Set up the sequence range to use for the ipc identifier range (limited below ipc_mni) then initialise the keys hashtable and ids idr.h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKqhj{=ubj )}(hhh]j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj=h]hstruct ipc_ids *ids}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKnhj=ubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hKnhj=ubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hKnhj=ubah}(h]h ]h"]h$]h&]uh1j hj{=ubh)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKphj{=ubh)}(hSet up the sequence range to use for the ipc identifier range (limited below ipc_mni) then initialise the keys hashtable and ids idr.h]hSet up the sequence range to use for the ipc identifier range (limited below ipc_mni) then initialise the keys hashtable and ids idr.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKohj{=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $ipc_init_proc_interface (C function)c.ipc_init_proc_interfacehNtauh1hhj>;hhhNhNubj)}(hhh](j)}(htvoid ipc_init_proc_interface (const char *path, const char *header, int ids, int (*show)(struct seq_file *, void *))h]j)}(hqvoid ipc_init_proc_interface(const char *path, const char *header, int ids, int (*show)(struct seq_file*, void*))h](j )}(hvoidh]hvoid}(hj >hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKubj2)}(h h]h }(hj/>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>hhhj.>hKubj{)}(hipc_init_proc_interfaceh]j)}(hipc_init_proc_interfaceh]hipc_init_proc_interface}(hjA>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhj.>hKubj)}(hU(const char *path, const char *header, int ids, int (*show)(struct seq_file*, void*))h](j)}(hconst char *pathh](j)}(hjh]hconst}(hj]>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY>ubj2)}(h h]h }(hjj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjY>ubj )}(hcharh]hchar}(hjx>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjY>ubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjY>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY>ubj)}(hpathh]hpath}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU>ubj)}(hconst char *headerh](j)}(hjh]hconst}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubj )}(hcharh]hchar}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>ubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hheaderh]hheader}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU>ubj)}(hint idsh](j )}(hinth]hint}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hj%?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hidsh]hids}(hj3?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU>ubj)}(h$int (*show)(struct seq_file*, void*)h](j )}(hinth]hint}(hjL?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjH?ubj2)}(h h]h }(hjZ?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH?ubj)}(h(h]h(}(hjh?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH?ubj)}(hjh]h*}(hjv?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH?ubj)}(hshowh]hshow}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH?ubj)}(h)h]h)}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH?ubj)}(hjj?h]h(}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH?ubj)}(hj h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH?ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH?ubh)}(hhh]j)}(hseq_fileh]hseq_file}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jf )}jY jC>sbc.ipc_init_proc_interfaceasbuh1hhjH?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH?ubj)}(h,h]h,}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH?ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH?ubj )}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjH?ubj)}(hjh]h*}(hj!@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH?ubj)}(hj?h]h)}(hj.@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU>ubeh}(h]h ]h"]h$]h&]jjuh1jhj>hhhj.>hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj.>hKubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhj.>hKhj>hhubj)}(hhh]h)}(hDcreate a proc interface for sysipc types using a seq_file interface.h]hDcreate a proc interface for sysipc types using a seq_file interface.}(hjW@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjT@hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj.>hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjo@jjo@jjjuh1jhhhj>;hNhNubj)}(h**Parameters** ``const char *path`` Path in procfs ``const char *header`` Banner to be printed at the beginning of the file. ``int ids`` ipc id table to iterate. ``int (*show)(struct seq_file *, void *)`` show routine.h](h)}(h**Parameters**h]j)}(hjy@h]h Parameters}(hj{@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw@ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjs@ubj )}(hhh](j)}(h$``const char *path`` Path in procfs h](j)}(h``const char *path``h]j)}(hj@h]hconst char *path}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj@ubj2)}(hhh]h)}(hPath in procfsh]hPath in procfs}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKhj@ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj@ubj)}(hJ``const char *header`` Banner to be printed at the beginning of the file. h](j)}(h``const char *header``h]j)}(hj@h]hconst char *header}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj@ubj2)}(hhh]h)}(h2Banner to be printed at the beginning of the file.h]h2Banner to be printed at the beginning of the file.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKhj@ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj@ubj)}(h%``int ids`` ipc id table to iterate. h](j)}(h ``int ids``h]j)}(hj Ah]hint ids}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjAubj2)}(hhh]h)}(hipc id table to iterate.h]hipc id table to iterate.}(hj#AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKhj Aubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj@ubj)}(h8``int (*show)(struct seq_file *, void *)`` show routine.h](j)}(h*``int (*show)(struct seq_file *, void *)``h]j)}(hjCAh]h&int (*show)(struct seq_file *, void *)}(hjEAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAAubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhj=Aubj2)}(hhh]h)}(h show routine.h]h show routine.}(hj\AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjYAubah}(h]h ]h"]h$]h&]uh1j1hj=Aubeh}(h]h ]h"]h$]h&]uh1jhjXAhKhj@ubeh}(h]h ]h"]h$]h&]uh1j hjs@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_findkey (C function) c.ipc_findkeyhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hCstruct kern_ipc_perm * ipc_findkey (struct ipc_ids *ids, key_t key)h]j)}(hAstruct kern_ipc_perm *ipc_findkey(struct ipc_ids *ids, key_t key)h](j)}(hj h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAhhhjAhKubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjAmodnameN classnameNj] j` )}jc ]jf )}jY ipc_findkeysb c.ipc_findkeyasbuh1hhjAhhhjAhKubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAhhhjAhKubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjAhKubj{)}(h ipc_findkeyh]j)}(hjAh]h ipc_findkey}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjAhhhjAhKubj)}(h (struct ipc_ids *ids, key_t key)h](j)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hj$BhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hj5BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Bubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7BmodnameN classnameNj] j` )}jc ]jA c.ipc_findkeyasbuh1hhjBubj2)}(h h]h }(hjSBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hjaBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hidsh]hids}(hjnBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(h key_t keyh](h)}(hhh]j)}(hkey_th]hkey_t}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjBmodnameN classnameNj] j` )}jc ]jA c.ipc_findkeyasbuh1hhjBubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hkeyh]hkey}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhjAhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjAhKubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jhjAhKhjAhhubj)}(hhh]h)}(h#find a key in an ipc identifier seth]h#find a key in an ipc identifier set}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjBhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjAhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1jhhhj>;hNhNubj)}(hX**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``key_t key`` key to find **Description** Returns the locked pointer to the ipc structure if found or NULL otherwise. If key is found ipc points to the owning ipc structure Called with writer ipc_ids.rwsem held.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjBubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj!Ch]hstruct ipc_ids *ids}(hj#ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjCubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj:ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ChKhj7Cubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhj6ChKhjCubj)}(h``key_t key`` key to find h](j)}(h ``key_t key``h]j)}(hjZCh]h key_t key}(hj\ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXCubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjTCubj2)}(hhh]h)}(h key to findh]h key to find}(hjsChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoChKhjpCubah}(h]h ]h"]h$]h&]uh1j1hjTCubeh}(h]h ]h"]h$]h&]uh1jhjoChKhjCubeh}(h]h ]h"]h$]h&]uh1j hjBubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjBubh)}(hReturns the locked pointer to the ipc structure if found or NULL otherwise. If key is found ipc points to the owning ipc structureh]hReturns the locked pointer to the ipc structure if found or NULL otherwise. If key is found ipc points to the owning ipc structure}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjBubh)}(h&Called with writer ipc_ids.rwsem held.h]h&Called with writer ipc_ids.rwsem held.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chKhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_addid (C function) c.ipc_addidhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hIint ipc_addid (struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h]j)}(hHint ipc_addid(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h](j )}(hinth]hint}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjChhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjChhhjChMubj{)}(h ipc_addidh]j)}(h ipc_addidh]h ipc_addid}(hj DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjChhhjChMubj)}(h;(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit)h](j)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hj&DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Dubj2)}(h h]h }(hj3DhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"Dubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjDDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjADubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjFDmodnameN classnameNj] j` )}jc ]jf )}jY j Dsb c.ipc_addidasbuh1hhj"Dubj2)}(h h]h }(hjdDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"Dubj)}(hjh]h*}(hjrDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Dubj)}(hidsh]hids}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hstruct kern_ipc_perm *newh](j)}(hj h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDmodnameN classnameNj] j` )}jc ]j`D c.ipc_addidasbuh1hhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hnewh]hnew}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(h int limith](j )}(hinth]hint}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hlimith]hlimit}(hj$EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjChMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1jhjChMhjChhubj)}(hhh]h)}(hadd an ipc identifierh]hadd an ipc identifier}(hjNEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjKEhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfEjjfEjjjuh1jhhhj>;hNhNubj)}(hX4**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *new`` new ipc permission set ``int limit`` limit for the number of used ids **Description** Add an entry 'new' to the ipc ids idr. The permissions object is initialised and the first free entry is set up and the index assigned is returned. The 'new' entry is returned in a locked state on success. On failure the entry is not locked and a negative err-code is returned. The caller must use ipc_rcu_putref() to free the identifier. Called with writer ipc_ids.rwsem held.h](h)}(h**Parameters**h]j)}(hjpEh]h Parameters}(hjrEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnEubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjjEubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjEh]hstruct ipc_ids *ids}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjEubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM hjEubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhjEhM hjEubj)}(h5``struct kern_ipc_perm *new`` new ipc permission set h](j)}(h``struct kern_ipc_perm *new``h]j)}(hjEh]hstruct kern_ipc_perm *new}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjEubj2)}(hhh]h)}(hnew ipc permission seth]hnew ipc permission set}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM hjEubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhjEhM hjEubj)}(h/``int limit`` limit for the number of used ids h](j)}(h ``int limit``h]j)}(hjFh]h int limit}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjEubj2)}(hhh]h)}(h limit for the number of used idsh]h limit for the number of used ids}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjFubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhjFhM hjEubeh}(h]h ]h"]h$]h&]uh1j hjjEubh)}(h**Description**h]j)}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Fubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjjEubh)}(hAdd an entry 'new' to the ipc ids idr. The permissions object is initialised and the first free entry is set up and the index assigned is returned. The 'new' entry is returned in a locked state on success.h]hAdd an entry ‘new’ to the ipc ids idr. The permissions object is initialised and the first free entry is set up and the index assigned is returned. The ‘new’ entry is returned in a locked state on success.}(hjRFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hjjEubh)}(hOn failure the entry is not locked and a negative err-code is returned. The caller must use ipc_rcu_putref() to free the identifier.h]hOn failure the entry is not locked and a negative err-code is returned. The caller must use ipc_rcu_putref() to free the identifier.}(hjaFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjjEubh)}(h&Called with writer ipc_ids.rwsem held.h]h&Called with writer ipc_ids.rwsem held.}(hjpFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipcget_new (C function) c.ipcget_newhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(htint ipcget_new (struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h]j)}(hsint ipcget_new(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j )}(hinth]hint}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMJubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFhhhjFhMJubj{)}(h ipcget_newh]j)}(h ipcget_newh]h ipcget_new}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjFhMJubj)}(he(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j)}(hstruct ipc_namespace *nsh](j)}(hj h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjFmodnameN classnameNj] j` )}jc ]jf )}jY jFsb c.ipcget_newasbuh1hhjFubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hj(GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hnsh]hns}(hj5GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hjNGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJGubj2)}(h h]h }(hj[GhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJGubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjlGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnGmodnameN classnameNj] j` )}jc ]jG c.ipcget_newasbuh1hhjJGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJGubj)}(hidsh]hids}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hj h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGmodnameN classnameNj] j` )}jc ]jG c.ipcget_newasbuh1hhjGubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hj#HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hopsh]hops}(hj0HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct ipc_params *paramsh](j)}(hj h]hstruct}(hjIHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEHubj2)}(h h]h }(hjVHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEHubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjgHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjiHmodnameN classnameNj] j` )}jc ]jG c.ipcget_newasbuh1hhjEHubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEHubj)}(hparamsh]hparams}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjFhMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjFhMJubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjFhMJhjFhhubj)}(hhh]h)}(hcreate a new ipc objecth]hcreate a new ipc object}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMJhjHhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhj>;hNhNubj)}(hXR**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct ipc_ids *ids`` ipc identifier set ``const struct ipc_ops *ops`` the actual creation routine to call ``struct ipc_params *params`` its parameters **Description** This routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is IPC_PRIVATE.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMNhjHubj )}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj Ih]hstruct ipc_namespace *ns}(hj IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Iubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMKhjIubj2)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hj$IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj IhMKhj!Iubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhj IhMKhjIubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjDIh]hstruct ipc_ids *ids}(hjFIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBIubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMLhj>Iubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj]IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYIhMLhjZIubah}(h]h ]h"]h$]h&]uh1j1hj>Iubeh}(h]h ]h"]h$]h&]uh1jhjYIhMLhjIubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hj}Ih]hconst struct ipc_ops *ops}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Iubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMMhjwIubj2)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMMhjIubah}(h]h ]h"]h$]h&]uh1j1hjwIubeh}(h]h ]h"]h$]h&]uh1jhjIhMMhjIubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hjIh]hstruct ipc_params *params}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMNhjIubj2)}(hhh]h)}(hits parametersh]hits parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMNhjIubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMNhjIubeh}(h]h ]h"]h$]h&]uh1j hjHubh)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMPhjHubh)}(h`This routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is IPC_PRIVATE.h]h`This routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is IPC_PRIVATE.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMOhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_check_perms (C function)c.ipc_check_permshNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hint ipc_check_perms (struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, const struct ipc_ops *ops, struct ipc_params *params)h]j)}(hint ipc_check_perms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, const struct ipc_ops *ops, struct ipc_params *params)h](j )}(hinth]hint}(hj6JhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2JhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_ubj2)}(h h]h }(hjEJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2JhhhjDJhM_ubj{)}(hipc_check_permsh]j)}(hipc_check_permsh]hipc_check_perms}(hjWJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSJubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2JhhhjDJhM_ubj)}(hl(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, const struct ipc_ops *ops, struct ipc_params *params)h](j)}(hstruct ipc_namespace *nsh](j)}(hj h]hstruct}(hjsJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoJubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJmodnameN classnameNj] j` )}jc ]jf )}jY jYJsbc.ipc_check_permsasbuh1hhjoJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoJubj)}(hnsh]hns}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkJubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjKmodnameN classnameNj] j` )}jc ]jJc.ipc_check_permsasbuh1hhjJubj2)}(h h]h }(hj!KhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hj/KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hipcph]hipcp}(hjah"]h$]h&]uh1j1hjQKubj)}(hj h]hstruct}(hjpKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQKubj2)}(h h]h }(hj}KhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQKubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjKmodnameN classnameNj] j` )}jc ]jJc.ipc_check_permsasbuh1hhjQKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQKubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQKubj)}(hopsh]hops}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkJubj)}(hstruct ipc_params *paramsh](j)}(hj h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLmodnameN classnameNj] j` )}jc ]jJc.ipc_check_permsasbuh1hhjKubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hj*LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hparamsh]hparams}(hj7LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkJubeh}(h]h ]h"]h$]h&]jjuh1jhj2JhhhjDJhM_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.JhhhjDJhM_ubah}(h]j)Jah ](jjeh"]h$]h&]jj)jhuh1jhjDJhM_hj+Jhhubj)}(hhh]h)}(h0check security and permissions for an ipc objecth]h0check security and permissions for an ipc object}(hjaLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM_hj^Lhhubah}(h]h ]h"]h$]h&]uh1jhj+JhhhjDJhM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyLjjyLjjjuh1jhhhj>;hNhNubj)}(hX**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct kern_ipc_perm *ipcp`` ipc permission set ``const struct ipc_ops *ops`` the actual security routine to call ``struct ipc_params *params`` its parameters **Description** This routine is called by sys_msgget(), sys_semget() and sys_shmget() when the key is not IPC_PRIVATE and that key already exists in the ds IDR. On success, the ipc id is returned. It is called with ipc_ids.rwsem and ipcp->lock held.h](h)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMchj}Lubj )}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjLh]hstruct ipc_namespace *ns}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM`hjLubj2)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM`hjLubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhM`hjLubj)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjLh]hstruct kern_ipc_perm *ipcp}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMahjLubj2)}(hhh]h)}(hipc permission seth]hipc permission set}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMahjLubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMahjLubj)}(hB``const struct ipc_ops *ops`` the actual security routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hjMh]hconst struct ipc_ops *ops}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMbhjMubj2)}(hhh]h)}(h#the actual security routine to callh]h#the actual security routine to call}(hj-MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)MhMbhj*Mubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhj)MhMbhjLubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hjMMh]hstruct ipc_params *params}(hjOMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKMubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMchjGMubj2)}(hhh]h)}(hits parametersh]hits parameters}(hjfMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbMhMchjcMubah}(h]h ]h"]h$]h&]uh1j1hjGMubeh}(h]h ]h"]h$]h&]uh1jhjbMhMchjLubeh}(h]h ]h"]h$]h&]uh1j hj}Lubh)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMehj}Lubh)}(hThis routine is called by sys_msgget(), sys_semget() and sys_shmget() when the key is not IPC_PRIVATE and that key already exists in the ds IDR.h]hThis routine is called by sys_msgget(), sys_semget() and sys_shmget() when the key is not IPC_PRIVATE and that key already exists in the ds IDR.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMdhj}Lubh)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhhj}Lubh)}(h4It is called with ipc_ids.rwsem and ipcp->lock held.h]h4It is called with ipc_ids.rwsem and ipcp->lock held.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhj}Lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipcget_public (C function)c.ipcget_publichNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hwint ipcget_public (struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h]j)}(hvint ipcget_public(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j )}(hinth]hint}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMhhhjMhMubj{)}(h ipcget_publich]j)}(h ipcget_publich]h ipcget_public}(hj NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhhjMhMubj)}(he(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j)}(hstruct ipc_namespace *nsh](j)}(hj h]hstruct}(hj(NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Nubj2)}(h h]h }(hj5NhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$Nubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjFNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHNmodnameN classnameNj] j` )}jc ]jf )}jY jNsbc.ipcget_publicasbuh1hhj$Nubj2)}(h h]h }(hjfNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$Nubj)}(hjh]h*}(hjtNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Nubj)}(hnsh]hns}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Nubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Nubj)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjNmodnameN classnameNj] j` )}jc ]jbNc.ipcget_publicasbuh1hhjNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hidsh]hids}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Nubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hj OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hj h]hstruct}(hj%OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj2OhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hjCOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Oubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEOmodnameN classnameNj] j` )}jc ]jbNc.ipcget_publicasbuh1hhjOubj2)}(h h]h }(hjaOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjoOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hopsh]hops}(hj|OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Nubj)}(hstruct ipc_params *paramsh](j)}(hj h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jbNc.ipcget_publicasbuh1hhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hparamsh]hparams}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Nubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjMhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjMhMhjMhhubj)}(hhh]h)}(h%get an ipc object or create a new oneh]h%get an ipc object or create a new one}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.Pjj.Pjjjuh1jhhhj>;hNhNubj)}(hX**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct ipc_ids *ids`` ipc identifier set ``const struct ipc_ops *ops`` the actual creation routine to call ``struct ipc_params *params`` its parameters **Description** This routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is not IPC_PRIVATE. It adds a new entry if the key is not found and does some permission / security checkings if the key is found. On success, the ipc id is returned.h](h)}(h**Parameters**h]j)}(hj8Ph]h Parameters}(hj:PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Pubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj2Pubj )}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjWPh]hstruct ipc_namespace *ns}(hjYPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUPubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjQPubj2)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjpPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlPhMhjmPubah}(h]h ]h"]h$]h&]uh1j1hjQPubeh}(h]h ]h"]h$]h&]uh1jhjlPhMhjNPubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjPh]hstruct ipc_ids *ids}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjNPubj)}(hB``const struct ipc_ops *ops`` the actual creation routine to call h](j)}(h``const struct ipc_ops *ops``h]j)}(hjPh]hconst struct ipc_ops *ops}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPubj2)}(hhh]h)}(h#the actual creation routine to callh]h#the actual creation routine to call}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjNPubj)}(h-``struct ipc_params *params`` its parameters h](j)}(h``struct ipc_params *params``h]j)}(hjQh]hstruct ipc_params *params}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjPubj2)}(hhh]h)}(hits parametersh]hits parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjNPubeh}(h]h ]h"]h$]h&]uh1j hj2Pubh)}(h**Description**h]j)}(hj=Qh]h Description}(hj?QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Qubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj2Pubh)}(hThis routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is not IPC_PRIVATE. It adds a new entry if the key is not found and does some permission / security checkings if the key is found.h]hThis routine is called by sys_msgget, sys_semget() and sys_shmget() when the key is not IPC_PRIVATE. It adds a new entry if the key is not found and does some permission / security checkings if the key is found.}(hjSQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj2Pubh)}(h#On success, the ipc id is returned.h]h#On success, the ipc id is returned.}(hjbQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj2Pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_kht_remove (C function)c.ipc_kht_removehNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hEvoid ipc_kht_remove (struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h]j)}(hDvoid ipc_kht_remove(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j )}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQhhhjQhMubj{)}(hipc_kht_removeh]j)}(hipc_kht_removeh]hipc_kht_remove}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQhhhjQhMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQmodnameN classnameNj] j` )}jc ]jf )}jY jQsbc.ipc_kht_removeasbuh1hhjQubj2)}(h h]h }(hj RhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hidsh]hids}(hj'RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj h]hstruct}(hj@RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjah"]h$]h&]uh1j1hjah"]h$]h&]uh1j1hj;hNhNubj)}(hX!**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to remove **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjRubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjSh]hstruct ipc_ids *ids}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjRubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjShMhjRubj)}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to remove h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj;Sh]hstruct kern_ipc_perm *ipcp}(hj=ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Subah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj5Subj2)}(hhh]h)}(h/ipc perm structure containing the key to removeh]h/ipc perm structure containing the key to remove}(hjTShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPShMhjQSubah}(h]h ]h"]h$]h&]uh1j1hj5Subeh}(h]h ]h"]h$]h&]uh1jhjPShMhjRubeh}(h]h ]h"]h$]h&]uh1j hjRubh)}(h**Description**h]j)}(hjvSh]h Description}(hjxShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtSubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjRubh)}(hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h]hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_search_maxidx (C function)c.ipc_search_maxidxhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(h6int ipc_search_maxidx (struct ipc_ids *ids, int limit)h]j)}(h5int ipc_search_maxidx(struct ipc_ids *ids, int limit)h](j )}(hinth]hint}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjShhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjShhhjShMubj{)}(hipc_search_maxidxh]j)}(hipc_search_maxidxh]hipc_search_maxidx}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjShhhjShMubj)}(h (struct ipc_ids *ids, int limit)h](j)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTmodnameN classnameNj] j` )}jc ]jf )}jY jSsbc.ipc_search_maxidxasbuh1hhjSubj2)}(h h]h }(hj6ThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hjh]h*}(hjDThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hidsh]hids}(hjQThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(h int limith](j )}(hinth]hint}(hjjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfTubj2)}(h h]h }(hjxThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfTubj)}(hlimith]hlimit}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjShMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjShMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jhjShMhjShhubj)}(hhh]h)}(h%search for the highest assigned indexh]h%search for the highest assigned index}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjShhhjShMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1jhhhj>;hNhNubj)}(hX**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int limit`` known upper limit for highest assigned index **Description** The function determines the highest assigned index in **ids**. It is intended to be called when ids->max_idx needs to be updated. Updating ids->max_idx is necessary when the current highest index ipc object is deleted. If no ipc object is allocated, then -1 is returned. ipc_ids.rwsem needs to be held by the caller.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjTubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjTh]hstruct ipc_ids *ids}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjTubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjUubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjTubj)}(h;``int limit`` known upper limit for highest assigned index h](j)}(h ``int limit``h]j)}(hj*Uh]h int limit}(hj,UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Uubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj$Uubj2)}(hhh]h)}(h,known upper limit for highest assigned indexh]h,known upper limit for highest assigned index}(hjCUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?UhMhj@Uubah}(h]h ]h"]h$]h&]uh1j1hj$Uubeh}(h]h ]h"]h$]h&]uh1jhj?UhMhjTubeh}(h]h ]h"]h$]h&]uh1j hjTubh)}(h**Description**h]j)}(hjeUh]h Description}(hjgUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcUubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjTubh)}(hXThe function determines the highest assigned index in **ids**. It is intended to be called when ids->max_idx needs to be updated. Updating ids->max_idx is necessary when the current highest index ipc object is deleted. If no ipc object is allocated, then -1 is returned.h](h6The function determines the highest assigned index in }(hj{UhhhNhNubj)}(h**ids**h]hids}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Uubh. It is intended to be called when ids->max_idx needs to be updated. Updating ids->max_idx is necessary when the current highest index ipc object is deleted. If no ipc object is allocated, then -1 is returned.}(hj{UhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjTubh)}(h-ipc_ids.rwsem needs to be held by the caller.h]h-ipc_ids.rwsem needs to be held by the caller.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_rmid (C function) c.ipc_rmidhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(h?void ipc_rmid (struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h]j)}(h>void ipc_rmid(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j )}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUhhhjUhMubj{)}(hipc_rmidh]j)}(hipc_rmidh]hipc_rmid}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUhhhjUhMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hj&VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Vubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj(VmodnameN classnameNj] j` )}jc ]jf )}jY jUsb c.ipc_rmidasbuh1hhjVubj2)}(h h]h }(hjFVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]h*}(hjTVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hidsh]hids}(hjaVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj h]hstruct}(hjzVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvVubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvVubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jBV c.ipc_rmidasbuh1hhjvVubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvVubj)}(hipcph]hipcp}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjUhhhjUhMubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1jhjUhMhjUhhubj)}(hhh]h)}(hremove an ipc identifierh]hremove an ipc identifier}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1jhhhj>;hNhNubj)}(hX(**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjWubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Wubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj6Wubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjUWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQWhMhjRWubah}(h]h ]h"]h$]h&]uh1j1hj6Wubeh}(h]h ]h"]h$]h&]uh1jhjQWhMhj3Wubj)}(hV``struct kern_ipc_perm *ipcp`` ipc perm structure containing the identifier to remove h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjuWh]hstruct kern_ipc_perm *ipcp}(hjwWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsWubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjoWubj2)}(hhh]h)}(h6ipc perm structure containing the identifier to removeh]h6ipc perm structure containing the identifier to remove}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1j1hjoWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj3Wubeh}(h]h ]h"]h$]h&]uh1j hjWubh)}(h**Description**h]j)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjWubh)}(hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h]hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  ipc_set_key_private (C function)c.ipc_set_key_privatehNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hJvoid ipc_set_key_private (struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h]j)}(hIvoid ipc_set_key_private(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j )}(hvoidh]hvoid}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWhhhjXhMubj{)}(hipc_set_key_privatePh]j)}(hipc_set_key_privateh]hipc_set_key_private}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhhjXhMubj)}(h1(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)h](j)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hj2XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Xubj2)}(h h]h }(hj?XhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.Xubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjPXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRXmodnameN classnameNj] j` )}jc ]jf )}jY jXsbc.ipc_set_key_privateasbuh1hhj.Xubj2)}(h h]h }(hjpXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.Xubj)}(hjh]h*}(hj~XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Xubj)}(hidsh]hids}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*Xubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]jlXc.ipc_set_key_privateasbuh1hhjXubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hipcph]hipcp}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*Xubeh}(h]h ]h"]h$]h&]jjuh1jhjWhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjXhMubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jhjXhMhjWhhubj)}(hhh]h)}(h0switch the key of an existing ipc to IPC_PRIVATEh]h0switch the key of an existing ipc to IPC_PRIVATE}(hj%YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj"Yhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=Yjj=Yjjjuh1jhhhj>;hNhNubj)}(hX!**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify **Description** ipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h](h)}(h**Parameters**h]j)}(hjGYh]h Parameters}(hjIYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEYubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAYubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjfYh]hstruct ipc_ids *ids}(hjhYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdYubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj`Yubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{YhMhj|Yubah}(h]h ]h"]h$]h&]uh1j1hj`Yubeh}(h]h ]h"]h$]h&]uh1jhj{YhMhj]Yubj)}(hO``struct kern_ipc_perm *ipcp`` ipc perm structure containing the key to modify h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjYh]hstruct kern_ipc_perm *ipcp}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjYubj2)}(hhh]h)}(h/ipc perm structure containing the key to modifyh]h/ipc perm structure containing the key to modify}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjYubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj]Yubeh}(h]h ]h"]h$]h&]uh1j hjAYubh)}(h**Description**h]j)}(hjYh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAYubh)}(hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.h]hipc_ids.rwsem (as a writer) and the spinlock for this ID are held before this function is called, and remain locked on the exit.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipcperms (C function) c.ipcpermshNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hOint ipcperms (struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h]j)}(hNint ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag)h](j )}(hinth]hint}(hjZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hj.ZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZhhhj-ZhMubj{)}(hipcpermsh]j)}(hipcpermsh]hipcperms}(hj@ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjah"]h$]h&]uh1j1hjXZubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjzZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|ZmodnameN classnameNj] j` )}jc ]jf )}jY jBZsb c.ipcpermsasbuh1hhjXZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXZubj)}(hnsh]hns}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTZubj)}(hstruct kern_ipc_perm *ipcph](j)}(hj h]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjZmodnameN classnameNj] j` )}jc ]jZ c.ipcpermsasbuh1hhjZubj2)}(h h]h }(hj [hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hipcph]hipcp}(hj%[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTZubj)}(h short flagh](j )}(hshorth]hshort}(hj>[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:[ubj2)}(h h]h }(hjL[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:[ubj)}(hflagh]hflag}(hjZ[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTZubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhj-ZhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjZhhhj-ZhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1jhj-ZhMhjZhhubj)}(hhh]h)}(hcheck ipc permissionsh]hcheck ipc permissions}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj[hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhj-ZhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1jhhhj>;hNhNubj)}(hXH**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct kern_ipc_perm *ipcp`` ipc permission set ``short flag`` desired permission set **Description** Check user, group, other permissions for access to ipc resources. return 0 if allowed **flag** will most probably be 0 or ``S_...UGO`` from h](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hj[ubj )}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hj[h]hstruct ipc_namespace *ns}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM hj[ubj2)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hM hj[ubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hM hj[ubj)}(h2``struct kern_ipc_perm *ipcp`` ipc permission set h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hj[h]hstruct kern_ipc_perm *ipcp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM!hj[ubj2)}(hhh]h)}(hipc permission seth]hipc permission set}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hM!hj\ubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhj\hM!hj[ubj)}(h&``short flag`` desired permission set h](j)}(h``short flag``h]j)}(hj7\h]h short flag}(hj9\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5\ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM"hj1\ubj2)}(hhh]h)}(hdesired permission seth]hdesired permission set}(hjP\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL\hM"hjM\ubah}(h]h ]h"]h$]h&]uh1j1hj1\ubeh}(h]h ]h"]h$]h&]uh1jhjL\hM"hj[ubeh}(h]h ]h"]h$]h&]uh1j hj[ubh)}(h**Description**h]j)}(hjr\h]h Description}(hjt\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp\ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM$hj[ubh)}(hUCheck user, group, other permissions for access to ipc resources. return 0 if allowedh]hUCheck user, group, other permissions for access to ipc resources. return 0 if allowed}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM#hj[ubh)}(hD**flag** will most probably be 0 or ``S_...UGO`` from h](j)}(h**flag**h]hflag}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh will most probably be 0 or }(hj\hhhNhNubj)}(h ``S_...UGO``h]hS_...UGO}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh from }(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM&hj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !kernel_to_ipc64_perm (C function)c.kernel_to_ipc64_permhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hLvoid kernel_to_ipc64_perm (struct kern_ipc_perm *in, struct ipc64_perm *out)h]j)}(hKvoid kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out)h](j )}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\hhhj\hMDubj{)}(hkernel_to_ipc64_permh]j)}(hkernel_to_ipc64_permh]hkernel_to_ipc64_perm}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\hhhj\hMDubj)}(h2(struct kern_ipc_perm *in, struct ipc64_perm *out)h](j)}(hstruct kern_ipc_perm *inh](j)}(hj h]hstruct}(hj#]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hj0]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjA]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjC]modnameN classnameNj] j` )}jc ]jf )}jY j ]sbc.kernel_to_ipc64_permasbuh1hhj]ubj2)}(h h]h }(hja]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hjh]h*}(hjo]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hinh]hin}(hj|]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hstruct ipc64_perm *outh](j)}(hj h]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubh)}(hhh]j)}(h ipc64_permh]h ipc64_perm}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj]modnameN classnameNj] j` )}jc ]j]]c.kernel_to_ipc64_permasbuh1hhj]ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(houth]hout}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhj\hMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\hhhj\hMDubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jhj\hMDhj\hhubj)}(hhh]h)}(h&convert kernel ipc permissions to userh]h&convert kernel ipc permissions to user}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMDhj^hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.^jj.^jjjuh1jhhhj>;hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *in`` kernel permissions ``struct ipc64_perm *out`` new style ipc permissions **Description** Turn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](h)}(h**Parameters**h]j)}(hj8^h]h Parameters}(hj:^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6^ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhj2^ubj )}(hhh](j)}(h0``struct kern_ipc_perm *in`` kernel permissions h](j)}(h``struct kern_ipc_perm *in``h]j)}(hjW^h]hstruct kern_ipc_perm *in}(hjY^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU^ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMEhjQ^ubj2)}(hhh]h)}(hkernel permissionsh]hkernel permissions}(hjp^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl^hMEhjm^ubah}(h]h ]h"]h$]h&]uh1j1hjQ^ubeh}(h]h ]h"]h$]h&]uh1jhjl^hMEhjN^ubj)}(h5``struct ipc64_perm *out`` new style ipc permissions h](j)}(h``struct ipc64_perm *out``h]j)}(hj^h]hstruct ipc64_perm *out}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMFhj^ubj2)}(hhh]h)}(hnew style ipc permissionsh]hnew style ipc permissions}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMFhj^ubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMFhjN^ubeh}(h]h ]h"]h$]h&]uh1j hj2^ubh)}(h**Description**h]j)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMHhj2^ubh)}(hjTurn the kernel object **in** into a set of permissions descriptions for returning to userspace (**out**).h](hTurn the kernel object }(hj^hhhNhNubj)}(h**in**h]hin}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubhD into a set of permissions descriptions for returning to userspace (}(hj^hhhNhNubj)}(h**out**h]hout}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh).}(hj^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMGhj2^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #ipc64_perm_to_ipc_perm (C function)c.ipc64_perm_to_ipc_permhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hIvoid ipc64_perm_to_ipc_perm (struct ipc64_perm *in, struct ipc_perm *out)h]j)}(hHvoid ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out)h](j )}(hvoidh]hvoid}(hj4_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0_hhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWubj2)}(h h]h }(hjC_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0_hhhjB_hMWubj{)}(hipc64_perm_to_ipc_permh]j)}(hipc64_perm_to_ipc_permh]hipc64_perm_to_ipc_perm}(hjU_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0_hhhjB_hMWubj)}(h-(struct ipc64_perm *in, struct ipc_perm *out)h](j)}(hstruct ipc64_perm *inh](j)}(hj h]hstruct}(hjq_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm_ubj2)}(h h]h }(hj~_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjm_ubh)}(hhh]j)}(h ipc64_permh]h ipc64_perm}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_modnameN classnameNj] j` )}jc ]jf )}jY jW_sbc.ipc64_perm_to_ipc_permasbuh1hhjm_ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjm_ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm_ubj)}(hinh]hin}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhji_ubj)}(hstruct ipc_perm *outh](j)}(hj h]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubh)}(hhh]j)}(hipc_permh]hipc_perm}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj`modnameN classnameNj] j` )}jc ]j_c.ipc64_perm_to_ipc_permasbuh1hhj_ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(hjh]h*}(hj-`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(houth]hout}(hj:`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhji_ubeh}(h]h ]h"]h$]h&]jjuh1jhj0_hhhjB_hMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,_hhhjB_hMWubah}(h]j'_ah ](jjeh"]h$]h&]jj)jhuh1jhjB_hMWhj)_hhubj)}(hhh]h)}(h"convert new ipc permissions to oldh]h"convert new ipc permissions to old}(hjd`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMWhja`hhubah}(h]h ]h"]h$]h&]uh1jhj)_hhhjB_hMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|`jj|`jjjuh1jhhhj>;hNhNubj)}(h**Parameters** ``struct ipc64_perm *in`` new style ipc permissions ``struct ipc_perm *out`` old style ipc permissions **Description** Turn the new style permissions object **in** into a compatibility object and store it into the **out** pointer.h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM[hj`ubj )}(hhh](j)}(h4``struct ipc64_perm *in`` new style ipc permissions h](j)}(h``struct ipc64_perm *in``h]j)}(hj`h]hstruct ipc64_perm *in}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMXhj`ubj2)}(hhh]h)}(hnew style ipc permissionsh]hnew style ipc permissions}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMXhj`ubah}(h]h ]h"]h$]h&]uh1j1hj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMXhj`ubj)}(h3``struct ipc_perm *out`` old style ipc permissions h](j)}(h``struct ipc_perm *out``h]j)}(hj`h]hstruct ipc_perm *out}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMYhj`ubj2)}(hhh]h)}(hold style ipc permissionsh]hold style ipc permissions}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMYhj`ubah}(h]h ]h"]h$]h&]uh1j1hj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMYhj`ubeh}(h]h ]h"]h$]h&]uh1j hj`ubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chM[hj`ubh)}(hoTurn the new style permissions object **in** into a compatibility object and store it into the **out** pointer.h](h&Turn the new style permissions object }(hj/ahhhNhNubj)}(h**in**h]hin}(hj7ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/aubh3 into a compatibility object and store it into the }(hj/ahhhNhNubj)}(h**out**h]hout}(hjIahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/aubh pointer.}(hj/ahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMZhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "ipc_obtain_object_idr (C function)c.ipc_obtain_object_idrhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hJstruct kern_ipc_perm * ipc_obtain_object_idr (struct ipc_ids *ids, int id)h]j)}(hHstruct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id)h](j)}(hj h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ahhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ahhhjahMjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjamodnameN classnameNj] j` )}jc ]jf )}jY ipc_obtain_object_idrsbc.ipc_obtain_object_idrasbuh1hhj~ahhhjahMjubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ahhhjahMjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ahhhjahMjubj{)}(hipc_obtain_object_idrh]j)}(hjah]hipc_obtain_object_idr}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~ahhhjahMjubj)}(h(struct ipc_ids *ids, int id)h](j)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj2)}(h h]h }(hj bhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jac.ipc_obtain_object_idrasbuh1hhjaubj2)}(h h]h }(hj8bhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hjh]h*}(hjFbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hidsh]hids}(hjSbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hint idh](j )}(hinth]hint}(hjlbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhbubj2)}(h h]h }(hjzbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhbubj)}(hidh]hid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhj~ahhhjahMjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzahhhjahMjubah}(h]juaah ](jjeh"]h$]h&]jj)jhuh1jhjahMjhjwahhubj)}(hhh]h)}(hCLook for an id in the ipc ids idr and return associated ipc object.h]hCLook for an id in the ipc ids idr and return associated ipc object.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMjhjbhhubah}(h]h ]h"]h$]h&]uh1jhjwahhhjahMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1jhhhj>;hNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int id`` ipc id to look for **Description** Call inside the RCU critical section. The ipc object is *not* locked on exit.h](h)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMnhjbubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjbh]hstruct ipc_ids *ids}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMlhjbubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hj chhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMlhj cubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhjchMlhjbubj)}(h``int id`` ipc id to look for h](j)}(h ``int id``h]j)}(hj,ch]hint id}(hj.chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*cubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMmhj&cubj2)}(hhh]h)}(hipc id to look forh]hipc id to look for}(hjEchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAchMmhjBcubah}(h]h ]h"]h$]h&]uh1j1hj&cubeh}(h]h ]h"]h$]h&]uh1jhjAchMmhjbubeh}(h]h ]h"]h$]h&]uh1j hjbubh)}(h**Description**h]j)}(hjgch]h Description}(hjichhhNhNubah}(h]h ]h"]h$]h&]uh1jhjecubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMohjbubh)}(hMCall inside the RCU critical section. The ipc object is *not* locked on exit.h](h8Call inside the RCU critical section. The ipc object is }(hj}chhhNhNubjp)}(h*not*h]hnot}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1johj}cubh locked on exit.}(hj}chhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMnhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $ipc_obtain_object_check (C function)c.ipc_obtain_object_checkhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hLstruct kern_ipc_perm * ipc_obtain_object_check (struct ipc_ids *ids, int id)h]j)}(hJstruct kern_ipc_perm *ipc_obtain_object_check(struct ipc_ids *ids, int id)h](j)}(hj h]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjchhhjchMubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjcmodnameN classnameNj] j` )}jc ]jf )}jY ipc_obtain_object_checksbc.ipc_obtain_object_checkasbuh1hhjchhhjchMubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjchhhjchMubj)}(hjh]h*}(hj dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjchMubj{)}(hipc_obtain_object_checkh]j)}(hjch]hipc_obtain_object_check}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjchhhjchMubj)}(h(struct ipc_ids *ids, int id)h](j)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hj8dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4dubj2)}(h h]h }(hjEdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4dubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjVdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSdubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXdmodnameN classnameNj] j` )}jc ]jcc.ipc_obtain_object_checkasbuh1hhj4dubj2)}(h h]h }(hjtdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4dubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4dubj)}(hidsh]hids}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0dubj)}(hint idh](j )}(hinth]hint}(hjdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hidh]hid}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0dubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjchMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjchMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhjchMhjchhubj)}(hhh]h)}(hRSimilar to ipc_obtain_object_idr() but also checks the ipc object sequence number.h]hRSimilar to ipc_obtain_object_idr() but also checks the ipc object sequence number.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1jhhhj>;hNhNubj)}(h**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``int id`` ipc id to look for **Description** Call inside the RCU critical section. The ipc object is *not* locked on exit.h](h)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj eubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hj/eh]hstruct ipc_ids *ids}(hj1ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-eubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj)eubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjHehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDehMhjEeubah}(h]h ]h"]h$]h&]uh1j1hj)eubeh}(h]h ]h"]h$]h&]uh1jhjDehMhj&eubj)}(h``int id`` ipc id to look for h](j)}(h ``int id``h]j)}(hjheh]hint id}(hjjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfeubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjbeubj2)}(hhh]h)}(hipc id to look forh]hipc id to look for}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ehMhj~eubah}(h]h ]h"]h$]h&]uh1j1hjbeubeh}(h]h ]h"]h$]h&]uh1jhj}ehMhj&eubeh}(h]h ]h"]h$]h&]uh1j hj eubh)}(h**Description**h]j)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj eubh)}(hMCall inside the RCU critical section. The ipc object is *not* locked on exit.h](h8Call inside the RCU critical section. The ipc object is }(hjehhhNhNubjp)}(h*not*h]hnot}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1johjeubh locked on exit.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj eubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipcget (C function)c.ipcgethNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hpint ipcget (struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h]j)}(hoint ipcget(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjehhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hj fhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjehhhjfhMubj{)}(hipcgeth]j)}(hipcgeth]hipcget}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjfhMubj)}(he(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params)h](j)}(hstruct ipc_namespace *nsh](j)}(hj h]hstruct}(hj7fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3fubj2)}(h h]h }(hjDfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3fubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hjUfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWfmodnameN classnameNj] j` )}jc ]jf )}jY jfsbc.ipcgetasbuh1hhj3fubj2)}(h h]h }(hjufhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3fubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3fubj)}(hnsh]hns}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/fubj)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jqfc.ipcgetasbuh1hhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hidsh]hids}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/fubj)}(hconst struct ipc_ops *opsh](j)}(hjh]hconst}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hj&ghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hj h]hstruct}(hj4ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjAghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubh)}(hhh]j)}(hipc_opsh]hipc_ops}(hjRghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTgmodnameN classnameNj] j` )}jc ]jqfc.ipcgetasbuh1hhjgubj2)}(h h]h }(hjpghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]h*}(hj~ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hopsh]hops}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/fubj)}(hstruct ipc_params *paramsh](j)}(hj h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubh)}(hhh]j)}(h ipc_paramsh]h ipc_params}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgmodnameN classnameNj] j` )}jc ]jqfc.ipcgetasbuh1hhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hparamsh]hparams}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/fubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjfhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjehhhjfhMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1jhjfhMhjehhubj)}(hhh]h)}(hCommon sys_*get() codeh]hCommon sys_*get() code}(hj%hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj"hhhubah}(h]h ]h"]h$]h&]uh1jhjehhhjfhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=hjj=hjjjuh1jhhhj>;hNhNubj)}(hX**Parameters** ``struct ipc_namespace *ns`` namespace ``struct ipc_ids *ids`` ipc identifier set ``const struct ipc_ops *ops`` operations to be called on ipc object creation, permission checks and further checks ``struct ipc_params *params`` the parameters needed by the previous operations. **Description** Common routine called by sys_msgget(), sys_semget() and sys_shmget().h](h)}(h**Parameters**h]j)}(hjGhh]h Parameters}(hjIhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAhubj )}(hhh](j)}(h'``struct ipc_namespace *ns`` namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjfhh]hstruct ipc_namespace *ns}(hjhhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj`hubj2)}(hhh]h)}(h namespaceh]h namespace}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hhMhj|hubah}(h]h ]h"]h$]h&]uh1j1hj`hubeh}(h]h ]h"]h$]h&]uh1jhj{hhMhj]hubj)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjhh]hstruct ipc_ids *ids}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjhubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjhubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhj]hubj)}(hs``const struct ipc_ops *ops`` operations to be called on ipc object creation, permission checks and further checks h](j)}(h``const struct ipc_ops *ops``h]j)}(hjhh]hconst struct ipc_ops *ops}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjhubj2)}(hhh]h)}(hToperations to be called on ipc object creation, permission checks and further checksh]hToperations to be called on ipc object creation, permission checks and further checks}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjhubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhhMhj]hubj)}(hP``struct ipc_params *params`` the parameters needed by the previous operations. h](j)}(h``struct ipc_params *params``h]j)}(hjih]hstruct ipc_params *params}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj iubj2)}(hhh]h)}(h1the parameters needed by the previous operations.h]h1the parameters needed by the previous operations.}(hj+ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'ihMhj(iubah}(h]h ]h"]h$]h&]uh1j1hj iubeh}(h]h ]h"]h$]h&]uh1jhj'ihMhj]hubeh}(h]h ]h"]h$]h&]uh1j hjAhubh)}(h**Description**h]j)}(hjMih]h Description}(hjOihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKiubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAhubh)}(hECommon routine called by sys_msgget(), sys_semget() and sys_shmget().h]hECommon routine called by sys_msgget(), sys_semget() and sys_shmget().}(hjcihhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjAhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_update_perm (C function)c.ipc_update_permhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hFint ipc_update_perm (struct ipc64_perm *in, struct kern_ipc_perm *out)h]j)}(hEint ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out)h](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjihhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjihhhjihMubj{)}(hipc_update_permh]j)}(hipc_update_permh]hipc_update_perm}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjihhhjihMubj)}(h2(struct ipc64_perm *in, struct kern_ipc_perm *out)h](j)}(hstruct ipc64_perm *inh](j)}(hj h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubh)}(hhh]j)}(h ipc64_permh]h ipc64_perm}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjimodnameN classnameNj] j` )}jc ]jf )}jY jisbc.ipc_update_permasbuh1hhjiubj2)}(h h]h }(hj jhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hinh]hin}(hj(jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubj)}(hstruct kern_ipc_perm *outh](j)}(hj h]hstruct}(hjAjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=jubj2)}(h h]h }(hjNjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=jubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj_jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\jubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjajmodnameN classnameNj] j` )}jc ]j jc.ipc_update_permasbuh1hhj=jubj2)}(h h]h }(hj}jhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=jubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=jubj)}(houth]hout}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubeh}(h]h ]h"]h$]h&]jjuh1jhjihhhjihMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjihMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjihMhjihhubj)}(hhh]h)}(h'update the permissions of an ipc objecth]h'update the permissions of an ipc object}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jhhhj>;hNhNubj)}(h**Parameters** ``struct ipc64_perm *in`` the permission given as input. ``struct kern_ipc_perm *out`` the permission of the ipc to set.h](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjjubj )}(hhh](j)}(h9``struct ipc64_perm *in`` the permission given as input. h](j)}(h``struct ipc64_perm *in``h]j)}(hjkh]hstruct ipc64_perm *in}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjjubj2)}(hhh]h)}(hthe permission given as input.h]hthe permission given as input.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjjubj)}(h?``struct kern_ipc_perm *out`` the permission of the ipc to set.h](j)}(h``struct kern_ipc_perm *out``h]j)}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:kubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj6kubj2)}(hhh]h)}(h!the permission of the ipc to set.h]h!the permission of the ipc to set.}(hjUkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjRkubah}(h]h ]h"]h$]h&]uh1j1hj6kubeh}(h]h ]h"]h$]h&]uh1jhjQkhMhjjubeh}(h]h ]h"]h$]h&]uh1j hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  ipcctl_obtain_check (C function)c.ipcctl_obtain_checkhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hstruct kern_ipc_perm * ipcctl_obtain_check (struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm)h]j)}(hstruct kern_ipc_perm *ipcctl_obtain_check(struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm)h](j)}(hj h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkhhhjkhMubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkmodnameN classnameNj] j` )}jc ]jf )}jY ipcctl_obtain_checksbc.ipcctl_obtain_checkasbuh1hhjkhhhjkhMubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkhhhjkhMubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhjkhMubj{)}(hipcctl_obtain_checkh]j)}(hjkh]hipcctl_obtain_check}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjkhhhjkhMubj)}(hi(struct ipc_namespace *ns, struct ipc_ids *ids, int id, int cmd, struct ipc64_perm *perm, int extra_perm)h](j)}(hstruct ipc_namespace *nsh](j)}(hj h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj lubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj lubh)}(hhh]j)}(h ipc_namespaceh]h ipc_namespace}(hj.lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+lubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0lmodnameN classnameNj] j` )}jc ]jkc.ipcctl_obtain_checkasbuh1hhj lubj2)}(h h]h }(hjLlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj lubj)}(hjh]h*}(hjZlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj lubj)}(hnsh]hns}(hjglhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hstruct ipc_ids *idsh](j)}(hj h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|lubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|lubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]jkc.ipcctl_obtain_checkasbuh1hhj|lubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|lubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|lubj)}(hidsh]hids}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hint idh](j )}(hinth]hint}(hjlhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hidh]hid}(hj mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hint cmdh](j )}(hinth]hint}(hj%mhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!mubj2)}(h h]h }(hj3mhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!mubj)}(hcmdh]hcmd}(hjAmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hstruct ipc64_perm *permh](j)}(hj h]hstruct}(hjZmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVmubj2)}(h h]h }(hjgmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVmubh)}(hhh]j)}(h ipc64_permh]h ipc64_perm}(hjxmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjumubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjzmmodnameN classnameNj] j` )}jc ]jkc.ipcctl_obtain_checkasbuh1hhjVmubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVmubj)}(hpermh]hperm}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hint extra_permh](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(h extra_permh]h extra_perm}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhjkhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjkhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1jhjkhMhjkhhubj)}(hhh]h)}(h,retrieve an ipc object and check permissionsh]h,retrieve an ipc object and check permissions}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj nhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjkhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(njj(njjjuh1jhhhj>;hNhNubj)}(hX**Parameters** ``struct ipc_namespace *ns`` ipc namespace ``struct ipc_ids *ids`` the table of ids where to look for the ipc ``int id`` the id of the ipc to retrieve ``int cmd`` the cmd to check ``struct ipc64_perm *perm`` the permission to set ``int extra_perm`` one extra permission parameter used by msq **Description** This function does some common audit and permissions check for some IPC_XXX cmd and is called from semctl_down, shmctl_down and msgctl_down. It: - retrieves the ipc object with the given id in the given table. - performs some audit and permission check, depending on the given cmd - returns a pointer to the ipc object or otherwise, the corresponding error. Call holding the both the rwsem and the rcu read lock.h](h)}(h**Parameters**h]j)}(hj2nh]h Parameters}(hj4nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0nubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj,nubj )}(hhh](j)}(h+``struct ipc_namespace *ns`` ipc namespace h](j)}(h``struct ipc_namespace *ns``h]j)}(hjQnh]hstruct ipc_namespace *ns}(hjSnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOnubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjKnubj2)}(hhh]h)}(h ipc namespaceh]h ipc namespace}(hjjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfnhMhjgnubah}(h]h ]h"]h$]h&]uh1j1hjKnubeh}(h]h ]h"]h$]h&]uh1jhjfnhMhjHnubj)}(hC``struct ipc_ids *ids`` the table of ids where to look for the ipc h](j)}(h``struct ipc_ids *ids``h]j)}(hjnh]hstruct ipc_ids *ids}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjnubj2)}(hhh]h)}(h*the table of ids where to look for the ipch]h*the table of ids where to look for the ipc}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjHnubj)}(h)``int id`` the id of the ipc to retrieve h](j)}(h ``int id``h]j)}(hjnh]hint id}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjnubj2)}(hhh]h)}(hthe id of the ipc to retrieveh]hthe id of the ipc to retrieve}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjHnubj)}(h``int cmd`` the cmd to check h](j)}(h ``int cmd``h]j)}(hjnh]hint cmd}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjnubj2)}(hhh]h)}(hthe cmd to checkh]hthe cmd to check}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjohMhjHnubj)}(h2``struct ipc64_perm *perm`` the permission to set h](j)}(h``struct ipc64_perm *perm``h]j)}(hj5oh]hstruct ipc64_perm *perm}(hj7ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3oubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj/oubj2)}(hhh]h)}(hthe permission to seth]hthe permission to set}(hjNohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJohMhjKoubah}(h]h ]h"]h$]h&]uh1j1hj/oubeh}(h]h ]h"]h$]h&]uh1jhjJohMhjHnubj)}(h>``int extra_perm`` one extra permission parameter used by msq h](j)}(h``int extra_perm``h]j)}(hjnoh]hint extra_perm}(hjpohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjloubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjhoubj2)}(hhh]h)}(h*one extra permission parameter used by msqh]h*one extra permission parameter used by msq}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1j1hjhoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjHnubeh}(h]h ]h"]h$]h&]uh1j hj,nubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj,nubh)}(hThis function does some common audit and permissions check for some IPC_XXX cmd and is called from semctl_down, shmctl_down and msgctl_down.h]hThis function does some common audit and permissions check for some IPC_XXX cmd and is called from semctl_down, shmctl_down and msgctl_down.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj,nubj )}(hhh]j)}(hIt: - retrieves the ipc object with the given id in the given table. - performs some audit and permission check, depending on the given cmd - returns a pointer to the ipc object or otherwise, the corresponding error. h](j)}(hIt:h]hIt:}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjoubj2)}(hhh]j)}(hhh](j)}(h>retrieves the ipc object with the given id in the given table.h]h)}(hjoh]h>retrieves the ipc object with the given id in the given table.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubj)}(hDperforms some audit and permission check, depending on the given cmdh]h)}(hjph]hDperforms some audit and permission check, depending on the given cmd}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjpubah}(h]h ]h"]h$]h&]uh1jhjoubj)}(hKreturns a pointer to the ipc object or otherwise, the corresponding error. h]h)}(hJreturns a pointer to the ipc object or otherwise, the corresponding error.h]hJreturns a pointer to the ipc object or otherwise, the corresponding error.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjpubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1jhjohMhjoubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhjoubah}(h]h ]h"]h$]h&]uh1j hj,nubh)}(h6Call holding the both the rwsem and the rcu read lock.h]h6Call holding the both the rwsem and the rcu read lock.}(hjKphhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj,nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ipc_parse_version (C function)c.ipc_parse_versionhNtauh1hhj>;hhhNhNubj)}(hhh](j)}(h int ipc_parse_version (int *cmd)h]j)}(hint ipc_parse_version(int *cmd)h](j )}(hinth]hint}(hjzphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvphhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvphhhjphMubj{)}(hipc_parse_versionh]j)}(hipc_parse_versionh]hipc_parse_version}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvphhhjphMubj)}(h (int *cmd)h]j)}(hint *cmdh](j )}(hinth]hint}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hcmdh]hcmd}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubah}(h]h ]h"]h$]h&]jjuh1jhjvphhhjphMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrphhhjphMubah}(h]jmpah ](jjeh"]h$]h&]jj)jhuh1jhjphMhjophhubj)}(hhh]h)}(hipc call versionh]hipc call version}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjqhhubah}(h]h ]h"]h$]h&]uh1jhjophhhjphMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"qjj"qjjjuh1jhhhj>;hNhNubj)}(h**Parameters** ``int *cmd`` pointer to command **Description** Return IPC_64 for new style IPC and IPC_OLD for old style IPC. The **cmd** value is turned from an encoding command and version into just the command code.h](h)}(h**Parameters**h]j)}(hj,qh]h Parameters}(hj.qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*qubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj&qubj )}(hhh]j)}(h ``int *cmd`` pointer to command h](j)}(h ``int *cmd``h]j)}(hjKqh]hint *cmd}(hjMqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIqubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjEqubj2)}(hhh]h)}(hpointer to commandh]hpointer to command}(hjdqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`qhMhjaqubah}(h]h ]h"]h$]h&]uh1j1hjEqubeh}(h]h ]h"]h$]h&]uh1jhj`qhMhjBqubah}(h]h ]h"]h$]h&]uh1j hj&qubh)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj&qubh)}(hReturn IPC_64 for new style IPC and IPC_OLD for old style IPC. The **cmd** value is turned from an encoding command and version into just the command code.h](hCReturn IPC_64 for new style IPC and IPC_OLD for old style IPC. The }(hjqhhhNhNubj)}(h**cmd**h]hcmd}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubhQ value is turned from an encoding command and version into just the command code.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj&qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sysvipc_find_ipc (C function)c.sysvipc_find_ipchNtauh1hhj>;hhhNhNubj)}(hhh](j)}(hJstruct kern_ipc_perm * sysvipc_find_ipc (struct ipc_ids *ids, loff_t *pos)h]j)}(hHstruct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t *pos)h](j)}(hj h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqhhhjqhMubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jf )}jY sysvipc_find_ipcsbc.sysvipc_find_ipcasbuh1hhjqhhhjqhMubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqhhhjqhMubj)}(hjh]h*}(hj+rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhMubj{)}(hsysvipc_find_ipch]j)}(hjrh]hsysvipc_find_ipc}(hjah"]h$]h&]uh1j1hjSrubh)}(hhh]j)}(hipc_idsh]hipc_ids}(hjurhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrrubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjwrmodnameN classnameNj] j` )}jc ]jrc.sysvipc_find_ipcasbuh1hhjSrubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSrubj)}(hidsh]hids}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOrubj)}(h loff_t *posh](h)}(hhh]j)}(hloff_th]hloff_t}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]jrc.sysvipc_find_ipcasbuh1hhjrubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hposh]hpos}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOrubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjqhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjqhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhjqhMhjqhhubj)}(hhh]h)}(h0Find and lock the ipc structure based on seq posh]h0Find and lock the ipc structure based on seq pos}(hj-shhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhj*shhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEsjjEsjjjuh1jhhhj>;hNhNubj)}(hX5**Parameters** ``struct ipc_ids *ids`` ipc identifier set ``loff_t *pos`` expected position **Description** The function finds an ipc structure, based on the sequence file position **pos**. If there is no ipc structure at position **pos**, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and **pos** is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), **pos** is not modified. The function returns the found ipc structure, or NULL at EOF.h](h)}(h**Parameters**h]j)}(hjOsh]h Parameters}(hjQshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMsubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjIsubj )}(hhh](j)}(h+``struct ipc_ids *ids`` ipc identifier set h](j)}(h``struct ipc_ids *ids``h]j)}(hjnsh]hstruct ipc_ids *ids}(hjpshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlsubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjhsubj2)}(hhh]h)}(hipc identifier seth]hipc identifier set}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1j1hjhsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjesubj)}(h"``loff_t *pos`` expected position h](j)}(h``loff_t *pos``h]j)}(hjsh]h loff_t *pos}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjsubj2)}(hhh]h)}(hexpected positionh]hexpected position}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjesubeh}(h]h ]h"]h$]h&]uh1j hjIsubh)}(h**Description**h]j)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjIsubh)}(hXThe function finds an ipc structure, based on the sequence file position **pos**. If there is no ipc structure at position **pos**, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and **pos** is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), **pos** is not modified.h](hIThe function finds an ipc structure, based on the sequence file position }(hjshhhNhNubj)}(h**pos**h]hpos}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh+. If there is no ipc structure at position }(hjshhhNhNubj)}(h**pos**h]hpos}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh, then the successor is selected. If a structure is found, then it is locked (both rcu_read_lock() and ipc_lock_object()) and }(hjshhhNhNubj)}(h**pos**h]hpos}(hj$thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubhb is set to the position needed to locate the found ipc structure. If nothing is found (i.e. EOF), }(hjshhhNhNubj)}(h**pos**h]hpos}(hj6thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh is not modified.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjIsubh)}(h=The function returns the found ipc structure, or NULL at EOF.h]h=The function returns the found ipc structure, or NULL at EOF.}(hjOthhhNhNubah}(h]h ]h"]h$]h&]uh1hhO/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:196: ./ipc/util.chMhjIsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj>;hhhNhNubeh}(h] ipc-utilitiesah ]h"] ipc utilitiesah$]h&]uh1hhj-;hhhhhKubeh}(h]kernel-ipc-facilitiesah ]h"]kernel ipc facilitiesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h FIFO Bufferh]h FIFO Buffer}(hjxthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuthhhhhKubh)}(hhh](h)}(hkfifo interfaceh]hkfifo interface}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j DECLARE_KFIFO_PTR (C macro)c.DECLARE_KFIFO_PTRhNtauh1hhjthhhNhNubj)}(hhh](j)}(hDECLARE_KFIFO_PTRh]j)}(hDECLARE_KFIFO_PTRh]j{)}(hDECLARE_KFIFO_PTRh]j)}(hjth]hDECLARE_KFIFO_PTR}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjthhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKoubah}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjthKoubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjthKohjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjthKoubeh}(h]h ](jmacroeh"]h$]h&]jjjjtjjtjjjuh1jhhhjthNhNubh)}(h"``DECLARE_KFIFO_PTR (fifo, type)``h]j)}(hjth]hDECLARE_KFIFO_PTR (fifo, type)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKqhjthhubj)}(h'macro to declare a fifo pointer object h]h)}(h¯o to declare a fifo pointer objecth]h¯o to declare a fifo pointer object}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKohjtubah}(h]h ]h"]h$]h&]uh1jhjuhKohjthhubj)}(hZ**Parameters** ``fifo`` name of the declared fifo ``type`` type of the fifo elementsh](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKshjuubj )}(hhh](j)}(h#``fifo`` name of the declared fifo h](j)}(h``fifo``h]j)}(hj:uh]hfifo}(hjyh]hNote}(hj@yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjreturns true if the fifo is empty using a spinlock for lockingh]h>returns true if the fifo is empty using a spinlock for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjthhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjÁh]hfifo}(hjŁhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj܁hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj؁hMhjفubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj؁hMhjubj)}(h(``lock`` spinlock to be used for lockingh](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(hspinlock to be used for lockingh]hspinlock to be used for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j -kfifo_is_empty_spinlocked_noirqsave (C macro)%c.kfifo_is_empty_spinlocked_noirqsavehNtauh1hhjthhhNhNubj)}(hhh](j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j{)}(h#kfifo_is_empty_spinlocked_noirqsaveh]j)}(hjPh]h#kfifo_is_empty_spinlocked_noirqsave}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjmhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jhjmhMhjKhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjKhhhjmhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h4``kfifo_is_empty_spinlocked_noirqsave (fifo, lock)``h]j)}(hjh]h0kfifo_is_empty_spinlocked_noirqsave (fifo, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(h[returns true if the fifo is empty using a spinlock for locking, doesn't disable interrupts h]h)}(hZreturns true if the fifo is empty using a spinlock for locking, doesn't disable interruptsh]h\returns true if the fifo is empty using a spinlock for locking, doesn’t disable interrupts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjthhubj)}(he**Parameters** ``fifo`` address of the fifo to be used ``lock`` spinlock to be used for lockingh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjÂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjނubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjڂubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjڂubeh}(h]h ]h"]h$]h&]uh1jhjhMhjׂubj)}(h(``lock`` spinlock to be used for lockingh](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(hspinlock to be used for lockingh]hspinlock to be used for locking}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjׂubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_is_full (C macro)c.kfifo_is_fullhNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_is_fullh]j)}(h kfifo_is_fullh]j{)}(h kfifo_is_fullh]j)}(hjmh]h kfifo_is_full}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h``kfifo_is_full (fifo)``h]j)}(hjh]hkfifo_is_full (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hjthhubj)}(h!returns true if the fifo is full h]h)}(h returns true if the fifo is fullh]h returns true if the fifo is full}(hjÃhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjуhMhjthhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjރh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܃ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM"hj؃ubj )}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM$hjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubah}(h]h ]h"]h$]h&]uh1j hj؃ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_avail (C macro) c.kfifo_availhNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_availh]j)}(h kfifo_availh]j{)}(h kfifo_availh]j)}(hjQh]h kfifo_avail}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjShhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM(ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjnhM(ubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jhjnhM(hjLhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjLhhhjnhM(ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h``kfifo_avail (fifo)``h]j)}(hjh]hkfifo_avail (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM*hjthhubj)}(h2returns the number of unused elements in the fifo h]h)}(h1returns the number of unused elements in the fifoh]h1returns the number of unused elements in the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM(hjubah}(h]h ]h"]h$]h&]uh1jhjhM(hjthhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hj„h]h Parameters}(hjĄhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM,hjubj )}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߄ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM.hjۄubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM)hjubah}(h]h ]h"]h$]h&]uh1j1hjۄubeh}(h]h ]h"]h$]h&]uh1jhjhM.hj؄ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_skip_count (C macro)c.kfifo_skip_counthNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_skip_counth]j)}(hkfifo_skip_counth]j{)}(hkfifo_skip_counth]j)}(hj5h]hkfifo_skip_count}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhjRhM8ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jhjRhM8hj0hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj0hhhjRhM8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjkjjkjjjuh1jhhhjthNhNubh)}(h"``kfifo_skip_count (fifo, count)``h]j)}(hjqh]hkfifo_skip_count (fifo, count)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM:hjthhubj)}(hskip output data h]h)}(hskip output datah]hskip output data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8hjubah}(h]h ]h"]h$]h&]uh1jhjhM8hjthhubj)}(h\**Parameters** ``fifo`` address of the fifo to be used ``count`` count of data to skiph](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM<hjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjŅh]hfifo}(hjDžhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÅubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM9hjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjޅhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڅhM9hjۅubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjڅhM9hjubj)}(h``count`` count of data to skiph](j)}(h ``count``h]j)}(hjh]hcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM;hjubj2)}(hhh]h)}(hcount of data to skiph]hcount of data to skip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM:hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_skip (C macro) c.kfifo_skiphNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_skiph]j)}(h kfifo_skiph]j{)}(h kfifo_skiph]j)}(hjRh]h kfifo_skip}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMGubah}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjohMGubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhjohMGhjMhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjMhhhjohMGubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h``kfifo_skip (fifo)``h]j)}(hjh]hkfifo_skip (fifo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMIhjthhubj)}(hskip output data h]h)}(hskip output datah]hskip output data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMGhjubah}(h]h ]h"]h$]h&]uh1jhjhMGhjthhubj)}(h9**Parameters** ``fifo`` address of the fifo to be usedh](h)}(h**Parameters**h]j)}(hjÆh]h Parameters}(hjņhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMKhjubj )}(hhh]j)}(h'``fifo`` address of the fifo to be usedh](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhj܆ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMHhjubah}(h]h ]h"]h$]h&]uh1j1hj܆ubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjنubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_peek_len (C macro)c.kfifo_peek_lenhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_peek_lenh]j)}(hkfifo_peek_lenh]j{)}(hkfifo_peek_lenh]j)}(hj6h]hkfifo_peek_len}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjShMMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jhjShMMhj1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj1hhhjShMMubeh}(h]h ](jmacroeh"]h$]h&]jjjjljjljjjuh1jhhhjthNhNubh)}(h``kfifo_peek_len (fifo)``h]j)}(hjrh]hkfifo_peek_len (fifo)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjthhubj)}(h&gets the size of the next fifo record h]h)}(h%gets the size of the next fifo recordh]h%gets the size of the next fifo record}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjubah}(h]h ]h"]h$]h&]uh1jhjhMMhjthhubj)}(h**Parameters** ``fifo`` address of the fifo to be used **Description** This function returns the size of the next fifo record in number of bytes.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhjubj )}(hhh]j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjƇh]hfifo}(hjȇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjćubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj߇hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjۇhMNhj܇ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjۇhMNhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjubh)}(hJThis function returns the size of the next fifo record in number of bytes.h]hJThis function returns the size of the next fifo record in number of bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_alloc (C macro) c.kfifo_allochNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_alloch]j)}(h kfifo_alloch]j{)}(h kfifo_alloch]j)}(hj@h]h kfifo_alloc}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM^ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj]hM^ubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1jhj]hM^hj;hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj;hhhj]hM^ubeh}(h]h ](jmacroeh"]h$]h&]jjjjvjjvjjjuh1jhhhjthNhNubh)}(h&``kfifo_alloc (fifo, size, gfp_mask)``h]j)}(hj|h]h"kfifo_alloc (fifo, size, gfp_mask)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM`hjthhubj)}(h(dynamically allocates a new fifo buffer h]h)}(h'dynamically allocates a new fifo bufferh]h'dynamically allocates a new fifo buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM^hjubah}(h]h ]h"]h$]h&]uh1jhjhM^hjthhubj)}(hX**Parameters** ``fifo`` pointer to the fifo ``size`` the number of elements in the fifo, this must be a power of 2 ``gfp_mask`` get_free_pages mask, passed to kmalloc() **Description** This macro dynamically allocates a new fifo buffer. The number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMbhjubj )}(hhh](j)}(h``fifo`` pointer to the fifo h](j)}(h``fifo``h]j)}(hjЈh]hfifo}(hj҈hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΈubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM_hjʈubj2)}(hhh]h)}(hpointer to the fifoh]hpointer to the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM_hjubah}(h]h ]h"]h$]h&]uh1j1hjʈubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjLjubj)}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j)}(h``size``h]j)}(hj h]hsize}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM`hjubj2)}(hhh]h)}(h=the number of elements in the fifo, this must be a power of 2h]h=the number of elements in the fifo, this must be a power of 2}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM`hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjLjubj)}(h6``gfp_mask`` get_free_pages mask, passed to kmalloc() h](j)}(h ``gfp_mask``h]j)}(hjBh]hgfp_mask}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMahj<ubj2)}(hhh]h)}(h(get_free_pages mask, passed to kmalloc()h]h(get_free_pages mask, passed to kmalloc()}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMahjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMahjLjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMchjubh)}(h3This macro dynamically allocates a new fifo buffer.h]h3This macro dynamically allocates a new fifo buffer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMbhjubh)}(hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h]hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMdhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_alloc_node (C macro)c.kfifo_alloc_nodehNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_alloc_nodeh]j)}(hkfifo_alloc_nodeh]j{)}(hkfifo_alloc_nodeh]j)}(hjˉh]hkfifo_alloc_node}(hjՉhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjщubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj͉hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMuubah}(h]h ]h"]h$]h&]jjjuh1jjjhjɉhhhjhMuubah}(h]jĉah ](jjeh"]h$]h&]jj)jhuh1jhjhMuhjƉhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjƉhhhjhMuubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h1``kfifo_alloc_node (fifo, size, gfp_mask, node)``h]j)}(hjh]h-kfifo_alloc_node (fifo, size, gfp_mask, node)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMwhjthhubj)}(h7dynamically allocates a new fifo buffer on a NUMA node h]h)}(h6dynamically allocates a new fifo buffer on a NUMA nodeh]h6dynamically allocates a new fifo buffer on a NUMA node}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMuhjubah}(h]h ]h"]h$]h&]uh1jhj/hMuhjthhubj)}(hX**Parameters** ``fifo`` pointer to the fifo ``size`` the number of elements in the fifo, this must be a power of 2 ``gfp_mask`` get_free_pages mask, passed to kmalloc() ``node`` NUMA node to allocate memory on **Description** This macro dynamically allocates a new fifo buffer with NUMA node awareness. The number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMyhj6ubj )}(hhh](j)}(h``fifo`` pointer to the fifo h](j)}(h``fifo``h]j)}(hj[h]hfifo}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMvhjUubj2)}(hhh]h)}(hpointer to the fifoh]hpointer to the fifo}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMvhjqubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjphMvhjRubj)}(hG``size`` the number of elements in the fifo, this must be a power of 2 h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMwhjubj2)}(hhh]h)}(h=the number of elements in the fifo, this must be a power of 2h]h=the number of elements in the fifo, this must be a power of 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjRubj)}(h6``gfp_mask`` get_free_pages mask, passed to kmalloc() h](j)}(h ``gfp_mask``h]j)}(hj͊h]hgfp_mask}(hjϊhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjˊubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMxhjNJubj2)}(hhh]h)}(h(get_free_pages mask, passed to kmalloc()h]h(get_free_pages mask, passed to kmalloc()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1j1hjNJubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjRubj)}(h)``node`` NUMA node to allocate memory on h](j)}(h``node``h]j)}(hjh]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMyhjubj2)}(hhh]h)}(hNUMA node to allocate memory onh]hNUMA node to allocate memory on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjRubeh}(h]h ]h"]h$]h&]uh1j hj6ubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM{hj6ubh)}(hLThis macro dynamically allocates a new fifo buffer with NUMA node awareness.h]hLThis macro dynamically allocates a new fifo buffer with NUMA node awareness.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMzhj6ubh)}(hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.h]hThe number of elements will be rounded-up to a power of 2. The fifo will be release with kfifo_free(). Return 0 if no error, otherwise an error code.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM|hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_free (C macro) c.kfifo_freehNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_freeh]j)}(h kfifo_freeh]j{)}(h kfifo_freeh]j)}(hjh]h kfifo_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjŋjjŋjjjuh1jhhhjthNhNubh)}(h``kfifo_free (fifo)``h]j)}(hjˋh]hkfifo_free (fifo)}(hj͋hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɋubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(hfrees the fifo h]h)}(hfrees the fifoh]hfrees the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjthhubj)}(h/**Parameters** ``fifo`` the fifo to be freedh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj )}(hhh]j)}(h``fifo`` the fifo to be freedh](j)}(h``fifo``h]j)}(hjh]hfifo}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(hthe fifo to be freedh]hthe fifo to be freed}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj5ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_init (C macro) c.kfifo_inithNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_inith]j)}(h kfifo_inith]j{)}(h kfifo_inith]j)}(hjsh]h kfifo_init}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjuhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjnhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjnhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h#``kfifo_init (fifo, buffer, size)``h]j)}(hjh]hkfifo_init (fifo, buffer, size)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(h.initialize a fifo using a preallocated buffer h]h)}(h-initialize a fifo using a preallocated bufferh]h-initialize a fifo using a preallocated buffer}(hjɌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjŌubah}(h]h ]h"]h$]h&]uh1jhj׌hMhjthhubj)}(hXk**Parameters** ``fifo`` the fifo to assign the buffer ``buffer`` the preallocated buffer to be used ``size`` the size of the internal buffer, this have to be a power of 2 **Description** This macro initializes a fifo using a preallocated buffer. The number of elements will be rounded-up to a power of 2. Return 0 if no error, otherwise an error code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjތubj )}(hhh](j)}(h'``fifo`` the fifo to assign the buffer h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(hthe fifo to assign the bufferh]hthe fifo to assign the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``buffer`` the preallocated buffer to be used h](j)}(h ``buffer``h]j)}(hj<h]hbuffer}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj6ubj2)}(hhh]h)}(h"the preallocated buffer to be usedh]h"the preallocated buffer to be used}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubj)}(hG``size`` the size of the internal buffer, this have to be a power of 2 h](j)}(h``size``h]j)}(hjuh]hsize}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjoubj2)}(hhh]h)}(h=the size of the internal buffer, this have to be a power of 2h]h=the size of the internal buffer, this have to be a power of 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjތubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjތubh)}(h:This macro initializes a fifo using a preallocated buffer.h]h:This macro initializes a fifo using a preallocated buffer.}(hjƍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjތubh)}(hiThe number of elements will be rounded-up to a power of 2. Return 0 if no error, otherwise an error code.h]hiThe number of elements will be rounded-up to a power of 2. Return 0 if no error, otherwise an error code.}(hjՍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjތubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_put (C macro) c.kfifo_puthNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_puth]j)}(h kfifo_puth]j{)}(h kfifo_puth]j)}(hjh]h kfifo_put}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj4jj4jjjuh1jhhhjthNhNubh)}(h``kfifo_put (fifo, val)``h]j)}(hj:h]hkfifo_put (fifo, val)}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(hput data into the fifo h]h)}(hput data into the fifoh]hput data into the fifo}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjPubah}(h]h ]h"]h$]h&]uh1jhjbhMhjthhubj)}(hXj**Parameters** ``fifo`` address of the fifo to be used ``val`` the data to be added **Description** This macro copies the given value into the fifo. It returns 0 if the fifo was full. Otherwise it returns the number processed elements. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjiubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``val`` the data to be added h](j)}(h``val``h]j)}(hjǎh]hval}(hjɎhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŎubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj܎hMhjݎubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj܎hMhjubeh}(h]h ]h"]h$]h&]uh1j hjiubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjiubh)}(hThis macro copies the given value into the fifo. It returns 0 if the fifo was full. Otherwise it returns the number processed elements.h]hThis macro copies the given value into the fifo. It returns 0 if the fifo was full. Otherwise it returns the number processed elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjiubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_get (C macro) c.kfifo_gethNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_geth]j)}(h kfifo_geth]j{)}(h kfifo_geth]j)}(hjPh]h kfifo_get}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjmhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jhjmhMhjKhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjKhhhjmhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h``kfifo_get (fifo, val)``h]j)}(hjh]hkfifo_get (fifo, val)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(hget data from the fifo h]h)}(hget data from the fifoh]hget data from the fifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjthhubj)}(hXn**Parameters** ``fifo`` address of the fifo to be used ``val`` address where to store the data **Description** This macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjÏhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޏubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjڏubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjڏubeh}(h]h ]h"]h$]h&]uh1jhjhMhj׏ubj)}(h(``val`` address where to store the data h](j)}(h``val``h]j)}(hjh]hval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(haddress where to store the datah]haddress where to store the data}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj׏ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(hThis macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.h]hThis macro reads the data from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_peek (C macro) c.kfifo_peekhNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_peekh]j)}(h kfifo_peekh]j{)}(h kfifo_peekh]j)}(hjh]h kfifo_peek}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjؐjjؐjjjuh1jhhhjthNhNubh)}(h``kfifo_peek (fifo, val)``h]j)}(hjސh]hkfifo_peek (fifo, val)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܐubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(h(get data from the fifo without removing h]h)}(h'get data from the fifo without removingh]h'get data from the fifo without removing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjthhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``val`` address where to store the data **Description** This reads the data from the fifo without removing it from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj ubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj2h]hfifo}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj,ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjHubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubj)}(h(``val`` address where to store the data h](j)}(h``val``h]j)}(hjkh]hval}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjeubj2)}(hhh]h)}(haddress where to store the datah]haddress where to store the data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj ubh)}(hThis reads the data from the fifo without removing it from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.h]hThis reads the data from the fifo without removing it from the fifo. It returns 0 if the fifo was empty. Otherwise it returns the number processed elements.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj ubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjˑhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_in (C macro) c.kfifo_inhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_inh]j)}(hkfifo_inh]j{)}(hkfifo_inh]j)}(hjh]hkfifo_in}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj*jj*jjjuh1jhhhjthNhNubh)}(h``kfifo_in (fifo, buf, n)``h]j)}(hj0h]hkfifo_in (fifo, buf, n)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM!hjthhubj)}(hput data into the fifo h]h)}(hput data into the fifoh]hput data into the fifo}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjFubah}(h]h ]h"]h$]h&]uh1jhjXhMhjthhubj)}(hXf**Parameters** ``fifo`` address of the fifo to be used ``buf`` the data to be added ``n`` number of elements to be added **Description** This macro copies the given buffer into the fifo and returns the number of copied elements. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM#hj_ubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hj~ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhM hj{ubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hjh]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM!hjubj2)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hj֒hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjҒhM!hjӒubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjҒhM!hj{ubj)}(h%``n`` number of elements to be added h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM"hjubj2)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM"hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hM"hj{ubeh}(h]h ]h"]h$]h&]uh1j hj_ubh)}(h**Description**h]j)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM$hj_ubh)}(h[This macro copies the given buffer into the fifo and returns the number of copied elements.h]h[This macro copies the given buffer into the fifo and returns the number of copied elements.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM#hj_ubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM&hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_in_spinlocked (C macro)c.kfifo_in_spinlockedhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_in_spinlockedh]j)}(hkfifo_in_spinlockedh]j{)}(hkfifo_in_spinlockedh]j)}(hjh]hkfifo_in_spinlocked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM7ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhM7ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjhM7hjzhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjzhhhjhM7ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h,``kfifo_in_spinlocked (fifo, buf, n, lock)``h]j)}(hjh]h(kfifo_in_spinlocked (fifo, buf, n, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM9hjthhubj)}(h4put data into the fifo using a spinlock for locking h]h)}(h3put data into the fifo using a spinlock for lockingh]h3put data into the fifo using a spinlock for locking}(hjՓhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM7hjѓubah}(h]h ]h"]h$]h&]uh1jhjhM7hjthhubj)}(hX-**Parameters** ``fifo`` address of the fifo to be used ``buf`` the data to be added ``n`` number of elements to be added ``lock`` pointer to the spinlock to use for locking **Description** This macro copies the given values buffer into the fifo and returns the number of copied elements.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM;hjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM8hj ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hM8hj%ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM8hjubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hjHh]hbuf}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM9hjBubj2)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM9hj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM9hjubj)}(h%``n`` number of elements to be added h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM:hj{ubj2)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM;hjubj2)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjӔhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϔhM;hjДubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjϔhM;hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM=hjubh)}(hbThis macro copies the given values buffer into the fifo and returns the number of copied elements.h]hbThis macro copies the given values buffer into the fifo and returns the number of copied elements.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM<hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'kfifo_in_spinlocked_noirqsave (C macro)c.kfifo_in_spinlocked_noirqsavehNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_in_spinlocked_noirqsaveh]j)}(hkfifo_in_spinlocked_noirqsaveh]j{)}(hkfifo_in_spinlocked_noirqsaveh]j)}(hj4h]hkfifo_in_spinlocked_noirqsave}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMKubah}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjQhMKubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jhjQhMKhj/hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj/hhhjQhMKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjjjuh1jhhhjthNhNubh)}(h6``kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)``h]j)}(hjph]h2kfifo_in_spinlocked_noirqsave (fifo, buf, n, lock)}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjthhubj)}(hJput data into fifo using a spinlock for locking, don't disable interrupts h]h)}(hIput data into fifo using a spinlock for locking, don't disable interruptsh]hKput data into fifo using a spinlock for locking, don’t disable interrupts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMKhjubah}(h]h ]h"]h$]h&]uh1jhjhMKhjthhubj)}(hX=**Parameters** ``fifo`` address of the fifo to be used ``buf`` the data to be added ``n`` number of elements to be added ``lock`` pointer to the spinlock to use for locking **Description** This is a variant of kfifo_in_spinlocked() but uses spin_lock/unlock() for locking and doesn't disable interrupts.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjĕh]hfifo}(hjƕhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj•ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjݕhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjٕhMMhjڕubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjٕhMMhjubj)}(h``buf`` the data to be added h](j)}(h``buf``h]j)}(hjh]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhjubj2)}(hhh]h)}(hthe data to be addedh]hthe data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMNhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubj)}(h%``n`` number of elements to be added h](j)}(h``n``h]j)}(hj6h]hn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhj0ubj2)}(hhh]h)}(hnumber of elements to be addedh]hnumber of elements to be added}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMOhjLubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMOhjubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hjoh]hlock}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjiubj2)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMRhjubh)}(hrThis is a variant of kfifo_in_spinlocked() but uses spin_lock/unlock() for locking and doesn't disable interrupts.h]htThis is a variant of kfifo_in_spinlocked() but uses spin_lock/unlock() for locking and doesn’t disable interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_out (C macro) c.kfifo_outhNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_outh]j)}(h kfifo_outh]j{)}(h kfifo_outh]j)}(hjh]h kfifo_out}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMcubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMchjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMcubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h``kfifo_out (fifo, buf, n)``h]j)}(hj%h]hkfifo_out (fifo, buf, n)}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMehjthhubj)}(hget data from the fifo h]h)}(hget data from the fifoh]hget data from the fifo}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMchj;ubah}(h]h ]h"]h$]h&]uh1jhjMhMchjthhubj)}(hXg**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get **Description** This macro gets some data from the fifo and returns the numbers of elements copied. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMghjTubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjyh]hfifo}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMdhjsubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjpubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(hjh]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMehjubj2)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hj˗hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjǗhMehjȗubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjǗhMehjpubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMfhjubj2)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjpubeh}(h]h ]h"]h$]h&]uh1j hjTubh)}(h**Description**h]j)}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhhjTubh)}(hSThis macro gets some data from the fifo and returns the numbers of elements copied.h]hSThis macro gets some data from the fifo and returns the numbers of elements copied.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMghjTubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMjhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_out_spinlocked (C macro)c.kfifo_out_spinlockedhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_out_spinlockedh]j)}(hkfifo_out_spinlockedh]j{)}(hkfifo_out_spinlockedh]j)}(hjth]hkfifo_out_spinlocked}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM}ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjhM}ubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jhjhM}hjohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjohhhjhM}ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h-``kfifo_out_spinlocked (fifo, buf, n, lock)``h]j)}(hjh]h)kfifo_out_spinlocked (fifo, buf, n, lock)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(h4get data from the fifo using a spinlock for locking h]h)}(h3get data from the fifo using a spinlock for lockingh]h3get data from the fifo using a spinlock for locking}(hjʘhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM}hjƘubah}(h]h ]h"]h$]h&]uh1jhjؘhM}hjthhubj)}(hX&**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get ``lock`` pointer to the spinlock to use for locking **Description** This macro gets the data from the fifo and returns the numbers of elements copied.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjߘubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM~hjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM~hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(hj=h]hbuf}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj7ubj2)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hjvh]hn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjpubj2)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hjșhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjęhMhjřubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjęhMhjubeh}(h]h ]h"]h$]h&]uh1j hjߘubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjߘubh)}(hRThis macro gets the data from the fifo and returns the numbers of elements copied.h]hRThis macro gets the data from the fifo and returns the numbers of elements copied.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjߘubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (kfifo_out_spinlocked_noirqsave (C macro) c.kfifo_out_spinlocked_noirqsavehNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hkfifo_out_spinlocked_noirqsaveh]j{)}(hkfifo_out_spinlocked_noirqsaveh]j)}(hj)h]hkfifo_out_spinlocked_noirqsave}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhjFhMubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jhjFhMhj$hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj$hhhjFhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj_jj_jjjuh1jhhhjthNhNubh)}(h7``kfifo_out_spinlocked_noirqsave (fifo, buf, n, lock)``h]j)}(hjeh]h3kfifo_out_spinlocked_noirqsave (fifo, buf, n, lock)}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(hNget data from the fifo using a spinlock for locking, don't disable interrupts h]h)}(hMget data from the fifo using a spinlock for locking, don't disable interruptsh]hOget data from the fifo using a spinlock for locking, don’t disable interrupts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj{ubah}(h]h ]h"]h$]h&]uh1jhjhMhjthhubj)}(hXI**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get ``lock`` pointer to the spinlock to use for locking **Description** This is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn't disable interrupts.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjҚhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjΚhMhjϚubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjΚhMhjubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(hjh]hbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hj+h]hn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj%ubj2)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubj)}(h4``lock`` pointer to the spinlock to use for locking h](j)}(h``lock``h]j)}(hjdh]hlock}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj^ubj2)}(hhh]h)}(h*pointer to the spinlock to use for lockingh]h*pointer to the spinlock to use for locking}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(huThis is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn't disable interrupts.h]hwThis is a variant of kfifo_out_spinlocked() which uses spin_lock/unlock() for locking and doesn’t disable interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_from_user (C macro)c.kfifo_from_userhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_from_userh]j)}(hkfifo_from_userh]j{)}(hkfifo_from_userh]j)}(hjޛh]hkfifo_from_user}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjܛhhhjhMubah}(h]jכah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjٛhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjٛhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h-``kfifo_from_user (fifo, from, len, copied)``h]j)}(hjh]h)kfifo_from_user (fifo, from, len, copied)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(h-puts some data from user space into the fifo h]h)}(h,puts some data from user space into the fifoh]h,puts some data from user space into the fifo}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj0ubah}(h]h ]h"]h$]h&]uh1jhjBhMhjthhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``from`` pointer to the data to be added ``len`` the length of the data to be added ``copied`` pointer to output variable to store the number of copied bytes **Description** This macro copies at most **len** bytes from the **from** into the fifo, depending of the available space and returns -EFAULT/0. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjIubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjnh]hfifo}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjhubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(h)``from`` pointer to the data to be added h](j)}(h``from``h]j)}(hjh]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(hpointer to the data to be addedh]hpointer to the data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(h+``len`` the length of the data to be added h](j)}(h``len``h]j)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޜubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjڜubj2)}(hhh]h)}(h"the length of the data to be addedh]h"the length of the data to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjڜubeh}(h]h ]h"]h$]h&]uh1jhjhMhjeubj)}(hJ``copied`` pointer to output variable to store the number of copied bytes h](j)}(h ``copied``h]j)}(hjh]hcopied}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(h>pointer to output variable to store the number of copied bytesh]h>pointer to output variable to store the number of copied bytes}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjeubeh}(h]h ]h"]h$]h&]uh1j hjIubh)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjIubh)}(hThis macro copies at most **len** bytes from the **from** into the fifo, depending of the available space and returns -EFAULT/0.h](hThis macro copies at most }(hjjhhhNhNubj)}(h**len**h]hlen}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh bytes from the }(hjjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubhG into the fifo, depending of the available space and returns -EFAULT/0.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjIubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_to_user (C macro)c.kfifo_to_userhNtauh1hhjthhhNhNubj)}(hhh](j)}(h kfifo_to_userh]j)}(h kfifo_to_userh]j{)}(h kfifo_to_userh]j)}(hjƝh]h kfifo_to_user}(hjНhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̝ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjȝhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjĝhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h)``kfifo_to_user (fifo, to, len, copied)``h]j)}(hjh]h%kfifo_to_user (fifo, to, len, copied)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(h*copies data from the fifo into user space h]h)}(h)copies data from the fifo into user spaceh]h)copies data from the fifo into user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj*hMhjthhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``to`` where the data must be copied ``len`` the size of the destination buffer ``copied`` pointer to output variable to store the number of copied bytes **Description** This macro copies at most **len** bytes from the fifo into the **to** buffer and returns -EFAULT/0. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj1ubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjVh]hfifo}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjPubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjMubj)}(h%``to`` where the data must be copied h](j)}(h``to``h]j)}(hjh]hto}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(hwhere the data must be copiedh]hwhere the data must be copied}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjMubj)}(h+``len`` the size of the destination buffer h](j)}(h``len``h]j)}(hjȞh]hlen}(hjʞhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƞubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjžubj2)}(hhh]h)}(h"the size of the destination bufferh]h"the size of the destination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjݞhMhjޞubah}(h]h ]h"]h$]h&]uh1j1hjžubeh}(h]h ]h"]h$]h&]uh1jhjݞhMhjMubj)}(hJ``copied`` pointer to output variable to store the number of copied bytes h](j)}(h ``copied``h]j)}(hjh]hcopied}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(h>pointer to output variable to store the number of copied bytesh]h>pointer to output variable to store the number of copied bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjMubeh}(h]h ]h"]h$]h&]uh1j hj1ubh)}(h**Description**h]j)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj1ubh)}(hcThis macro copies at most **len** bytes from the fifo into the **to** buffer and returns -EFAULT/0.h](hThis macro copies at most }(hjRhhhNhNubj)}(h**len**h]hlen}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh bytes from the fifo into the }(hjRhhhNhNubj)}(h**to**h]hto}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh buffer and returns -EFAULT/0.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj1ubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %kfifo_dma_in_prepare_mapped (C macro)c.kfifo_dma_in_prepare_mappedhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_dma_in_prepare_mappedh]j)}(hkfifo_dma_in_prepare_mappedh]j{)}(hkfifo_dma_in_prepare_mappedh]j)}(hjh]hkfifo_dma_in_prepare_mapped}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj˟hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj˟hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj˟hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h<``kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hjh]h8kfifo_dma_in_prepare_mapped (fifo, sgl, nents, len, dma)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(h"setup a scatterlist for DMA input h]h)}(h!setup a scatterlist for DMA inputh]h!setup a scatterlist for DMA input}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjthhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``sgl`` pointer to the scatterlist array ``nents`` number of entries in the scatterlist array ``len`` number of elements to transfer ``dma`` mapped dma address to fill into **sgl** **Description** This macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj>h]hfifo}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj8ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj5ubj)}(h)``sgl`` pointer to the scatterlist array h](j)}(h``sgl``h]j)}(hjwh]hsgl}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjqubj2)}(hhh]h)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhj5ubj)}(h5``nents`` number of entries in the scatterlist array h](j)}(h ``nents``h]j)}(hjh]hnents}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(h*number of entries in the scatterlist arrayh]h*number of entries in the scatterlist array}(hjɠhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŠhMhjƠubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjŠhMhj5ubj)}(h'``len`` number of elements to transfer h](j)}(h``len``h]j)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(hnumber of elements to transferh]hnumber of elements to transfer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj5ubj)}(h0``dma`` mapped dma address to fill into **sgl** h](j)}(h``dma``h]j)}(hj"h]hdma}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(h'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hj;hhhNhNubj)}(h**sgl**h]hsgl}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj5ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(heThis macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array.h]heThis macro fills a scatterlist for DMA input. It returns the number entries in the scatterlist array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(hvNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h]hxNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macros.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_dma_in_finish (C macro)c.kfifo_dma_in_finishhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_dma_in_finishh]j)}(hkfifo_dma_in_finishh]j{)}(hkfifo_dma_in_finishh]j)}(hjh]hkfifo_dma_in_finish}(hjáhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj֡hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj֡hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj֡hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h#``kfifo_dma_in_finish (fifo, len)``h]j)}(hjh]hkfifo_dma_in_finish (fifo, len)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(hfinish a DMA IN operation h]h)}(hfinish a DMA IN operationh]hfinish a DMA IN operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhjhMhjthhubj)}(hXg**Parameters** ``fifo`` address of the fifo to be used ``len`` number of bytes to received **Description** This macro finishes a DMA IN operation. The in counter will be updated by the len parameter. No error checking will be done. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj$ubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjIh]hfifo}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjCubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj@ubj)}(h$``len`` number of bytes to received h](j)}(h``len``h]j)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj|ubj2)}(hhh]h)}(hnumber of bytes to receivedh]hnumber of bytes to received}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj@ubeh}(h]h ]h"]h$]h&]uh1j hj$ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj$ubh)}(h|This macro finishes a DMA IN operation. The in counter will be updated by the len parameter. No error checking will be done.h]h|This macro finishes a DMA IN operation. The in counter will be updated by the len parameter. No error checking will be done.}(hjӢhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj$ubh)}(hvNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h]hxNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macros.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &kfifo_dma_out_prepare_mapped (C macro)c.kfifo_dma_out_prepare_mappedhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_dma_out_prepare_mappedh]j)}(hkfifo_dma_out_prepare_mappedh]j{)}(hkfifo_dma_out_prepare_mappedh]j)}(hj h]hkfifo_dma_out_prepare_mapped}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj(hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj(hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj(hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjAjjAjjjuh1jhhhjthNhNubh)}(h=``kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)``h]j)}(hjGh]h9kfifo_dma_out_prepare_mapped (fifo, sgl, nents, len, dma)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(h#setup a scatterlist for DMA output h]h)}(h"setup a scatterlist for DMA outputh]h"setup a scatterlist for DMA output}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj]ubah}(h]h ]h"]h$]h&]uh1jhjohMhjthhubj)}(hX_**Parameters** ``fifo`` address of the fifo to be used ``sgl`` pointer to the scatterlist array ``nents`` number of entries in the scatterlist array ``len`` number of elements to transfer ``dma`` mapped dma address to fill into **sgl** **Description** This macro fills a scatterlist for DMA output which at most **len** bytes to transfer. It returns the number entries in the scatterlist array. A zero means there is no space available and the scatterlist is not filled. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjvubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``sgl`` pointer to the scatterlist array h](j)}(h``sgl``h]j)}(hjԣh]hsgl}(hj֣hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjңubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjΣubj2)}(hhh]h)}(h pointer to the scatterlist arrayh]h pointer to the scatterlist array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjΣubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``nents`` number of entries in the scatterlist array h](j)}(h ``nents``h]j)}(hj h]hnents}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(h*number of entries in the scatterlist arrayh]h*number of entries in the scatterlist array}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubj)}(h'``len`` number of elements to transfer h](j)}(h``len``h]j)}(hjFh]hlen}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj@ubj2)}(hhh]h)}(hnumber of elements to transferh]hnumber of elements to transfer}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjubj)}(h0``dma`` mapped dma address to fill into **sgl** h](j)}(h``dma``h]j)}(hjh]hdma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM hjyubj2)}(hhh]h)}(h'mapped dma address to fill into **sgl**h](h mapped dma address to fill into }(hjhhhNhNubj)}(h**sgl**h]hsgl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1j hjvubh)}(h**Description**h]j)}(hjȤh]h Description}(hjʤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƤubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM"hjvubh)}(hThis macro fills a scatterlist for DMA output which at most **len** bytes to transfer. It returns the number entries in the scatterlist array. A zero means there is no space available and the scatterlist is not filled.h](hhjthhubj)}(hfinish a DMA OUT operation h]h)}(hfinish a DMA OUT operationh]hfinish a DMA OUT operation}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM<hjzubah}(h]h ]h"]h$]h&]uh1jhjhM<hjthhubj)}(hXi**Parameters** ``fifo`` address of the fifo to be used ``len`` number of bytes transferred **Description** This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM@hjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM=hjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjѥhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjͥhM=hjΥubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjͥhM=hjubj)}(h$``len`` number of bytes transferred h](j)}(h``len``h]j)}(hjh]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM>hjubj2)}(hhh]h)}(hnumber of bytes transferredh]hnumber of bytes transferred}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM>hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM>hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM@hjubh)}(h~This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done.h]h~This macro finishes a DMA OUT operation. The out counter will be updated by the len parameter. No error checking will be done.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhM?hjubh)}(hvNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macros.h]hxNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macros.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMBhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_out_peek (C macro)c.kfifo_out_peekhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_out_peekh]j)}(hkfifo_out_peekh]j{)}(hkfifo_out_peekh]j)}(hjzh]hkfifo_out_peek}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMLubah}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjhMLubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1jhjhMLhjuhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjuhhhjhMLubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h!``kfifo_out_peek (fifo, buf, n)``h]j)}(hjh]hkfifo_out_peek (fifo, buf, n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhjthhubj)}(hgets some data from the fifo h]h)}(hgets some data from the fifoh]hgets some data from the fifo}(hjЦhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMLhj̦ubah}(h]h ]h"]h$]h&]uh1jhjަhMLhjthhubj)}(hX**Parameters** ``fifo`` address of the fifo to be used ``buf`` pointer to the storage buffer ``n`` max. number of elements to get **Description** This macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo. Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hj h]hfifo}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMMhjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubj)}(h&``buf`` pointer to the storage buffer h](j)}(h``buf``h]j)}(hjCh]hbuf}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMNhj=ubj2)}(hhh]h)}(hpointer to the storage bufferh]hpointer to the storage buffer}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMNhjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMNhjubj)}(h%``n`` max. number of elements to get h](j)}(h``n``h]j)}(hj|h]hn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMOhjvubj2)}(hhh]h)}(hmax. number of elements to geth]hmax. number of elements to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMQhjubh)}(hyThis macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo.h]hyThis macro gets the data from the fifo and returns the numbers of elements copied. The data is not removed from the fifo.}(hjͧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMPhjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjܧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMShjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_out_linear (C macro)c.kfifo_out_linearhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_out_linearh]j)}(hkfifo_out_linearh]j{)}(hkfifo_out_linearh]j)}(hjh]hkfifo_out_linear}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMfubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj"hMfubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj"hMfhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj"hMfubeh}(h]h ](jmacroeh"]h$]h&]jjjj;jj;jjjuh1jhhhjthNhNubh)}(h$``kfifo_out_linear (fifo, tail, n)``h]j)}(hjAh]h kfifo_out_linear (fifo, tail, n)}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhhjthhubj)}(h(gets a tail of/offset to available data h]h)}(h'gets a tail of/offset to available datah]h'gets a tail of/offset to available data}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMfhjWubah}(h]h ]h"]h$]h&]uh1jhjihMfhjthhubj)}(hXw**Parameters** ``fifo`` address of the fifo to be used ``tail`` pointer to an unsigned int to store the value of tail ``n`` max. number of elements to point at **Description** This macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (**fifo->data** + **tail**) with count returned). Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMjhjpubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjh]hfifo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMghjubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubj)}(h?``tail`` pointer to an unsigned int to store the value of tail h](j)}(h``tail``h]j)}(hjΨh]htail}(hjШhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̨ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhhjȨubj2)}(hhh]h)}(h5pointer to an unsigned int to store the value of tailh]h5pointer to an unsigned int to store the value of tail}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1j1hjȨubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubj)}(h*``n`` max. number of elements to point at h](j)}(h``n``h]j)}(hjh]hn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMihjubj2)}(hhh]h)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubeh}(h]h ]h"]h$]h&]uh1j hjpubh)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMkhjpubh)}(hXEThis macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (**fifo->data** + **tail**) with count returned).h](hXThis macro obtains the offset (tail) to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of (}(hjXhhhNhNubj)}(h**fifo->data**h]h fifo->data}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh + }(hjXhhhNhNubj)}(h**tail**h]htail}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh) with count returned).}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMjhjpubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMqhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfifo_out_linear_ptr (C macro)c.kfifo_out_linear_ptrhNtauh1hhjthhhNhNubj)}(hhh](j)}(hkfifo_out_linear_ptrh]j)}(hkfifo_out_linear_ptrh]j{)}(hkfifo_out_linear_ptrh]j)}(hjh]hkfifo_out_linear_ptr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjѩhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjѩhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjѩhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjthNhNubh)}(h'``kfifo_out_linear_ptr (fifo, ptr, n)``h]j)}(hjh]h#kfifo_out_linear_ptr (fifo, ptr, n)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjthhubj)}(h%gets a pointer to the available data h]h)}(h$gets a pointer to the available datah]h$gets a pointer to the available data}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjthhubj)}(hX~**Parameters** ``fifo`` address of the fifo to be used ``ptr`` pointer to data to store the pointer to tail ``n`` max. number of elements to point at **Description** Similarly to kfifo_out_linear(), this macro obtains the pointer to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of available data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of **ptr** with count returned). Note that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj )}(hhh](j)}(h(``fifo`` address of the fifo to be used h](j)}(h``fifo``h]j)}(hjDh]hfifo}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhj>ubj2)}(hhh]h)}(haddress of the fifo to be usedh]haddress of the fifo to be used}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;ubj)}(h5``ptr`` pointer to data to store the pointer to tail h](j)}(h``ptr``h]j)}(hj}h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjwubj2)}(hhh]h)}(h,pointer to data to store the pointer to tailh]h,pointer to data to store the pointer to tail}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhj;ubj)}(h*``n`` max. number of elements to point at h](j)}(h``n``h]j)}(hjh]hn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubj2)}(hhh]h)}(h#max. number of elements to point ath]h#max. number of elements to point at}(hjϪhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˪hMhj̪ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj˪hMhj;ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(hXVSimilarly to kfifo_out_linear(), this macro obtains the pointer to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of available data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of **ptr** with count returned).h](hX9Similarly to kfifo_out_linear(), this macro obtains the pointer to the available data in the fifo buffer and returns the numbers of elements available. It returns the available count till the end of available data or till the end of the buffer. So that it can be used for linear data processing (like memcpy() of }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh with count returned).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubh)}(huNote that with only one concurrent reader and one concurrent writer, you don't need extra locking to use these macro.h]hwNote that with only one concurrent reader and one concurrent writer, you don’t need extra locking to use these macro.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:205: ./include/linux/kfifo.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjthhhNhNubeh}(h]kfifo-interfaceah ]h"]kfifo interfaceah$]h&]uh1hhjuthhhhhKubeh}(h] fifo-bufferah ]h"] fifo bufferah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hrelay interface supporth]hrelay interface support}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhhhhhKubh)}(hRelay interface support is designed to provide an efficient mechanism for tools and facilities to relay large amounts of data from kernel space to user space.h]hRelay interface support is designed to provide an efficient mechanism for tools and facilities to relay large amounts of data from kernel space to user space.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjNhhubh)}(hhh](h)}(hrelay interfaceh]hrelay interface}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_buf_full (C function)c.relay_buf_fullhNtauh1hhjmhhhNhNubj)}(hhh](j)}(h*int relay_buf_full (struct rchan_buf *buf)h]j)}(h)int relay_buf_full(struct rchan_buf *buf)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hrelay_buf_fullh]j)}(hrelay_buf_fullh]hrelay_buf_full}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hjԫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЫubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjЫubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_buf_fullasbuh1hhjЫubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjЫubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЫubj)}(hbufh]hbuf}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЫubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj̫ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h$boolean, is the channel buffer full?h]h$boolean, is the channel buffer full?}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` channel buffer **Description** Returns 1 if the buffer is full, 0 otherwise.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjsubj )}(hhh]j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjubj2)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjsubh)}(h**Description**h]j)}(hjӬh]h Description}(hjլhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѬubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjsubj)}(h-Returns 1 if the buffer is full, 0 otherwise.h]h)}(hjh]h-Returns 1 if the buffer is full, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_reset (C function) c.relay_resethNtauh1hhjmhhhNhNubj)}(hhh](j)}(h%void relay_reset (struct rchan *chan)h]j)}(h$void relay_reset(struct rchan *chan)h](j )}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM:ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj/hM:ubj{)}(h relay_reseth]j)}(h relay_reseth]h relay_reset}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj/hM:ubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hj h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(hhh]j)}(hrchanh]hrchan}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj~modnameN classnameNj] j` )}jc ]jf )}jY jDsb c.relay_resetasbuh1hhjZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hchanh]hchan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hM:ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hM:ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj/hM:hjhhubj)}(hhh]h)}(hreset the channelh]hreset the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM:hjޭhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hM:ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjmhNhNubj)}(hX}**Parameters** ``struct rchan *chan`` the channel **Description** This has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect. NOTE. Care should be taken that the channel isn't actually being used by anything when this call is made.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM>hjubj )}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hj"h]hstruct rchan *chan}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM;hjubj2)}(hhh]h)}(h the channelh]h the channel}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM;hj8ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj7hM;hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj]h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM=hjubj)}(hXThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect. NOTE. Care should be taken that the channel isn't actually being used by anything when this call is made.h](h)}(hThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect.h]hThis has the effect of erasing all data from all channel buffers and restarting the channel in its initial state. The buffers are not freed, so any mappings are still in effect.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM<hjsubh)}(hiNOTE. Care should be taken that the channel isn't actually being used by anything when this call is made.h]hkNOTE. Care should be taken that the channel isn’t actually being used by anything when this call is made.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM@hjsubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_open (C function) c.relay_openhNtauh1hhjmhhhNhNubj)}(hhh](j)}(hstruct rchan * relay_open (const char *base_filename, struct dentry *parent, size_t subbuf_size, size_t n_subbufs, const struct rchan_callbacks *cb, void *private_data)h]j)}(hstruct rchan *relay_open(const char *base_filename, struct dentry *parent, size_t subbuf_size, size_t n_subbufs, const struct rchan_callbacks *cb, void *private_data)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj2)}(h h]h }(hjɮhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjȮhMubh)}(hhh]j)}(hrchanh]hrchan}(hjڮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׮ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjܮmodnameN classnameNj] j` )}jc ]jf )}jY relay_opensb c.relay_openasbuh1hhjhhhjȮhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjȮhMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjȮhMubj{)}(h relay_openh]j)}(hjh]h relay_open}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjȮhMubj)}(h(const char *base_filename, struct dentry *parent, size_t subbuf_size, size_t n_subbufs, const struct rchan_callbacks *cb, void *private_data)h](j)}(hconst char *base_filenameh](j)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj )}(hcharh]hchar}(hjPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(h base_filenameh]h base_filename}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hstruct dentry *parenth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.relay_openasbuh1hhjubj2)}(h h]h }(hjίhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjܯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hsize_t subbuf_sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.relay_openasbuh1hhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h subbuf_sizeh]h subbuf_size}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hsize_t n_subbufsh](h)}(hhh]j)}(hsize_th]hsize_t}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]j c.relay_openasbuh1hhjFubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(h n_subbufsh]h n_subbufs}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(h const struct rchan_callbacks *cbh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrchan_callbacksh]hrchan_callbacks}(hj˰hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȰubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjͰmodnameN classnameNj] j` )}jc ]j c.relay_openasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcbh]hcb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hvoid *private_datah](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h private_datah]h private_data}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjȮhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjȮhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjȮhMhjhhubj)}(hhh]h)}(hcreate a new relay channelh]hcreate a new relay channel}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjȮhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjmhNhNubj)}(hX**Parameters** ``const char *base_filename`` base name of files to create ``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory or buffer ``size_t subbuf_size`` size of sub-buffers ``size_t n_subbufs`` number of sub-buffers ``const struct rchan_callbacks *cb`` client callback functions ``void *private_data`` user-defined data **Description** Returns channel pointer if successful, ``NULL`` otherwise. Creates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be ``S_IRUSR``.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj )}(hhh](j)}(h;``const char *base_filename`` base name of files to create h](j)}(h``const char *base_filename``h]j)}(hjh]hconst char *base_filename}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj2)}(hhh]h)}(hbase name of files to createh]hbase name of files to create}(hjʱhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƱhMhjDZubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjƱhMhjubj)}(h\``struct dentry *parent`` dentry of parent directory, ``NULL`` for root directory or buffer h](j)}(h``struct dentry *parent``h]j)}(hjh]hstruct dentry *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj2)}(hhh]h)}(hAdentry of parent directory, ``NULL`` for root directory or bufferh](hdentry of parent directory, }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for root directory or buffer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``size_t subbuf_size`` size of sub-buffers h](j)}(h``size_t subbuf_size``h]j)}(hj5h]hsize_t subbuf_size}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj/ubj2)}(hhh]h)}(hsize of sub-buffersh]hsize of sub-buffers}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubj)}(h+``size_t n_subbufs`` number of sub-buffers h](j)}(h``size_t n_subbufs``h]j)}(hjnh]hsize_t n_subbufs}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjhubj2)}(hhh]h)}(hnumber of sub-buffersh]hnumber of sub-buffers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``const struct rchan_callbacks *cb`` client callback functions h](j)}(h$``const struct rchan_callbacks *cb``h]j)}(hjh]h const struct rchan_callbacks *cb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj2)}(hhh]h)}(hclient callback functionsh]hclient callback functions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``void *private_data`` user-defined data h](j)}(h``void *private_data``h]j)}(hjh]hvoid *private_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj޲ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjڲubj2)}(hhh]h)}(huser-defined datah]huser-defined data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjڲubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj)}(hXReturns channel pointer if successful, ``NULL`` otherwise. Creates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be ``S_IRUSR``.h](h)}(h:Returns channel pointer if successful, ``NULL`` otherwise.h](h'Returns channel pointer if successful, }(hj5hhhNhNubj)}(h``NULL``h]hNULL}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh otherwise.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj1ubh)}(hCreates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be ``S_IRUSR``.h](hCreates a channel buffer for each cpu using the sizes and attributes specified. The created channel buffer files will be named base_filename0...base_filenameN-1. File permissions will be }(hjVhhhNhNubj)}(h ``S_IRUSR``h]hS_IRUSR}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj1ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  relay_switch_subbuf (C function)c.relay_switch_subbufhNtauh1hhjmhhhNhNubj)}(hhh](j)}(hAsize_t relay_switch_subbuf (struct rchan_buf *buf, size_t length)h]j)}(h@size_t relay_switch_subbuf(struct rchan_buf *buf, size_t length)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY relay_switch_subbufsbc.relay_switch_subbufasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM!ubj2)}(h h]h }(hj³hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM!ubj{)}(hrelay_switch_subbufh]j)}(hjh]hrelay_switch_subbuf}(hjԳhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjгubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM!ubj)}(h&(struct rchan_buf *buf, size_t length)h](j)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.relay_switch_subbufasbuh1hhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lengthh](h)}(hhh]j)}(hsize_th]hsize_t}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjdmodnameN classnameNj] j` )}jc ]jc.relay_switch_subbufasbuh1hhj[ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hlengthh]hlength}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM!hjhhubj)}(hhh]h)}(hswitch to a new sub-bufferh]hswitch to a new sub-buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM!hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjдjjдjjjuh1jhhhjmhNhNubj)}(hX'**Parameters** ``struct rchan_buf *buf`` channel buffer ``size_t length`` size of current event **Description** Returns either the length passed in or 0 if full. Performs sub-buffer-switch tasks such as invoking callbacks, updating padding counts, waking up readers, etc.h](h)}(h**Parameters**h]j)}(hjڴh]h Parameters}(hjܴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjشubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM%hjԴubj )}(hhh](j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM"hjubj2)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubj)}(h(``size_t length`` size of current event h](j)}(h``size_t length``h]j)}(hj2h]h size_t length}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM#hj,ubj2)}(hhh]h)}(hsize of current eventh]hsize of current event}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM#hjHubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM#hjubeh}(h]h ]h"]h$]h&]uh1j hjԴubh)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM%hjԴubj)}(hReturns either the length passed in or 0 if full. Performs sub-buffer-switch tasks such as invoking callbacks, updating padding counts, waking up readers, etc.h](h)}(h1Returns either the length passed in or 0 if full.h]h1Returns either the length passed in or 0 if full.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM$hjubh)}(hmPerforms sub-buffer-switch tasks such as invoking callbacks, updating padding counts, waking up readers, etc.h]hmPerforms sub-buffer-switch tasks such as invoking callbacks, updating padding counts, waking up readers, etc.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chM&hjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjԴubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #relay_subbufs_consumed (C function)c.relay_subbufs_consumedhNtauh1hhjmhhhNhNubj)}(hhh](j)}(h[void relay_subbufs_consumed (struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h]j)}(hZvoid relay_subbufs_consumed(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h](j )}(hvoidh]hvoid}(hj˵hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjǵhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMcubj2)}(h h]h }(hjڵhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjǵhhhjٵhMcubj{)}(hrelay_subbufs_consumedh]j)}(hrelay_subbufs_consumedh]hrelay_subbufs_consumed}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjǵhhhjٵhMcubj)}(h?(struct rchan *chan, unsigned int cpu, size_t subbufs_consumed)h](j)}(hstruct rchan *chanh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrchanh]hrchan}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj(modnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_subbufs_consumedasbuh1hhjubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int cpuh](j )}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hcpuh]hcpu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t subbufs_consumedh](h)}(hhh]j)}(hsize_th]hsize_t}(hjζhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˶ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjжmodnameN classnameNj] j` )}jc ]jBc.relay_subbufs_consumedasbuh1hhjǶubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjǶubj)}(hsubbufs_consumedh]hsubbufs_consumed}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǶubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjǵhhhjٵhMcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjõhhhjٵhMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjٵhMchjhhubj)}(hhh]h)}(h.update the buffer's sub-buffers-consumed counth]h0update the buffer’s sub-buffers-consumed count}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMchj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjٵhMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1jhhhjmhNhNubj)}(hX**Parameters** ``struct rchan *chan`` the channel ``unsigned int cpu`` the cpu associated with the channel buffer to update ``size_t subbufs_consumed`` number of sub-buffers to add to current buf's count **Description** Adds to the channel buffer's consumed sub-buffer count. subbufs_consumed should be the number of sub-buffers newly consumed, not the total consumed. NOTE. Kernel clients don't need to call this function if the channel mode is 'overwrite'.h](h)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMghj@ubj )}(hhh](j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjeh]hstruct rchan *chan}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMdhj_ubj2)}(hhh]h)}(h the channelh]h the channel}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMdhj{ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMdhj\ubj)}(hJ``unsigned int cpu`` the cpu associated with the channel buffer to update h](j)}(h``unsigned int cpu``h]j)}(hjh]hunsigned int cpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMehjubj2)}(hhh]h)}(h4the cpu associated with the channel buffer to updateh]h4the cpu associated with the channel buffer to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMehj\ubj)}(hP``size_t subbufs_consumed`` number of sub-buffers to add to current buf's count h](j)}(h``size_t subbufs_consumed``h]j)}(hj׷h]hsize_t subbufs_consumed}(hjٷhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjշubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMfhjѷubj2)}(hhh]h)}(h3number of sub-buffers to add to current buf's counth]h5number of sub-buffers to add to current buf’s count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j1hjѷubeh}(h]h ]h"]h$]h&]uh1jhjhMfhj\ubeh}(h]h ]h"]h$]h&]uh1j hj@ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhhj@ubj)}(hAdds to the channel buffer's consumed sub-buffer count. subbufs_consumed should be the number of sub-buffers newly consumed, not the total consumed. NOTE. Kernel clients don't need to call this function if the channel mode is 'overwrite'.h](h)}(hAdds to the channel buffer's consumed sub-buffer count. subbufs_consumed should be the number of sub-buffers newly consumed, not the total consumed.h]hAdds to the channel buffer’s consumed sub-buffer count. subbufs_consumed should be the number of sub-buffers newly consumed, not the total consumed.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMghj(ubh)}(hYNOTE. Kernel clients don't need to call this function if the channel mode is 'overwrite'.h]h_NOTE. Kernel clients don’t need to call this function if the channel mode is ‘overwrite’.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMkhj(ubeh}(h]h ]h"]h$]h&]uh1jhj:hMghj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_close (C function) c.relay_closehNtauh1hhjmhhhNhNubj)}(hhh](j)}(h%void relay_close (struct rchan *chan)h]j)}(h$void relay_close(struct rchan *chan)h](j )}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhj~hMubj{)}(h relay_closeh]j)}(h relay_closeh]h relay_close}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhj~hMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrchanh]hrchan}(hj˸hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȸubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj͸modnameN classnameNj] j` )}jc ]jf )}jY jsb c.relay_closeasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjlhhhj~hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhj~hMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhj~hMhjehhubj)}(hhh]h)}(hclose the channelh]hclose the channel}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhjmhNhNubj)}(h}**Parameters** ``struct rchan *chan`` the channel **Description** Closes all channel buffers and frees the channel.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjLubj )}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjqh]hstruct rchan *chan}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjkubj2)}(hhh]h)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubah}(h]h ]h"]h$]h&]uh1j hjLubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjLubj)}(h1Closes all channel buffers and frees the channel.h]h)}(hjĹh]h1Closes all channel buffers and frees the channel.}(hjƹhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhj¹ubah}(h]h ]h"]h$]h&]uh1jhjӹhMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_flush (C function) c.relay_flushhNtauh1hhjmhhhNhNubj)}(hhh](j)}(h%void relay_flush (struct rchan *chan)h]j)}(h$void relay_flush(struct rchan *chan)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(h relay_flushh]j)}(h relay_flushh]h relay_flush}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hj h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubh)}(hhh]j)}(hrchanh]hrchan}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.relay_flushasbuh1hhj3ubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hchanh]hchan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hclose the channelh]hclose the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjҺjjҺjjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct rchan *chan`` the channel **Description** Flushes all channel buffers, i.e. forces buffer switch.h](h)}(h**Parameters**h]j)}(hjܺh]h Parameters}(hj޺hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjںubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjֺubj )}(hhh]j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjh]hstruct rchan *chan}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjubj2)}(hhh]h)}(h the channelh]h the channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjֺubh)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjֺubj)}(h7Flushes all channel buffers, i.e. forces buffer switch.h]h)}(hjNh]h7Flushes all channel buffers, i.e. forces buffer switch.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:218: ./kernel/relay.chMhjLubah}(h]h ]h"]h$]h&]uh1jhj]hMhjֺubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #relay_mmap_prepare_buf (C function)c.relay_mmap_prepare_bufhNtauh1hhjmhhhNhNubj)}(hhh](j)}(hMint relay_mmap_prepare_buf (struct rchan_buf *buf, struct vm_area_desc *desc)h]j)}(hLint relay_mmap_prepare_buf(struct rchan_buf *buf, struct vm_area_desc *desc)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKJubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKJubj{)}(hrelay_mmap_prepare_bufh]j)}(hrelay_mmap_prepare_bufh]hrelay_mmap_prepare_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKJubj)}(h2(struct rchan_buf *buf, struct vm_area_desc *desc)h](j)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjλhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj߻hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܻubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_mmap_prepare_bufasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct vm_area_desc *desch](j)}(hj h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubh)}(hhh]j)}(h vm_area_desch]h vm_area_desc}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSmodnameN classnameNj] j` )}jc ]jc.relay_mmap_prepare_bufasbuh1hhj/ubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhKJubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jhjhKJhjyhhubj)}(hhh]j)}(hhh]j)}(h,mmap channel buffer to process address spaceh]h)}(hjh]h,mmap channel buffer to process address space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKJhjubah}(h]h ]h"]h$]h&]uh1jhjhhhjȼhNubah}(h]h ]h"]h$]h&]jjuh1jhjȼhKJhjhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhKJubeh}(h]h ](jfunctioneh"]h$]h&]jjjj޼jj޼jjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` the relay channel buffer ``struct vm_area_desc *desc`` describing what to map **Description** Returns 0 if ok, negative on error Caller should already have grabbed mmap_lock.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKNhjubj )}(hhh](j)}(h3``struct rchan_buf *buf`` the relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKKhjubj2)}(hhh]h)}(hthe relay channel bufferh]hthe relay channel buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKKhjubj)}(h5``struct vm_area_desc *desc`` describing what to map h](j)}(h``struct vm_area_desc *desc``h]j)}(hj@h]hstruct vm_area_desc *desc}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKLhj:ubj2)}(hhh]h)}(hdescribing what to maph]hdescribing what to map}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKLhjVubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhKLhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKNhjubj)}(hQReturns 0 if ok, negative on error Caller should already have grabbed mmap_lock.h](h)}(h"Returns 0 if ok, negative on errorh]h"Returns 0 if ok, negative on error}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKMhjubh)}(h-Caller should already have grabbed mmap_lock.h]h-Caller should already have grabbed mmap_lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKOhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_alloc_buf (C function)c.relay_alloc_bufhNtauh1hhjmhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjսhhhjhKeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjսhhhjhKeubj{)}(hrelay_alloc_bufh]j)}(hrelay_alloc_bufh]hrelay_alloc_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjսhhhjhKeubj)}(h%(struct rchan_buf *buf, size_t *size)h](j)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]jf )}jY j sbc.relay_alloc_bufasbuh1hhjubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t *sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j]c.relay_alloc_bufasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjľhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsizeh]hsize}(hjѾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjսhhhjhKeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjѽhhhjhKeubah}(h]j̽ah ](jjeh"]h$]h&]jj)jhuh1jhjhKehjνhhubj)}(hhh]h)}(hallocate a channel bufferh]hallocate a channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKehjhhubah}(h]h ]h"]h$]h&]uh1jhjνhhhjhKeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjmhNhNubj)}(hX **Parameters** ``struct rchan_buf *buf`` the buffer struct ``size_t *size`` total size of the buffer **Description** Returns a pointer to the resulting buffer, ``NULL`` if unsuccessful. The passed in size will get page aligned, if it isn't already.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKihjubj )}(hhh](j)}(h,``struct rchan_buf *buf`` the buffer struct h](j)}(h``struct rchan_buf *buf``h]j)}(hj<h]hstruct rchan_buf *buf}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKfhj6ubj2)}(hhh]h)}(hthe buffer structh]hthe buffer struct}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhKfhjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhKfhj3ubj)}(h*``size_t *size`` total size of the buffer h](j)}(h``size_t *size``h]j)}(hjuh]h size_t *size}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKghjoubj2)}(hhh]h)}(htotal size of the bufferh]htotal size of the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKghjubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjhKghj3ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKihjubj)}(hReturns a pointer to the resulting buffer, ``NULL`` if unsuccessful. The passed in size will get page aligned, if it isn't already.h]h)}(hReturns a pointer to the resulting buffer, ``NULL`` if unsuccessful. The passed in size will get page aligned, if it isn't already.h](h+Returns a pointer to the resulting buffer, }(hjʿhhhNhNubj)}(h``NULL``h]hNULL}(hjҿhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʿubhR if unsuccessful. The passed in size will get page aligned, if it isn’t already.}(hjʿhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhhjƿubah}(h]h ]h"]h$]h&]uh1jhjhKhhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_create_buf (C function)c.relay_create_bufhNtauh1hhjmhhhNhNubj)}(hhh](j)}(h8struct rchan_buf * relay_create_buf (struct rchan *chan)h]j)}(h6struct rchan_buf *relay_create_buf(struct rchan *chan)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhKubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2modnameN classnameNj] j` )}jc ]jf )}jY relay_create_bufsbc.relay_create_bufasbuh1hhj hhhjhKubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhKubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhKubj{)}(hrelay_create_bufh]j)}(hjNh]hrelay_create_buf}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhKubj)}(h(struct rchan *chan)h]j)}(hstruct rchan *chanh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhh hNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrchanh]hrchan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jLc.relay_create_bufasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hchanh]hchan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h(allocate and initialize a channel bufferh]h(allocate and initialize a channel buffer}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct rchan *chan`` the relay channel **Description** Returns channel buffer if successful, ``NULL`` otherwise.h](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhj(ubj )}(hhh]j)}(h)``struct rchan *chan`` the relay channel h](j)}(h``struct rchan *chan``h]j)}(hjMh]hstruct rchan *chan}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjGubj2)}(hhh]h)}(hthe relay channelh]hthe relay channel}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKhjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjDubah}(h]h ]h"]h$]h&]uh1j hj(ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhj(ubj)}(h9Returns channel buffer if successful, ``NULL`` otherwise.h]h)}(hjh](h&Returns channel buffer if successful, }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "relay_destroy_channel (C function)c.relay_destroy_channelhNtauh1hhjmhhhNhNubj)}(hhh](j)}(h.void relay_destroy_channel (struct kref *kref)h]j)}(h-void relay_destroy_channel(struct kref *kref)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hrelay_destroy_channelh]j)}(hrelay_destroy_channelh]hrelay_destroy_channel}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct kref *kref)h]j)}(hstruct kref *krefh](j)}(hj h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubh)}(hhh]j)}(hkrefh]hkref}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jf )}jY j sbc.relay_destroy_channelasbuh1hhj!ubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hkrefh]hkref}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hfree the channel structh]hfree the channel struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct kref *kref`` target kernel reference that contains the relay channel **Description** Should only be called from kref_put().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubj )}(hhh]j)}(hN``struct kref *kref`` target kernel reference that contains the relay channel h](j)}(h``struct kref *kref``h]j)}(hjh]hstruct kref *kref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubj2)}(hhh]h)}(h7target kernel reference that contains the relay channelh]h7target kernel reference that contains the relay channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubj)}(h&Should only be called from kref_put().h]h)}(hj<h]h&Should only be called from kref_put().}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhj:ubah}(h]h ]h"]h$]h&]uh1jhjKhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_destroy_buf (C function)c.relay_destroy_bufhNtauh1hhjmhhhNhNubj)}(hhh](j)}(h.void relay_destroy_buf (struct rchan_buf *buf)h]j)}(h-void relay_destroy_buf(struct rchan_buf *buf)h](j )}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnhhhjhKubj{)}(hrelay_destroy_bufh]j)}(hrelay_destroy_bufh]hrelay_destroy_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjnhhhjhKubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_destroy_bufasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjnhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjhKubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjghhubj)}(hhh]h)}(h1destroy an rchan_buf struct and associated bufferh]h1destroy an rchan_buf struct and associated buffer}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhj/hhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhjmhNhNubj)}(h=**Parameters** ``struct rchan_buf *buf`` the buffer structh](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjNubj )}(hhh]j)}(h+``struct rchan_buf *buf`` the buffer structh](j)}(h``struct rchan_buf *buf``h]j)}(hjsh]hstruct rchan_buf *buf}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjmubj2)}(hhh]h)}(hthe buffer structh]hthe buffer struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhjjubah}(h]h ]h"]h$]h&]uh1j hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_remove_buf (C function)c.relay_remove_bufhNtauh1hhjmhhhNhNubj)}(hhh](j)}(h)void relay_remove_buf (struct kref *kref)h]j)}(h(void relay_remove_buf(struct kref *kref)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hrelay_remove_bufh]j)}(hrelay_remove_bufh]hrelay_remove_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct kref *kref)h]j)}(hstruct kref *krefh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hkrefh]hkref}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_remove_bufasbuh1hhjubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkrefh]hkref}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hremove a channel bufferh]hremove a channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjmhNhNubj)}(hX **Parameters** ``struct kref *kref`` target kernel reference that contains the relay buffer **Description** Removes the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubj )}(hhh]j)}(hM``struct kref *kref`` target kernel reference that contains the relay buffer h](j)}(h``struct kref *kref``h]j)}(hjh]hstruct kref *kref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubj2)}(hhh]h)}(h6target kernel reference that contains the relay bufferh]h6target kernel reference that contains the relay buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubj)}(hRemoves the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().h]h)}(hRemoves the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().h]hRemoves the file from the filesystem, which also frees the rchan_buf_struct and the channel buffer. Should only be called from kref_put().}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubah}(h]h ]h"]h$]h&]uh1jhj1hKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_buf_empty (C function)c.relay_buf_emptyhNtauh1hhjmhhhNhNubj)}(hhh](j)}(h+int relay_buf_empty (struct rchan_buf *buf)h]j)}(h*int relay_buf_empty(struct rchan_buf *buf)h](j )}(hinth]hint}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjThhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjThhhjfhKubj{)}(hrelay_buf_emptyh]j)}(hrelay_buf_emptyh]hrelay_buf_empty}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhjfhKubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j{sbc.relay_buf_emptyasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhKubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhjfhKhjMhhubj)}(hhh]h)}(h%boolean, is the channel buffer empty?h]h%boolean, is the channel buffer empty?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` channel buffer **Description** Returns 1 if the buffer is empty, 0 otherwise.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhj4ubj )}(hhh]j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjYh]hstruct rchan_buf *buf}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjSubj2)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKhjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjPubah}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhj4ubj)}(h.Returns 1 if the buffer is empty, 0 otherwise.h]h)}(hjh]h.Returns 1 if the buffer is empty, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j wakeup_readers (C function)c.wakeup_readershNtauh1hhjmhhhNhNubj)}(hhh](j)}(h+void wakeup_readers (struct irq_work *work)h]j)}(h*void wakeup_readers(struct irq_work *work)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hwakeup_readersh]j)}(hwakeup_readersh]hwakeup_readers}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(struct irq_work *work)h]j)}(hstruct irq_work *workh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hirq_workh]hirq_work}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jf )}jY jsbc.wakeup_readersasbuh1hhjubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hworkh]hwork}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(h$wake up readers waiting on a channelh]h$wake up readers waiting on a channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct irq_work *work`` contains the channel buffer **Description** This is the function used to defer reader wakingh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj )}(hhh]j)}(h6``struct irq_work *work`` contains the channel buffer h](j)}(h``struct irq_work *work``h]j)}(hjh]hstruct irq_work *work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hjubj2)}(hhh]h)}(hcontains the channel bufferh]hcontains the channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hjubj)}(h0This is the function used to defer reader wakingh]h)}(hj6h]h0This is the function used to defer reader waking}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chM hj4ubah}(h]h ]h"]h$]h&]uh1jhjEhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __relay_reset (C function)c.__relay_resethNtauh1hhjmhhhNhNubj)}(hhh](j)}(h=void __relay_reset (struct rchan_buf *buf, unsigned int init)h]j)}(hah"]h$]h&]uh1j1hjhhhhjzhMubj{)}(h __relay_reseth]j)}(h __relay_reseth]h __relay_reset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhhjzhMubj)}(h*(struct rchan_buf *buf, unsigned int init)h](j)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.__relay_resetasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int inith](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hj7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hinith]hinit}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhjzhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjzhMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1jhjzhMhjahhubj)}(hhh]h)}(hreset a channel bufferh]hreset a channel buffer}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjzhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` the channel buffer ``unsigned int init`` 1 if this is a first-time initialization **Description** See relay_reset() for description of effect.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj )}(hhh](j)}(h-``struct rchan_buf *buf`` the channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj2)}(hhh]h)}(hthe channel bufferh]hthe channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h?``unsigned int init`` 1 if this is a first-time initialization h](j)}(h``unsigned int init``h]j)}(hjh]hunsigned int init}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj2)}(hhh]h)}(h(1 if this is a first-time initializationh]h(1 if this is a first-time initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(h,See relay_reset() for description of effect.h]h)}(hjJh]h,See relay_reset() for description of effect.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjHubah}(h]h ]h"]h$]h&]uh1jhjYhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_close_buf (C function)c.relay_close_bufhNtauh1hhjmhhhNhNubj)}(hhh](j)}(h,void relay_close_buf (struct rchan_buf *buf)h]j)}(h+void relay_close_buf(struct rchan_buf *buf)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|hhhjhMubj{)}(hrelay_close_bufh]j)}(hrelay_close_bufh]hrelay_close_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|hhhjhMubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.relay_close_bufasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj|hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjuhhubj)}(hhh]h)}(hclose a channel bufferh]hclose a channel buffer}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jhhhjmhNhNubj)}(hX**Parameters** ``struct rchan_buf *buf`` channel buffer **Description** Marks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.h](h)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj\ubj )}(hhh]j)}(h)``struct rchan_buf *buf`` channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj{ubj2)}(hhh]h)}(hchannel bufferh]hchannel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubah}(h]h ]h"]h$]h&]uh1j hj\ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj\ubj)}(hMarks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.h]h)}(hMarks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.h]hMarks the buffer finalized and restores the default callbacks. The channel buffer and channel buffer data structure are then freed automatically when the last reference is given up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_stats (C function) c.relay_statshNtauh1hhjmhhhNhNubj)}(hhh](j)}(h2size_t relay_stats (struct rchan *chan, int flags)h]j)}(h1size_t relay_stats(struct rchan *chan, int flags)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY relay_statssb c.relay_statsasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj/hMubj{)}(h relay_statsh]j)}(hj,h]h relay_stats}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj/hMubj)}(h(struct rchan *chan, int flags)h](j)}(hstruct rchan *chanh](j)}(hj h]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubh)}(hhh]j)}(hrchanh]hrchan}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj}modnameN classnameNj] j` )}jc ]j* c.relay_statsasbuh1hhjYubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hchanh]hchan}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(h int flagsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj/hMhjhhubj)}(hhh]h)}(hget channel buffer statisticsh]hget channel buffer statistics}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct rchan *chan`` the channel ``int flags`` select particular information to get **Description** Returns the count of certain field that caller specifies.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj/ubj )}(hhh](j)}(h#``struct rchan *chan`` the channel h](j)}(h``struct rchan *chan``h]j)}(hjTh]hstruct rchan *chan}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjNubj2)}(hhh]h)}(h the channelh]h the channel}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjKubj)}(h3``int flags`` select particular information to get h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj2)}(hhh]h)}(h$select particular information to geth]h$select particular information to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubeh}(h]h ]h"]h$]h&]uh1j hj/ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj/ubj)}(h9Returns the count of certain field that caller specifies.h]h)}(hjh]h9Returns the count of certain field that caller specifies.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_file_open (C function)c.relay_file_openhNtauh1hhjmhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhj$hMubj{)}(hrelay_file_openh]j)}(hrelay_file_openh]hrelay_file_open}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj$hMubj)}(h((struct inode *inode, struct file *filp)h](j)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubh)}(hhh]j)}(hinodeh]hinode}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsmodnameN classnameNj] j` )}jc ]jf )}jY j9sbc.relay_file_openasbuh1hhjOubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hstruct file *filph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.relay_file_openasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj$hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj$hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj$hMhj hhubj)}(hhh]h)}(hopen file op for relay filesh]hopen file op for relay files}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjChhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct inode *inode`` the inode ``struct file *filp`` the file **Description** Increments the channel buffer refcount.h](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjbubj )}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj2)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubj)}(h``struct file *filp`` the file h](j)}(h``struct file *filp``h]j)}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj2)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubeh}(h]h ]h"]h$]h&]uh1j hjbubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjbubj)}(h'Increments the channel buffer refcount.h]h)}(hjh]h'Increments the channel buffer refcount.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhj"hMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $relay_file_mmap_prepare (C function)c.relay_file_mmap_preparehNtauh1hhjmhhhNhNubj)}(hhh](j)}(h7int relay_file_mmap_prepare (struct vm_area_desc *desc)h]j)}(h6int relay_file_mmap_prepare(struct vm_area_desc *desc)h](j )}(hinth]hint}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEhhhjWhMubj{)}(hrelay_file_mmap_prepareh]j)}(hrelay_file_mmap_prepareh]hrelay_file_mmap_prepare}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhjWhMubj)}(h(struct vm_area_desc *desc)h]j)}(hstruct vm_area_desc *desch](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h vm_area_desch]h vm_area_desc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jlsbc.relay_file_mmap_prepareasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubah}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jhjWhMhj>hhubj)}(hhh]h)}(hmmap file op for relay filesh]hmmap file op for relay files}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct vm_area_desc *desc`` describing what to map **Description** Calls upon relay_mmap_prepare_buf() to map the file into user space.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj%ubj )}(hhh]j)}(h5``struct vm_area_desc *desc`` describing what to map h](j)}(h``struct vm_area_desc *desc``h]j)}(hjJh]hstruct vm_area_desc *desc}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjDubj2)}(hhh]h)}(hdescribing what to maph]hdescribing what to map}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubah}(h]h ]h"]h$]h&]uh1j hj%ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj%ubj)}(hDCalls upon relay_mmap_prepare_buf() to map the file into user space.h]h)}(hjh]hDCalls upon relay_mmap_prepare_buf() to map the file into user space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_file_poll (C function)c.relay_file_pollhNtauh1hhjmhhhNhNubj)}(hhh](j)}(h>__poll_t relay_file_poll (struct file *filp, poll_table *wait)h]j)}(h=__poll_t relay_file_poll(struct file *filp, poll_table *wait)h](h)}(hhh]j)}(h__poll_th]h__poll_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY relay_file_pollsbc.relay_file_pollasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hrelay_file_pollh]j)}(hjh]hrelay_file_poll}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h%(struct file *filp, poll_table *wait)h](j)}(hstruct file *filph](j)}(hj h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubh)}(hhh]j)}(hfileh]hfile}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jc.relay_file_pollasbuh1hhj!ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hfilph]hfilp}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hpoll_table *waith](h)}(hhh]j)}(h poll_tableh]h poll_table}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.relay_file_pollasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hwaith]hwait}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hpoll file op for relay filesh]hpoll file op for relay files}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjmhNhNubj)}(h}**Parameters** ``struct file *filp`` the file ``poll_table *wait`` poll table **Description** Poll implemention.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj )}(hhh](j)}(h``struct file *filp`` the file h](j)}(h``struct file *filp``h]j)}(hj<h]hstruct file *filp}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj6ubj2)}(hhh]h)}(hthe fileh]hthe file}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(h ``poll_table *wait`` poll table h](j)}(h``poll_table *wait``h]j)}(hjuh]hpoll_table *wait}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjoubj2)}(hhh]h)}(h poll tableh]h poll table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hPoll implemention.h]h)}(hjh]hPoll implemention.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j relay_file_release (C function)c.relay_file_releasehNtauh1hhjmhhhNhNubj)}(hhh](j)}(h?int relay_file_release (struct inode *inode, struct file *filp)h]j)}(h>int relay_file_release(struct inode *inode, struct file *filp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hMubj{)}(hrelay_file_releaseh]j)}(hrelay_file_releaseh]hrelay_file_release}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMubj)}(h((struct inode *inode, struct file *filp)h](j)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubh)}(hhh]j)}(hinodeh]hinode}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[modnameN classnameNj] j` )}jc ]jf )}jY j!sbc.relay_file_releaseasbuh1hhj7ubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hstruct file *filph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]juc.relay_file_releaseasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfilph]hfilp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hMhjhhubj)}(hhh]h)}(hrelease file op for relay filesh]hrelease file op for relay files}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj+hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct inode *inode`` the inode ``struct file *filp`` the file **Description** Decrements the channel refcount, as the filesystem is no longer using it.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjJubj )}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjoh]hstruct inode *inode}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjiubj2)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubj)}(h``struct file *filp`` the file h](j)}(h``struct file *filp``h]j)}(hjh]hstruct file *filp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj2)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubeh}(h]h ]h"]h$]h&]uh1j hjJubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjJubj)}(hIDecrements the channel refcount, as the filesystem is no longer using it.h]h)}(hIDecrements the channel refcount, as the filesystem is no longer using it.h]hIDecrements the channel refcount, as the filesystem is no longer using it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhj hMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )relay_file_read_subbuf_avail (C function)c.relay_file_read_subbuf_availhNtauh1hhjmhhhNhNubj)}(hhh](j)}(hLsize_t relay_file_read_subbuf_avail (size_t read_pos, struct rchan_buf *buf)h]j)}(hKsize_t relay_file_read_subbuf_avail(size_t read_pos, struct rchan_buf *buf)h](h)}(hhh]j)}(hsize_th]hsize_t}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jf )}jY relay_file_read_subbuf_availsbc.relay_file_read_subbuf_availasbuh1hhj.hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMpubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.hhhjVhMpubj{)}(hrelay_file_read_subbuf_availh]j)}(hjSh]hrelay_file_read_subbuf_avail}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.hhhjVhMpubj)}(h((size_t read_pos, struct rchan_buf *buf)h](j)}(hsize_t read_posh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jQc.relay_file_read_subbuf_availasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hread_posh]hread_pos}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jQc.relay_file_read_subbuf_availasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufh]hbuf}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhjVhMpubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhjVhMpubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jhjVhMphj'hhubj)}(hhh]h)}(h$return bytes available in sub-bufferh]h$return bytes available in sub-buffer}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMphjJhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhjVhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1jhhhjmhNhNubj)}(hj**Parameters** ``size_t read_pos`` file read position ``struct rchan_buf *buf`` relay channel bufferh](h)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMthjiubj )}(hhh](j)}(h'``size_t read_pos`` file read position h](j)}(h``size_t read_pos``h]j)}(hjh]hsize_t read_pos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMqhjubj2)}(hhh]h)}(hfile read positionh]hfile read position}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubj)}(h.``struct rchan_buf *buf`` relay channel bufferh](j)}(h``struct rchan_buf *buf``h]j)}(hjh]hstruct rchan_buf *buf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMshjubj2)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMrhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubeh}(h]h ]h"]h$]h&]uh1j hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &relay_file_read_start_pos (C function)c.relay_file_read_start_poshNtauh1hhjmhhhNhNubj)}(hhh](j)}(h8size_t relay_file_read_start_pos (struct rchan_buf *buf)h]j)}(h7size_t relay_file_read_start_pos(struct rchan_buf *buf)h](h)}(hhh]j)}(hsize_th]hsize_t}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj&modnameN classnameNj] j` )}jc ]jf )}jY relay_file_read_start_possbc.relay_file_read_start_posasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjEhMubj{)}(hrelay_file_read_start_posh]j)}(hjBh]hrelay_file_read_start_pos}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjEhMubj)}(h(struct rchan_buf *buf)h]j)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j@c.relay_file_read_start_posasbuh1hhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hbufh]hbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjEhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjEhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjEhMhjhhubj)}(hhh]h)}(h%find the first available byte to readh]h%find the first available byte to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` relay channel buffer **Description** If the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj )}(hhh]j)}(h/``struct rchan_buf *buf`` relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hj5h]hstruct rchan_buf *buf}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj/ubj2)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj)}(hIf the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.h]h)}(hIf the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.h]hIf the read_pos is in the middle of padding, return the position of the first actually available byte, otherwise return the original value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $relay_file_read_end_pos (C function)c.relay_file_read_end_poshNtauh1hhjmhhhNhNubj)}(hhh](j)}(hUsize_t relay_file_read_end_pos (struct rchan_buf *buf, size_t read_pos, size_t count)h]j)}(hTsize_t relay_file_read_end_pos(struct rchan_buf *buf, size_t read_pos, size_t count)h](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY relay_file_read_end_possbc.relay_file_read_end_posasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hrelay_file_read_end_posh]j)}(hjh]hrelay_file_read_end_pos}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h6(struct rchan_buf *buf, size_t read_pos, size_t count)h](j)}(hstruct rchan_buf *bufh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(h rchan_bufh]h rchan_buf}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj1modnameN classnameNj] j` )}jc ]jc.relay_file_read_end_posasbuh1hhj ubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hbufh]hbuf}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hsize_t read_posh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.relay_file_read_end_posasbuh1hhj}ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}ubj)}(hread_posh]hread_pos}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h size_t counth](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.relay_file_read_end_posasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcounth]hcount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hreturn the new read positionh]hreturn the new read position}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1jhhhjmhNhNubj)}(h**Parameters** ``struct rchan_buf *buf`` relay channel buffer ``size_t read_pos`` file read position ``size_t count`` number of bytes to be readh](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj>ubj )}(hhh](j)}(h/``struct rchan_buf *buf`` relay channel buffer h](j)}(h``struct rchan_buf *buf``h]j)}(hjch]hstruct rchan_buf *buf}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhj]ubj2)}(hhh]h)}(hrelay channel bufferh]hrelay channel buffer}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1j1hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjZubj)}(h'``size_t read_pos`` file read position h](j)}(h``size_t read_pos``h]j)}(hjh]hsize_t read_pos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj2)}(hhh]h)}(hfile read positionh]hfile read position}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjZubj)}(h+``size_t count`` number of bytes to be readh](j)}(h``size_t count``h]j)}(hjh]h size_t count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubj2)}(hhh]h)}(hnumber of bytes to be readh]hnumber of bytes to be read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:221: ./kernel/relay.chMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjZubeh}(h]h ]h"]h$]h&]uh1j hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjmhhhNhNubeh}(h]relay-interfaceah ]h"]relay interfaceah$]h&]uh1hhjNhhhhhKubeh}(h]relay-interface-supportah ]h"]relay interface supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hModule Supporth]hModule Support}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hhhhhKubh)}(hhh](h)}(hKernel module auto-loadingh]hKernel module auto-loading}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __request_module (C function)c.__request_modulehNtauh1hhj7hhhNhNubj)}(hhh](j)}(h6int __request_module (bool wait, const char *fmt, ...)h]j)}(h5int __request_module(bool wait, const char *fmt, ...)h](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKuubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhjohKuubj{)}(h__request_moduleh]j)}(h__request_moduleh]h__request_module}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhjohKuubj)}(h!(bool wait, const char *fmt, ...)h](j)}(h bool waith](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hwaith]hwait}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *fmth](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h...h]j)}(hjh]h...}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj]hhhjohKuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjohKuubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjohKuhjVhhubj)}(hhh]h)}(htry to load a kernel moduleh]htry to load a kernel module}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKuhjUhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohKuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jhhhj7hNhNubj)}(hX**Parameters** ``bool wait`` wait (or not) for the operation to complete ``const char *fmt`` printf style format string for the name of the module ``...`` arguments as specified in the format string **Description** Load a module using the user mode module loader. The function returns zero on success or a negative errno code or positive exit code from "modprobe" on failure. Note that a successful module load does not mean the module did not then unload and exit on an error of its own. Callers must check that the service they requested is now available not blindly invoke it. If module auto-loading support is disabled then this function simply returns -ENOENT.h](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKyhjtubj )}(hhh](j)}(h:``bool wait`` wait (or not) for the operation to complete h](j)}(h ``bool wait``h]j)}(hjh]h bool wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKvhjubj2)}(hhh]h)}(h+wait (or not) for the operation to completeh]h+wait (or not) for the operation to complete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKvhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKvhjubj)}(hJ``const char *fmt`` printf style format string for the name of the module h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKwhjubj2)}(hhh]h)}(h5printf style format string for the name of the moduleh]h5printf style format string for the name of the module}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKwhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKwhjubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hj h]h...}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKxhjubj2)}(hhh]h)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKxhj!ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKxhjubeh}(h]h ]h"]h$]h&]uh1j hjtubh)}(h**Description**h]j)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKzhjtubh)}(hXlLoad a module using the user mode module loader. The function returns zero on success or a negative errno code or positive exit code from "modprobe" on failure. Note that a successful module load does not mean the module did not then unload and exit on an error of its own. Callers must check that the service they requested is now available not blindly invoke it.h]hXpLoad a module using the user mode module loader. The function returns zero on success or a negative errno code or positive exit code from “modprobe” on failure. Note that a successful module load does not mean the module did not then unload and exit on an error of its own. Callers must check that the service they requested is now available not blindly invoke it.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKyhjtubh)}(hUIf module auto-loading support is disabled then this function simply returns -ENOENT.h]hUIf module auto-loading support is disabled then this function simply returns -ENOENT.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:230: ./kernel/module/kmod.chKhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj7hhhNhNubeh}(h]kernel-module-auto-loadingah ]h"]kernel module auto-loadingah$]h&]uh1hhj&hhhhhKubh)}(hhh](h)}(hModule debuggingh]hModule debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hEnabling CONFIG_MODULE_STATS enables module debugging statistics which are useful to monitor and root cause memory pressure issues with module loading. These statistics are useful to allow us to improve production workloads.h]hEnabling CONFIG_MODULE_STATS enables module debugging statistics which are useful to monitor and root cause memory pressure issues with module loading. These statistics are useful to allow us to improve production workloads.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chKhjhhubh)}(hX9The current module debugging statistics supported help keep track of module loading failures to enable improvements either for kernel module auto-loading usage (request_module()) or interactions with userspace. Statistics are provided to track all possible failures in the finit_module() path and memory wasted in this process space. Each of the failure counters are associated to a type of module loading failure which is known to incur a certain amount of memory allocation loss. In the worst case loading a module will fail after a 3 step memory allocation process:h]hX9The current module debugging statistics supported help keep track of module loading failures to enable improvements either for kernel module auto-loading usage (request_module()) or interactions with userspace. Statistics are provided to track all possible failures in the finit_module() path and memory wasted in this process space. Each of the failure counters are associated to a type of module loading failure which is known to incur a certain amount of memory allocation loss. In the worst case loading a module will fail after a 3 step memory allocation process:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chKhjhhubj)}(hXa) memory allocated with kernel_read_file_from_fd() b) module decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away. c) layout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully. h]jM)}(hhh](j)}(h0memory allocated with kernel_read_file_from_fd()h]h)}(hjh]h0memory allocated with kernel_read_file_from_fd()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK#hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXmodule decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away.h]h)}(hXmodule decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away.h]hXmodule decompression processes the file read from kernel_read_file_from_fd(), and vmap() is used to map the decompressed module to a new local buffer which represents a copy of the decompressed module passed from userspace. The buffer from kernel_read_file_from_fd() is freed right away.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK$hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully. h]h)}(hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully.h]hlayout_and_allocate() allocates space for the final resting place where we would keep the module if it were to be processed successfully.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK)hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jM loweralphajMhjMj?uh1jMhjubah}(h]h ]h"]h$]h&]uh1jhjhK#hjhhubh)}(hXRIf a failure occurs after these three different allocations only one counter will be incremented with the summation of the allocated bytes freed incurred during this failure. Likewise, if module loading failed only after step b) a separate counter is used and incremented for the bytes freed and not used during both of those allocations.h]hXRIf a failure occurs after these three different allocations only one counter will be incremented with the summation of the allocated bytes freed incurred during this failure. Likewise, if module loading failed only after step b) a separate counter is used and incremented for the bytes freed and not used during both of those allocations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK-hjhhubh)}(hX3Virtual memory space can be limited, for example on x86 virtual memory size defaults to 128 MiB. We should strive to limit and avoid wasting virtual memory allocations when possible. These module debugging statistics help to evaluate how much memory is being wasted on bootup due to module loading failures.h]hX3Virtual memory space can be limited, for example on x86 virtual memory size defaults to 128 MiB. We should strive to limit and avoid wasting virtual memory allocations when possible. These module debugging statistics help to evaluate how much memory is being wasted on bootup due to module loading failures.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK3hjhhubh)}(hyAll counters are designed to be incremental. Atomic counters are used so to remain simple and avoid delays and deadlocks.h]hyAll counters are designed to be incremental. Atomic counters are used so to remain simple and avoid delays and deadlocks.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:236: ./kernel/module/stats.chK9hjhhubh)}(hhh](h)}(h4dup_failed_modules - tracks duplicate failed modulesh]h4dup_failed_modules - tracks duplicate failed modules}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChhhhhKubh)}(hX;Linked list of modules which failed to be loaded because an already existing module with the same name was already being processed or already loaded. The finit_module() system call incurs heavy virtual memory allocations. In the worst case an finit_module() system call can end up allocating virtual memory 3 times:h]hX;Linked list of modules which failed to be loaded because an already existing module with the same name was already being processed or already loaded. The finit_module() system call incurs heavy virtual memory allocations. In the worst case an finit_module() system call can end up allocating virtual memory 3 times:}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chK@hjChhubj)}(h1) kernel_read_file_from_fd() call uses vmalloc() 2) optional module decompression uses vmap() 3) layout_and allocate() can use vzalloc() or an arch specific variation of vmalloc to deal with ELF sections requiring special permissions h]jM)}(hhh](j)}(h.kernel_read_file_from_fd() call uses vmalloc()h]h)}(hjlh]h.kernel_read_file_from_fd() call uses vmalloc()}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKFhjjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(h)optional module decompression uses vmap()h]h)}(hjh]h)optional module decompression uses vmap()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKGhjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(hlayout_and allocate() can use vzalloc() or an arch specific variation of vmalloc to deal with ELF sections requiring special permissions h]h)}(hlayout_and allocate() can use vzalloc() or an arch specific variation of vmalloc to deal with ELF sections requiring special permissionsh]hlayout_and allocate() can use vzalloc() or an arch specific variation of vmalloc to deal with ELF sections requiring special permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKHhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]jMjMjMhjMj?uh1jMhjcubah}(h]h ]h"]h$]h&]uh1jhj{hKFhjChhubh)}(hIn practice on a typical boot today most finit_module() calls fail due to the module with the same name already being loaded or about to be processed. All virtual memory allocated to these failed modules will be freed with no functional use.h]hIn practice on a typical boot today most finit_module() calls fail due to the module with the same name already being loaded or about to be processed. All virtual memory allocated to these failed modules will be freed with no functional use.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKKhjChhubh)}(hX&To help with this the dup_failed_modules allows us to track modules which failed to load due to the fact that a module was already loaded or being processed. There are only two points at which we can fail such calls, we list them below along with the number of virtual memory allocation calls:h]hX&To help with this the dup_failed_modules allows us to track modules which failed to load due to the fact that a module was already loaded or being processed. There are only two points at which we can fail such calls, we list them below along with the number of virtual memory allocation calls:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKPhjChhubj)}(hXa) FAIL_DUP_MOD_BECOMING: at the end of early_mod_check() before layout_and_allocate(). - with module decompression: 2 virtual memory allocation calls - without module decompression: 1 virtual memory allocation calls b) FAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation calls h]jM)}(hhh](j)}(hFAIL_DUP_MOD_BECOMING: at the end of early_mod_check() before layout_and_allocate(). - with module decompression: 2 virtual memory allocation calls - without module decompression: 1 virtual memory allocation callsh]h)}(hFAIL_DUP_MOD_BECOMING: at the end of early_mod_check() before layout_and_allocate(). - with module decompression: 2 virtual memory allocation calls - without module decompression: 1 virtual memory allocation callsh]hFAIL_DUP_MOD_BECOMING: at the end of early_mod_check() before layout_and_allocate(). - with module decompression: 2 virtual memory allocation calls - without module decompression: 1 virtual memory allocation calls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKVhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hFAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation calls h]h)}(hFAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation callsh]hFAIL_DUP_MOD_LOAD: after layout_and_allocate() on add_unformed_module() - with module decompression 3 virtual memory allocation calls - without module decompression 2 virtual memory allocation calls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jMjjMhjMj?uh1jMhjubah}(h]h ]h"]h$]h&]uh1jhjhKVhjChhubh)}(hWe should strive to get this list to be as small as possible. If this list is not empty it is a reflection of possible work or optimizations possible either in-kernel or in userspace.h]hWe should strive to get this list to be as small as possible. If this list is not empty it is a reflection of possible work or optimizations possible either in-kernel or in userspace.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:242: ./kernel/module/stats.chK^hjChhubeh}(h]2dup-failed-modules-tracks-duplicate-failed-modulesah ]h"]4dup_failed_modules - tracks duplicate failed modulesah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h"module statistics debugfs countersh]h"module statistics debugfs counters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hhhhhKubh)}(hThe total amount of wasted virtual memory allocation space during module loading can be computed by adding the total from the summation:h]hThe total amount of wasted virtual memory allocation space during module loading can be computed by adding the total from the summation:}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKghj9hhubj)}(ht* **invalid_kread_bytes** + **invalid_decompress_bytes** + **invalid_becoming_bytes** + **invalid_mod_bytes** h]j)}(hhh]j)}(hl**invalid_kread_bytes** + **invalid_decompress_bytes** + **invalid_becoming_bytes** + **invalid_mod_bytes** h]h)}(hk**invalid_kread_bytes** + **invalid_decompress_bytes** + **invalid_becoming_bytes** + **invalid_mod_bytes**h](j)}(h**invalid_kread_bytes**h]hinvalid_kread_bytes}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh + }(hjdhhhNhNubj)}(h**invalid_decompress_bytes**h]hinvalid_decompress_bytes}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh + }hjdsbj)}(h**invalid_becoming_bytes**h]hinvalid_becoming_bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh + }hjdsbj)}(h**invalid_mod_bytes**h]hinvalid_mod_bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKjhj`ubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]jjuh1jhjhKjhjYubah}(h]h ]h"]h$]h&]uh1jhjhKjhj9hhubh)}(hPThe following debugfs counters are available to inspect module loading failures:h]hPThe following debugfs counters are available to inspect module loading failures:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKohj9hhubj)}(hX * total_mod_size: total bytes ever used by all modules we've dealt with on this system * total_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this system * invalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure. * invalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure. * invalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because: * module_sig_check() - module signature checks * elf_validity_cache_copy() - some ELF validation issue * early_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present * invalid_mod_bytes: these are the total number of bytes allocated and freed due to failures after we did all the sanity checks of the module which userspace passed to us and after our first check that the module is unique. A module can still fail to load if we detect the module is loaded after we allocate space for it with layout_and_allocate(), we do this check right before processing the module as live and run its initialization routines. Note that you have a failure of this type it also means the respective kernel_read_file_from_fd() memory space was also freed and not used, and so we increment this counter with twice the size of the module. Additionally if you used module decompression the size of the compressed module is also added to this counter. * modcount: how many modules we've loaded in our kernel life time * failed_kreads: how many modules failed due to failed kernel_read_file_from_fd() * failed_decompress: how many failed module decompression attempts we've had. These really should not happen unless your compression / decompression might be broken. * failed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it. * failed_load_modules: how many modules failed once we've allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system. h](j)}(hX * total_mod_size: total bytes ever used by all modules we've dealt with on this system * total_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this system * invalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure. * invalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure. * invalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because: * module_sig_check() - module signature checks * elf_validity_cache_copy() - some ELF validation issue * early_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present * invalid_mod_bytes: these are the total number of bytes allocated and freed due to failures after we did all the sanity checks of the module which userspace passed to us and after our first check that the module is unique. A module can still fail to load if we detect the module is loaded after we allocate space for it with layout_and_allocate(), we do this check right before processing the module as live and run its initialization routines. Note that you have a failure of this type it also means the respective kernel_read_file_from_fd() memory space was also freed and not used, and so we increment this counter with twice the size of the module. Additionally if you used module decompression the size of the compressed module is also added to this counter. h](j)}(hhh](j)}(hTtotal_mod_size: total bytes ever used by all modules we've dealt with on this systemh]h)}(hTtotal_mod_size: total bytes ever used by all modules we've dealt with on this systemh]hVtotal_mod_size: total bytes ever used by all modules we’ve dealt with on this system}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKrhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hjtotal_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this systemh]h)}(hjtotal_text_size: total bytes of the .text and .init.text ELF section sizes we've dealt with on this systemh]hltotal_text_size: total bytes of the .text and .init.text ELF section sizes we’ve dealt with on this system}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKthjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.h]h)}(hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.h]hinvalid_kread_bytes: bytes allocated and then freed on failures which happen due to the initial kernel_read_file_from_fd(). kernel_read_file_from_fd() uses vmalloc(). These should typically not happen unless your system is under memory pressure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKvhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hinvalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure.h]h)}(hinvalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure.h]hinvalid_decompress_bytes: number of bytes allocated and freed due to memory allocations in the module decompression path that use vmap(). These typically should not happen unless your system is under memory pressure.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKzhj*ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because: h]h)}(hXinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our **modules** linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our :c:type:`modules` list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because:h](hinvalid_becoming_bytes: total number of bytes allocated and freed used to read the kernel module userspace wants us to read before we promote it to be processed to be added to our }(hjGhhhNhNubj)}(h **modules**h]hmodules}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubhX linked list. These failures can happen if we had a check in between a successful kernel_read_file_from_fd() call and right before we allocate the our private memory for the module which would be kept if the module is successfully loaded. The most common reason for this failure is when userspace is racing to load a module which it does not yet see loaded. The first module to succeed in add_unformed_module() will add a module to our }(hjGhhhNhNubh)}(h:c:type:`modules`h]j)}(hjch]hmodules}(hjehhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjmodulesuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chK~hjGubhX list and subsequent loads of modules with the same name will error out at the end of early_mod_check(). The check for module_patient_check_exists() at the end of early_mod_check() prevents duplicate allocations on layout_and_allocate() for modules already being processed. These duplicate failed modules are non-fatal, however they typically are indicative of userspace not seeing a module in userspace loaded yet and unnecessarily trying to load a module before the kernel even has a chance to begin to process prior requests. Although duplicate failures can be non-fatal, we should try to reduce vmalloc() pressure proactively, so ideally after boot this will be close to as 0 as possible. If module decompression was used we also add to this counter the cost of the initial kernel_read_file_from_fd() of the compressed module. If module decompression was not used the value represents the total allocated and freed bytes in kernel_read_file_from_fd() calls for these type of failures. These failures can occur because:}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhK~hjCubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKrhjubj)}(hX(* module_sig_check() - module signature checks * elf_validity_cache_copy() - some ELF validation issue * early_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present h]j)}(hhh](j)}(h,module_sig_check() - module signature checksh]h)}(hjh]h,module_sig_check() - module signature checks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h5elf_validity_cache_copy() - some ELF validation issueh]h)}(hjh]h5elf_validity_cache_copy() - some ELF validation issue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hearly_mod_check(): * blacklisting * failed to rewrite section headers * version magic * live patch requirements didn't check out * the module was detected as being already present h](h)}(hearly_mod_check():h]hearly_mod_check():}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubj)}(hhh](j)}(h blacklistingh]h)}(hjh]h blacklisting}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h!failed to rewrite section headersh]h)}(hjh]h!failed to rewrite section headers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h version magich]h)}(hjh]h version magic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h(live patch requirements didn't check outh]h)}(hj.h]h*live patch requirements didn’t check out}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h1the module was detected as being already present h]h)}(h0the module was detected as being already presenth]h0the module was detected as being already present}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjDubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hhh]j)}(hXinvalid_mod_bytes: these are the total number of bytes allocated and freed due to failures after we did all the sanity checks of the module which userspace passed to us and after our first check that the module is unique. A module can still fail to load if we detect the module is loaded after we allocate space for it with layout_and_allocate(), we do this check right before processing the module as live and run its initialization routines. Note that you have a failure of this type it also means the respective kernel_read_file_from_fd() memory space was also freed and not used, and so we increment this counter with twice the size of the module. Additionally if you used module decompression the size of the compressed module is also added to this counter. h]h)}(hXinvalid_mod_bytes: these are the total number of bytes allocated and freed due to failures after we did all the sanity checks of the module which userspace passed to us and after our first check that the module is unique. A module can still fail to load if we detect the module is loaded after we allocate space for it with layout_and_allocate(), we do this check right before processing the module as live and run its initialization routines. Note that you have a failure of this type it also means the respective kernel_read_file_from_fd() memory space was also freed and not used, and so we increment this counter with twice the size of the module. Additionally if you used module decompression the size of the compressed module is also added to this counter.h]hXinvalid_mod_bytes: these are the total number of bytes allocated and freed due to failures after we did all the sanity checks of the module which userspace passed to us and after our first check that the module is unique. A module can still fail to load if we detect the module is loaded after we allocate space for it with layout_and_allocate(), we do this check right before processing the module as live and run its initialization routines. Note that you have a failure of this type it also means the respective kernel_read_file_from_fd() memory space was also freed and not used, and so we increment this counter with twice the size of the module. Additionally if you used module decompression the size of the compressed module is also added to this counter.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjxubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]jjuh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKrhjubj)}(hhh](j)}(h?modcount: how many modules we've loaded in our kernel life timeh]h)}(hjh]hAmodcount: how many modules we’ve loaded in our kernel life time}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()h]h)}(hjh]hOfailed_kreads: how many modules failed due to failed kernel_read_file_from_fd()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hfailed_decompress: how many failed module decompression attempts we've had. These really should not happen unless your compression / decompression might be broken.h]h)}(hfailed_decompress: how many failed module decompression attempts we've had. These really should not happen unless your compression / decompression might be broken.h]hfailed_decompress: how many failed module decompression attempts we’ve had. These really should not happen unless your compression / decompression might be broken.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hfailed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it.h]h)}(hfailed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it.h]hfailed_becoming: how many modules failed after we kernel_read_file_from_fd() it and before we allocate memory for it with layout_and_allocate(). This counter is never incremented if you manage to validate the module and call layout_and_allocate() for it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hXfailed_load_modules: how many modules failed once we've allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system. h]h)}(hXfailed_load_modules: how many modules failed once we've allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system.h]hXfailed_load_modules: how many modules failed once we’ve allocated our private space for our module using layout_and_allocate(). These failures should hopefully mostly be dealt with already. Races in theory could still exist here, but it would just mean the kernel had started processing two threads concurrently up to early_mod_check() and one thread won. These failures are good signs the kernel or userspace is doing something seriously stupid or that could be improved. We should strive to fix these, but it is perhaps not easy to fix them. A recent example are the modules requests incurred for frequency modules, a separate module request was being issued for each CPU on a system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:248: ./kernel/module/stats.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKrhj9hhubeh}(h]"module-statistics-debugfs-countersah ]h"]"module statistics debugfs countersah$]h&]uh1hhjhhhhhKubeh}(h]module-debuggingah ]h"]module debuggingah$]h&]uh1hhj&hhhhhKubh)}(hhh](h)}(hInter Module supporth]hInter Module support}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hhhhhKubh)}(h:Refer to the files in kernel/module/ for more information.h]h:Refer to the files in kernel/module/ for more information.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj7hhubeh}(h]inter-module-supportah ]h"]inter module supportah$]h&]uh1hhj&hhhhhKubeh}(h]module-supportah ]h"]module supportah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hHardware Interfacesh]hHardware Interfaces}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhhhhhMubh)}(hhh](h)}(h DMA Channelsh]h DMA Channels}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j request_dma (C function) c.request_dmahNtauh1hhjwhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhjhKBubj{)}(h request_dmah]j)}(h request_dmah]h request_dma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKBubj)}(h+(unsigned int dmanr, const char *device_id)h](j)}(hunsigned int dmanrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdmanrh]hdmanr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *device_idh](j)}(hjh]hconst}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj )}(hcharh]hchar}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(h device_idh]h device_id}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKBhjhhubj)}(hhh]h)}(h(request and reserve a system DMA channelh]h(request and reserve a system DMA channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKBhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjwhNhNubj)}(h**Parameters** ``unsigned int dmanr`` DMA channel number ``const char * device_id`` reserving device ID string, used in /proc/dmah](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKFhjubj )}(hhh](j)}(h*``unsigned int dmanr`` DMA channel number h](j)}(h``unsigned int dmanr``h]j)}(hjh]hunsigned int dmanr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKChjubj2)}(hhh]h)}(hDMA channel numberh]hDMA channel number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjubj)}(hH``const char * device_id`` reserving device ID string, used in /proc/dmah](j)}(h``const char * device_id``h]j)}(hjh]hconst char * device_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKEhjubj2)}(hhh]h)}(h-reserving device ID string, used in /proc/dmah]h-reserving device ID string, used in /proc/dma}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKDhj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hKEhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j free_dma (C function) c.free_dmahNtauh1hhjwhhhNhNubj)}(hhh](j)}(h"void free_dma (unsigned int dmanr)h]j)}(h!void free_dma(unsigned int dmanr)h](j )}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmhhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKUubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmhhhjhKUubj{)}(hfree_dmah]j)}(hfree_dmah]hfree_dma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjmhhhjhKUubj)}(h(unsigned int dmanr)h]j)}(hunsigned int dmanrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdmanrh]hdmanr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjmhhhjhKUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhKUubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jhjhKUhjfhhubj)}(hhh]h)}(h"free a reserved system DMA channelh]h"free a reserved system DMA channel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKUhj hhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjhKUubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1jhhhjwhNhNubj)}(h;**Parameters** ``unsigned int dmanr`` DMA channel numberh](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKYhj,ubj )}(hhh]j)}(h)``unsigned int dmanr`` DMA channel numberh](j)}(h``unsigned int dmanr``h]j)}(hjQh]hunsigned int dmanr}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chK[hjKubj2)}(hhh]h)}(hDMA channel numberh]hDMA channel number}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:262: ./kernel/dma.chKVhjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhK[hjHubah}(h]h ]h"]h$]h&]uh1j hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjwhhhNhNubeh}(h] dma-channelsah ]h"] dma channelsah$]h&]uh1hhjfhhhhhMubh)}(hhh](h)}(hResources Managementh]hResources Management}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &request_resource_conflict (C function)c.request_resource_conflicthNtauh1hhjhhhNhNubj)}(hhh](j)}(hYstruct resource * request_resource_conflict (struct resource *root, struct resource *new)h]j)}(hWstruct resource *request_resource_conflict(struct resource *root, struct resource *new)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY request_resource_conflictsbc.request_resource_conflictasbuh1hhjhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(hrequest_resource_conflicth]j)}(hjh]hrequest_resource_conflict}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hj h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubh)}(hhh]j)}(hresourceh]hresource}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]jc.request_resource_conflictasbuh1hhj:ubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hstruct resource *newh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.request_resource_conflictasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *new`` resource descriptor desired by caller **Description** Returns 0 for success, conflict resource on error.h](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjKubj )}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjph]hstruct resource *root}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjjubj2)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubj)}(h?``struct resource *new`` resource descriptor desired by caller h](j)}(h``struct resource *new``h]j)}(hjh]hstruct resource *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj2)}(hhh]h)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubeh}(h]h ]h"]h$]h&]uh1j hjKubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjKubh)}(h2Returns 0 for success, conflict resource on error.h]h2Returns 0 for success, conflict resource on error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j find_next_res (C function)c.find_next_reshNtauh1hhjhhhNhNubj)}(hhh](j)}(hint find_next_res (struct resource *parent, resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, struct resource *res)h]j)}(hint find_next_res(struct resource *parent, resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, struct resource *res)h](j )}(hinth]hint}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMLubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%hhhj7hMLubj{)}(h find_next_resh]j)}(h find_next_resh]h find_next_res}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj%hhhj7hMLubj)}(h(struct resource *parent, resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, struct resource *res)h](j)}(hstruct resource *parenth](j)}(hj h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jLsbc.find_next_resasbuh1hhjbubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.find_next_resasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hresource_size_t endh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj%modnameN classnameNj] j` )}jc ]jc.find_next_resasbuh1hhjubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hendh]hend}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(hstruct resource *resh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]jc.find_next_resasbuh1hhjubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hresh]hres}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj!hhhj7hMLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj7hMLhjhhubj)}(hhh]h)}(hCFinds the lowest resource that covers part of [**start**..**end**].h](h/Finds the lowest resource that covers part of [}(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ..**end**].}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMLhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct resource *parent`` resource tree root to search ``resource_size_t start`` start address of the resource searched for ``resource_size_t end`` end address of same resource ``unsigned long flags`` flags which the resource must have ``unsigned long desc`` descriptor the resource must have ``struct resource *res`` return ptr, if resource found **Description** If a resource is found, returns 0 and *****res is overwritten with the part of the resource that's within [**start**..**end**]; if none is found, returns -ENODEV. Returns -EINVAL for invalid parameters. The caller must specify **start**, **end**, **flags**, and **desc** (which may be IORES_DESC_NONE).h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMPhjubj )}(hhh](j)}(h9``struct resource *parent`` resource tree root to search h](j)}(h``struct resource *parent``h]j)}(hjh]hstruct resource *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMShjubj2)}(hhh]h)}(hresource tree root to searchh]hresource tree root to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubj)}(hE``resource_size_t start`` start address of the resource searched for h](j)}(h``resource_size_t start``h]j)}(hjh]hresource_size_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMThjubj2)}(hhh]h)}(h*start address of the resource searched forh]h*start address of the resource searched for}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMThj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hMThjubj)}(h5``resource_size_t end`` end address of same resource h](j)}(h``resource_size_t end``h]j)}(hjPh]hresource_size_t end}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMUhjJubj2)}(hhh]h)}(hend address of same resourceh]hend address of same resource}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMUhjfubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjehMUhjubj)}(h;``unsigned long flags`` flags which the resource must have h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMVhjubj2)}(hhh]h)}(h"flags which the resource must haveh]h"flags which the resource must have}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMVhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMVhjubj)}(h9``unsigned long desc`` descriptor the resource must have h](j)}(h``unsigned long desc``h]j)}(hjh]hunsigned long desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMWhjubj2)}(hhh]h)}(h!descriptor the resource must haveh]h!descriptor the resource must have}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjubj)}(h7``struct resource *res`` return ptr, if resource found h](j)}(h``struct resource *res``h]j)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMXhjubj2)}(hhh]h)}(hreturn ptr, if resource foundh]hreturn ptr, if resource found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMXhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMZhjubh)}(hIf a resource is found, returns 0 and *****res is overwritten with the part of the resource that's within [**start**..**end**]; if none is found, returns -ENODEV. Returns -EINVAL for invalid parameters.h](h&If a resource is found, returns 0 and }(hjLhhhNhNubj)}(hN*****res is overwritten with the part of the resource that's within [**start**h]hL***res is overwritten with the part of the resource that’s within [**start}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubhW..**end**]; if none is found, returns -ENODEV. Returns -EINVAL for invalid parameters.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMMhjubh)}(hcThe caller must specify **start**, **end**, **flags**, and **desc** (which may be IORES_DESC_NONE).h](hThe caller must specify }(hjmhhhNhNubj)}(h **start**h]hstart}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh, }(hjmhhhNhNubj)}(h**end**h]hend}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh, }hjmsbj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh, and }(hjmhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh (which may be IORES_DESC_NONE).}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMRhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  reallocate_resource (C function)c.reallocate_resourcehNtauh1hhjhhhNhNubj)}(hhh](j)}(hint reallocate_resource (struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h]j)}(hint reallocate_resource(struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM)ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM)ubj{)}(hreallocate_resourceh]j)}(hreallocate_resourceh]hreallocate_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM)ubj)}(hn(struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)h](j)}(hstruct resource *rooth](j)}(hj h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjAmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.reallocate_resourceasbuh1hhjubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrooth]hroot}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *oldh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j[c.reallocate_resourceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t newsizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j[c.reallocate_resourceasbuh1hhjubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnewsizeh]hnewsize}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h&struct resource_constraint *constrainth](j)}(hj h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubh)}(hhh]j)}(hresource_constrainth]hresource_constraint}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkmodnameN classnameNj] j` )}jc ]j[c.reallocate_resourceasbuh1hhjGubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(h constrainth]h constraint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM)ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM)ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM)hjhhubj)}(hhh]h)}(hallocate a slot in the resource tree given range & alignment. The resource will be relocated if the new size cannot be reallocated in the current location.h]hallocate a slot in the resource tree given range & alignment. The resource will be relocated if the new size cannot be reallocated in the current location.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM)hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX-**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *old`` resource descriptor desired by caller ``resource_size_t newsize`` new size of the resource descriptor ``struct resource_constraint *constraint`` the memory range and alignment constraints to be met.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM-hjubj )}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hj h]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM-hjubj2)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hM-hj#ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj"hM-hjubj)}(h?``struct resource *old`` resource descriptor desired by caller h](j)}(h``struct resource *old``h]j)}(hjFh]hstruct resource *old}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM.hj@ubj2)}(hhh]h)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hM.hj\ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM.hjubj)}(h@``resource_size_t newsize`` new size of the resource descriptor h](j)}(h``resource_size_t newsize``h]j)}(hjh]hresource_size_t newsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM/hjyubj2)}(hhh]h)}(h#new size of the resource descriptorh]h#new size of the resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubj)}(h```struct resource_constraint *constraint`` the memory range and alignment constraints to be met.h](j)}(h*``struct resource_constraint *constraint``h]j)}(hjh]h&struct resource_constraint *constraint}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM1hjubj2)}(hhh]h)}(h5the memory range and alignment constraints to be met.h]h5the memory range and alignment constraints to be met.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chM0hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lookup_resource (C function)c.lookup_resourcehNtauh1hhjhhhNhNubj)}(hhh](j)}(hPstruct resource * lookup_resource (struct resource *root, resource_size_t start)h]j)}(hNstruct resource *lookup_resource(struct resource *root, resource_size_t start)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubh)}(hhh]j)}(hresourceh]hresource}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]jf )}jY lookup_resourcesbc.lookup_resourceasbuh1hhjhhhjhMubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(hlookup_resourceh]j)}(hjOh]hlookup_resource}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h.(struct resource *root, resource_size_t start)h](j)}(hstruct resource *rooth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jMc.lookup_resourceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jMc.lookup_resourceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hstarth]hstart}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h5find an existing resource by a resource start addressh]h5find an existing resource by a resource start address}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct resource *root`` root resource descriptor ``resource_size_t start`` resource start address **Description** Returns a pointer to the resource if found, NULL otherwiseh](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjqubj )}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjh]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj2)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``resource_size_t start`` resource start address h](j)}(h``resource_size_t start``h]j)}(hjh]hresource_size_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj2)}(hhh]h)}(hresource start addressh]hresource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjqubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjqubh)}(h:Returns a pointer to the resource if found, NULL otherwiseh]h:Returns a pointer to the resource if found, NULL otherwise}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %insert_resource_conflict (C function)c.insert_resource_conflicthNtauh1hhjhhhNhNubj)}(hhh](j)}(hZstruct resource * insert_resource_conflict (struct resource *parent, struct resource *new)h]j)}(hXstruct resource *insert_resource_conflict(struct resource *parent, struct resource *new)h](j)}(hj h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhj\hMubh)}(hhh]j)}(hresourceh]hresource}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]jf )}jY insert_resource_conflictsbc.insert_resource_conflictasbuh1hhjKhhhj\hMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhj\hMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj\hMubj{)}(hinsert_resource_conflicth]j)}(hjh]hinsert_resource_conflict}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhj\hMubj)}(h/(struct resource *parent, struct resource *new)h](j)}(hstruct resource *parenth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.insert_resource_conflictasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hj h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubh)}(hhh]j)}(hresourceh]hresource}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]jc.insert_resource_conflictasbuh1hhj5ubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhj\hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhj\hMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jhj\hMhjDhhubj)}(hhh]h)}(h%Inserts resource in the resource treeh]h%Inserts resource in the resource tree}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXT**Parameters** ``struct resource *parent`` parent of the new resource ``struct resource *new`` new resource to insert **Description** Returns 0 on success, conflict resource if the resource can't be inserted. This function is equivalent to request_resource_conflict when no conflict happens. If a conflict happens, and the conflicting resources entirely fit within the range of the new resource, then the new resource is inserted and the conflicting resources become children of the new resource. This function is intended for producers of resources, such as FW modules and bus drivers.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj )}(hhh](j)}(h7``struct resource *parent`` parent of the new resource h](j)}(h``struct resource *parent``h]j)}(hjh]hstruct resource *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj2)}(hhh]h)}(hparent of the new resourceh]hparent of the new resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``struct resource *new`` new resource to insert h](j)}(h``struct resource *new``h]j)}(hj4h]hstruct resource *new}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj.ubj2)}(hhh]h)}(hnew resource to inserth]hnew resource to insert}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(hJReturns 0 on success, conflict resource if the resource can't be inserted.h]hLReturns 0 on success, conflict resource if the resource can’t be inserted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(hXThis function is equivalent to request_resource_conflict when no conflict happens. If a conflict happens, and the conflicting resources entirely fit within the range of the new resource, then the new resource is inserted and the conflicting resources become children of the new resource.h]hXThis function is equivalent to request_resource_conflict when no conflict happens. If a conflict happens, and the conflicting resources entirely fit within the range of the new resource, then the new resource is inserted and the conflicting resources become children of the new resource.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(hYThis function is intended for producers of resources, such as FW modules and bus drivers.h]hYThis function is intended for producers of resources, such as FW modules and bus drivers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j resource_alignment (C function)c.resource_alignmenthNtauh1hhjhhhNhNubj)}(hhh](j)}(h?resource_size_t resource_alignment (const struct resource *res)h]j)}(h>resource_size_t resource_alignment(const struct resource *res)h](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY resource_alignmentsbc.resource_alignmentasbuh1hhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hresource_alignmenth]j)}(hjh]hresource_alignment}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(const struct resource *res)h]j)}(hconst struct resource *resh](j)}(hjh]hconst}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hj h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hresourceh]hresource}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_modnameN classnameNj] j` )}jc ]jc.resource_alignmentasbuh1hhj ubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hresh]hres}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hcalculate resource's alignmenth]h calculate resource’s alignment}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``const struct resource *res`` resource pointer **Description** Returns alignment on success, 0 (invalid alignment) on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj )}(hhh]j)}(h0``const struct resource *res`` resource pointer h](j)}(h``const struct resource *res``h]j)}(hjh]hconst struct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj2)}(hhh]h)}(hresource pointerh]hresource pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubh)}(h?Returns alignment on success, 0 (invalid alignment) on failure.h]h?Returns alignment on success, 0 (invalid alignment) on failure.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *release_mem_region_adjustable (C function)c.release_mem_region_adjustablehNtauh1hhjhhhNhNubj)}(hhh](j)}(hPvoid release_mem_region_adjustable (resource_size_t start, resource_size_t size)h]j)}(hOvoid release_mem_region_adjustable(resource_size_t start, resource_size_t size)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}hhhjhMubj{)}(hrelease_mem_region_adjustableh]j)}(hrelease_mem_region_adjustableh]hrelease_mem_region_adjustable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhjhMubj)}(h-(resource_size_t start, resource_size_t size)h](j)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.release_mem_region_adjustableasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t sizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jc.release_mem_region_adjustableasbuh1hhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjhMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjvhhubj)}(hhh]h)}(h+release a previously reserved memory regionh]h+release a previously reserved memory region}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj^hhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``resource_size_t start`` resource start address ``resource_size_t size`` resource region size **Description** This interface is intended for memory hot-delete. The requested region is released from a currently busy memory resource. The requested region must either match exactly or fit into a single busy resource entry. In the latter case, the remaining resource is adjusted accordingly. **Note** - Additional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases. - When a busy memory resource gets split into two entries, its children are reassigned to the correct parent based on their range. If a child memory resource overlaps with more than one parent, enhance the logic as needed.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj}ubj )}(hhh](j)}(h1``resource_size_t start`` resource start address h](j)}(h``resource_size_t start``h]j)}(hjh]hresource_size_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj2)}(hhh]h)}(hresource start addressh]hresource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``resource_size_t size`` resource region size h](j)}(h``resource_size_t size``h]j)}(hjh]hresource_size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjubj2)}(hhh]h)}(hresource region sizeh]hresource region size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hj}ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj}ubh)}(hXThis interface is intended for memory hot-delete. The requested region is released from a currently busy memory resource. The requested region must either match exactly or fit into a single busy resource entry. In the latter case, the remaining resource is adjusted accordingly.h]hXThis interface is intended for memory hot-delete. The requested region is released from a currently busy memory resource. The requested region must either match exactly or fit into a single busy resource entry. In the latter case, the remaining resource is adjusted accordingly.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj}ubh)}(h**Note**h]j)}(hj=h]hNote}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhj}ubj)}(hhh](j)}(htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.h]h)}(htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.h]htAdditional release conditions, such as overlapping region, can be supported after they are confirmed as valid cases.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjVubah}(h]h ]h"]h$]h&]uh1jhjSubj)}(hWhen a busy memory resource gets split into two entries, its children are reassigned to the correct parent based on their range. If a child memory resource overlaps with more than one parent, enhance the logic as needed.h]h)}(hWhen a busy memory resource gets split into two entries, its children are reassigned to the correct parent based on their range. If a child memory resource overlaps with more than one parent, enhance the logic as needed.h]hWhen a busy memory resource gets split into two entries, its children are reassigned to the correct parent based on their range. If a child memory resource overlaps with more than one parent, enhance the logic as needed.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjhhMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &merge_system_ram_resource (C function)c.merge_system_ram_resourcehNtauh1hhjhhhNhNubj)}(hhh](j)}(h5void merge_system_ram_resource (struct resource *res)h]j)}(h4void merge_system_ram_resource(struct resource *res)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMJubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMJubj{)}(hmerge_system_ram_resourceh]j)}(hmerge_system_ram_resourceh]hmerge_system_ram_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMJubj)}(h(struct resource *res)h]j)}(hstruct resource *resh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.merge_system_ram_resourceasbuh1hhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hresh]hres}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMJubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMJhjhhubj)}(hhh]h)}(h]mark the System RAM resource mergeable and try to merge it with adjacent, mergeable resourcesh]h]mark the System RAM resource mergeable and try to merge it with adjacent, mergeable resources}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMJhjkhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct resource *res`` resource descriptor **Description** This interface is intended for memory hotplug, whereby lots of contiguous system ram resources are added (e.g., via add_memory*()) by a driver, and the actual resource boundaries are not of interest (e.g., it might be relevant for DIMMs). Only resources that are marked mergeable, that have the same parent, and that don't have any children are considered. All mergeable resources must be immutable during the request. **Note** - The caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale! - release_mem_region_adjustable() will split on demand on memory hotunplugh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMNhjubj )}(hhh]j)}(h-``struct resource *res`` resource descriptor h](j)}(h``struct resource *res``h]j)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMLhjubj2)}(hhh]h)}(hresource descriptorh]hresource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMNhjubh)}(hXThis interface is intended for memory hotplug, whereby lots of contiguous system ram resources are added (e.g., via add_memory*()) by a driver, and the actual resource boundaries are not of interest (e.g., it might be relevant for DIMMs). Only resources that are marked mergeable, that have the same parent, and that don't have any children are considered. All mergeable resources must be immutable during the request.h]hXThis interface is intended for memory hotplug, whereby lots of contiguous system ram resources are added (e.g., via add_memory*()) by a driver, and the actual resource boundaries are not of interest (e.g., it might be relevant for DIMMs). Only resources that are marked mergeable, that have the same parent, and that don’t have any children are considered. All mergeable resources must be immutable during the request.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMMhjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMThjubj)}(hhh](j)}(hThe caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale!h]h)}(hThe caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale!h]hThe caller has to make sure that no pointers to resources that are marked mergeable are used anymore after this call - the resource might be freed and the pointer might be stale!}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMUhj*ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(hHrelease_mem_region_adjustable() will split on demand on memory hotunplugh]h)}(hjEh]hHrelease_mem_region_adjustable() will split on demand on memory hotunplug}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:268: ./kernel/resource.chMXhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]jjuh1jhj<hMUhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j request_resource (C function)c.request_resourcehNtauh1hhjhhhNhNubj)}(hhh](j)}(hBint request_resource (struct resource *root, struct resource *new)h]j)}(hAint request_resource(struct resource *root, struct resource *new)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM&ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}hhhjhM&ubj{)}(hrequest_resourceh]j)}(hrequest_resourceh]hrequest_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhjhM&ubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.request_resourceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrooth]hroot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hj h]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubh)}(hhh]j)}(hresourceh]hresource}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjPmodnameN classnameNj] j` )}jc ]jc.request_resourceasbuh1hhj,ubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhM&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjhM&ubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjhM&hjvhhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM&hjhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *new`` resource descriptor desired by caller **Description** Returns 0 for success, negative error code on error.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM*hjubj )}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjh]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM'hjubj2)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM'hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjubj)}(h?``struct resource *new`` resource descriptor desired by caller h](j)}(h``struct resource *new``h]j)}(hj+h]hstruct resource *new}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM(hj%ubj2)}(hhh]h)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM(hjAubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hM(hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM*hjubh)}(h4Returns 0 for success, negative error code on error.h]h4Returns 0 for success, negative error code on error.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM)hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j release_resource (C function)c.release_resourcehNtauh1hhjhhhNhNubj)}(hhh](j)}(h+int release_resource (struct resource *old)h]j)}(h*int release_resource(struct resource *old)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM7ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM7ubj{)}(hrelease_resourceh]j)}(hrelease_resourceh]hrelease_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM7ubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.release_resourceasbuh1hhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM7ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM7ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM7hjhhubj)}(hhh]h)}(h&release a previously reserved resourceh]h&release a previously reserved resource}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM7hjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h;**Parameters** ``struct resource *old`` resource pointerh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM;hjubj )}(hhh]j)}(h)``struct resource *old`` resource pointerh](j)}(h``struct resource *old``h]j)}(hjh]hstruct resource *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM=hjubj2)}(hhh]h)}(hresource pointerh]hresource pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM8hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  walk_iomem_res_desc (C function)c.walk_iomem_res_deschNtauh1hhjhhhNhNubj)}(hhh](j)}(hint walk_iomem_res_desc (unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource *, void *))h]j)}(hint walk_iomem_res_desc(unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource*, void*))h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hwalk_iomem_res_desch]j)}(hwalk_iomem_res_desch]hwalk_iomem_res_desc}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hn(unsigned long desc, unsigned long flags, u64 start, u64 end, void *arg, int (*func)(struct resource*, void*))h](j)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj )}(hlongh]hlong}(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hdesch]hdesc}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(h u64 starth](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j)sbc.walk_iomem_res_descasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hu64 endh](h)}(hhh]j)}(hu64h]hu64}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jc.walk_iomem_res_descasbuh1hhj+ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hendh]hend}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(h void *argh](j )}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hargh]harg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(h$int (*func)(struct resource*, void*)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjj?h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj?h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjj?h]h(}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jc.walk_iomem_res_descasbuh1hhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj?h]h,}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj?h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hOWalks through iomem resources and calls func() with matching resource ranges. *h]hOWalks through iomem resources and calls func() with matching resource ranges. *}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXv**Parameters** ``unsigned long desc`` I/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check. ``unsigned long flags`` I/O resource flags ``u64 start`` start addr ``u64 end`` end addr ``void *arg`` function argument for the callback **func** ``int (*func)(struct resource *, void *)`` callback function that is called for each qualifying resource area **Description** All the memory ranges which overlap start,end and also match flags and desc are valid candidates. **NOTE** For a new descriptor search, define a new IORES_DESC in and set it in 'desc' of a target resource entry.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj )}(hhh](j)}(h\``unsigned long desc`` I/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check. h](j)}(h``unsigned long desc``h]j)}(hjh]hunsigned long desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj2)}(hhh]h)}(hDI/O resource descriptor. Use IORES_DESC_NONE to skip **desc** check.h](h5I/O resource descriptor. Use IORES_DESC_NONE to skip }(hjhhhNhNubj)}(h**desc**h]hdesc}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh check.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``unsigned long flags`` I/O resource flags h](j)}(h``unsigned long flags``h]j)}(hjKh]hunsigned long flags}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjEubj2)}(hhh]h)}(hI/O resource flagsh]hI/O resource flags}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjubj)}(h``u64 start`` start addr h](j)}(h ``u64 start``h]j)}(hjh]h u64 start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj~ubj2)}(hhh]h)}(h start addrh]h start addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``u64 end`` end addr h](j)}(h ``u64 end``h]j)}(hjh]hu64 end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj2)}(hhh]h)}(hend addrh]hend addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h:``void *arg`` function argument for the callback **func** h](j)}(h ``void *arg``h]j)}(hjh]h void *arg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj2)}(hhh]h)}(h+function argument for the callback **func**h](h#function argument for the callback }(hjhhhNhNubj)}(h**func**h]hfunc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hn``int (*func)(struct resource *, void *)`` callback function that is called for each qualifying resource area h](j)}(h*``int (*func)(struct resource *, void *)``h]j)}(hj=h]h&int (*func)(struct resource *, void *)}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj7ubj2)}(hhh]h)}(hBcallback function that is called for each qualifying resource areah]hBcallback function that is called for each qualifying resource area}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(haAll the memory ranges which overlap start,end and also match flags and desc are valid candidates.h]haAll the memory ranges which overlap start,end and also match flags and desc are valid candidates.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(h**NOTE**h]j)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hyFor a new descriptor search, define a new IORES_DESC in and set it in 'desc' of a target resource entry.h]h}For a new descriptor search, define a new IORES_DESC in and set it in ‘desc’ of a target resource entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j region_intersects (C function)c.region_intersectshNtauh1hhjhhhNhNubj)}(hhh](j)}(hcint region_intersects (resource_size_t start, size_t size, unsigned long flags, unsigned long desc)h]j)}(hbint region_intersects(resource_size_t start, size_t size, unsigned long flags, unsigned long desc)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hregion_intersectsh]j)}(hregion_intersectsh]hregion_intersects}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hM(resource_size_t start, size_t size, unsigned long flags, unsigned long desc)h](j)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj&modnameN classnameNj] j` )}jc ]jf )}jY jsbc.region_intersectsasbuh1hhjubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hstarth]hstart}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]j@c.region_intersectsasbuh1hhjgubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long desch](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdesch]hdesc}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h5determine intersection of region with known resourcesh]h5determine intersection of region with known resources}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``resource_size_t start`` region start address ``size_t size`` size of region ``unsigned long flags`` flags of resource (in iomem_resource) ``unsigned long desc`` descriptor of resource (in iomem_resource) or IORES_DESC_NONE **Description** Check if the specified region partially overlaps or fully eclipses a resource identified by **flags** and **desc** (optional with IORES_DESC_NONE). Return REGION_DISJOINT if the region does not overlap **flags**/**desc**, return REGION_MIXED if the region overlaps **flags**/**desc** and another resource, and return REGION_INTERSECTS if the region overlaps **flags**/**desc** and no other defined resource. Note that REGION_INTERSECTS is also returned in the case when the specified region overlaps RAM and undefined memory holes. region_intersect() is used by memory remapping functions to ensure the user is not remapping RAM and is a vast speed up over walking through the resource table page by page.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj )}(hhh](j)}(h/``resource_size_t start`` region start address h](j)}(h``resource_size_t start``h]j)}(hjh]hresource_size_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj2)}(hhh]h)}(hregion start addressh]hregion start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``size_t size`` size of region h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj2)}(hhh]h)}(hsize of regionh]hsize of region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``unsigned long flags`` flags of resource (in iomem_resource) h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj2)}(hhh]h)}(h%flags of resource (in iomem_resource)h]h%flags of resource (in iomem_resource)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(hU``unsigned long desc`` descriptor of resource (in iomem_resource) or IORES_DESC_NONE h](j)}(h``unsigned long desc``h]j)}(hjRh]hunsigned long desc}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjLubj2)}(hhh]h)}(h=descriptor of resource (in iomem_resource) or IORES_DESC_NONEh]h=descriptor of resource (in iomem_resource) or IORES_DESC_NONE}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hXCheck if the specified region partially overlaps or fully eclipses a resource identified by **flags** and **desc** (optional with IORES_DESC_NONE). Return REGION_DISJOINT if the region does not overlap **flags**/**desc**, return REGION_MIXED if the region overlaps **flags**/**desc** and another resource, and return REGION_INTERSECTS if the region overlaps **flags**/**desc** and no other defined resource. Note that REGION_INTERSECTS is also returned in the case when the specified region overlaps RAM and undefined memory holes.h](h\Check if the specified region partially overlaps or fully eclipses a resource identified by }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX (optional with IORES_DESC_NONE). Return REGION_DISJOINT if the region does not overlap }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}(hjhhhNhNubj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh-, return REGION_MIXED if the region overlaps }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}hjsbj)}(h**desc**h]hdesc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhK and another resource, and return REGION_INTERSECTS if the region overlaps }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/}hjsbj)}(h**desc**h]hdesc}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and no other defined resource. Note that REGION_INTERSECTS is also returned in the case when the specified region overlaps RAM and undefined memory holes.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hregion_intersect() is used by memory remapping functions to ensure the user is not remapping RAM and is a vast speed up over walking through the resource table page by page.h]hregion_intersect() is used by memory remapping functions to ensure the user is not remapping RAM and is a vast speed up over walking through the resource table page by page.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  find_resource_space (C function)c.find_resource_spacehNtauh1hhjhhhNhNubj)}(hhh](j)}(hint find_resource_space (struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h]j)}(hint find_resource_space(struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h](j )}(hinth]hint}(hjqhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmhhhjhMubj{)}(hfind_resource_spaceh]j)}(hfind_resource_spaceh]hfind_resource_space}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjmhhhjhMubj)}(hk(struct resource *root, struct resource *new, resource_size_t size, struct resource_constraint *constraint)h](j)}(hstruct resource *rooth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.find_resource_spaceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrooth]hroot}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj- hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hresourceh]hresource}(hj> hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj; ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@ modnameN classnameNj] j` )}jc ]jc.find_resource_spaceasbuh1hhj ubj2)}(h h]h }(hj\ hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hnewh]hnew}(hjw hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t sizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jc.find_resource_spaceasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h&struct resource_constraint *constrainth](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hresource_constrainth]hresource_constraint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jc.find_resource_spaceasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj" hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h constrainth]h constraint}(hj/ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjfhhubj)}(hhh]h)}(h%Find empty space in the resource treeh]h%Find empty space in the resource tree}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjV hhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjq jjq jjjuh1jhhhjhNhNubj)}(hX<**Parameters** ``struct resource *root`` Root resource descriptor ``struct resource *new`` Resource descriptor awaiting an empty resource space ``resource_size_t size`` The minimum size of the empty space ``struct resource_constraint *constraint`` The range and alignment constraints to be met **Description** Finds an empty space under **root** in the resource tree satisfying range and alignment **constraints**. **Return** * ``0`` - if successful, **new** members start, end, and flags are altered. * ``-EBUSY`` - if no empty space was found.h](h)}(h**Parameters**h]j)}(hj{ h]h Parameters}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhju ubj )}(hhh](j)}(h3``struct resource *root`` Root resource descriptor h](j)}(h``struct resource *root``h]j)}(hj h]hstruct resource *root}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj2)}(hhh]h)}(hRoot resource descriptorh]hRoot resource descriptor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(hN``struct resource *new`` Resource descriptor awaiting an empty resource space h](j)}(h``struct resource *new``h]j)}(hj h]hstruct resource *new}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj2)}(hhh]h)}(h4Resource descriptor awaiting an empty resource spaceh]h4Resource descriptor awaiting an empty resource space}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(h=``resource_size_t size`` The minimum size of the empty space h](j)}(h``resource_size_t size``h]j)}(hj h]hresource_size_t size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubj2)}(hhh]h)}(h#The minimum size of the empty spaceh]h#The minimum size of the empty space}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj! hMhj" ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj! hMhj ubj)}(hY``struct resource_constraint *constraint`` The range and alignment constraints to be met h](j)}(h*``struct resource_constraint *constraint``h]j)}(hjE h]h&struct resource_constraint *constraint}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj? ubj2)}(hhh]h)}(h-The range and alignment constraints to be meth]h-The range and alignment constraints to be met}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ hMhj[ ubah}(h]h ]h"]h$]h&]uh1j1hj? ubeh}(h]h ]h"]h$]h&]uh1jhjZ hMhj ubeh}(h]h ]h"]h$]h&]uh1j hju ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhju ubh)}(hhFinds an empty space under **root** in the resource tree satisfying range and alignment **constraints**.h](hFinds an empty space under }(hj hhhNhNubj)}(h**root**h]hroot}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh5 in the resource tree satisfying range and alignment }(hj hhhNhNubj)}(h**constraints**h]h constraints}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhju ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhju ubj)}(hhh](j)}(hQ``0`` - if successful, **new** members start, end, and flags are altered.h]h)}(hj h](j)}(h``0``h]h0}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh - if successful, }(hj hhhNhNubj)}(h**new**h]hnew}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh+ members start, end, and flags are altered.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(h,``-EBUSY`` - if no empty space was found.h]h)}(hj h](j)}(h ``-EBUSY``h]h-EBUSY}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh" - if no empty space was found.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hMhju ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j allocate_resource (C function)c.allocate_resourcehNtauh1hhjhhhNhNubj)}(hhh](j)}(hint allocate_resource (struct resource *root, struct resource *new, resource_size_t size, resource_size_t min, resource_size_t max, resource_size_t align, resource_alignf alignf, void *alignf_data)h]j)}(hint allocate_resource(struct resource *root, struct resource *new, resource_size_t size, resource_size_t min, resource_size_t max, resource_size_t align, resource_alignf alignf, void *alignf_data)h](j )}(hinth]hint}(hjh hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjd hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMZubj2)}(h h]h }(hjw hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjd hhhjv hMZubj{)}(hallocate_resourceh]j)}(hallocate_resourceh]hallocate_resource}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjd hhhjv hMZubj)}(h(struct resource *root, struct resource *new, resource_size_t size, resource_size_t min, resource_size_t max, resource_size_t align, resource_alignf alignf, void *alignf_data)h](j)}(hstruct resource *rooth](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hresourceh]hresource}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY j sbc.allocate_resourceasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hrooth]hroot}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct resource *newh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj$ hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hresourceh]hresource}(hj5 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2 ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7 modnameN classnameNj] j` )}jc ]j c.allocate_resourceasbuh1hhj ubj2)}(h h]h }(hjS hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hja hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hnewh]hnew}(hjn hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hresource_size_t sizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]j c.allocate_resourceasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hresource_size_t minh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]j c.allocate_resourceasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hminh]hmin}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hresource_size_t maxh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.allocate_resourceasbuh1hhjubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hmaxh]hmax}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hresource_size_t alignh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjdmodnameN classnameNj] j` )}jc ]j c.allocate_resourceasbuh1hhj[ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(halignh]halign}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hresource_alignf alignfh](h)}(hhh]j)}(hresource_alignfh]hresource_alignf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.allocate_resourceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(halignfh]halignf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hvoid *alignf_datah](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h alignf_datah]h alignf_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjd hhhjv hMZubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj` hhhjv hMZubah}(h]j[ ah ](jjeh"]h$]h&]jj)jhuh1jhjv hMZhj] hhubj)}(hhh]h)}(hallocate empty slot in the resource tree given range & alignment. The resource will be reallocated with a new size if it was already allocatedh]hallocate empty slot in the resource tree given range & alignment. The resource will be reallocated with a new size if it was already allocated}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMZhj?hhubah}(h]h ]h"]h$]h&]uh1jhj] hhhjv hMZubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *new`` resource descriptor desired by caller ``resource_size_t size`` requested resource region size ``resource_size_t min`` minimum boundary to allocate ``resource_size_t max`` maximum boundary to allocate ``resource_size_t align`` alignment requested, in bytes ``resource_alignf alignf`` alignment function, optional, called if not NULL ``void *alignf_data`` arbitrary data to pass to the **alignf** functionh](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM^hj^ubj )}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hjh]hstruct resource *root}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM\hj}ubj2)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1j1hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjzubj)}(h?``struct resource *new`` resource descriptor desired by caller h](j)}(h``struct resource *new``h]j)}(hjh]hstruct resource *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM]hjubj2)}(hhh]h)}(h%resource descriptor desired by callerh]h%resource descriptor desired by caller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjzubj)}(h8``resource_size_t size`` requested resource region size h](j)}(h``resource_size_t size``h]j)}(hjh]hresource_size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM^hjubj2)}(hhh]h)}(hrequested resource region sizeh]hrequested resource region size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM^hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hM^hjzubj)}(h5``resource_size_t min`` minimum boundary to allocate h](j)}(h``resource_size_t min``h]j)}(hj.h]hresource_size_t min}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM_hj(ubj2)}(hhh]h)}(hminimum boundary to allocateh]hminimum boundary to allocate}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM_hjDubah}(h]h ]h"]h$]h&]uh1j1hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChM_hjzubj)}(h5``resource_size_t max`` maximum boundary to allocate h](j)}(h``resource_size_t max``h]j)}(hjgh]hresource_size_t max}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM`hjaubj2)}(hhh]h)}(hmaximum boundary to allocateh]hmaximum boundary to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hM`hj}ubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM`hjzubj)}(h8``resource_size_t align`` alignment requested, in bytes h](j)}(h``resource_size_t align``h]j)}(hjh]hresource_size_t align}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMahjubj2)}(hhh]h)}(halignment requested, in bytesh]halignment requested, in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjzubj)}(hL``resource_alignf alignf`` alignment function, optional, called if not NULL h](j)}(h``resource_alignf alignf``h]j)}(hjh]hresource_alignf alignf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMbhjubj2)}(hhh]h)}(h0alignment function, optional, called if not NULLh]h0alignment function, optional, called if not NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMbhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhjzubj)}(hG``void *alignf_data`` arbitrary data to pass to the **alignf** functionh](j)}(h``void *alignf_data``h]j)}(hjh]hvoid *alignf_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMdhj ubj2)}(hhh]h)}(h1arbitrary data to pass to the **alignf** functionh](harbitrary data to pass to the }(hj+hhhNhNubj)}(h **alignf**h]halignf}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh function}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMchj(ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMdhjzubeh}(h]h ]h"]h$]h&]uh1j hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j insert_resource (C function)c.insert_resourcehNtauh1hhjhhhNhNubj)}(hhh](j)}(hCint insert_resource (struct resource *parent, struct resource *new)h]j)}(hBint insert_resource(struct resource *parent, struct resource *new)h](j )}(hinth]hint}(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzhhhjhMubj{)}(hinsert_resourceh]j)}(hinsert_resourceh]hinsert_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzhhhjhMubj)}(h/(struct resource *parent, struct resource *new)h](j)}(hstruct resource *parenth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.insert_resourceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hj h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubh)}(hhh]j)}(hresourceh]hresource}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jc.insert_resourceasbuh1hhj)ubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjzhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjshhubj)}(hhh]h)}(h'Inserts a resource in the resource treeh]h'Inserts a resource in the resource tree}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX(**Parameters** ``struct resource *parent`` parent of the new resource ``struct resource *new`` new resource to insert **Description** Returns 0 on success, -EBUSY if the resource can't be inserted. This function is intended for producers of resources, such as FW modules and bus drivers.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj )}(hhh](j)}(h7``struct resource *parent`` parent of the new resource h](j)}(h``struct resource *parent``h]j)}(hjh]hstruct resource *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj2)}(hhh]h)}(hparent of the new resourceh]hparent of the new resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``struct resource *new`` new resource to insert h](j)}(h``struct resource *new``h]j)}(hj(h]hstruct resource *new}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj"ubj2)}(hhh]h)}(hnew resource to inserth]hnew resource to insert}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(h?Returns 0 on success, -EBUSY if the resource can't be inserted.h]hAReturns 0 on success, -EBUSY if the resource can’t be inserted.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hYThis function is intended for producers of resources, such as FW modules and bus drivers.h]hYThis function is intended for producers of resources, such as FW modules and bus drivers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *insert_resource_expand_to_fit (C function)c.insert_resource_expand_to_fithNtauh1hhjhhhNhNubj)}(hhh](j)}(hPvoid insert_resource_expand_to_fit (struct resource *root, struct resource *new)h]j)}(hOvoid insert_resource_expand_to_fit(struct resource *root, struct resource *new)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hinsert_resource_expand_to_fith]j)}(hinsert_resource_expand_to_fith]hinsert_resource_expand_to_fit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h-(struct resource *root, struct resource *new)h](j)}(hstruct resource *rooth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.insert_resource_expand_to_fitasbuh1hhjubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrooth]hroot}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct resource *newh](j)}(hj h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j.c.insert_resource_expand_to_fitasbuh1hhjbubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h(Insert a resource into the resource treeh]h(Insert a resource into the resource tree}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct resource *root`` root resource descriptor ``struct resource *new`` new resource to insert **Description** Insert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubj )}(hhh](j)}(h3``struct resource *root`` root resource descriptor h](j)}(h``struct resource *root``h]j)}(hj(h]hstruct resource *root}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj"ubj2)}(hhh]h)}(hroot resource descriptorh]hroot resource descriptor}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubj)}(h0``struct resource *new`` new resource to insert h](j)}(h``struct resource *new``h]j)}(hjah]hstruct resource *new}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj[ubj2)}(hhh]h)}(hnew resource to inserth]hnew resource to insert}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubh)}(hxInsert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.h]hxInsert a resource into the resource tree, possibly expanding it in order to make it encompass any conflicting resources.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j remove_resource (C function)c.remove_resourcehNtauh1hhjhhhNhNubj)}(hhh](j)}(h*int remove_resource (struct resource *old)h]j)}(h)int remove_resource(struct resource *old)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM%ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM%ubj{)}(hremove_resourceh]j)}(hremove_resourceh]hremove_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM%ubj)}(h(struct resource *old)h]j)}(hstruct resource *oldh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj>modnameN classnameNj] j` )}jc ]jf )}jY jsbc.remove_resourceasbuh1hhjubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM%ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM%ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM%hjhhubj)}(hhh]h)}(h&Remove a resource in the resource treeh]h&Remove a resource in the resource tree}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM%hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX[**Parameters** ``struct resource *old`` resource to remove **Description** Returns 0 on success, -EINVAL if the resource is not valid. This function removes a resource previously inserted by insert_resource() or insert_resource_conflict(), and moves the children (if any) up to where they were before. insert_resource() and insert_resource_conflict() insert a new resource, and move any conflicting resources down to the children of the new resource. insert_resource(), insert_resource_conflict() and remove_resource() are intended for producers of resources, such as FW modules and bus drivers.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM)hjubj )}(hhh]j)}(h,``struct resource *old`` resource to remove h](j)}(h``struct resource *old``h]j)}(hjh]hstruct resource *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM&hjubj2)}(hhh]h)}(hresource to removeh]hresource to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM&hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM(hjubh)}(h;Returns 0 on success, -EINVAL if the resource is not valid.h]h;Returns 0 on success, -EINVAL if the resource is not valid.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM'hjubh)}(hX<This function removes a resource previously inserted by insert_resource() or insert_resource_conflict(), and moves the children (if any) up to where they were before. insert_resource() and insert_resource_conflict() insert a new resource, and move any conflicting resources down to the children of the new resource.h]hX<This function removes a resource previously inserted by insert_resource() or insert_resource_conflict(), and moves the children (if any) up to where they were before. insert_resource() and insert_resource_conflict() insert a new resource, and move any conflicting resources down to the children of the new resource.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM)hjubh)}(hinsert_resource(), insert_resource_conflict() and remove_resource() are intended for producers of resources, such as FW modules and bus drivers.h]hinsert_resource(), insert_resource_conflict() and remove_resource() are intended for producers of resources, such as FW modules and bus drivers.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j adjust_resource (C function)c.adjust_resourcehNtauh1hhjhhhNhNubj)}(hhh](j)}(hWint adjust_resource (struct resource *res, resource_size_t start, resource_size_t size)h]j)}(hVint adjust_resource(struct resource *res, resource_size_t start, resource_size_t size)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|hhhjhMdubj{)}(hadjust_resourceh]j)}(hadjust_resourceh]hadjust_resource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|hhhjhMdubj)}(hC(struct resource *res, resource_size_t start, resource_size_t size)h](j)}(hstruct resource *resh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.adjust_resourceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hresh]hres}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jc.adjust_resourceasbuh1hhj+ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hstarth]hstart}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t sizeh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|modnameN classnameNj] j` )}jc ]jc.adjust_resourceasbuh1hhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhjhMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjhMdubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1jhjhMdhjuhhubj)}(hhh]h)}(h"modify a resource's start and sizeh]h$modify a resource’s start and size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX]**Parameters** ``struct resource *res`` resource to modify ``resource_size_t start`` new start value ``resource_size_t size`` new size **Description** Given an existing resource, change its start and size to match the arguments. Returns 0 on success, -EBUSY if it can't fit. Existing children of the resource are assumed to be immutable.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhhjubj )}(hhh](j)}(h,``struct resource *res`` resource to modify h](j)}(h``struct resource *res``h]j)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMehj ubj2)}(hhh]h)}(hresource to modifyh]hresource to modify}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMehj'ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMehjubj)}(h*``resource_size_t start`` new start value h](j)}(h``resource_size_t start``h]j)}(hjJh]hresource_size_t start}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMfhjDubj2)}(hhh]h)}(hnew start valueh]hnew start value}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMfhj`ubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMfhjubj)}(h"``resource_size_t size`` new size h](j)}(h``resource_size_t size``h]j)}(hjh]hresource_size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMghj}ubj2)}(hhh]h)}(hnew sizeh]hnew size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1j1hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMihjubh)}(hGiven an existing resource, change its start and size to match the arguments. Returns 0 on success, -EBUSY if it can't fit. Existing children of the resource are assumed to be immutable.h]hGiven an existing resource, change its start and size to match the arguments. Returns 0 on success, -EBUSY if it can’t fit. Existing children of the resource are assumed to be immutable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __request_region (C function)c.__request_regionhNtauh1hhjhhhNhNubj)}(hhh](j)}(hstruct resource * __request_region (struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h]j)}(hstruct resource *__request_region(struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMXubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMXubh)}(hhh]j)}(hresourceh]hresource}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$modnameN classnameNj] j` )}jc ]jf )}jY __request_regionsbc.__request_regionasbuh1hhjhhhjhMXubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMXubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMXubj{)}(h__request_regionh]j)}(hj@h]h__request_region}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMXubj)}(h`(struct resource *parent, resource_size_t start, resource_size_t n, const char *name, int flags)h](j)}(hstruct resource *parenth](j)}(hj h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j>c.__request_regionasbuh1hhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j>c.__request_regionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hresource_size_t nh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj:modnameN classnameNj] j` )}jc ]j>c.__request_regionasbuh1hhj1ubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]hn}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hconst char *nameh](j)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(h int flagsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMXubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMXhjhhubj)}(hhh]h)}(h!create a new busy resource regionh]h!create a new busy resource region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMXhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMXubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct resource *parent`` parent resource descriptor ``resource_size_t start`` resource start address ``resource_size_t n`` resource region size ``const char *name`` reserving caller's ID string ``int flags`` IO resource flagsh](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM\hj;ubj )}(hhh](j)}(h7``struct resource *parent`` parent resource descriptor h](j)}(h``struct resource *parent``h]j)}(hj`h]hstruct resource *parent}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMYhjZubj2)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMYhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMYhjWubj)}(h1``resource_size_t start`` resource start address h](j)}(h``resource_size_t start``h]j)}(hjh]hresource_size_t start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMZhjubj2)}(hhh]h)}(hresource start addressh]hresource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMZhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjWubj)}(h+``resource_size_t n`` resource region size h](j)}(h``resource_size_t n``h]j)}(hjh]hresource_size_t n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM[hjubj2)}(hhh]h)}(hresource region sizeh]hresource region size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjWubj)}(h2``const char *name`` reserving caller's ID string h](j)}(h``const char *name``h]j)}(hj h]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM\hjubj2)}(hhh]h)}(hreserving caller's ID stringh]hreserving caller’s ID string}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM\hj!ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hM\hjWubj)}(h``int flags`` IO resource flagsh](j)}(h ``int flags``h]j)}(hjDh]h int flags}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM^hj>ubj2)}(hhh]h)}(hIO resource flagsh]hIO resource flags}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM]hjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM^hjWubeh}(h]h ]h"]h$]h&]uh1j hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __release_region (C function)c.__release_regionhNtauh1hhjhhhNhNubj)}(hhh](j)}(hYvoid __release_region (struct resource *parent, resource_size_t start, resource_size_t n)h]j)}(hXvoid __release_region(struct resource *parent, resource_size_t start, resource_size_t n)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMzubj{)}(h__release_regionh]j)}(h__release_regionh]h__release_region}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMzubj)}(hC(struct resource *parent, resource_size_t start, resource_size_t n)h](j)}(hstruct resource *parenth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.__release_regionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t starth](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRmodnameN classnameNj] j` )}jc ]jc.__release_regionasbuh1hhjIubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubj)}(hstarth]hstart}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hresource_size_t nh](h)}(hhh]j)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.__release_regionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMzubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMzubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMzhjhhubj)}(hhh]h)}(h-release a previously reserved resource regionh]h-release a previously reserved resource region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMzhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct resource *parent`` parent resource descriptor ``resource_size_t start`` resource start address ``resource_size_t n`` resource region size **Description** The described resource region must match a currently busy region.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM~hj ubj )}(hhh](j)}(h7``struct resource *parent`` parent resource descriptor h](j)}(h``struct resource *parent``h]j)}(hj.h]hstruct resource *parent}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM{hj(ubj2)}(hhh]h)}(hparent resource descriptorh]hparent resource descriptor}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM{hjDubah}(h]h ]h"]h$]h&]uh1j1hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChM{hj%ubj)}(h1``resource_size_t start`` resource start address h](j)}(h``resource_size_t start``h]j)}(hjgh]hresource_size_t start}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM|hjaubj2)}(hhh]h)}(hresource start addressh]hresource start address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hM|hj}ubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM|hj%ubj)}(h+``resource_size_t n`` resource region size h](j)}(h``resource_size_t n``h]j)}(hjh]hresource_size_t n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM}hjubj2)}(hhh]h)}(hresource region sizeh]hresource region size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hj%ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj ubh)}(hAThe described resource region must match a currently busy region.h]hAThe described resource region must match a currently busy region.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM~hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "devm_request_resource (C function)c.devm_request_resourcehNtauh1hhjhhhNhNubj)}(hhh](j)}(h[int devm_request_resource (struct device *dev, struct resource *root, struct resource *new)h]j)}(hZint devm_request_resource(struct device *dev, struct resource *root, struct resource *new)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMubj2)}(h h]h }(hj/ hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj. hMubj{)}(hdevm_request_resourceh]j)}(hdevm_request_resourceh]hdevm_request_resource}(hjA hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj= ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj. hMubj)}(hA(struct device *dev, struct resource *root, struct resource *new)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj] hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubj2)}(h h]h }(hjj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjY ubh)}(hhh]j)}(hdeviceh]hdevice}(hj{ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj} modnameN classnameNj] j` )}jc ]jf )}jY jC sbc.devm_request_resourceasbuh1hhjY ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjY ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubj)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU ubj)}(hstruct resource *rooth](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hresourceh]hresource}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]j c.devm_request_resourceasbuh1hhj ubj2)}(h h]h }(hj !hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hrooth]hroot}(hj&!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU ubj)}(hstruct resource *newh](j)}(hj h]hstruct}(hj?!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;!ubj2)}(h h]h }(hjL!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;!ubh)}(hhh]j)}(hresourceh]hresource}(hj]!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_!modnameN classnameNj] j` )}jc ]j c.devm_request_resourceasbuh1hhj;!ubj2)}(h h]h }(hj{!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;!ubj)}(hnewh]hnew}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjU ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj. hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj. hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj. hMhj hhubj)}(hhh]h)}(h-request and reserve an I/O or memory resourceh]h-request and reserve an I/O or memory resource}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj. hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jhhhjhNhNubj)}(hXR**Parameters** ``struct device *dev`` device for which to request the resource ``struct resource *root`` root of the resource tree from which to request the resource ``struct resource *new`` descriptor of the resource to request **Description** This is a device-managed version of request_resource(). There is usually no need to release resources requested by this function explicitly since that will be taken care of when the device is unbound from its driver. If for some reason the resource needs to be released explicitly, because of ordering issues for example, drivers must call devm_release_resource() rather than the regular release_resource(). When a conflict is detected between any existing resources and the newly requested resource, an error message will be printed. Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj!ubj )}(hhh](j)}(h@``struct device *dev`` device for which to request the resource h](j)}(h``struct device *dev``h]j)}(hj"h]hstruct device *dev}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj!ubj2)}(hhh]h)}(h(device for which to request the resourceh]h(device for which to request the resource}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhj!ubj)}(hW``struct resource *root`` root of the resource tree from which to request the resource h](j)}(h``struct resource *root``h]j)}(hj:"h]hstruct resource *root}(hj<"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8"ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj4"ubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hj #hhhj#hMubj{)}(hdevm_release_resourceh]j)}(hdevm_release_resourceh]hdevm_release_resource}(hj2#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj #hhhj#hMubj)}(h*(struct device *dev, struct resource *new)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjN#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ#ubj2)}(h h]h }(hj[#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ#ubh)}(hhh]j)}(hdeviceh]hdevice}(hjl#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjn#modnameN classnameNj] j` )}jc ]jf )}jY j4#sbc.devm_release_resourceasbuh1hhjJ#ubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ#ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ#ubj)}(hdevh]hdev}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF#ubj)}(hstruct resource *newh](j)}(hj h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubh)}(hhh]j)}(hresourceh]hresource}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]j#c.devm_release_resourceasbuh1hhj#ubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hjh]h*}(hj $hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hnewh]hnew}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjF#ubeh}(h]h ]h"]h$]h&]jjuh1jhj #hhhj#hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj #hhhj#hMubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jhj#hMhj#hhubj)}(hhh]h)}(h'release a previously requested resourceh]h'release a previously requested resource}(hjA$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj>$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjY$jjY$jjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct device *dev`` device for which to release the resource ``struct resource *new`` descriptor of the resource to release **Description** Releases a resource previously requested using devm_request_resource().h](h)}(h**Parameters**h]j)}(hjc$h]h Parameters}(hje$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja$ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj]$ubj )}(hhh](j)}(h@``struct device *dev`` device for which to release the resource h](j)}(h``struct device *dev``h]j)}(hj$h]hstruct device *dev}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj|$ubj2)}(hhh]h)}(h(device for which to release the resourceh]h(device for which to release the resource}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1j1hj|$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjy$ubj)}(h?``struct resource *new`` descriptor of the resource to release h](j)}(h``struct resource *new``h]j)}(hj$h]hstruct resource *new}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj$ubj2)}(hhh]h)}(h%descriptor of the resource to releaseh]h%descriptor of the resource to release}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1j1hj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjy$ubeh}(h]h ]h"]h$]h&]uh1j hj]$ubh)}(h**Description**h]j)}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj]$ubh)}(hGReleases a resource previously requested using devm_request_resource().h]hGReleases a resource previously requested using devm_request_resource().}(hj %hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMhj]$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )devm_request_free_mem_region (C function)c.devm_request_free_mem_regionhNtauh1hhjhhhNhNubj)}(hhh](j)}(hnstruct resource * devm_request_free_mem_region (struct device *dev, struct resource *base, unsigned long size)h]j)}(hlstruct resource *devm_request_free_mem_region(struct device *dev, struct resource *base, unsigned long size)h](j)}(hj h]hstruct}(hj;%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7%hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM1ubj2)}(h h]h }(hjI%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7%hhhjH%hM1ubh)}(hhh]j)}(hresource3h]hresource}(hjZ%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj\%modnameN classnameNj] j` )}jc ]jf )}jY devm_request_free_mem_regionsbc.devm_request_free_mem_regionasbuh1hhj7%hhhjH%hM1ubj2)}(h h]h }(hj{%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7%hhhjH%hM1ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7%hhhjH%hM1ubj{)}(hdevm_request_free_mem_regionh]j)}(hjx%h]hdevm_request_free_mem_region}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7%hhhjH%hM1ubj)}(h?(struct device *dev, struct resource *base, unsigned long size)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubh)}(hhh]j)}(hdeviceh]hdevice}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj%modnameN classnameNj] j` )}jc ]jv%c.devm_request_free_mem_regionasbuh1hhj%ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hdevh]hdev}(hj &hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hstruct resource *baseh](j)}(hj h]hstruct}(hj%&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!&ubj2)}(h h]h }(hj2&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!&ubh)}(hhh]j)}(hresourceh]hresource}(hjC&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjE&modnameN classnameNj] j` )}jc ]jv%c.devm_request_free_mem_regionasbuh1hhj!&ubj2)}(h h]h }(hja&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!&ubj)}(hjh]h*}(hjo&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!&ubj)}(hbaseh]hbase}(hj|&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&ubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj )}(hlongh]hlong}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&ubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj)}(hsizeh]hsize}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(h]h ]h"]h$]h&]jjuh1jhj7%hhhjH%hM1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3%hhhjH%hM1ubah}(h]j.%ah ](jjeh"]h$]h&]jj)jhuh1jhjH%hM1hj0%hhubj)}(hhh]h)}(h*find free region for device private memoryh]h*find free region for device private memory}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM1hj&hhubah}(h]h ]h"]h$]h&]uh1jhj0%hhhjH%hM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` device struct to bind the resource to ``struct resource *base`` resource tree to look in ``unsigned long size`` size in bytes of the device memory to add **Description** This function tries to find an empty range of physical address big enough to contain the new resource, so that it can later be hotplugged as ZONE_DEVICE memory, which in turn allocates struct pages.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM5hj'ubj )}(hhh](j)}(h=``struct device *dev`` device struct to bind the resource to h](j)}(h``struct device *dev``h]j)}(hj8'h]hstruct device *dev}(hj:'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6'ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM3hj2'ubj2)}(hhh]h)}(h%device struct to bind the resource toh]h%device struct to bind the resource to}(hjQ'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM'hM3hjN'ubah}(h]h ]h"]h$]h&]uh1j1hj2'ubeh}(h]h ]h"]h$]h&]uh1jhjM'hM3hj/'ubj)}(h3``struct resource *base`` resource tree to look in h](j)}(h``struct resource *base``h]j)}(hjq'h]hstruct resource *base}(hjs'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo'ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM5hjk'ubj2)}(hhh]h)}(hresource tree to look inh]hresource tree to look in}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM5hj'ubah}(h]h ]h"]h$]h&]uh1j1hjk'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM5hj/'ubj)}(hA``unsigned long size`` size in bytes of the device memory to add h](j)}(h``unsigned long size``h]j)}(hj'h]hunsigned long size}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM4hj'ubj2)}(hhh]h)}(h)size in bytes of the device memory to addh]h)size in bytes of the device memory to add}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hM4hj'ubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM4hj/'ubeh}(h]h ]h"]h$]h&]uh1j hj'ubh)}(h**Description**h]j)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM6hj'ubh)}(hThis function tries to find an empty range of physical address big enough to contain the new resource, so that it can later be hotplugged as ZONE_DEVICE memory, which in turn allocates struct pages.h]hThis function tries to find an empty range of physical address big enough to contain the new resource, so that it can later be hotplugged as ZONE_DEVICE memory, which in turn allocates struct pages.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chM6hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "alloc_free_mem_region (C function)c.alloc_free_mem_regionhNtauh1hhjhhhNhNubj)}(hhh](j)}(hzstruct resource * alloc_free_mem_region (struct resource *base, unsigned long size, unsigned long align, const char *name)h]j)}(hxstruct resource *alloc_free_mem_region(struct resource *base, unsigned long size, unsigned long align, const char *name)h](j)}(hj h]hstruct}(hj*(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&(hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMQubj2)}(h h]h }(hj8(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&(hhhj7(hMQubh)}(hhh]j)}(hresourceh]hresource}(hjI(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF(ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjK(modnameN classnameNj] j` )}jc ]jf )}jY alloc_free_mem_regionsbc.alloc_free_mem_regionasbuh1hhj&(hhhj7(hMQubj2)}(h h]h }(hjj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&(hhhj7(hMQubj)}(hjh]h*}(hjx(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&(hhhj7(hMQubj{)}(halloc_free_mem_regionh]j)}(hjg(h]halloc_free_mem_region}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&(hhhj7(hMQubj)}(hR(struct resource *base, unsigned long size, unsigned long align, const char *name)h](j)}(hstruct resource *baseh](j)}(hj h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubh)}(hhh]j)}(hresourceh]hresource}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj(modnameN classnameNj] j` )}jc ]je(c.alloc_free_mem_regionasbuh1hhj(ubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hbaseh]hbase}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj")hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj )}(hlongh]hlong}(hj0)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj>)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hsizeh]hsize}(hjL)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hunsigned long alignh](j )}(hunsignedh]hunsigned}(hje)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhja)ubj2)}(h h]h }(hjs)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hja)ubj )}(hlongh]hlong}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhja)ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hja)ubj)}(halignh]halign}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubj)}(hconst char *nameh](j)}(hjh]hconst}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj )}(hcharh]hchar}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hnameh]hname}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubeh}(h]h ]h"]h$]h&]jjuh1jhj&(hhhj7(hMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"(hhhj7(hMQubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhj7(hMQhj(hhubj)}(hhh]h)}(h'find a free region relative to **base**h](hfind a free region relative to }(hj$*hhhNhNubj)}(h**base**h]hbase}(hj,*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$*ubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMQhj!*hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj7(hMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJ*jjJ*jjjuh1jhhhjhNhNubj)}(hX"**Parameters** ``struct resource *base`` resource that will parent the new resource ``unsigned long size`` size in bytes of memory to allocate from **base** ``unsigned long align`` alignment requirements for the allocation ``const char *name`` resource name **Description** Buses like CXL, that can dynamically instantiate new memory regions, need a method to allocate physical address space for those regions. Allocate and insert a new resource to cover a free, unclaimed by a descendant of **base**, range in the span of **base**.h](h)}(h**Parameters**h]j)}(hjT*h]h Parameters}(hjV*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR*ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMUhjN*ubj )}(hhh](j)}(hE``struct resource *base`` resource that will parent the new resource h](j)}(h``struct resource *base``h]j)}(hjs*h]hstruct resource *base}(hju*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq*ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMRhjm*ubj2)}(hhh]h)}(h*resource that will parent the new resourceh]h*resource that will parent the new resource}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMRhj*ubah}(h]h ]h"]h$]h&]uh1j1hjm*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMRhjj*ubj)}(hI``unsigned long size`` size in bytes of memory to allocate from **base** h](j)}(h``unsigned long size``h]j)}(hj*h]hunsigned long size}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMShj*ubj2)}(hhh]h)}(h1size in bytes of memory to allocate from **base**h](h)size in bytes of memory to allocate from }(hj*hhhNhNubj)}(h**base**h]hbase}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1hhj*hMShj*ubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMShjj*ubj)}(hB``unsigned long align`` alignment requirements for the allocation h](j)}(h``unsigned long align``h]j)}(hj*h]hunsigned long align}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMThj*ubj2)}(hhh]h)}(h)alignment requirements for the allocationh]h)alignment requirements for the allocation}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMThj +ubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhj+hMThjj*ubj)}(h#``const char *name`` resource name h](j)}(h``const char *name``h]j)}(hj,+h]hconst char *name}(hj.+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*+ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMUhj&+ubj2)}(hhh]h)}(h resource nameh]h resource name}(hjE+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA+hMUhjB+ubah}(h]h ]h"]h$]h&]uh1j1hj&+ubeh}(h]h ]h"]h$]h&]uh1jhjA+hMUhjj*ubeh}(h]h ]h"]h$]h&]uh1j hjN*ubh)}(h**Description**h]j)}(hjg+h]h Description}(hji+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje+ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMWhjN*ubh)}(hXBuses like CXL, that can dynamically instantiate new memory regions, need a method to allocate physical address space for those regions. Allocate and insert a new resource to cover a free, unclaimed by a descendant of **base**, range in the span of **base**.h](hBuses like CXL, that can dynamically instantiate new memory regions, need a method to allocate physical address space for those regions. Allocate and insert a new resource to cover a free, unclaimed by a descendant of }(hj}+hhhNhNubj)}(h**base**h]hbase}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}+ubh, range in the span of }(hj}+hhhNhNubj)}(h**base**h]hbase}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}+ubh.}(hj}+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:271: ./kernel/resource.chMVhjN*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]resources-managementah ]h"]resources managementah$]h&]uh1hhjfhhhhhM ubh)}(hhh](h)}(h MTRR Handlingh]h MTRR Handling}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j arch_phys_wc_add (C function)c.arch_phys_wc_addhNtauh1hhj+hhhNhNubj)}(hhh](j)}(h=int arch_phys_wc_add (unsigned long base, unsigned long size)h]j)}(hah"]h$]h&]uh1j1hj+hhhj+hMubj{)}(harch_phys_wc_addh]j)}(harch_phys_wc_addh]harch_phys_wc_add}(hj ,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+hhhj+hMubj)}(h((unsigned long base, unsigned long size)h](j)}(hunsigned long baseh](j )}(hunsignedh]hunsigned}(hj&,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj",ubj2)}(h h]h }(hj4,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj",ubj )}(hlongh]hlong}(hjB,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj",ubj2)}(h h]h }(hjP,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj",ubj)}(hbaseh]hbase}(hj^,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj",ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hunsigned long sizeh](j )}(hunsignedh]hunsigned}(hjw,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjs,ubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjs,ubj )}(hlongh]hlong}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjs,ubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjs,ubj)}(hsizeh]hsize}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhj+hhhj+hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+hhhj+hMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1jhj+hMhj+hhubj)}(hhh]h)}(h5add a WC MTRR and handle errors if PAT is unavailableh]h5add a WC MTRR and handle errors if PAT is unavailable}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jhj+hhhj+hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jhhhj+hNhNubj)}(hX**Parameters** ``unsigned long base`` Physical base address ``unsigned long size`` Size of region **Description** If PAT is available, this does nothing. If PAT is unavailable, it attempts to add a WC MTRR covering size bytes starting at base and logs an error if this fails. The called should provide a power of two size on an equivalent power of two boundary. Drivers must store the return value to pass to mtrr_del_wc_if_needed, but drivers should not try to interpret that return value.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhj,ubj )}(hhh](j)}(h-``unsigned long base`` Physical base address h](j)}(h``unsigned long base``h]j)}(hj-h]hunsigned long base}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhj-ubj2)}(hhh]h)}(hPhysical base addressh]hPhysical base address}(hj3-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/-hMhj0-ubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhj/-hMhj-ubj)}(h&``unsigned long size`` Size of region h](j)}(h``unsigned long size``h]j)}(hjS-h]hunsigned long size}(hjU-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ-ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhjM-ubj2)}(hhh]h)}(hSize of regionh]hSize of region}(hjl-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh-hMhji-ubah}(h]h ]h"]h$]h&]uh1j1hjM-ubeh}(h]h ]h"]h$]h&]uh1jhjh-hMhj-ubeh}(h]h ]h"]h$]h&]uh1j hj,ubh)}(h**Description**h]j)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhj,ubh)}(hIf PAT is available, this does nothing. If PAT is unavailable, it attempts to add a WC MTRR covering size bytes starting at base and logs an error if this fails.h]hIf PAT is available, this does nothing. If PAT is unavailable, it attempts to add a WC MTRR covering size bytes starting at base and logs an error if this fails.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhj,ubh)}(hUThe called should provide a power of two size on an equivalent power of two boundary.h]hUThe called should provide a power of two size on an equivalent power of two boundary.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhj,ubh)}(hDrivers must store the return value to pass to mtrr_del_wc_if_needed, but drivers should not try to interpret that return value.h]hDrivers must store the return value to pass to mtrr_del_wc_if_needed, but drivers should not try to interpret that return value.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhd/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:277: ./arch/x86/kernel/cpu/mtrr/mtrr.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj+hhhNhNubeh}(h] mtrr-handlingah ]h"] mtrr handlingah$]h&]uh1hhjfhhhhhMubeh}(h]hardware-interfacesah ]h"]hardware interfacesah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hSecurity Frameworkh]hSecurity Framework}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hhhhhMubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_file_alloc (C function)c.lsm_file_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h&int lsm_file_alloc (struct file *file)h]j)}(h%int lsm_file_alloc(struct file *file)h](j )}(hinth]hint}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj2)}(h h]h }(hj!.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.hhhj .hKubj{)}(hlsm_file_alloch]j)}(hlsm_file_alloch]hlsm_file_alloc}(hj3.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.hhhj .hKubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj h]hstruct}(hjO.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK.ubj2)}(h h]h }(hj\.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjK.ubh)}(hhh]j)}(hfileh]hfile}(hjm.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjo.modnameN classnameNj] j` )}jc ]jf )}jY j5.sbc.lsm_file_allocasbuh1hhjK.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjK.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK.ubj)}(hfileh]hfile}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjG.ubah}(h]h ]h"]h$]h&]jjuh1jhj.hhhj .hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj .hhhj .hKubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jhj .hKhj.hhubj)}(hhh]h)}(hallocate a composite file blobh]hallocate a composite file blob}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj.hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj .hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct file *file`` the file that needs a blob **Description** Allocate the file blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj.ubj )}(hhh]j)}(h1``struct file *file`` the file that needs a blob h](j)}(h``struct file *file``h]j)}(hj/h]hstruct file *file}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj /ubj2)}(hhh]h)}(hthe file that needs a blobh]hthe file that needs a blob}(hj,/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(/hKhj)/ubah}(h]h ]h"]h$]h&]uh1j1hj /ubeh}(h]h ]h"]h$]h&]uh1jhj(/hKhj /ubah}(h]h ]h"]h$]h&]uh1j hj.ubh)}(h**Description**h]j)}(hjN/h]h Description}(hjP/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj.ubh)}(h*Allocate the file blob for all the modulesh]h*Allocate the file blob for all the modules}(hjd/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj.ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjs/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #lsm_backing_file_alloc (C function)c.lsm_backing_file_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h6int lsm_backing_file_alloc (struct file *backing_file)h]j)}(h5int lsm_backing_file_alloc(struct file *backing_file)h](j )}(hinth]hint}(hj/hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/hhhj/hKubj{)}(hlsm_backing_file_alloch]j)}(hlsm_backing_file_alloch]hlsm_backing_file_alloc}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhj/hKubj)}(h(struct file *backing_file)h]j)}(hstruct file *backing_fileh](j)}(hj h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubh)}(hhh]j)}(hfileh]hfile}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj/modnameN classnameNj] j` )}jc ]jf )}jY j/sbc.lsm_backing_file_allocasbuh1hhj/ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hjh]h*}(hj+0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(h backing_fileh]h backing_file}(hj80hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubah}(h]h ]h"]h$]h&]jjuh1jhj/hhhj/hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhj/hKubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jhj/hKhj/hhubj)}(hhh]h)}(h&allocate a composite backing file blobh]h&allocate a composite backing file blob}(hjb0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj_0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj/hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjz0jjz0jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct file *backing_file`` the backing file **Description** Allocate the backing file blob for all the modules. Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj~0ubj )}(hhh]j)}(h/``struct file *backing_file`` the backing file h](j)}(h``struct file *backing_file``h]j)}(hj0h]hstruct file *backing_file}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj0ubj2)}(hhh]h)}(hthe backing fileh]hthe backing file}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1j hj~0ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj~0ubh)}(h3Allocate the backing file blob for all the modules.h]h3Allocate the backing file blob for all the modules.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj~0ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj~0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_blob_alloc (C function)c.lsm_blob_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h8int lsm_blob_alloc (void **dest, size_t size, gfp_t gfp)h]j)}(h7int lsm_blob_alloc(void **dest, size_t size, gfp_t gfp)h](j )}(hinth]hint}(hj21hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj2)}(h h]h }(hjA1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.1hhhj@1hKubj{)}(hlsm_blob_alloch]j)}(hlsm_blob_alloch]hlsm_blob_alloc}(hjS1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.1hhhj@1hKubj)}(h%(void **dest, size_t size, gfp_t gfp)h](j)}(h void **desth](j )}(hvoidh]hvoid}(hjo1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjk1ubj2)}(h h]h }(hj}1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjk1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk1ubj)}(hdesth]hdest}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjg1ubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj1modnameN classnameNj] j` )}jc ]jf )}jY jU1sbc.lsm_blob_allocasbuh1hhj1ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hsizeh]hsize}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjg1ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj 2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj 2modnameN classnameNj] j` )}jc ]j1c.lsm_blob_allocasbuh1hhj2ubj2)}(h h]h }(hj)2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hgfph]hgfp}(hj72hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjg1ubeh}(h]h ]h"]h$]h&]jjuh1jhj.1hhhj@1hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*1hhhj@1hKubah}(h]j%1ah ](jjeh"]h$]h&]jj)jhuh1jhj@1hKhj'1hhubj)}(hhh]h)}(hallocate a composite blobh]hallocate a composite blob}(hja2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj^2hhubah}(h]h ]h"]h$]h&]uh1jhj'1hhhj@1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjy2jjy2jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``void **dest`` the destination for the blob ``size_t size`` the size of the blob ``gfp_t gfp`` allocation type **Description** Allocate a blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj}2ubj )}(hhh](j)}(h-``void **dest`` the destination for the blob h](j)}(h``void **dest``h]j)}(hj2h]h void **dest}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj2ubj2)}(hhh]h)}(hthe destination for the blobh]hthe destination for the blob}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubj)}(h%``size_t size`` the size of the blob h](j)}(h``size_t size``h]j)}(hj2h]h size_t size}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj2ubj2)}(hhh]h)}(hthe size of the blobh]hthe size of the blob}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubj)}(h``gfp_t gfp`` allocation type h](j)}(h ``gfp_t gfp``h]j)}(hj3h]h gfp_t gfp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj3ubj2)}(hhh]h)}(hallocation typeh]hallocation type}(hj-3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)3hKhj*3ubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhj)3hKhj2ubeh}(h]h ]h"]h$]h&]uh1j hj}2ubh)}(h**Description**h]j)}(hjO3h]h Description}(hjQ3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj}2ubh)}(h#Allocate a blob for all the modulesh]h#Allocate a blob for all the modules}(hje3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj}2ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjt3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj}2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_cred_alloc (C function)c.lsm_cred_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h1int lsm_cred_alloc (struct cred *cred, gfp_t gfp)h]j)}(h0int lsm_cred_alloc(struct cred *cred, gfp_t gfp)h](j )}(hinth]hint}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3hhhj3hKubj{)}(hlsm_cred_alloch]j)}(hlsm_cred_alloch]hlsm_cred_alloc}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhj3hKubj)}(h(struct cred *cred, gfp_t gfp)h](j)}(hstruct cred *credh](j)}(hj h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubh)}(hhh]j)}(hcredh]hcred}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jf )}jY j3sbc.lsm_cred_allocasbuh1hhj3ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hj,4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hcredh]hcred}(hj94hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjU4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjW4modnameN classnameNj] j` )}jc ]j4c.lsm_cred_allocasbuh1hhjN4ubj2)}(h h]h }(hjs4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjN4ubj)}(hgfph]hgfp}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hKubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhj3hKhj3hhubj)}(hhh]h)}(hallocate a composite cred blobh]hallocate a composite cred blob}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct cred *cred`` the cred that needs a blob ``gfp_t gfp`` allocation type **Description** Allocate the cred blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj4ubj )}(hhh](j)}(h1``struct cred *cred`` the cred that needs a blob h](j)}(h``struct cred *cred``h]j)}(hj4h]hstruct cred *cred}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj4ubj2)}(hhh]h)}(hthe cred that needs a blobh]hthe cred that needs a blob}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKhj5ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj5hKhj4ubj)}(h``gfp_t gfp`` allocation type h](j)}(h ``gfp_t gfp``h]j)}(hj%5h]h gfp_t gfp}(hj'5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj5ubj2)}(hhh]h)}(hallocation typeh]hallocation type}(hj>5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:5hKhj;5ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj:5hKhj4ubeh}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hj`5h]h Description}(hjb5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj4ubh)}(h*Allocate the cred blob for all the modulesh]h*Allocate the cred blob for all the modules}(hjv5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj4ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_inode_alloc (C function)c.lsm_inode_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h4int lsm_inode_alloc (struct inode *inode, gfp_t gfp)h]j)}(h3int lsm_inode_alloc(struct inode *inode, gfp_t gfp)h](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhj5hKubj{)}(hlsm_inode_alloch]j)}(hlsm_inode_alloch]hlsm_inode_alloc}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhj5hKubj)}(h (struct inode *inode, gfp_t gfp)h](j)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubh)}(hhh]j)}(hinodeh]hinode}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6modnameN classnameNj] j` )}jc ]jf )}jY j5sbc.lsm_inode_allocasbuh1hhj5ubj2)}(h h]h }(hj/6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hjh]h*}(hj=6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hinodeh]hinode}(hjJ6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjf6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjh6modnameN classnameNj] j` )}jc ]j+6c.lsm_inode_allocasbuh1hhj_6ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_6ubj)}(hgfph]hgfp}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj5hKubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jhj5hKhj5hhubj)}(hhh]h)}(hallocate a composite inode blobh]hallocate a composite inode blob}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct inode *inode`` the inode that needs a blob ``gfp_t gfp`` allocation flags **Description** Allocate the inode blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj6ubj )}(hhh](j)}(h4``struct inode *inode`` the inode that needs a blob h](j)}(h``struct inode *inode``h]j)}(hj6h]hstruct inode *inode}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj6ubj2)}(hhh]h)}(hthe inode that needs a blobh]hthe inode that needs a blob}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hKhj7ubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj6ubj)}(h``gfp_t gfp`` allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hj67h]h gfp_t gfp}(hj87hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj47ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj07ubj2)}(hhh]h)}(hallocation flagsh]hallocation flags}(hjO7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK7hKhjL7ubah}(h]h ]h"]h$]h&]uh1j1hj07ubeh}(h]h ]h"]h$]h&]uh1jhjK7hKhj6ubeh}(h]h ]h"]h$]h&]uh1j hj6ubh)}(h**Description**h]j)}(hjq7h]h Description}(hjs7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj6ubh)}(h+Allocate the inode blob for all the modulesh]h+Allocate the inode blob for all the modules}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj6ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_task_alloc (C function)c.lsm_task_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h-int lsm_task_alloc (struct task_struct *task)h]j)}(h,int lsm_task_alloc(struct task_struct *task)h](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7hhhj7hMubj{)}(hlsm_task_alloch]j)}(hlsm_task_alloch]hlsm_task_alloc}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhhj7hMubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hj h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubh)}(hhh]j)}(h task_structh]h task_struct}(hj 8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj"8modnameN classnameNj] j` )}jc ]jf )}jY j7sbc.lsm_task_allocasbuh1hhj7ubj2)}(h h]h }(hj@8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hjN8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(htaskh]htask}(hj[8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubah}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jhj7hMhj7hhubj)}(hhh]h)}(hallocate a composite task blobh]hallocate a composite task blob}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *task`` the task that needs a blob **Description** Allocate the task blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj8ubj )}(hhh]j)}(h8``struct task_struct *task`` the task that needs a blob h](j)}(h``struct task_struct *task``h]j)}(hj8h]hstruct task_struct *task}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8ubj2)}(hhh]h)}(hthe task that needs a blobh]hthe task that needs a blob}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1j hj8ubh)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8ubh)}(h*Allocate the task blob for all the modulesh]h*Allocate the task blob for all the modules}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj&9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_ipc_alloc (C function)c.lsm_ipc_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h-int lsm_ipc_alloc (struct kern_ipc_perm *kip)h]j)}(h,int lsm_ipc_alloc(struct kern_ipc_perm *kip)h](j )}(hinth]hint}(hjU9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQ9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjd9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQ9hhhjc9hMubj{)}(h lsm_ipc_alloch]j)}(h lsm_ipc_alloch]h lsm_ipc_alloc}(hjv9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQ9hhhjc9hMubj)}(h(struct kern_ipc_perm *kip)h]j)}(hstruct kern_ipc_perm *kiph](j)}(hj h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jf )}jY jx9sbc.lsm_ipc_allocasbuh1hhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hkiph]hkip}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubah}(h]h ]h"]h$]h&]jjuh1jhjQ9hhhjc9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjM9hhhjc9hMubah}(h]jH9ah ](jjeh"]h$]h&]jj)jhuh1jhjc9hMhjJ9hhubj)}(hhh]h)}(hallocate a composite ipc blobh]hallocate a composite ipc blob}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhjJ9hhhjc9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-:jj-:jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *kip`` the ipc that needs a blob **Description** Allocate the ipc blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj7:h]h Parameters}(hj9:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1:ubj )}(hhh]j)}(h8``struct kern_ipc_perm *kip`` the ipc that needs a blob h](j)}(h``struct kern_ipc_perm *kip``h]j)}(hjV:h]hstruct kern_ipc_perm *kip}(hjX:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjP:ubj2)}(hhh]h)}(hthe ipc that needs a blobh]hthe ipc that needs a blob}(hjo:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk:hMhjl:ubah}(h]h ]h"]h$]h&]uh1j1hjP:ubeh}(h]h ]h"]h$]h&]uh1jhjk:hMhjM:ubah}(h]h ]h"]h$]h&]uh1j hj1:ubh)}(h**Description**h]j)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1:ubh)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1:ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_key_alloc (C function)c.lsm_key_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h#int lsm_key_alloc (struct key *key)h]j)}(h"int lsm_key_alloc(struct key *key)h](j )}(hinth]hint}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:hhhj:hM ubj{)}(h lsm_key_alloch]j)}(h lsm_key_alloch]h lsm_key_alloc}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhhj:hM ubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hj h]hstruct}(hj";hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hj/;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubh)}(hhh]j)}(hkeyh]hkey}(hj@;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=;ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjB;modnameN classnameNj] j` )}jc ]jf )}jY j;sbc.lsm_key_allocasbuh1hhj;ubj2)}(h h]h }(hj`;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(hjh]h*}(hjn;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hkeyh]hkey}(hj{;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubah}(h]h ]h"]h$]h&]jjuh1jhj:hhhj:hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhj:hM ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1jhj:hM hj:hhubj)}(hhh]h)}(hallocate a composite key blobh]hallocate a composite key blob}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj;hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct key *key`` the key that needs a blob **Description** Allocate the key blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hj;ubj )}(hhh]j)}(h.``struct key *key`` the key that needs a blob h](j)}(h``struct key *key``h]j)}(hj;h]hstruct key *key}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hj;ubj2)}(hhh]h)}(hthe key that needs a blobh]hthe key that needs a blob}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM!hj;ubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hM!hj;ubah}(h]h ]h"]h$]h&]uh1j hj;ubh)}(h**Description**h]j)}(hj!<h]h Description}(hj#<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM#hj;ubh)}(h)Allocate the key blob for all the modulesh]h)Allocate the key blob for all the modules}(hj7<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hj;ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjF<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_msg_msg_alloc (C function)c.lsm_msg_msg_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h*int lsm_msg_msg_alloc (struct msg_msg *mp)h]j)}(h)int lsm_msg_msg_alloc(struct msg_msg *mp)h](j )}(hinth]hint}(hju<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjq<hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjq<hhhj<hM.ubj{)}(hlsm_msg_msg_alloch]j)}(hlsm_msg_msg_alloch]hlsm_msg_msg_alloc}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjq<hhhj<hM.ubj)}(h(struct msg_msg *mp)h]j)}(hstruct msg_msg *mph](j)}(hj h]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj<modnameN classnameNj] j` )}jc ]jf )}jY j<sbc.lsm_msg_msg_allocasbuh1hhj<ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hmph]hmp}(hj =hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubah}(h]h ]h"]h$]h&]jjuh1jhjq<hhhj<hM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjm<hhhj<hM.ubah}(h]jh<ah ](jjeh"]h$]h&]jj)jhuh1jhj<hM.hjj<hhubj)}(hhh]h)}(h!allocate a composite msg_msg blobh]h!allocate a composite msg_msg blob}(hj5=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hj2=hhubah}(h]h ]h"]h$]h&]uh1jhjj<hhhj<hM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjM=jjM=jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct msg_msg *mp`` the msg_msg that needs a blob **Description** Allocate the ipc blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hjW=h]h Parameters}(hjY=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU=ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjQ=ubj )}(hhh]j)}(h5``struct msg_msg *mp`` the msg_msg that needs a blob h](j)}(h``struct msg_msg *mp``h]j)}(hjv=h]hstruct msg_msg *mp}(hjx=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjp=ubj2)}(hhh]h)}(hthe msg_msg that needs a blobh]hthe msg_msg that needs a blob}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM/hj=ubah}(h]h ]h"]h$]h&]uh1j1hjp=ubeh}(h]h ]h"]h$]h&]uh1jhj=hM/hjm=ubah}(h]h ]h"]h$]h&]uh1j hjQ=ubh)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hjQ=ubh)}(h)Allocate the ipc blob for all the modulesh]h)Allocate the ipc blob for all the modules}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hjQ=ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjQ=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_bdev_alloc (C function)c.lsm_bdev_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h.int lsm_bdev_alloc (struct block_device *bdev)h]j)}(h-int lsm_bdev_alloc(struct block_device *bdev)h](j )}(hinth]hint}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<ubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>hhhj>hM<ubj{)}(hlsm_bdev_alloch]j)}(hlsm_bdev_alloch]hlsm_bdev_alloc}(hj&>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj">ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhj>hM<ubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hjB>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>>ubj2)}(h h]h }(hjO>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>>ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj`>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]>ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjb>modnameN classnameNj] j` )}jc ]jf )}jY j(>sbc.lsm_bdev_allocasbuh1hhj>>ubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>>ubj)}(hbdevh]hbdev}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:>ubah}(h]h ]h"]h$]h&]jjuh1jhj>hhhj>hM<ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj>hM<ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1jhj>hM<hj=hhubj)}(hhh]h)}(h&allocate a composite block_device blobh]h&allocate a composite block_device blob}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj>hM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct block_device *bdev`` the block_device that needs a blob **Description** Allocate the block_device blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hj>ubj )}(hhh]j)}(hA``struct block_device *bdev`` the block_device that needs a blob h](j)}(h``struct block_device *bdev``h]j)}(hj?h]hstruct block_device *bdev}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hj?ubj2)}(hhh]h)}(h"the block_device that needs a blobh]h"the block_device that needs a blob}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM=hj?ubah}(h]h ]h"]h$]h&]uh1j1hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hM=hj>ubah}(h]h ]h"]h$]h&]uh1j hj>ubh)}(h**Description**h]j)}(hjA?h]h Description}(hjC?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj??ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hj>ubh)}(h2Allocate the block_device blob for all the modulesh]h2Allocate the block_device blob for all the modules}(hjW?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>hj>ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjf?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_bpf_map_alloc (C function)c.lsm_bpf_map_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h+int lsm_bpf_map_alloc (struct bpf_map *map)h]j)}(h*int lsm_bpf_map_alloc(struct bpf_map *map)h](j )}(hinth]hint}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?hhhj?hMKubj{)}(hlsm_bpf_map_alloch]j)}(hlsm_bpf_map_alloch]hlsm_bpf_map_alloc}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhj?hMKubj)}(h(struct bpf_map *map)h]j)}(hstruct bpf_map *maph](j)}(hj h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubh)}(hhh]j)}(hbpf_maph]hbpf_map}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jf )}jY j?sbc.lsm_bpf_map_allocasbuh1hhj?ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hmaph]hmap}(hj+@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhj?hMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhj?hMKubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1jhj?hMKhj?hhubj)}(hhh]h)}(h!allocate a composite bpf_map blobh]h!allocate a composite bpf_map blob}(hjU@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjR@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjm@jjm@jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct bpf_map *map`` the bpf_map that needs a blob **Description** Allocate the bpf_map blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hjw@h]h Parameters}(hjy@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjq@ubj )}(hhh]j)}(h6``struct bpf_map *map`` the bpf_map that needs a blob h](j)}(h``struct bpf_map *map``h]j)}(hj@h]hstruct bpf_map *map}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhj@ubj2)}(hhh]h)}(hthe bpf_map that needs a blobh]hthe bpf_map that needs a blob}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMLhj@ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMLhj@ubah}(h]h ]h"]h$]h&]uh1j hjq@ubh)}(h**Description**h]j)}(hj@h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjq@ubh)}(h-Allocate the bpf_map blob for all the modulesh]h-Allocate the bpf_map blob for all the modules}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjq@ubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjq@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_bpf_prog_alloc (C function)c.lsm_bpf_prog_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h.int lsm_bpf_prog_alloc (struct bpf_prog *prog)h]j)}(h-int lsm_bpf_prog_alloc(struct bpf_prog *prog)h](j )}(hinth]hint}(hj%AhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!AhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXubj2)}(h h]h }(hj4AhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!Ahhhj3AhMXubj{)}(hlsm_bpf_prog_alloch]j)}(hlsm_bpf_prog_alloch]hlsm_bpf_prog_alloc}(hjFAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj!Ahhhj3AhMXubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hj h]hstruct}(hjbAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Aubj2)}(h h]h }(hjoAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^Aubh)}(hhh]j)}(hbpf_progh]hbpf_prog}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}Aubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjAmodnameN classnameNj] j` )}jc ]jf )}jY jHAsbc.lsm_bpf_prog_allocasbuh1hhj^Aubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^Aubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Aubj)}(hprogh]hprog}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Aubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZAubah}(h]h ]h"]h$]h&]jjuh1jhj!Ahhhj3AhMXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhj3AhMXubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jhj3AhMXhjAhhubj)}(hhh]h)}(h"allocate a composite bpf_prog blobh]h"allocate a composite bpf_prog blob}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhjAhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhj3AhMXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct bpf_prog *prog`` the bpf_prog that needs a blob **Description** Allocate the bpf_prog blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hjBh]h Parameters}(hj BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hjBubj )}(hhh]j)}(h9``struct bpf_prog *prog`` the bpf_prog that needs a blob h](j)}(h``struct bpf_prog *prog``h]j)}(hj&Bh]hstruct bpf_prog *prog}(hj(BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Bubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj Bubj2)}(hhh]h)}(hthe bpf_prog that needs a blobh]hthe bpf_prog that needs a blob}(hj?BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;BhMYhjah"]h$]h&]uh1j1hjBhhhjBhMeubj{)}(hlsm_bpf_token_alloch]j)}(hlsm_bpf_token_alloch]hlsm_bpf_token_alloc}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjBhMeubj)}(h(struct bpf_token *token)h]j)}(hstruct bpf_token *tokenh](j)}(hj h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Cubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]jf )}jY jBsbc.lsm_bpf_token_allocasbuh1hhjBubj2)}(h h]h }(hj0ChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hj>ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(htokenh]htoken}(hjKChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubah}(h]h ]h"]h$]h&]jjuh1jhjBhhhjBhMeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjBhMeubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jhjBhMehjBhhubj)}(hhh]h)}(h#allocate a composite bpf_token blobh]h#allocate a composite bpf_token blob}(hjuChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehjrChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct bpf_token *token`` the bpf_token that needs a blob **Description** Allocate the bpf_token blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihjCubj )}(hhh]j)}(h<``struct bpf_token *token`` the bpf_token that needs a blob h](j)}(h``struct bpf_token *token``h]j)}(hjCh]hstruct bpf_token *token}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhjCubj2)}(hhh]h)}(hthe bpf_token that needs a blobh]hthe bpf_token that needs a blob}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMfhjCubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhjChMfhjCubah}(h]h ]h"]h$]h&]uh1j hjCubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhjCubh)}(h/Allocate the bpf_token blob for all the modulesh]h/Allocate the bpf_token blob for all the modules}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjCubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !lsm_superblock_alloc (C function)c.lsm_superblock_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h1int lsm_superblock_alloc (struct super_block *sb)h]j)}(h0int lsm_superblock_alloc(struct super_block *sb)h](j )}(hinth]hint}(hjEDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjADhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMsubj2)}(h h]h }(hjTDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjADhhhjSDhMsubj{)}(hlsm_superblock_alloch]j)}(hlsm_superblock_alloch]hlsm_superblock_alloc}(hjfDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjADhhhjSDhMsubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Dubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~Dubh)}(hhh]j)}(h super_blockh]h super_block}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDmodnameN classnameNj] j` )}jc ]jf )}jY jhDsbc.lsm_superblock_allocasbuh1hhj~Dubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~Dubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Dubj)}(hsbh]hsb}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzDubah}(h]h ]h"]h$]h&]jjuh1jhjADhhhjSDhMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=DhhhjSDhMsubah}(h]j8Dah ](jjeh"]h$]h&]jj)jhuh1jhjSDhMshj:Dhhubj)}(hhh]h)}(h$allocate a composite superblock blobh]h$allocate a composite superblock blob}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjEhhubah}(h]h ]h"]h$]h&]uh1jhj:DhhhjSDhMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct super_block *sb`` the superblock that needs a blob **Description** Allocate the superblock blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj'Eh]h Parameters}(hj)EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Eubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhj!Eubj )}(hhh]j)}(h<``struct super_block *sb`` the superblock that needs a blob h](j)}(h``struct super_block *sb``h]j)}(hjFEh]hstruct super_block *sb}(hjHEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthj@Eubj2)}(hhh]h)}(h the superblock that needs a blobh]h the superblock that needs a blob}(hj_EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[EhMthj\Eubah}(h]h ]h"]h$]h&]uh1j1hj@Eubeh}(h]h ]h"]h$]h&]uh1jhj[EhMthj=Eubah}(h]h ]h"]h$]h&]uh1j hj!Eubh)}(h**Description**h]j)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhj!Eubh)}(h0Allocate the superblock blob for all the modulesh]h0Allocate the superblock blob for all the modules}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhj!Eubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhj!Eubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_fill_user_ctx (C function)c.lsm_fill_user_ctxhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hpint lsm_fill_user_ctx (struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h]j)}(hoint lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h](j )}(hinth]hint}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEhhhjEhMubj{)}(hlsm_fill_user_ctxh]j)}(hlsm_fill_user_ctxh]hlsm_fill_user_ctx}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhjEhMubj)}(hZ(struct lsm_ctx __user *uctx, u32 *uctx_len, void *val, size_t val_len, u64 id, u64 flags)h](j)}(hstruct lsm_ctx __user *uctxh](j)}(hj h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubh)}(hhh]j)}(hlsm_ctxh]hlsm_ctx}(hj0FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Fubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2FmodnameN classnameNj] j` )}jc ]jf )}jY jEsbc.lsm_fill_user_ctxasbuh1hhjFubj2)}(h h]h }(hjPFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubh__user}(hjFhhhNhNubj2)}(h h]h }(hjbFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hjpFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(huctxh]huctx}(hj}FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Fubj)}(h u32 *uctx_lenh](h)}(hhh]j)}(hu32h]hu32}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjFmodnameN classnameNj] j` )}jc ]jLFc.lsm_fill_user_ctxasbuh1hhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(huctx_lenh]huctx_len}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Fubj)}(h void *valh](j )}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hvalh]hval}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Fubj)}(hsize_t val_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hj0GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Gubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2GmodnameN classnameNj] j` )}jc ]jLFc.lsm_fill_user_ctxasbuh1hhj)Gubj2)}(h h]h }(hjNGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)Gubj)}(hval_lenh]hval_len}(hj\GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Fubj)}(hu64 idh](h)}(hhh]j)}(hu64h]hu64}(hjxGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjzGmodnameN classnameNj] j` )}jc ]jLFc.lsm_fill_user_ctxasbuh1hhjqGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqGubj)}(hidh]hid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Fubj)}(h u64 flagsh](h)}(hhh]j)}(hu64h]hu64}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGmodnameN classnameNj] j` )}jc ]jLFc.lsm_fill_user_ctxasbuh1hhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hflagsh]hflags}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Fubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjEhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhjEhMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1jhjEhMhjEhhubj)}(hhh]h)}(h#Fill a user space lsm_ctx structureh]h#Fill a user space lsm_ctx structure}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.Hjj.Hjjjuh1jhhhj-hNhNubj)}(hXy**Parameters** ``struct lsm_ctx __user *uctx`` a userspace LSM context to be filled ``u32 *uctx_len`` available uctx size (input), used uctx size (output) ``void *val`` the new LSM context value ``size_t val_len`` the size of the new LSM context value ``u64 id`` LSM id ``u64 flags`` LSM defined flags **Description** Fill all of the fields in a userspace lsm_ctx structure. If **uctx** is NULL simply calculate the required size to output via **utc_len** and return success. Returns 0 on success, -E2BIG if userspace buffer is not large enough, -EFAULT on a copyout error, -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj8Hh]h Parameters}(hj:HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Hubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2Hubj )}(hhh](j)}(hE``struct lsm_ctx __user *uctx`` a userspace LSM context to be filled h](j)}(h``struct lsm_ctx __user *uctx``h]j)}(hjWHh]hstruct lsm_ctx __user *uctx}(hjYHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQHubj2)}(hhh]h)}(h$a userspace LSM context to be filledh]h$a userspace LSM context to be filled}(hjpHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlHhMhjmHubah}(h]h ]h"]h$]h&]uh1j1hjQHubeh}(h]h ]h"]h$]h&]uh1jhjlHhMhjNHubj)}(hG``u32 *uctx_len`` available uctx size (input), used uctx size (output) h](j)}(h``u32 *uctx_len``h]j)}(hjHh]h u32 *uctx_len}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjHubj2)}(hhh]h)}(h4available uctx size (input), used uctx size (output)h]h4available uctx size (input), used uctx size (output)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjHubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjNHubj)}(h(``void *val`` the new LSM context value h](j)}(h ``void *val``h]j)}(hjHh]h void *val}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjHubj2)}(hhh]h)}(hthe new LSM context valueh]hthe new LSM context value}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjHubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjNHubj)}(h9``size_t val_len`` the size of the new LSM context value h](j)}(h``size_t val_len``h]j)}(hjIh]hsize_t val_len}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjHubj2)}(hhh]h)}(h%the size of the new LSM context valueh]h%the size of the new LSM context value}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjNHubj)}(h``u64 id`` LSM id h](j)}(h ``u64 id``h]j)}(hj;Ih]hu64 id}(hj=IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Iubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5Iubj2)}(hhh]h)}(hLSM idh]hLSM id}(hjTIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPIhMhjQIubah}(h]h ]h"]h$]h&]uh1j1hj5Iubeh}(h]h ]h"]h$]h&]uh1jhjPIhMhjNHubj)}(h ``u64 flags`` LSM defined flags h](j)}(h ``u64 flags``h]j)}(hjtIh]h u64 flags}(hjvIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnIubj2)}(hhh]h)}(hLSM defined flagsh]hLSM defined flags}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1j1hjnIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjNHubeh}(h]h ]h"]h$]h&]uh1j hj2Hubh)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2Hubh)}(hFill all of the fields in a userspace lsm_ctx structure. If **uctx** is NULL simply calculate the required size to output via **utc_len** and return success.h](h=Fill all of the fields in a userspace lsm_ctx structure. If }(hjIhhhNhNubj)}(h**uctx**h]huctx}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh: is NULL simply calculate the required size to output via }(hjIhhhNhNubj)}(h **utc_len**h]hutc_len}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh and return success.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2Hubh)}(hReturns 0 on success, -E2BIG if userspace buffer is not large enough, -EFAULT on a copyout error, -ENOMEM if memory can't be allocated.h]hReturns 0 on success, -E2BIG if userspace buffer is not large enough, -EFAULT on a copyout error, -ENOMEM if memory can’t be allocated.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2Hubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,security_binder_set_context_mgr (C function)!c.security_binder_set_context_mgrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hj#Jhhhj5JhMubj{)}(hsecurity_binder_set_context_mgrh]j)}(hsecurity_binder_set_context_mgrh]hsecurity_binder_set_context_mgr}(hjHJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDJubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#Jhhhj5JhMubj)}(h(const struct cred *mgr)h]j)}(hconst struct cred *mgrh](j)}(hjh]hconst}(hjdJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Jubj2)}(h h]h }(hjqJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`Jubj)}(hj h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Jubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`Jubh)}(hhh]j)}(hcredh]hcred}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJmodnameN classnameNj] j` )}jc ]jf )}jY jJJsb!c.security_binder_set_context_mgrasbuh1hhj`Jubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`Jubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Jubj)}(hmgrh]hmgr}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`Jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\Jubah}(h]h ]h"]h$]h&]jjuh1jhj#Jhhhj5JhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhj5JhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jhj5JhMhjJhhubj)}(hhh]h)}(h&Check if becoming binder ctx mgr is okh]h&Check if becoming binder ctx mgr is ok}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjJhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhj5JhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``const struct cred *mgr`` task credentials of current binder process **Description** Check whether **mgr** is allowed to be the binder context manager. **Return** Return 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj$Kh]h Parameters}(hj&KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Kubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjKubj )}(hhh]j)}(hF``const struct cred *mgr`` task credentials of current binder process h](j)}(h``const struct cred *mgr``h]j)}(hjCKh]hconst struct cred *mgr}(hjEKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj=Kubj2)}(hhh]h)}(h*task credentials of current binder processh]h*task credentials of current binder process}(hj\KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXKhMhjYKubah}(h]h ]h"]h$]h&]uh1j1hj=Kubeh}(h]h ]h"]h$]h&]uh1jhjXKhMhj:Kubah}(h]h ]h"]h$]h&]uh1j hjKubh)}(h**Description**h]j)}(hj~Kh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Kubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjKubh)}(hBCheck whether **mgr** is allowed to be the binder context manager.h](hCheck whether }(hjKhhhNhNubj)}(h**mgr**h]hmgr}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh- is allowed to be the binder context manager.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjKubh)}(h **Return**h]j)}(hjKh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjKubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_binder_transaction (C function)c.security_binder_transactionhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hPint security_binder_transaction (const struct cred *from, const struct cred *to)h]j)}(hOint security_binder_transaction(const struct cred *from, const struct cred *to)h](j )}(hinth]hint}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj LhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhj LhMubj{)}(hsecurity_binder_transactionh]j)}(hsecurity_binder_transactionh]hsecurity_binder_transaction}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhj LhMubj)}(h0(const struct cred *from, const struct cred *to)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hj9LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Lubj2)}(h h]h }(hjFLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Lubj)}(hj h]hstruct}(hjTLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Lubj2)}(h h]h }(hjaLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Lubh)}(hhh]j)}(hcredh]hcred}(hjrLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtLmodnameN classnameNj] j` )}jc ]jf )}jY jLsbc.security_binder_transactionasbuh1hhj5Lubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5Lubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Lubj)}(hfromh]hfrom}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1Lubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hj h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(hcredh]hcred}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jLc.security_binder_transactionasbuh1hhjLubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hj+MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(htoh]hto}(hj8MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1Lubeh}(h]h ]h"]h$]h&]jjuh1jhjKhhhj LhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhj LhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhj LhMhjKhhubj)}(hhh]h)}(h(Check if a binder transaction is allowedh]h(Check if a binder transaction is allowed}(hjbMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj_Mhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhj LhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzMjjzMjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``const struct cred *from`` sending process ``const struct cred *to`` receiving process **Description** Check whether **from** is allowed to invoke a binder transaction call to **to**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~Mubj )}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hjMh]hconst struct cred *from}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjMubj2)}(hhh]h)}(hsending processh]hsending process}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjMubj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hjMh]hconst struct cred *to}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjMubj2)}(hhh]h)}(hreceiving processh]hreceiving process}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM hjMubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjMhM hjMubeh}(h]h ]h"]h$]h&]uh1j hj~Mubh)}(h**Description**h]j)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~Mubh)}(hPCheck whether **from** is allowed to invoke a binder transaction call to **to**.h](hCheck whether }(hj-NhhhNhNubj)}(h**from**h]hfrom}(hj5NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Nubh3 is allowed to invoke a binder transaction call to }(hj-NhhhNhNubj)}(h**to**h]hto}(hjGNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Nubh.}(hj-NhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~Mubh)}(h **Return**h]j)}(hjbNh]hReturn}(hjdNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Nubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~Mubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjxNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~Mubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,security_binder_transfer_binder (C function)!c.security_binder_transfer_binderhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hTint security_binder_transfer_binder (const struct cred *from, const struct cred *to)h]j)}(hSint security_binder_transfer_binder(const struct cred *from, const struct cred *to)h](j )}(hinth]hint}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNhhhjNhMubj{)}(hsecurity_binder_transfer_binderh]j)}(hsecurity_binder_transfer_binderh]hsecurity_binder_transfer_binder}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNhhhjNhMubj)}(h0(const struct cred *from, const struct cred *to)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hj h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hj OhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubh)}(hhh]j)}(hcredh]hcred}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jf )}jY jNsb!c.security_binder_transfer_binderasbuh1hhjNubj2)}(h h]h }(hj=OhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]h*}(hjKOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hfromh]hfrom}(hjXOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hjqOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmOubj2)}(h h]h }(hj~OhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmOubj)}(hj h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmOubh)}(hhh]j)}(hcredh]hcred}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]j9O!c.security_binder_transfer_binderasbuh1hhjmOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmOubj)}(htoh]hto}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjNhhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjNhMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jhjNhMhjNhhubj)}(hhh]h)}(h%Check if a binder transfer is allowedh]h%Check if a binder transfer is allowed}(hj PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj Phhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%Pjj%Pjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``const struct cred *from`` sending process ``const struct cred *to`` receiving process **Description** Check whether **from** is allowed to transfer a binder reference to **to**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj/Ph]h Parameters}(hj1PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Pubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj)Pubj )}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hjNPh]hconst struct cred *from}(hjPPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjHPubj2)}(hhh]h)}(hsending processh]hsending process}(hjgPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcPhMhjdPubah}(h]h ]h"]h$]h&]uh1j1hjHPubeh}(h]h ]h"]h$]h&]uh1jhjcPhMhjEPubj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hjPh]hconst struct cred *to}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjPubj2)}(hhh]h)}(hreceiving processh]hreceiving process}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjEPubeh}(h]h ]h"]h$]h&]uh1j hj)Pubh)}(h**Description**h]j)}(hjPh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj)Pubh)}(hKCheck whether **from** is allowed to transfer a binder reference to **to**.h](hCheck whether }(hjPhhhNhNubj)}(h**from**h]hfrom}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh. is allowed to transfer a binder reference to }(hjPhhhNhNubj)}(h**to**h]hto}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj)Pubh)}(h **Return**h]j)}(hj Qh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Qubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj)Pubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj#QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj)Pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *security_binder_transfer_file (C function)c.security_binder_transfer_filehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hkint security_binder_transfer_file (const struct cred *from, const struct cred *to, const struct file *file)h]j)}(hjint security_binder_transfer_file(const struct cred *from, const struct cred *to, const struct file *file)h](j )}(hinth]hint}(hjRQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNQhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%ubj2)}(h h]h }(hjaQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNQhhhj`QhM%ubj{)}(hsecurity_binder_transfer_fileh]j)}(hsecurity_binder_transfer_fileh]hsecurity_binder_transfer_file}(hjsQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNQhhhj`QhM%ubj)}(hI(const struct cred *from, const struct cred *to, const struct file *file)h](j)}(hconst struct cred *fromh](j)}(hjh]hconst}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hj h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubh)}(hhh]j)}(hcredh]hcred}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQmodnameN classnameNj] j` )}jc ]jf )}jY juQsbc.security_binder_transfer_fileasbuh1hhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hfromh]hfrom}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hconst struct cred *toh](j)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hj)RhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hj h]hstruct}(hj7RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjDRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubh)}(hhh]j)}(hcredh]hcred}(hjURhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWRmodnameN classnameNj] j` )}jc ]jQc.security_binder_transfer_fileasbuh1hhjRubj2)}(h h]h }(hjsRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(htoh]hto}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(hconst struct file *fileh](j)}(hjh]hconst}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hj h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubh)}(hhh]j)}(hfileh]hfile}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRmodnameN classnameNj] j` )}jc ]jQc.security_binder_transfer_fileasbuh1hhjRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hj ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hfileh]hfile}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjNQhhhj`QhM%ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJQhhhj`QhM%ubah}(h]jEQah ](jjeh"]h$]h&]jj)jhuh1jhj`QhM%hjGQhhubj)}(hhh]h)}(h&Check if a binder file xfer is allowedh]h&Check if a binder file xfer is allowed}(hjCShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%hj@Shhubah}(h]h ]h"]h$]h&]uh1jhjGQhhhj`QhM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[Sjj[Sjjjuh1jhhhj-hNhNubj)}(hX'**Parameters** ``const struct cred *from`` sending process ``const struct cred *to`` receiving process ``const struct file *file`` file being transferred **Description** Check whether **from** is allowed to transfer **file** to **to**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjeSh]h Parameters}(hjgShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hj_Subj )}(hhh](j)}(h,``const struct cred *from`` sending process h](j)}(h``const struct cred *from``h]j)}(hjSh]hconst struct cred *from}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hj~Subj2)}(hhh]h)}(hsending processh]hsending process}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM&hjSubah}(h]h ]h"]h$]h&]uh1j1hj~Subeh}(h]h ]h"]h$]h&]uh1jhjShM&hj{Subj)}(h,``const struct cred *to`` receiving process h](j)}(h``const struct cred *to``h]j)}(hjSh]hconst struct cred *to}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hjSubj2)}(hhh]h)}(hreceiving processh]hreceiving process}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM'hjSubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjShM'hj{Subj)}(h3``const struct file *file`` file being transferred h](j)}(h``const struct file *file``h]j)}(hjSh]hconst struct file *file}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjSubj2)}(hhh]h)}(hfile being transferredh]hfile being transferred}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ThM(hj Tubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhj ThM(hj{Subeh}(h]h ]h"]h$]h&]uh1j hj_Subh)}(h**Description**h]j)}(hj1Th]h Description}(hj3ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Tubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hj_Subh)}(hACheck whether **from** is allowed to transfer **file** to **to**.h](hCheck whether }(hjGThhhNhNubj)}(h**from**h]hfrom}(hjOThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGTubh is allowed to transfer }(hjGThhhNhNubj)}(h**file**h]hfile}(hjaThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGTubh to }(hjGThhhNhNubj)}(h**to**h]hto}(hjsThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGTubh.}(hjGThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hj_Subh)}(h **Return**h]j)}(hjTh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hj_Subh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hj_Subeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_ptrace_access_check (C function)c.security_ptrace_access_checkhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hOint security_ptrace_access_check (struct task_struct *child, unsigned int mode)h]j)}(hNint security_ptrace_access_check(struct task_struct *child, unsigned int mode)h](j )}(hinth]hint}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5ubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjThhhjThM5ubj{)}(hsecurity_ptrace_access_checkh]j)}(hsecurity_ptrace_access_checkh]hsecurity_ptrace_access_check}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhjThM5ubj)}(h.(struct task_struct *child, unsigned int mode)h](j)}(hstruct task_struct *childh](j)}(hj h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Uubh)}(hhh]j)}(h task_structh]h task_struct}(hj.UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Uubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0UmodnameN classnameNj] j` )}jc ]jf )}jY jTsbc.security_ptrace_access_checkasbuh1hhj Uubj2)}(h h]h }(hjNUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj Uubj)}(hjh]h*}(hj\UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubj)}(hchildh]hchild}(hjiUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hunsigned int modeh](j )}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~Uubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~Uubj )}(hinth]hint}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~Uubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~Uubj)}(hmodeh]hmode}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjThM5ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjThM5ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjThM5hjThhubj)}(hhh]h)}(hCheck if tracing is allowedh]hCheck if tracing is allowed}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hjUhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjThM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhj-hNhNubj)}(hX-**Parameters** ``struct task_struct *child`` target process ``unsigned int mode`` PTRACE_MODE flags **Description** Check permission before allowing the current process to trace the **child** process. Security modules may also want to perform a process tracing check during an execve in the set_security or apply_creds hooks of tracing check during an execve in the bprm_set_creds hook of binprm_security_ops if the process is being traced and its security attributes would be changed by the execve. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjVubj )}(hhh](j)}(h-``struct task_struct *child`` target process h](j)}(h``struct task_struct *child``h]j)}(hj%Vh]hstruct task_struct *child}(hj'VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Vubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hjVubj2)}(hhh]h)}(htarget processh]htarget process}(hj>VhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:VhM6hj;Vubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhj:VhM6hjVubj)}(h(``unsigned int mode`` PTRACE_MODE flags h](j)}(h``unsigned int mode``h]j)}(hj^Vh]hunsigned int mode}(hj`VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Vubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7hjXVubj2)}(hhh]h)}(hPTRACE_MODE flagsh]hPTRACE_MODE flags}(hjwVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsVhM7hjtVubah}(h]h ]h"]h$]h&]uh1j1hjXVubeh}(h]h ]h"]h$]h&]uh1jhjsVhM7hjVubeh}(h]h ]h"]h$]h&]uh1j hjVubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjVubh)}(hXCheck permission before allowing the current process to trace the **child** process. Security modules may also want to perform a process tracing check during an execve in the set_security or apply_creds hooks of tracing check during an execve in the bprm_set_creds hook of binprm_security_ops if the process is being traced and its security attributes would be changed by the execve.h](hBCheck permission before allowing the current process to trace the }(hjVhhhNhNubj)}(h **child**h]hchild}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhX5 process. Security modules may also want to perform a process tracing check during an execve in the set_security or apply_creds hooks of tracing check during an execve in the bprm_set_creds hook of binprm_security_ops if the process is being traced and its security attributes would be changed by the execve.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjVubh)}(h **Return**h]j)}(hjVh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hjVubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_ptrace_traceme (C function)c.security_ptrace_tracemehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h8int security_ptrace_traceme (struct task_struct *parent)h]j)}(h7int security_ptrace_traceme(struct task_struct *parent)h](j )}(hinth]hint}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHubj2)}(h h]h }(hj&WhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWhhhj%WhMHubj{)}(hsecurity_ptrace_tracemeh]j)}(hsecurity_ptrace_tracemeh]hsecurity_ptrace_traceme}(hj8WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Wubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhhj%WhMHubj)}(h(struct task_struct *parent)h]j)}(hstruct task_struct *parenth](j)}(hj h]hstruct}(hjTWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPWubj2)}(h h]h }(hjaWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPWubh)}(hhh]j)}(h task_structh]h task_struct}(hjrWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoWubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtWmodnameN classnameNj] j` )}jc ]jf )}jY j:Wsbc.security_ptrace_tracemeasbuh1hhjPWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPWubj)}(hparenth]hparent}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLWubah}(h]h ]h"]h$]h&]jjuh1jhjWhhhj%WhMHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhj%WhMHubah}(h]j Wah ](jjeh"]h$]h&]jj)jhuh1jhj%WhMHhj Whhubj)}(hhh]h)}(hCheck if tracing is allowedh]hCheck if tracing is allowed}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjWhhubah}(h]h ]h"]h$]h&]uh1jhj Whhhj%WhMHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1jhhhj-hNhNubj)}(hX9**Parameters** ``struct task_struct *parent`` tracing process **Description** Check that the **parent** process has sufficient permission to trace the current process before allowing the current process to present itself to the **parent** process for tracing. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjWubj )}(hhh]j)}(h/``struct task_struct *parent`` tracing process h](j)}(h``struct task_struct *parent``h]j)}(hjXh]hstruct task_struct *parent}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjXubj2)}(hhh]h)}(htracing processh]htracing process}(hj1XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-XhMIhj.Xubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhj-XhMIhjXubah}(h]h ]h"]h$]h&]uh1j hjWubh)}(h**Description**h]j)}(hjSXh]h Description}(hjUXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjWubh)}(hCheck that the **parent** process has sufficient permission to trace the current process before allowing the current process to present itself to the **parent** process for tracing.h](hCheck that the }(hjiXhhhNhNubj)}(h **parent**h]hparent}(hjqXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiXubh} process has sufficient permission to trace the current process before allowing the current process to present itself to the }(hjiXhhhNhNubj)}(h **parent**h]hparent}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiXubh process for tracing.}(hjiXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjWubh)}(h **Return**h]j)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjWubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_capget (C function)c.security_capgethNtauh1hhj-hhhNhNubj)}(hhh](j)}(hint security_capget (const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h]j)}(hint security_capget(const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h](j )}(hinth]hint}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXhhhjXhMWubj{)}(hsecurity_capgeth]j)}(hsecurity_capgeth]hsecurity_capget}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhjXhMWubj)}(ho(const struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritable, kernel_cap_t *permitted)h](j)}(h const struct task_struct *targeth](j)}(hjh]hconst}(hj YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hj-YhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hj h]hstruct}(hj;YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjHYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubh)}(hhh]j)}(h task_structh]h task_struct}(hjYYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[YmodnameN classnameNj] j` )}jc ]jf )}jY jYsbc.security_capgetasbuh1hhjYubj2)}(h h]h }(hjyYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(htargeth]htarget}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hkernel_cap_t *effectiveh](h)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]juYc.security_capgetasbuh1hhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h effectiveh]h effective}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hkernel_cap_t *inheritableh](h)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjZmodnameN classnameNj] j` )}jc ]juYc.security_capgetasbuh1hhjYubj2)}(h h]h }(hj#ZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hj1ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(h inheritableh]h inheritable}(hj>ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hkernel_cap_t *permittedh](h)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjZZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj\ZmodnameN classnameNj] j` )}jc ]juYc.security_capgetasbuh1hhjSZubj2)}(h h]h }(hjxZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSZubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSZubj)}(h permittedh]h permitted}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjXhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjXhMWubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhjXhMWhjXhhubj)}(hhh]h)}(h%Get the capability sets for a processh]h%Get the capability sets for a process}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjZhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjXhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhj-hNhNubj)}(hXG**Parameters** ``const struct task_struct *target`` target process ``kernel_cap_t *effective`` effective capability set ``kernel_cap_t *inheritable`` inheritable capability set ``kernel_cap_t *permitted`` permitted capability set **Description** Get the **effective**, **inheritable**, and **permitted** capability sets for the **target** process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the **target** process. **Return** Returns 0 if the capability sets were successfully obtained.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hjZubj )}(hhh](j)}(h4``const struct task_struct *target`` target process h](j)}(h$``const struct task_struct *target``h]j)}(hjZh]h const struct task_struct *target}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhjZubj2)}(hhh]h)}(htarget processh]htarget process}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMXhj[ubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhj[hMXhjZubj)}(h5``kernel_cap_t *effective`` effective capability set h](j)}(h``kernel_cap_t *effective``h]j)}(hj7[h]hkernel_cap_t *effective}(hj9[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj1[ubj2)}(hhh]h)}(heffective capability seth]heffective capability set}(hjP[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL[hMYhjM[ubah}(h]h ]h"]h$]h&]uh1j1hj1[ubeh}(h]h ]h"]h$]h&]uh1jhjL[hMYhjZubj)}(h9``kernel_cap_t *inheritable`` inheritable capability set h](j)}(h``kernel_cap_t *inheritable``h]j)}(hjp[h]hkernel_cap_t *inheritable}(hjr[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjn[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZhjj[ubj2)}(hhh]h)}(hinheritable capability seth]hinheritable capability set}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMZhj[ubah}(h]h ]h"]h$]h&]uh1j1hjj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMZhjZubj)}(h5``kernel_cap_t *permitted`` permitted capability set h](j)}(h``kernel_cap_t *permitted``h]j)}(hj[h]hkernel_cap_t *permitted}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hj[ubj2)}(hhh]h)}(hpermitted capability seth]hpermitted capability set}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hM[hj[ubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hM[hjZubeh}(h]h ]h"]h$]h&]uh1j hjZubh)}(h**Description**h]j)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hjZubh)}(hGet the **effective**, **inheritable**, and **permitted** capability sets for the **target** process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the **target** process.h](hGet the }(hj[hhhNhNubj)}(h **effective**h]h effective}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh, }(hj[hhhNhNubj)}(h**inheritable**h]h inheritable}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh, and }(hj[hhhNhNubj)}(h **permitted**h]h permitted}(hj&\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh capability sets for the }(hj[hhhNhNubj)}(h **target**h]htarget}(hj8\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh process. The hook may also perform permission checking to determine if the current process is allowed to see the capability sets of the }(hj[hhhNhNubj)}(h **target**h]htarget}(hjJ\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh process.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hjZubh)}(h **Return**h]j)}(hje\h]hReturn}(hjg\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc\ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjZubh)}(hah"]h$]h&]uh1j1hj\hhhj\hMmubj{)}(hsecurity_capseth]j)}(hsecurity_capseth]hsecurity_capset}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\hhhj\hMmubj)}(h(struct cred *new, const struct cred *old, const kernel_cap_t *effective, const kernel_cap_t *inheritable, const kernel_cap_t *permitted)h](j)}(hstruct cred *newh](j)}(hj h]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubh)}(hhh]j)}(hcredh]hcred}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj]modnameN classnameNj] j` )}jc ]jf )}jY j\sbc.security_capsetasbuh1hhj\ubj2)}(h h]h }(hj%]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hj3]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hnewh]hnew}(hj@]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjY]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU]ubj2)}(h h]h }(hjf]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjU]ubj)}(hj h]hstruct}(hjt]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU]ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjU]ubh)}(hhh]j)}(hcredh]hcred}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj]modnameN classnameNj] j` )}jc ]j!]c.security_capsetasbuh1hhjU]ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjU]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU]ubj)}(holdh]hold}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hconst kernel_cap_t *effectiveh](j)}(hjh]hconst}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubh)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]j!]c.security_capsetasbuh1hhj]ubj2)}(h h]h }(hj ^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hjh]h*}(hj.^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(h effectiveh]h effective}(hj;^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hconst kernel_cap_t *inheritableh](j)}(hjh]hconst}(hjT^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP^ubj2)}(h h]h }(hja^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjP^ubh)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hjr^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjt^modnameN classnameNj] j` )}jc ]j!]c.security_capsetasbuh1hhjP^ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjP^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP^ubj)}(h inheritableh]h inheritable}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hconst kernel_cap_t *permittedh](j)}(hjh]hconst}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubh)}(hhh]j)}(h kernel_cap_th]h kernel_cap_t}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]j!]c.security_capsetasbuh1hhj^ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(h permittedh]h permitted}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhj\hMmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\hhhj\hMmubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jhj\hMmhj\hhubj)}(hhh]h)}(h%Set the capability sets for a processh]h%Set the capability sets for a process}(hjE_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhjB_hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj\hMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]_jj]_jjjuh1jhhhj-hNhNubj)}(hX **Parameters** ``struct cred *new`` new credentials for the target process ``const struct cred *old`` current credentials of the target process ``const kernel_cap_t *effective`` effective capability set ``const kernel_cap_t *inheritable`` inheritable capability set ``const kernel_cap_t *permitted`` permitted capability set **Description** Set the **effective**, **inheritable**, and **permitted** capability sets for the current process. **Return** Returns 0 and update **new** if permission is granted.h](h)}(h**Parameters**h]j)}(hjg_h]h Parameters}(hji_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhja_ubj )}(hhh](j)}(h<``struct cred *new`` new credentials for the target process h](j)}(h``struct cred *new``h]j)}(hj_h]hstruct cred *new}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhj_ubj2)}(hhh]h)}(h&new credentials for the target processh]h&new credentials for the target process}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMnhj_ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMnhj}_ubj)}(hE``const struct cred *old`` current credentials of the target process h](j)}(h``const struct cred *old``h]j)}(hj_h]hconst struct cred *old}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohj_ubj2)}(hhh]h)}(h)current credentials of the target processh]h)current credentials of the target process}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMohj_ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMohj}_ubj)}(h;``const kernel_cap_t *effective`` effective capability set h](j)}(h!``const kernel_cap_t *effective``h]j)}(hj_h]hconst kernel_cap_t *effective}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphj_ubj2)}(hhh]h)}(heffective capability seth]heffective capability set}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj `hMphj`ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhj `hMphj}_ubj)}(h?``const kernel_cap_t *inheritable`` inheritable capability set h](j)}(h#``const kernel_cap_t *inheritable``h]j)}(hj1`h]hconst kernel_cap_t *inheritable}(hj3`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhj+`ubj2)}(hhh]h)}(hinheritable capability seth]hinheritable capability set}(hjJ`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF`hMqhjG`ubah}(h]h ]h"]h$]h&]uh1j1hj+`ubeh}(h]h ]h"]h$]h&]uh1jhjF`hMqhj}_ubj)}(h;``const kernel_cap_t *permitted`` permitted capability set h](j)}(h!``const kernel_cap_t *permitted``h]j)}(hjj`h]hconst kernel_cap_t *permitted}(hjl`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjd`ubj2)}(hhh]h)}(hpermitted capability seth]hpermitted capability set}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMrhj`ubah}(h]h ]h"]h$]h&]uh1j1hjd`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMrhj}_ubeh}(h]h ]h"]h$]h&]uh1j hja_ubh)}(h**Description**h]j)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthja_ubh)}(hbSet the **effective**, **inheritable**, and **permitted** capability sets for the current process.h](hSet the }(hj`hhhNhNubj)}(h **effective**h]h effective}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh, }(hj`hhhNhNubj)}(h**inheritable**h]h inheritable}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh, and }(hj`hhhNhNubj)}(h **permitted**h]h permitted}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh) capability sets for the current process.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshja_ubh)}(h **Return**h]j)}(hjah]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhja_ubh)}(h6Returns 0 and update **new** if permission is granted.h](hReturns 0 and update }(hjahhhNhNubj)}(h**new**h]hnew}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh if permission is granted.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhja_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_capable (C function)c.security_capablehNtauh1hhj-hhhNhNubj)}(hhh](j)}(heint security_capable (const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h]j)}(hdint security_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h](j )}(hinth]hint}(hjYahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUahhhjgahMubj{)}(hsecurity_capableh]j)}(hsecurity_capableh]hsecurity_capable}(hjzahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUahhhjgahMubj)}(hP(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)h](j)}(hconst struct cred *credh](j)}(hjh]hconst}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hj h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubh)}(hhh]j)}(hcredh]hcred}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjamodnameN classnameNj] j` )}jc ]jf )}jY j|asbc.security_capableasbuh1hhjaubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hcredh]hcred}(hj bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hstruct user_namespace *nsh](j)}(hj h]hstruct}(hj#bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hj0bhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubh)}(hhh]j)}(huser_namespaceh]huser_namespace}(hjAbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>bubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCbmodnameN classnameNj] j` )}jc ]jac.security_capableasbuh1hhjbubj2)}(h h]h }(hj_bhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjmbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hnsh]hns}(hjzbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hint caph](j )}(hinth]hint}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hcaph]hcap}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned int optsh](j )}(hunsignedh]hunsigned}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj )}(hinth]hint}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hoptsh]hopts}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhjUahhhjgahMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQahhhjgahMubah}(h]jLaah ](jjeh"]h$]h&]jj)jhuh1jhjgahMhjNahhubj)}(hhh]h)}(h/Check if a process has the necessary capabilityh]h/Check if a process has the necessary capability}(hj*chhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'chhubah}(h]h ]h"]h$]h&]uh1jhjNahhhjgahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBcjjBcjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``const struct cred *cred`` credentials to examine ``struct user_namespace *ns`` user namespace ``int cap`` capability requested ``unsigned int opts`` capability check options **Description** Check whether the **tsk** process has the **cap** capability in the indicated credentials. **cap** contains the capability . **opts** contains options for the capable check . **Return** Returns 0 if the capability is granted.h](h)}(h**Parameters**h]j)}(hjLch]h Parameters}(hjNchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFcubj )}(hhh](j)}(h3``const struct cred *cred`` credentials to examine h](j)}(h``const struct cred *cred``h]j)}(hjkch]hconst struct cred *cred}(hjmchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjicubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjecubj2)}(hhh]h)}(hcredentials to examineh]hcredentials to examine}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1j1hjecubeh}(h]h ]h"]h$]h&]uh1jhjchMhjbcubj)}(h-``struct user_namespace *ns`` user namespace h](j)}(h``struct user_namespace *ns``h]j)}(hjch]hstruct user_namespace *ns}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjcubj2)}(hhh]h)}(huser namespaceh]huser namespace}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjbcubj)}(h!``int cap`` capability requested h](j)}(h ``int cap``h]j)}(hjch]hint cap}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjcubj2)}(hhh]h)}(hcapability requestedh]hcapability requested}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjcubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhjchMhjbcubj)}(h/``unsigned int opts`` capability check options h](j)}(h``unsigned int opts``h]j)}(hjdh]hunsigned int opts}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubj2)}(hhh]h)}(hcapability check optionsh]hcapability check options}(hj/dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+dhMhj,dubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhj+dhMhjbcubeh}(h]h ]h"]h$]h&]uh1j hjFcubh)}(h**Description**h]j)}(hjQdh]h Description}(hjSdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFcubh)}(hCheck whether the **tsk** process has the **cap** capability in the indicated credentials. **cap** contains the capability . **opts** contains options for the capable check .h](hCheck whether the }(hjgdhhhNhNubj)}(h**tsk**h]htsk}(hjodhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgdubh process has the }(hjgdhhhNhNubj)}(h**cap**h]hcap}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgdubh+ capability in the indicated credentials. }(hjgdhhhNhNubj)}(h**cap**h]hcap}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgdubh7 contains the capability . }(hjgdhhhNhNubj)}(h**opts**h]hopts}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgdubhC contains options for the capable check .}(hjgdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFcubh)}(h **Return**h]j)}(hjdh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFcubh)}(h'Returns 0 if the capability is granted.h]h'Returns 0 if the capability is granted.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_quotactl (C function)c.security_quotactlhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hPint security_quotactl (int cmds, int type, int id, const struct super_block *sb)h]j)}(hOint security_quotactl(int cmds, int type, int id, const struct super_block *sb)h](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjehhhjehMubj{)}(hsecurity_quotactlh]j)}(hsecurity_quotactlh]hsecurity_quotactl}(hj&ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"eubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjehMubj)}(h:(int cmds, int type, int id, const struct super_block *sb)h](j)}(hint cmdsh](j )}(hinth]hint}(hjBehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>eubj2)}(h h]h }(hjPehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>eubj)}(hcmdsh]hcmds}(hj^ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:eubj)}(hint typeh](j )}(hinth]hint}(hjwehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjseubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjseubj)}(htypeh]htype}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjseubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:eubj)}(hint idh](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hidh]hid}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:eubj)}(hconst struct super_block *sbh](j)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hj h]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hj fhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(hhh]j)}(h super_blockh]h super_block}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jf )}jY j(esbc.security_quotactlasbuh1hhjeubj2)}(h h]h }(hj:fhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjHfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hsbh]hsb}(hjUfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:eubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjehMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjehMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jhjehMhjdhhubj)}(hhh]h)}(h4Check if a quotactl() syscall is allowed for this fsh]h4Check if a quotactl() syscall is allowed for this fs}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj|fhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjehMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``int cmds`` commands ``int type`` type ``int id`` id ``const struct super_block *sb`` filesystem **Description** Check whether the quotactl syscall is allowed for this **sb**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubj )}(hhh](j)}(h``int cmds`` commands h](j)}(h ``int cmds``h]j)}(hjfh]hint cmds}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubj2)}(hhh]h)}(hcommandsh]hcommands}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjfubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjfubj)}(h``int type`` type h](j)}(h ``int type``h]j)}(hjfh]hint type}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubj2)}(hhh]h)}(htypeh]htype}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjghMhjfubj)}(h``int id`` id h](j)}(h ``int id``h]j)}(hj2gh]hint id}(hj4ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0gubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj,gubj2)}(hhh]h)}(hidh]hid}(hjKghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGghMhjHgubah}(h]h ]h"]h$]h&]uh1j1hj,gubeh}(h]h ]h"]h$]h&]uh1jhjGghMhjfubj)}(h,``const struct super_block *sb`` filesystem h](j)}(h ``const struct super_block *sb``h]j)}(hjkgh]hconst struct super_block *sb}(hjmghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjigubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjegubj2)}(hhh]h)}(h filesystemh]h filesystem}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1j1hjegubeh}(h]h ]h"]h$]h&]uh1jhjghMhjfubeh}(h]h ]h"]h$]h&]uh1j hjfubh)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(h>Check whether the quotactl syscall is allowed for this **sb**.h](h7Check whether the quotactl syscall is allowed for this }(hjghhhNhNubj)}(h**sb**h]hsb}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(h **Return**h]j)}(hjgh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_quota_on (C function)c.security_quota_onhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h-int security_quota_on (struct dentry *dentry)h]j)}(h,int security_quota_on(struct dentry *dentry)h](j )}(hinth]hint}(hj$hhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj3hhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhhj2hhMubj{)}(hsecurity_quota_onh]j)}(hsecurity_quota_onh]hsecurity_quota_on}(hjEhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhhj2hhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjahhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hubj2)}(h h]h }(hjnhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jf )}jY jGhsbc.security_quota_onasbuh1hhj]hubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hubj)}(hdentryh]hdentry}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYhubah}(h]h ]h"]h$]h&]jjuh1jhj hhhhj2hhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhj2hhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1jhj2hhMhjhhhubj)}(hhh]h)}(h(Check if QUOTAON is allowed for a dentryh]h(Check if QUOTAON is allowed for a dentry}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhj2hhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct dentry *dentry`` dentry **Description** Check whether QUOTAON is allowed for **dentry**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjiubj )}(hhh]j)}(h!``struct dentry *dentry`` dentry h](j)}(h``struct dentry *dentry``h]j)}(hj%ih]hstruct dentry *dentry}(hj'ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#iubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjiubj2)}(hhh]h)}(hdentryh]hdentry}(hj>ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ihMhj;iubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhj:ih Mhjiubah}(h]h ]h"]h$]h&]uh1j hjiubh)}(h**Description**h]j)}(hj`ih]h Description}(hjbihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^iubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjiubh)}(h0Check whether QUOTAON is allowed for **dentry**.h](h%Check whether QUOTAON is allowed for }(hjvihhhNhNubj)}(h **dentry**h]hdentry}(hj~ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjviubh.}(hjvihhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjiubh)}(h **Return**h]j)}(hjih]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjiubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_syslog (C function)c.security_sysloghNtauh1hhj-hhhNhNubj)}(hhh](j)}(hint security_syslog (int type)h]j)}(hint security_syslog(int type)h](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjihhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjihhhjihMubj{)}(hsecurity_syslogh]j)}(hsecurity_syslogh]hsecurity_syslog}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjihhhjihMubj)}(h (int type)h]j)}(hint typeh](j )}(hinth]hint}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj)jhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(htypeh]htype}(hj7jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubah}(h]h ]h"]h$]h&]jjuh1jhjihhhjihMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjihMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjihMhjihhubj)}(hhh]h)}(h5Check if accessing the kernel message ring is allowedh]h5Check if accessing the kernel message ring is allowed}(hjajhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj^jhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjjyjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``int type`` SYSLOG_ACTION_* type **Description** Check permission before accessing the kernel message ring or changing logging to the console. See the syslog(2) manual page for an explanation of the **type** values. **Return** Return 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj}jubj )}(hhh]j)}(h"``int type`` SYSLOG_ACTION_* type h](j)}(h ``int type``h]j)}(hjjh]hint type}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjjubj2)}(hhh]h)}(hSYSLOG_ACTION_* typeh]hSYSLOG_ACTION_* type}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjjubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjjubah}(h]h ]h"]h$]h&]uh1j hj}jubh)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj}jubh)}(hCheck permission before accessing the kernel message ring or changing logging to the console. See the syslog(2) manual page for an explanation of the **type** values.h](hCheck permission before accessing the kernel message ring or changing logging to the console. See the syslog(2) manual page for an explanation of the }(hjjhhhNhNubj)}(h**type**h]htype}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh values.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj}jubh)}(h **Return**h]j)}(hjkh]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj}jubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hj,khhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj}jubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_settime64 (C function)c.security_settime64hNtauh1hhj-hhhNhNubj)}(hhh](j)}(hOint security_settime64 (const struct timespec64 *ts, const struct timezone *tz)h]j)}(hNint security_settime64(const struct timespec64 *ts, const struct timezone *tz)h](j )}(hinth]hint}(hj[khhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWkhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWkhhhjikhMubj{)}(hsecurity_settime64h]j)}(hsecurity_settime64h]hsecurity_settime64}(hj|khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWkhhhjikhMubj)}(h8(const struct timespec64 *ts, const struct timezone *tz)h](j)}(hconst struct timespec64 *tsh](j)}(hjh]hconst}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hj h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubh)}(hhh]j)}(h timespec64h]h timespec64}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkmodnameN classnameNj] j` )}jc ]jf )}jY j~ksbc.security_settime64asbuh1hhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(htsh]hts}(hj lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hconst struct timezone *tzh](j)}(hjh]hconst}(hj%lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!lubj2)}(h h]h }(hj2lhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!lubj)}(hj h]hstruct}(hj@lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!lubj2)}(h h]h }(hjMlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!lubh)}(hhh]j)}(htimezoneh]htimezone}(hj^lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[lubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj`lmodnameN classnameNj] j` )}jc ]jkc.security_settime64asbuh1hhj!lubj2)}(h h]h }(hj|lhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!lubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!lubj)}(htzh]htz}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhjWkhhhjikhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjSkhhhjikhMubah}(h]jNkah ](jjeh"]h$]h&]jj)jhuh1jhjikhMhjPkhhubj)}(hhh]h)}(h,Check if changing the system time is allowedh]h,Check if changing the system time is allowed}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjPkhhhjikhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjljjljjjuh1jhhhj-hNhNubj)}(hX?**Parameters** ``const struct timespec64 *ts`` new time ``const struct timezone *tz`` timezone **Description** Check permission to change the system time, struct timespec64 is defined in and timezone is defined in . **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubj )}(hhh](j)}(h)``const struct timespec64 *ts`` new time h](j)}(h``const struct timespec64 *ts``h]j)}(hjmh]hconst struct timespec64 *ts}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubj2)}(hhh]h)}(hnew timeh]hnew time}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjlubj)}(h'``const struct timezone *tz`` timezone h](j)}(h``const struct timezone *tz``h]j)}(hj;mh]hconst struct timezone *tz}(hj=mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9mubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj5mubj2)}(hhh]h)}(htimezoneh]htimezone}(hjTmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPmhMhjQmubah}(h]h ]h"]h$]h&]uh1j1hj5mubeh}(h]h ]h"]h$]h&]uh1jhjPmhMhjlubeh}(h]h ]h"]h$]h&]uh1j hjlubh)}(h**Description**h]j)}(hjvmh]h Description}(hjxmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtmubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubh)}(hCheck permission to change the system time, struct timespec64 is defined in and timezone is defined in .h]hCheck permission to change the system time, struct timespec64 is defined in and timezone is defined in .}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubh)}(h **Return**h]j)}(hjmh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_vm_enough_memory_mm (C function)c.security_vm_enough_memory_mmhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hCint security_vm_enough_memory_mm (struct mm_struct *mm, long pages)h]j)}(hBint security_vm_enough_memory_mm(struct mm_struct *mm, long pages)h](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmhhhjmhMubj{)}(hsecurity_vm_enough_memory_mmh]j)}(hsecurity_vm_enough_memory_mmh]hsecurity_vm_enough_memory_mm}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjmhhhjmhMubj)}(h"(struct mm_struct *mm, long pages)h](j)}(hstruct mm_struct *mmh](j)}(hj h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2)}(h h]h }(hj,nhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubh)}(hhh]j)}(h mm_structh]h mm_struct}(hj=nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:nubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?nmodnameN classnameNj] j` )}jc ]jf )}jY jnsbc.security_vm_enough_memory_mmasbuh1hhjnubj2)}(h h]h }(hj]nhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjknhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hmmh]hmm}(hjxnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h long pagesh](j )}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hpagesh]hpages}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjmhhhjmhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjmhMubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jhjmhMhjmhhubj)}(hhh]h)}(h,Check if allocating a new mem map is allowedh]h,Check if allocating a new mem map is allowed}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjmhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct mm_struct *mm`` mm struct ``long pages`` number of pages **Description** Check permissions for allocating a new virtual mapping. If all LSMs return a positive value, __vm_enough_memory() will be called with cap_sys_admin set. If at least one LSM returns 0 or negative, __vm_enough_memory() will be called with cap_sys_admin cleared. **Return** Returns 0 if permission is granted by the LSM infrastructure to the caller.h](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubj )}(hhh](j)}(h#``struct mm_struct *mm`` mm struct h](j)}(h``struct mm_struct *mm``h]j)}(hjoh]hstruct mm_struct *mm}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjoubj2)}(hhh]h)}(h mm structh]h mm struct}(hj1ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ohMhj.oubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhj-ohMhjoubj)}(h``long pages`` number of pages h](j)}(h``long pages``h]j)}(hjQoh]h long pages}(hjSohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjKoubj2)}(hhh]h)}(hnumber of pagesh]hnumber of pages}(hjjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfohMhjgoubah}(h]h ]h"]h$]h&]uh1j1hjKoubeh}(h]h ]h"]h$]h&]uh1jhjfohMhjoubeh}(h]h ]h"]h$]h&]uh1j hjnubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubh)}(hXCheck permissions for allocating a new virtual mapping. If all LSMs return a positive value, __vm_enough_memory() will be called with cap_sys_admin set. If at least one LSM returns 0 or negative, __vm_enough_memory() will be called with cap_sys_admin cleared.h]hXCheck permissions for allocating a new virtual mapping. If all LSMs return a positive value, __vm_enough_memory() will be called with cap_sys_admin set. If at least one LSM returns 0 or negative, __vm_enough_memory() will be called with cap_sys_admin cleared.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubh)}(h **Return**h]j)}(hjoh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubh)}(hKReturns 0 if permission is granted by the LSM infrastructure to the caller.h]hKReturns 0 if permission is granted by the LSM infrastructure to the caller.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_bprm_creds_for_exec (C function)c.security_bprm_creds_for_exechNtauh1hhj-hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjohhhjphMubj{)}(hsecurity_bprm_creds_for_exech]j)}(hsecurity_bprm_creds_for_exech]hsecurity_bprm_creds_for_exec}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjphMubj)}(h(struct linux_binprm *bprm)h]j)}(hstruct linux_binprm *bprmh](j)}(hj h]hstruct}(hj5phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1pubj2)}(h h]h }(hjBphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1pubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjSphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjUpmodnameN classnameNj] j` )}jc ]jf )}jY jpsbc.security_bprm_creds_for_execasbuh1hhj1pubj2)}(h h]h }(hjsphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1pubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1pubj)}(hbprmh]hbprm}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1pubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-pubah}(h]h ]h"]h$]h&]jjuh1jhjohhhjphMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjphMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhjphMhjohhubj)}(hhh]h)}(h"Prepare the credentials for exec()h]h"Prepare the credentials for exec()}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjphMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct linux_binprm *bprm`` binary program information **Description** If the setup in prepare_exec_creds did not setup **bprm->cred->security** properly for executing **bprm->file**, update the LSM's portion of **bprm->cred->security** to be what commit_creds needs to install for the new program. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set **bprm->secureexec** to 1 if AT_SECURE should be set to request libc enable secure mode. **bprm** contains the linux_binprm structure. If execveat(2) is called with the AT_EXECVE_CHECK flag, bprm->is_check is set. The result must be the same as without this flag even if the execution will never really happen and **bprm** will always be dropped. This hook must not change current->cred, only **bprm->cred**. **Return** Returns 0 if the hook is successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubj )}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjph]hstruct linux_binprm *bprm}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubj2)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjpubah}(h]h ]h"]h$]h&]uh1j hjpubh)}(h**Description**h]j)}(hj4qh]h Description}(hj6qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2qubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubh)}(hXIf the setup in prepare_exec_creds did not setup **bprm->cred->security** properly for executing **bprm->file**, update the LSM's portion of **bprm->cred->security** to be what commit_creds needs to install for the new program. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set **bprm->secureexec** to 1 if AT_SECURE should be set to request libc enable secure mode. **bprm** contains the linux_binprm structure.h](h1If the setup in prepare_exec_creds did not setup }(hjJqhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjRqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJqubh properly for executing }(hjJqhhhNhNubj)}(h**bprm->file**h]h bprm->file}(hjdqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJqubh , update the LSM’s portion of }(hjJqhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hjvqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJqubh to be what commit_creds needs to install for the new program. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set }(hjJqhhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJqubhF to 1 if AT_SECURE should be set to request libc enable secure mode. }(hjJqhhhNhNubj)}(h**bprm**h]hbprm}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJqubh% contains the linux_binprm structure.}(hjJqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubh)}(hIf execveat(2) is called with the AT_EXECVE_CHECK flag, bprm->is_check is set. The result must be the same as without this flag even if the execution will never really happen and **bprm** will always be dropped.h](hIf execveat(2) is called with the AT_EXECVE_CHECK flag, bprm->is_check is set. The result must be the same as without this flag even if the execution will never really happen and }(hjqhhhNhNubj)}(h**bprm**h]hbprm}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh will always be dropped.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubh)}(h=This hook must not change current->cred, only **bprm->cred**.h](h.This hook must not change current->cred, only }(hjqhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubh.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubh)}(h **Return**h]j)}(hjqh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubh)}(h>Returns 0 if the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hj rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *security_bprm_creds_from_file (C function)c.security_bprm_creds_from_filehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hVint security_bprm_creds_from_file (struct linux_binprm *bprm, const struct file *file)h]j)}(hUint security_bprm_creds_from_file(struct linux_binprm *bprm, const struct file *file)h](j )}(hinth]hint}(hjah"]h$]h&]uh1j1hj8rhhhjJrhMubj{)}(hsecurity_bprm_creds_from_fileh]j)}(hsecurity_bprm_creds_from_fileh]hsecurity_bprm_creds_from_file}(hj]rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYrubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8rhhhjJrhMubj)}(h4(struct linux_binprm *bprm, const struct file *file)h](j)}(hstruct linux_binprm *bprmh](j)}(hj h]hstruct}(hjyrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjurubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjurubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]jf )}jY j_rsbc.security_bprm_creds_from_fileasbuh1hhjurubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjurubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjurubj)}(hbprmh]hbprm}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjurubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqrubj)}(hconst struct file *fileh](j)}(hjh]hconst}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(hj h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubh)}(hhh]j)}(hfileh]hfile}(hj$shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!subah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj&smodnameN classnameNj] j` )}jc ]jrc.security_bprm_creds_from_fileasbuh1hhjrubj2)}(h h]h }(hjBshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(hjh]h*}(hjPshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hfileh]hfile}(hj]shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqrubeh}(h]h ]h"]h$]h&]jjuh1jhj8rhhhjJrhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4rhhhjJrhMubah}(h]j/rah ](jjeh"]h$]h&]jj)jhuh1jhjJrhMhj1rhhubj)}(hhh]h)}(h'Update linux_binprm creds based on fileh]h'Update linux_binprm creds based on file}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjshhubah}(h]h ]h"]h$]h&]uh1jhj1rhhhjJrhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct linux_binprm *bprm`` binary program information ``const struct file *file`` associated file **Description** If **file** is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update **bprm->cred** to reflect that change. This is called after finding the binary that will be executed without an interpreter. This ensures that the credentials will not be derived from a script that the binary will need to reopen, which when reopend may end up being a completely different file. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set **bprm->secureexec** to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to **bprm->per_clear** any personality flags that should be cleared from current->personality. **bprm** contains the linux_binprm structure. **Return** Returns 0 if the hook is successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubj )}(hhh](j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjsh]hstruct linux_binprm *bprm}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubj2)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjsubj)}(h,``const struct file *file`` associated file h](j)}(h``const struct file *file``h]j)}(hjth]hconst struct file *file}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubj2)}(hhh]h)}(hassociated fileh]hassociated file}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjthMhjsubeh}(h]h ]h"]h$]h&]uh1j hjsubh)}(h**Description**h]j)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:tubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubh)}(hXIf **file** is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update **bprm->cred** to reflect that change. This is called after finding the binary that will be executed without an interpreter. This ensures that the credentials will not be derived from a script that the binary will need to reopen, which when reopend may end up being a completely different file. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set **bprm->secureexec** to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to **bprm->per_clear** any personality flags that should be cleared from current->personality. **bprm** contains the linux_binprm structure.h](hIf }(hjRthhhNhNubj)}(h**file**h]hfile}(hjZthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRtubhR is setpcap, suid, sgid or otherwise marked to change privilege upon exec, update }(hjRthhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjlthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRtubhX to reflect that change. This is called after finding the binary that will be executed without an interpreter. This ensures that the credentials will not be derived from a script that the binary will need to reopen, which when reopend may end up being a completely different file. This hook may also optionally check permissions (e.g. for transitions between security domains). The hook must set }(hjRthhhNhNubj)}(h**bprm->secureexec**h]hbprm->secureexec}(hj~thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRtubh[ to 1 if AT_SECURE should be set to request libc enable secure mode. The hook must add to }(hjRthhhNhNubj)}(h**bprm->per_clear**h]hbprm->per_clear}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRtubhJ any personality flags that should be cleared from current->personality. }(hjRthhhNhNubj)}(h**bprm**h]hbprm}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRtubh% contains the linux_binprm structure.}(hjRthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubh)}(h **Return**h]j)}(hjth]hReturn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubh)}(h>Returns 0 if the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_bprm_check (C function)c.security_bprm_checkhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h3int security_bprm_check (struct linux_binprm *bprm)h]j)}(h2int security_bprm_check(struct linux_binprm *bprm)h](j )}(hinth]hint}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'ubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjthhhjuhM'ubj{)}(hsecurity_bprm_checkh]j)}(hsecurity_bprm_checkh]hsecurity_bprm_check}(hj#uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjthhhjuhM'ubj)}(h(struct linux_binprm *bprm)h]j)}(hstruct linux_binprm *bprmh](j)}(hj h]hstruct}(hj?uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;uubj2)}(h h]h }(hjLuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;uubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hj]uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZuubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_umodnameN classnameNj] j` )}jc ]jf )}jY j%usbc.security_bprm_checkasbuh1hhj;uubj2)}(h h]h }(hj}uhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;uubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;uubj)}(hbprmh]hbprm}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7uubah}(h]h ]h"]h$]h&]jjuh1jhjthhhjuhM'ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjuhM'ubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjuhM'hjthhubj)}(hhh]h)}(hMediate binary handler searchh]hMediate binary handler search}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjuhM'ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct linux_binprm *bprm`` binary program information **Description** This hook mediates the point when a search for a binary handler will begin. It allows a check against the **bprm->cred->security** value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in **bprm**. This hook may be called multiple times during a single execve. **bprm** contains the linux_binprm structure. **Return** Returns 0 if the hook is successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjuubj )}(hhh]j)}(h9``struct linux_binprm *bprm`` binary program information h](j)}(h``struct linux_binprm *bprm``h]j)}(hjvh]hstruct linux_binprm *bprm}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjuubj2)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM(hjvubah}(h]h ]h"]h$]h&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjvhM(hjuubah}(h]h ]h"]h$]h&]uh1j hjuubh)}(h**Description**h]j)}(hj>vh]h Description}(hj@vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcred->security** value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in **bprm**. This hook may be called multiple times during a single execve. **bprm** contains the linux_binprm structure.h](hjThis hook mediates the point when a search for a binary handler will begin. It allows a check against the }(hjTvhhhNhNubj)}(h**bprm->cred->security**h]hbprm->cred->security}(hj\vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTvubhr value which was set in the preceding creds_for_exec call. The argv list and envp list are reliably available in }(hjTvhhhNhNubj)}(h**bprm**h]hbprm}(hjnvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTvubhC. This hook may be called multiple times during a single execve. }(hjTvhhhNhNubj)}(h**bprm**h]hbprm}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTvubh% contains the linux_binprm structure.}(hjTvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hjuubh)}(h **Return**h]j)}(hjvh]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjuubh)}(h>Returns 0 if the hook is successful and permission is granted.h]h>Returns 0 if the hook is successful and permission is granted.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +security_bprm_committing_creds (C function) c.security_bprm_committing_credshNtauh1hhj-hhhNhNubj)}(hhh](j)}(hEvoid security_bprm_committing_creds (const struct linux_binprm *bprm)h]j)}(hDvoid security_bprm_committing_creds(const struct linux_binprm *bprm)h](j )}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8ubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjvhM8ubj{)}(hsecurity_bprm_committing_credsh]j)}(hsecurity_bprm_committing_credsh]hsecurity_bprm_committing_creds}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjvhM8ubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hj*whhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hj h]hstruct}(hj8whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjEwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hjVwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXwmodnameN classnameNj] j` )}jc ]jf )}jY jwsb c.security_bprm_committing_credsasbuh1hhjwubj2)}(h h]h }(hjvwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hbprmh]hbprm}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubah}(h]h ]h"]h$]h&]jjuh1jhjvhhhjvhM8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjvhM8ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jhjvhM8hjvhhubj)}(hhh]h)}(h)Install creds for a process during exec()h]h)Install creds for a process during exec()}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjvhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jhhhj-hNhNubj)}(hXg**Parameters** ``const struct linux_binprm *bprm`` binary program information **Description** Prepare to install the new security attributes of a process being transformed by an execve operation, based on the old credentials pointed to by **current->cred** and the information set in **bprm->cred** by the bprm_creds_for_exec hook. **bprm** points to the linux_binprm structure. This hook is a good place to perform state changes on the process such as closing open file descriptors to which access will no longer be granted when the attributes are changed. This is called immediately before commit_creds().h](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjwubj )}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjwh]hconst struct linux_binprm *bprm}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjwubj2)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM9hjxubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjxhM9hjwubah}(h]h ]h"]h$]h&]uh1j hjwubh)}(h**Description**h]j)}(hj7xh]h Description}(hj9xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5xubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hjwubh)}(hXPrepare to install the new security attributes of a process being transformed by an execve operation, based on the old credentials pointed to by **current->cred** and the information set in **bprm->cred** by the bprm_creds_for_exec hook. **bprm** points to the linux_binprm structure. This hook is a good place to perform state changes on the process such as closing open file descriptors to which access will no longer be granted when the attributes are changed. This is called immediately before commit_creds().h](hPrepare to install the new security attributes of a process being transformed by an execve operation, based on the old credentials pointed to by }(hjMxhhhNhNubj)}(h**current->cred**h]h current->cred}(hjUxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMxubh and the information set in }(hjMxhhhNhNubj)}(h**bprm->cred**h]h bprm->cred}(hjgxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMxubh# by the bprm_creds_for_exec hook. }(hjMxhhhNhNubj)}(h**bprm**h]hbprm}(hjyxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMxubhX  points to the linux_binprm structure. This hook is a good place to perform state changes on the process such as closing open file descriptors to which access will no longer be granted when the attributes are changed. This is called immediately before commit_creds().}(hjMxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *security_bprm_committed_creds (C function)c.security_bprm_committed_credshNtauh1hhj-hhhNhNubj)}(hhh](j)}(hDvoid security_bprm_committed_creds (const struct linux_binprm *bprm)h]j)}(hCvoid security_bprm_committed_creds(const struct linux_binprm *bprm)h](j )}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjxhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhjxhMIubj{)}(hsecurity_bprm_committed_credsh]j)}(hsecurity_bprm_committed_credsh]hsecurity_bprm_committed_creds}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhjxhMIubj)}(h!(const struct linux_binprm *bprm)h]j)}(hconst struct linux_binprm *bprmh](j)}(hjh]hconst}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hj h]hstruct}(hj yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hj(yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%yubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*ymodnameN classnameNj] j` )}jc ]jf )}jY jxsbc.security_bprm_committed_credsasbuh1hhjxubj2)}(h h]h }(hjHyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hjh]h*}(hjVyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hbprmh]hbprm}(hjcyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhjxhhhjxhMIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhjxhMIubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjxhMIhjxhhubj)}(hhh]h)}(h(Tidy up after cred install during exec()h]h(Tidy up after cred install during exec()}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjyhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjxhMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``const struct linux_binprm *bprm`` binary program information **Description** Tidy up after the installation of the new security attributes of a process being transformed by an execve operation. The new credentials have, by this point, been set to **current->cred**. **bprm** points to the linux_binprm structure. This hook is a good place to perform state changes on the process such as clearing out non-inheritable signal state. This is called immediately after commit_creds().h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjyubj )}(hhh]j)}(h?``const struct linux_binprm *bprm`` binary program information h](j)}(h#``const struct linux_binprm *bprm``h]j)}(hjyh]hconst struct linux_binprm *bprm}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjyubj2)}(hhh]h)}(hbinary program informationh]hbinary program information}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMJhjyubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMJhjyubah}(h]h ]h"]h$]h&]uh1j hjyubh)}(h**Description**h]j)}(hj zh]h Description}(hj zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjyubh)}(hXTidy up after the installation of the new security attributes of a process being transformed by an execve operation. The new credentials have, by this point, been set to **current->cred**. **bprm** points to the linux_binprm structure. This hook is a good place to perform state changes on the process such as clearing out non-inheritable signal state. This is called immediately after commit_creds().h](hTidy up after the installation of the new security attributes of a process being transformed by an execve operation. The new credentials have, by this point, been set to }(hjzhhhNhNubj)}(h**current->cred**h]h current->cred}(hj'zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh. }(hjzhhhNhNubj)}(h**bprm**h]hbprm}(hj9zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubh points to the linux_binprm structure. This hook is a good place to perform state changes on the process such as clearing out non-inheritable signal state. This is called immediately after commit_creds().}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_fs_context_submount (C function)c.security_fs_context_submounthNtauh1hhj-hhhNhNubj)}(hhh](j)}(hWint security_fs_context_submount (struct fs_context *fc, struct super_block *reference)h]j)}(hVint security_fs_context_submount(struct fs_context *fc, struct super_block *reference)h](j )}(hinth]hint}(hjrzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnzhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnzhhhjzhMYubj{)}(hsecurity_fs_context_submounth]j)}(hsecurity_fs_context_submounth]hsecurity_fs_context_submount}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjnzhhhjzhMYubj)}(h6(struct fs_context *fc, struct super_block *reference)h](j)}(hstruct fs_context *fch](j)}(hj h]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubh)}(hhh]j)}(h fs_contexth]h fs_context}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjzmodnameN classnameNj] j` )}jc ]jf )}jY jzsbc.security_fs_context_submountasbuh1hhjzubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hfch]hfc}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(hstruct super_block *referenceh](j)}(hj h]hstruct}(hj!{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj2)}(h h]h }(hj.{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{ubh)}(hhh]j)}(h super_blockh]h super_block}(hj?{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<{ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjA{modnameN classnameNj] j` )}jc ]jzc.security_fs_context_submountasbuh1hhj{ubj2)}(h h]h }(hj]{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{ubj)}(hjh]h*}(hjk{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(h referenceh]h reference}(hjx{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubeh}(h]h ]h"]h$]h&]jjuh1jhjnzhhhjzhMYubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjzhhhjzhMYubah}(h]jezah ](jjeh"]h$]h&]jj)jhuh1jhjzhMYhjgzhhubj)}(hhh]h)}(hInitialise fc->securityh]hInitialise fc->security}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj{hhubah}(h]h ]h"]h$]h&]uh1jhjgzhhhjzhMYubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct fs_context *fc`` new filesystem context ``struct super_block *reference`` dentry reference for submount/remount **Description** Fill out the ->security field for a new fs_context. **Return** Returns 0 on success or negative error code on failure.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj{ubj )}(hhh](j)}(h1``struct fs_context *fc`` new filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hj{h]hstruct fs_context *fc}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZhj{ubj2)}(hhh]h)}(hnew filesystem contexth]hnew filesystem context}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMZhj{ubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMZhj{ubj)}(hH``struct super_block *reference`` dentry reference for submount/remount h](j)}(h!``struct super_block *reference``h]j)}(hj|h]hstruct super_block *reference}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hj|ubj2)}(hhh]h)}(h%dentry reference for submount/remounth]h%dentry reference for submount/remount}(hj5|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1|hM[hj2|ubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhj1|hM[hj{ubeh}(h]h ]h"]h$]h&]uh1j hj{ubh)}(h**Description**h]j)}(hjW|h]h Description}(hjY|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj{ubh)}(h3Fill out the ->security field for a new fs_context.h]h3Fill out the ->security field for a new fs_context.}(hjm|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hj{ubh)}(h **Return**h]j)}(hj~|h]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj||ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^hj{ubh)}(h7Returns 0 on success or negative error code on failure.h]h7Returns 0 on success or negative error code on failure.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_fs_context_dup (C function)c.security_fs_context_duphNtauh1hhj-hhhNhNubj)}(hhh](j)}(hNint security_fs_context_dup (struct fs_context *fc, struct fs_context *src_fc)h]j)}(hMint security_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc)h](j )}(hinth]hint}(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMgubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|hhhj|hMgubj{)}(hsecurity_fs_context_duph]j)}(hsecurity_fs_context_duph]hsecurity_fs_context_dup}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|hhhj|hMgubj)}(h2(struct fs_context *fc, struct fs_context *src_fc)h](j)}(hstruct fs_context *fc h](j)}(hj h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hj }hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubh)}(hhh]j)}(h fs_contexth]h fs_context}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj }modnameN classnameNj] j` )}jc ]jf )}jY j|sbc.security_fs_context_dupasbuh1hhj|ubj2)}(h h]h }(hj>}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj)}(hjh]h*}(hjL}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hfch]hfc}(hjY}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubj)}(hstruct fs_context *src_fch](j)}(hj h]hstruct}(hjr}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn}ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjn}ubh)}(hhh]j)}(h fs_contexth]h fs_context}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj}modnameN classnameNj] j` )}jc ]j:}c.security_fs_context_dupasbuh1hhjn}ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjn}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn}ubj)}(hsrc_fch]hsrc_fc}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|ubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhj|hMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hMgubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1jhj|hMghj|hhubj)}(hhh]h)}(hDuplicate a fs_context LSM blobh]hDuplicate a fs_context LSM blob}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghj}hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj ~jj ~jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct fs_context *fc`` destination filesystem context ``struct fs_context *src_fc`` source filesystem context **Description** Allocate and attach a security structure to sc->security. This pointer is initialised to NULL by the caller. **fc** indicates the new filesystem context. **src_fc** indicates the original filesystem context. **Return** Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhj~ubj )}(hhh](j)}(h9``struct fs_context *fc`` destination filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hj4~h]hstruct fs_context *fc}(hj6~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhj.~ubj2)}(hhh]h)}(hdestination filesystem contexth]hdestination filesystem context}(hjM~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI~hMhhjJ~ubah}(h]h ]h"]h$]h&]uh1j1hj.~ubeh}(h]h ]h"]h$]h&]uh1jhjI~hMhhj+~ubj)}(h8``struct fs_context *src_fc`` source filesystem context h](j)}(h``struct fs_context *src_fc``h]j)}(hjm~h]hstruct fs_context *src_fc}(hjo~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihjg~ubj2)}(hhh]h)}(hsource filesystem contexth]hsource filesystem context}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMihj~ubah}(h]h ]h"]h$]h&]uh1j1hjg~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMihj+~ubeh}(h]h ]h"]h$]h&]uh1j hj~ubh)}(h**Description**h]j)}(hj~h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhj~ubh)}(hAllocate and attach a security structure to sc->security. This pointer is initialised to NULL by the caller. **fc** indicates the new filesystem context. **src_fc** indicates the original filesystem context.h](hoAllocate and attach a security structure to sc->security. This pointer is initialised to NULL by the caller. }(hj~hhhNhNubj)}(h**fc**h]hfc}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh' indicates the new filesystem context. }(hj~hhhNhNubj)}(h **src_fc**h]hsrc_fc}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh+ indicates the original filesystem context.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhj~ubh)}(h **Return**h]j)}(hj~h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhj~ubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,security_fs_context_parse_param (C function)!c.security_fs_context_parse_paramhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hWint security_fs_context_parse_param (struct fs_context *fc, struct fs_parameter *param)h]j)}(hVint security_fs_context_parse_param(struct fs_context *fc, struct fs_parameter *param)h](j )}(hinth]hint}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4hhhjFhMwubj{)}(hsecurity_fs_context_parse_paramh]j)}(hsecurity_fs_context_parse_paramh]hsecurity_fs_context_parse_param}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4hhhjFhMwubj)}(h3(struct fs_context *fc, struct fs_parameter *param)h](j)}(hstruct fs_context *fch](j)}(hj h]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubh)}(hhh]j)}(h fs_contexth]h fs_context}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j[sb!c.security_fs_context_parse_paramasbuh1hhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hfch]hfc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hstruct fs_parameter *paramh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h fs_parameterh]h fs_parameter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j!c.security_fs_context_parse_paramasbuh1hhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparamh]hparam}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhj4hhhjFhMwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjFhMwubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1jhjFhMwhj-hhubj)}(hhh]h)}(hConfigure a filesystem contexth]hConfigure a filesystem context}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjehhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjFhMwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct fs_context *fc`` filesystem context ``struct fs_parameter *param`` filesystem parameter **Description** Userspace provided a parameter to configure a superblock. The LSM can consume the parameter or return it to the caller for use elsewhere. **Return** If the parameter is used by the LSM it should return 0, if it is returned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjubj )}(hhh](j)}(h-``struct fs_context *fc`` filesystem context h](j)}(h``struct fs_context *fc``h]j)}(hjh]hstruct fs_context *fc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjubj2)}(hhh]h)}(hfilesystem contexth]hfilesystem context}(hj€hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjubj)}(h4``struct fs_parameter *param`` filesystem parameter h](j)}(h``struct fs_parameter *param``h]j)}(hjh]hstruct fs_parameter *param}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhj܀ubj2)}(hhh]h)}(hfilesystem parameterh]hfilesystem parameter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1j1hj܀ubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjubh)}(hUserspace provided a parameter to configure a superblock. The LSM can consume the parameter or return it to the caller for use elsewhere.h]hUserspace provided a parameter to configure a superblock. The LSM can consume the parameter or return it to the caller for use elsewhere.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhjubh)}(h **Return**h]j)}(hjDh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM}hjubh)}(hIf the parameter is used by the LSM it should return 0, if it is returned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.h]hIf the parameter is used by the LSM it should return 0, if it is returned to the caller -ENOPARAM is returned, otherwise a negative error code is returned.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_alloc (C function)c.security_sb_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h.int security_sb_alloc (struct super_block *sb)h]j)}(h-int security_sb_alloc(struct super_block *sb)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_sb_alloch]j)}(hsecurity_sb_alloch]hsecurity_sb_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj h]hstruct}(hjƁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjӁhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sb_allocasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1jhjhMhj~hhubj)}(hhh]h)}(hAllocate a super_block LSM blobh]hAllocate a super_block LSM blob}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jhhhj-hNhNubj)}(hXV**Parameters** ``struct super_block *sb`` filesystem superblock **Description** Allocate and attach a security structure to the sb->s_security field. The s_security field is initialized to NULL when the structure is allocated. **sb** contains the super_block structure to be modified. **Return** Returns 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubj )}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjh]hstruct super_block *sb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjeubh)}(h**Description**h]j)}(hjłh]h Description}(hjǂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÂubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(hAllocate and attach a security structure to the sb->s_security field. The s_security field is initialized to NULL when the structure is allocated. **sb** contains the super_block structure to be modified.h](hAllocate and attach a security structure to the sb->s_security field. The s_security field is initialized to NULL when the structure is allocated. }(hjۂhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۂubh3 contains the super_block structure to be modified.}(hjۂhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_delete (C function)c.security_sb_deletehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h0void security_sb_delete (struct super_block *sb)h]j)}(h/void security_sb_delete(struct super_block *sb)h](j )}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?hhhjQhMubj{)}(hsecurity_sb_deleteh]j)}(hsecurity_sb_deleteh]hsecurity_sb_delete}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhjQhMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubh)}(hhh]j)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jfsbc.security_sb_deleteasbuh1hhj|ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj)}(hjh]h*}(hj̃hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hsbh]hsb}(hjكhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1jhjQhMhj8hhubj)}(hhh]h)}(h*Release super_block LSM associated objectsh]h*Release super_block LSM associated objects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct super_block *sb`` filesystem superblock **Description** Release objects tied to a superblock (e.g. inodes). **sb** contains the super_block structure being released.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjDh]hstruct super_block *sb}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj>ubj2)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hnRelease objects tied to a superblock (e.g. inodes). **sb** contains the super_block structure being released.h](h5Release objects tied to a superblock (e.g. inodes). }(hjhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 contains the super_block structure being released.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_free (C function)c.security_sb_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h.void security_sb_free (struct super_block *sb)h]j)}(h-void security_sb_free(struct super_block *sb)h](j )}(hvoidh]hvoid}(hjքhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj҄hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj҄hhhjhMubj{)}(hsecurity_sb_freeh]j)}(hsecurity_sb_freeh]hsecurity_sb_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj҄hhhjhMubj)}(h(struct super_block *sb)h]j)}(hstruct super_block *sbh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h super_blockh]h super_block}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sb_freeasbuh1hhjubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsbh]hsb}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhj҄hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj΄hhhjhMubah}(h]jɄah ](jjeh"]h$]h&]jj)jhuh1jhjhMhj˄hhubj)}(hhh]h)}(hFree a super_block LSM blobh]hFree a super_block LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj˄hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct super_block *sb`` filesystem superblock **Description** Deallocate and clear the sb->s_security field. **sb** contains the super_block structure to be modified.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjׅh]hstruct super_block *sb}(hjمhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՅubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjхubj2)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjхubeh}(h]h ]h"]h$]h&]uh1jhjhMhj΅ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hiDeallocate and clear the sb->s_security field. **sb** contains the super_block structure to be modified.h](h0Deallocate and clear the sb->s_security field. }(hj(hhhNhNubj)}(h**sb**h]hsb}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh3 contains the super_block structure to be modified.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_sb_kern_mount (C function)c.security_sb_kern_mounthNtauh1hhj-hhhNhNubj)}(hhh](j)}(h9int security_sb_kern_mount (const struct super_block *sb)h]j)}(h8int security_sb_kern_mount(const struct super_block *sb)h](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjehhhjwhMubj{)}(hsecurity_sb_kern_mounth]j)}(hsecurity_sb_kern_mounth]hsecurity_sb_kern_mount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjwhMubj)}(h(const struct super_block *sb)h]j)}(hconst struct super_block *sbh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjΆhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h super_blockh]h super_block}(hj߆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj܆ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sb_kern_mountasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjehhhjwhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jhjwhMhj^hhubj)}(hhh]h)}(h"Check if a kernel mount is allowedh]h"Check if a kernel mount is allowed}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``const struct super_block *sb`` filesystem superblock **Description** Mount this **sb** if allowed by permissions. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`ubj )}(hhh]j)}(h7``const struct super_block *sb`` filesystem superblock h](j)}(h ``const struct super_block *sb``h]j)}(hjh]hconst struct super_block *sb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj|ubah}(h]h ]h"]h$]h&]uh1j hj`ubh)}(h**Description**h]j)}(hjh]h Description}(hj‡hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`ubh)}(h,Mount this **sb** if allowed by permissions.h](h Mount this }(hjևhhhNhNubj)}(h**sb**h]hsb}(hjއhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjևubh if allowed by permissions.}(hjևhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_sb_show_options (C function)c.security_sb_show_optionshNtauh1hhj-hhhNhNubj)}(hhh](j)}(hIint security_sb_show_options (struct seq_file *m, struct super_block *sb)h]j)}(hHint security_sb_show_options(struct seq_file *m, struct super_block *sb)h](j )}(hinth]hint}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:hhhjLhMubj{)}(hsecurity_sb_show_optionsh]j)}(hsecurity_sb_show_optionsh]hsecurity_sb_show_options}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhhjLhMubj)}(h,(struct seq_file *m, struct super_block *sb)h](j)}(hstruct seq_file *mh](j)}(hj h]hstruct}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubh)}(hhh]j)}(hseq_fileh]hseq_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jasbc.security_sb_show_optionsasbuh1hhjwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]h*}(hjLjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(hjn8h]hm}(hjԈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hstruct super_block *sbh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h super_blockh]h super_block}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jc.security_sb_show_optionsasbuh1hhjubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsbh]hsb}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhjLhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjLhMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhjLhMhj3hhubj)}(hhh]h)}(h)Output the mount options for a superblockh]h)Output the mount options for a superblock}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjLhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct seq_file *m`` output file ``struct super_block *sb`` filesystem superblock **Description** Show (print on **m**) mount options for this **sb**. **Return** Returns 0 on success, negative values on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h#``struct seq_file *m`` output file h](j)}(h``struct seq_file *m``h]j)}(hjh]hstruct seq_file *m}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h output fileh]h output file}(hjljhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjÉhMhjĉubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjÉhMhjubj)}(h1``struct super_block *sb`` filesystem superblock h](j)}(h``struct super_block *sb``h]j)}(hjh]hstruct super_block *sb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h4Show (print on **m**) mount options for this **sb**.h](hShow (print on }(hj8hhhNhNubj)}(h**m**h]hm}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh) mount options for this }(hj8hhhNhNubj)}(h**sb**h]hsb}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjmh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_statfs (C function)c.security_sb_statfshNtauh1hhj-hhhNhNubj)}(hhh](j)}(h.int security_sb_statfs (struct dentry *dentry)h]j)}(h-int security_sb_statfs(struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_sb_statfsh]j)}(hsecurity_sb_statfsh]hsecurity_sb_statfs}(hjӊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϊubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jՊsbc.security_sb_statfsasbuh1hhjubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h&Check if accessing fs stats is allowedh]h&Check if accessing fs stats is allowed}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjohhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct dentry *dentry`` superblock handle **Description** Check permission before obtaining filesystem statistics for the **mnt** mountpoint. **dentry** is a handle on the superblock for the filesystem. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM#hjubj )}(hhh]j)}(h,``struct dentry *dentry`` superblock handle h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hsuperblock handleh]hsuperblock handle}(hj̋hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȋhM hjɋubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjȋhM hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hjubh)}(hCheck permission before obtaining filesystem statistics for the **mnt** mountpoint. **dentry** is a handle on the superblock for the filesystem.h](h@Check permission before obtaining filesystem statistics for the }(hjhhhNhNubj)}(h**mnt**h]hmnt}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh mountpoint. }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh2 is a handle on the superblock for the filesystem.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hjubh)}(h **Return**h]j)}(hj9h]hReturn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_mount (C function)c.security_sb_mounthNtauh1hhj-hhhNhNubj)}(hhh](j)}(hxint security_sb_mount (const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h]j)}(hwint security_sb_mount(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h](j )}(hinth]hint}(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzhhhjhM-ubj{)}(hsecurity_sb_mounth]j)}(hsecurity_sb_mounth]hsecurity_sb_mount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzhhhjhM-ubj)}(hb(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)h](j)}(hconst char *dev_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjȌhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj֌hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdev_nameh]hdev_name}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hpathh]hpath}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sb_mountasbuh1hhjubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *typeh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj΍hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj܍hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *datah](j )}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hdatah]hdata}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjzhhhjhM-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjhM-ubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhjhM-hjshhubj)}(hhh]h)}(h*Check permission for mounting a filesystemh]h*Check permission for mounting a filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hjhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``const char *dev_name`` filesystem backing device ``const struct path *path`` mount point ``const char *type`` filesystem type ``unsigned long flags`` mount flags ``void *data`` filesystem specific data **Description** Check permission before an object specified by **dev_name** is mounted on the mount point named by **nd**. For an ordinary mount, **dev_name** identifies a device if the file system type requires a device. For a remount (**flags** & MS_REMOUNT), **dev_name** is irrelevant. For a loopback/bind mount (**flags** & MS_BIND), **dev_name** identifies the pathname of the object being mounted. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjȎh]h Parameters}(hjʎhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƎubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hjŽubj )}(hhh](j)}(h3``const char *dev_name`` filesystem backing device h](j)}(h``const char *dev_name``h]j)}(hjh]hconst char *dev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjubj2)}(hhh]h)}(hfilesystem backing deviceh]hfilesystem backing device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjގubj)}(h(``const struct path *path`` mount point h](j)}(h``const struct path *path``h]j)}(hj h]hconst struct path *path}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjubj2)}(hhh]h)}(h mount pointh]h mount point}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM/hj6ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj5hM/hjގubj)}(h%``const char *type`` filesystem type h](j)}(h``const char *type``h]j)}(hjYh]hconst char *type}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hjSubj2)}(hhh]h)}(hfilesystem typeh]hfilesystem type}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM0hjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM0hjގubj)}(h$``unsigned long flags`` mount flags h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hjubj2)}(hhh]h)}(h mount flagsh]h mount flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjގubj)}(h(``void *data`` filesystem specific data h](j)}(h``void *data``h]j)}(hjˏh]h void *data}(hj͏hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɏubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjŏubj2)}(hhh]h)}(hfilesystem specific datah]hfilesystem specific data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1j1hjŏubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjގubeh}(h]h ]h"]h$]h&]uh1j hjŽubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hjŽubh)}(hXCheck permission before an object specified by **dev_name** is mounted on the mount point named by **nd**. For an ordinary mount, **dev_name** identifies a device if the file system type requires a device. For a remount (**flags** & MS_REMOUNT), **dev_name** is irrelevant. For a loopback/bind mount (**flags** & MS_BIND), **dev_name** identifies the pathname of the object being mounted.h](h/Check permission before an object specified by }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( is mounted on the mount point named by }(hjhhhNhNubj)}(h**nd**h]hnd}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. For an ordinary mount, }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP identifies a device if the file system type requires a device. For a remount (}(hjhhhNhNubj)}(h **flags**h]hflags}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh & MS_REMOUNT), }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, is irrelevant. For a loopback/bind mount (}(hjhhhNhNubj)}(h **flags**h]hflags}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh & MS_BIND), }(hjhhhNhNubj)}(h **dev_name**h]hdev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 identifies the pathname of the object being mounted.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3hjŽubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hjŽubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hjŽubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_umount (C function)c.security_sb_umounthNtauh1hhj-hhhNhNubj)}(hhh](j)}(h8int security_sb_umount (struct vfsmount *mnt, int flags)h]j)}(h7int security_sb_umount(struct vfsmount *mnt, int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMDubj{)}(hsecurity_sb_umounth]j)}(hsecurity_sb_umounth]hsecurity_sb_umount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMDubj)}(h!(struct vfsmount *mnt, int flags)h](j)}(hstruct vfsmount *mnth](j)}(hj h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubh)}(hhh]j)}(hvfsmounth]hvfsmount}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sb_umountasbuh1hhj)ubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hmnth]hmnt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(h int flagsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMDhjhhubj)}(hhh]h)}(h,Check permission for unmounting a filesystemh]h,Check permission for unmounting a filesystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct vfsmount *mnt`` mounted filesystem ``int flags`` unmount flags **Description** Check permission before the **mnt** file system is unmounted. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjubj )}(hhh](j)}(h,``struct vfsmount *mnt`` mounted filesystem h](j)}(h``struct vfsmount *mnt``h]j)}(hj&h]hstruct vfsmount *mnt}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhj ubj2)}(hhh]h)}(hmounted filesystemh]hmounted filesystem}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMEhj<ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMEhjubj)}(h``int flags`` unmount flags h](j)}(h ``int flags``h]j)}(hj_h]h int flags}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjYubj2)}(hhh]h)}(h unmount flagsh]h unmount flags}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMFhjuubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjthMFhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjubh)}(h=Check permission before the **mnt** file system is unmounted.h](hCheck permission before the }(hjhhhNhNubj)}(h**mnt**h]hmnt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh file system is unmounted.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhjubh)}(h **Return**h]j)}(hjӒh]hReturn}(hjՒhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjђubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_sb_pivotroot (C function)c.security_sb_pivotroothNtauh1hhj-hhhNhNubj)}(hhh](j)}(hTint security_sb_pivotroot (const struct path *old_path, const struct path *new_path)h]j)}(hSint security_sb_pivotroot(const struct path *old_path, const struct path *new_path)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj&hMRubj{)}(hsecurity_sb_pivotroot(h]j)}(hsecurity_sb_pivotrooth]hsecurity_sb_pivotroot}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj&hMRubj)}(h:(const struct path *old_path, const struct path *new_path)h](j)}(hconst struct path *old_pathh](j)}(hjh]hconst}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hj h]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j;sbc.security_sb_pivotrootasbuh1hhjQubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hold_pathh]hold_path}(hjɓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hconst struct path *new_pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޓubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjޓubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޓubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjޓubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_sb_pivotrootasbuh1hhjޓubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjޓubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޓubj)}(hnew_pathh]hnew_path}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޓubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj&hMRubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj&hMRhj hhubj)}(hhh]h)}(h)Check permissions for pivoting the rootfsh]h)Check permissions for pivoting the rootfs}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhj{hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``const struct path *old_path`` new location for current rootfs ``const struct path *new_path`` location of the new rootfs **Description** Check permission before pivoting the root filesystem. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjubj )}(hhh](j)}(h@``const struct path *old_path`` new location for current rootfs h](j)}(h``const struct path *old_path``h]j)}(hjh]hconst struct path *old_path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShjubj2)}(hhh]h)}(hnew location for current rootfsh]hnew location for current rootfs}(hjؔhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԔhMShjՔubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjԔhMShjubj)}(h;``const struct path *new_path`` location of the new rootfs h](j)}(h``const struct path *new_path``h]j)}(hjh]hconst struct path *new_path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThjubj2)}(hhh]h)}(hlocation of the new rootfsh]hlocation of the new rootfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMThjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMThjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjubh)}(h5Check permission before pivoting the root filesystem.h]h5Check permission before pivoting the root filesystem.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjubh)}(h **Return**h]j)}(hjZh]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_move_mount (C function)c.security_move_mounthNtauh1hhj-hhhNhNubj)}(hhh](j)}(hRint security_move_mount (const struct path *from_path, const struct path *to_path)h]j)}(hQint security_move_mount(const struct path *from_path, const struct path *to_path)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_move_mounth]j)}(hsecurity_move_mounth]hsecurity_move_mount}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h:(const struct path *from_path, const struct path *to_path)h](j)}(hconst struct path *from_pathh](j)}(hjh]hconst}(hjܕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjؕubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjؕubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjؕubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjؕubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j•sbc.security_move_mountasbuh1hhjؕubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjؕubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjؕubj)}(h from_pathh]h from_path}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjؕubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjԕubj)}(hconst struct path *to_pathh](j)}(hjh]hconst}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j1c.security_move_mountasbuh1hhjeubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjΖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hto_pathh]hto_path}(hjۖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjԕubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h$Check permissions for moving a mounth]h$Check permissions for moving a mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``const struct path *from_path`` source mount point ``const struct path *to_path`` destination mount point **Description** Check permission before a mount is moved. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubj )}(hhh](j)}(h4``const struct path *from_path`` source mount point h](j)}(h ``const struct path *from_path``h]j)}(hjFh]hconst struct path *from_path}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj@ubj2)}(hhh]h)}(hsource mount pointh]hsource mount point}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj=ubj)}(h7``const struct path *to_path`` destination mount point h](j)}(h``const struct path *to_path``h]j)}(hjh]hconst struct path *to_path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyubj2)}(hhh]h)}(hdestination mount pointh]hdestination mount point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubeh}(h]h ]h"]h$]h&]uh1j hj!ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubh)}(h)Check permission before a mount is moved.h]h)Check permission before a mount is moved.}(hjЗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߗubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_path_notify (C function)c.security_path_notifyhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hSint security_path_notify (const struct path *path, u64 mask, unsigned int obj_type)h]j)}(hRint security_path_notify(const struct path *path, u64 mask, unsigned int obj_type)h](j )}(hinth]hint}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"hhhj4hMubj{)}(hsecurity_path_notifyh]j)}(hsecurity_path_notifyh]hsecurity_path_notify}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhj4hMubj)}(h:(const struct path *path, u64 mask, unsigned int obj_type)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(hj h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jIsbc.security_path_notifyasbuh1hhj_ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(hjh]h*}(hjʘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hpathh]hpath}(hjטhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hu64 maskh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_path_notifyasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hmaskh]hmask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hunsigned int obj_typeh](j )}(hunsignedh]hunsigned}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj )}(hinth]hint}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hobj_typeh]hobj_type}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj4hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj4hMhjhhubj)}(hhh]h)}(h#Check if setting a watch is allowedh]h#Check if setting a watch is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hXM**Parameters** ``const struct path *path`` file path ``u64 mask`` event mask ``unsigned int obj_type`` file path type **Description** Check permissions before setting a watch on events as defined by **mask**, on an object at **path**, whose type is defined by **obj_type**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h&``const struct path *path`` file path h](j)}(h``const struct path *path``h]j)}(hjۙh]hconst struct path *path}(hjݙhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٙubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjՙubj2)}(hhh]h)}(h file pathh]h file path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjՙubeh}(h]h ]h"]h$]h&]uh1jhjhMhjҙubj)}(h``u64 mask`` event mask h](j)}(h ``u64 mask``h]j)}(hjh]hu64 mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h event maskh]h event mask}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjҙubj)}(h)``unsigned int obj_type`` file path type h](j)}(h``unsigned int obj_type``h]j)}(hjMh]hunsigned int obj_type}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjGubj2)}(hhh]h)}(hfile path typeh]hfile path type}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjҙubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hCheck permissions before setting a watch on events as defined by **mask**, on an object at **path**, whose type is defined by **obj_type**.h](hACheck permissions before setting a watch on events as defined by }(hjhhhNhNubj)}(h**mask**h]hmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, on an object at }(hjhhhNhNubj)}(h**path**h]hpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, whose type is defined by }(hjhhhNhNubj)}(h **obj_type**h]hobj_type}(hjʚhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_inode_alloc (C function)c.security_inode_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h9int security_inode_alloc (struct inode *inode, gfp_t gfp)h]j)}(h8int security_inode_alloc(struct inode *inode, gfp_t gfp)h](j )}(hinth]hint}(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&hhhj8hMubj{)}(hsecurity_inode_alloch]j)}(hsecurity_inode_alloch]hsecurity_inode_alloc}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&hhhj8hMubj)}(h (struct inode *inode, gfp_t gfp)h](j)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jMsbc.security_inode_allocasbuh1hhjcubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjܛhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٛubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjޛmodnameN classnameNj] j` )}jc ]jc.security_inode_allocasbuh1hhj՛ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj՛ubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj՛ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhj&hhhj8hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj8hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj8hMhjhhubj)}(hhh]h)}(hAllocate an inode LSM blobh]hAllocate an inode LSM blob}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj8hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhj-hNhNubj)}(hX1**Parameters** ``struct inode *inode`` the inode ``gfp_t gfp`` allocation flags **Description** Allocate and attach a security structure to **inode->i_security**. The i_security field is initialized to NULL when the inode structure is allocated. **Return** Return 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubj )}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjsh]hstruct inode *inode}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjmubj2)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hallocation flagsh]hallocation flags}(hjŜhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjœubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubeh}(h]h ]h"]h$]h&]uh1j hjNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubh)}(hAllocate and attach a security structure to **inode->i_security**. The i_security field is initialized to NULL when the inode structure is allocated.h](h,Allocate and attach a security structure to }(hjhhhNhNubj)}(h**inode->i_security**h]hinode->i_security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhU. The i_security field is initialized to NULL when the inode structure is allocated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubh)}(h **Return**h]j)}(hj h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubh)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_inode_free (C function)c.security_inode_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h.void security_inode_free (struct inode *inode)h]j)}(h-void security_inode_free(struct inode *inode)h](j )}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjahhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjahhhjshMubj{)}(hsecurity_inode_freeh]j)}(hsecurity_inode_freeh]hsecurity_inode_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjshMubj)}(h(struct inode *inode)h]j)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_freeasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjahhhjshMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhjshMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhjshMhjZhhubj)}(hhh]h)}(hFree an inode's LSM blobh]hFree an inode’s LSM blob}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj"hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct inode *inode`` the inode **Description** Release any LSM resources associated with **inode**, although due to the inode's RCU protections it is possible that the resources will not be fully released until after the current RCU grace period has elapsed. It is important for LSMs to note that despite being present in a call to security_inode_free(), **inode** may still be referenced in a VFS path walk and calls to security_inode_permission() may be made during, or after, a call to security_inode_free(). For this reason the inode->i_security field is released via a call_rcu() callback and any LSMs which need to retain inode state for use in security_inode_permission() should only release that state in the inode_free_security_rcu() LSM hook callback.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjAubj )}(hhh]j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hjfh]hstruct inode *inode}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`ubj2)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1j1hj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj]ubah}(h]h ]h"]h$]h&]uh1j hjAubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjAubh)}(hRelease any LSM resources associated with **inode**, although due to the inode's RCU protections it is possible that the resources will not be fully released until after the current RCU grace period has elapsed.h](h*Release any LSM resources associated with }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, although due to the inode’s RCU protections it is possible that the resources will not be fully released until after the current RCU grace period has elapsed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjAubh)}(hXIt is important for LSMs to note that despite being present in a call to security_inode_free(), **inode** may still be referenced in a VFS path walk and calls to security_inode_permission() may be made during, or after, a call to security_inode_free(). For this reason the inode->i_security field is released via a call_rcu() callback and any LSMs which need to retain inode state for use in security_inode_permission() should only release that state in the inode_free_security_rcu() LSM hook callback.h](h`It is important for LSMs to note that despite being present in a call to security_inode_free(), }(hj؞hhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj؞ubhX may still be referenced in a VFS path walk and calls to security_inode_permission() may be made during, or after, a call to security_inode_free(). For this reason the inode->i_security field is released via a call_rcu() callback and any LSMs which need to retain inode state for use in security_inode_permission() should only release that state in the inode_free_security_rcu() LSM hook callback.}(hj؞hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .security_inode_init_security_anon (C function)#c.security_inode_init_security_anonhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hwint security_inode_init_security_anon (struct inode *inode, const struct qstr *name, const struct inode *context_inode)h]j)}(hvint security_inode_init_security_anon(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj'hMdubj{)}(h!security_inode_init_security_anonh]j)}(h!security_inode_init_security_anonh]h!security_inode_init_security_anon}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj'hMdubj)}(hQ(struct inode *inode, const struct qstr *name, const struct inode *context_inode)h](j)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubh)}(hhh]j)}(hinodeh]hinode}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjvmodnameN classnameNj] j` )}jc ]jf )}jY j<sb#c.security_inode_init_security_anonasbuh1hhjRubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hconst struct qstr *nameh](j)}(hjh]hconst}(hjȟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjğubj2)}(h h]h }(hj՟hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjğubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjğubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjğubh)}(hhh]j)}(hqstrh]hqstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j#c.security_inode_init_security_anonasbuh1hhjğubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjğubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjğubj)}(hnameh]hname}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjğubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(h!const struct inode *context_inodeh](j)}(hjh]hconst}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hj h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j#c.security_inode_init_security_anonasbuh1hhjOubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(h context_inodeh]h context_inode}(hjŠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hMdubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj'hMdhjhhubj)}(hhh]h)}(hInitialize an anonymous inodeh]hInitialize an anonymous inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct inode *inode`` the inode ``const struct qstr *name`` the anonymous inode class ``const struct inode *context_inode`` an optional related inode **Description** Set up the incore security field for the new anonymous inode and return whether the inode creation is permitted by the security module or not. **Return** Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhj ubj )}(hhh](j)}(h"``struct inode *inode`` the inode h](j)}(h``struct inode *inode``h]j)}(hj0h]hstruct inode *inode}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehj*ubj2)}(hhh]h)}(h the inodeh]h the inode}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMehjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMehj'ubj)}(h6``const struct qstr *name`` the anonymous inode class h](j)}(h``const struct qstr *name``h]j)}(hjih]hconst struct qstr *name}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhjcubj2)}(hhh]h)}(hthe anonymous inode classh]hthe anonymous inode class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMfhjubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMfhj'ubj)}(h@``const struct inode *context_inode`` an optional related inode h](j)}(h%``const struct inode *context_inode``h]j)}(hjh]h!const struct inode *context_inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjubj2)}(hhh]h)}(han optional related inodeh]han optional related inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMghj'ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjݡh]h Description}(hjߡhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۡubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihj ubh)}(hSet up the incore security field for the new anonymous inode and return whether the inode creation is permitted by the security module or not.h]hSet up the incore security field for the new anonymous inode and return whether the inode creation is permitted by the security module or not.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhj ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhj ubh)}(h|Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.h]h|Returns 0 on success, -EACCES if the security module denies the creation of this inode, or another -errno upon other errors.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_path_post_mknod (C function)c.security_path_post_mknodhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hNvoid security_path_post_mknod (struct mnt_idmap *idmap, struct dentry *dentry)h]j)}(hMvoid security_path_post_mknod(struct mnt_idmap *idmap, struct dentry *dentry)h](j )}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEhhhjWhMubj{)}(hsecurity_path_post_mknodh]j)}(hsecurity_path_post_mknodh]hsecurity_path_post_mknod}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhjWhMubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jlsbc.security_path_post_mknodasbuh1hhjubj2)}(h h]h }(hjĢhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjҢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hjߢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_path_post_mknodasbuh1hhjubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjWhMubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jhjWhMhj>hhubj)}(hhh]h)}(h-Update inode security after reg file creationh]h-Update inode security after reg file creation}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjvhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` new file **Description** Update inode security field after a regular file has been created.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjӣhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϣhMhjУubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjϣhMhjubj)}(h#``struct dentry *dentry`` new file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hnew fileh]hnew file}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hBUpdate inode security field after a regular file has been created.h]hBUpdate inode security field after a regular file has been created.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_path_rmdir (C function)c.security_path_rmdirhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hGint security_path_rmdir (const struct path *dir, struct dentry *dentry)h]j)}(hFint security_path_rmdir(const struct path *dir, struct dentry *dentry)h](j )}(hinth]hint}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhjhMubj{)}(hsecurity_path_rmdirh]j)}(hsecurity_path_rmdirh]hsecurity_path_rmdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjhMubj)}(h/(const struct path *dir, struct dentry *dentry)h](j)}(hconst struct path *dirh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjˤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjؤhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_path_rmdirasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdirh]hdir}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubh)}(hhh]j)}(hdentryh]hdentry}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj]modnameN classnameNj] j` )}jc ]jc.security_path_rmdirasbuh1hhj9ubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhhubj)}(hhh]h)}(h(Check if removing a directory is allowedh]h(Check if removing a directory is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj֥jj֥jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``const struct path *dir`` parent directory ``struct dentry *dentry`` directory to remove **Description** Check the permission to remove a directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޥubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjڥubj )}(hhh](j)}(h,``const struct path *dir`` parent directory h](j)}(h``const struct path *dir``h]j)}(hjh]hconst struct path *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``struct dentry *dentry`` directory to remove h](j)}(h``struct dentry *dentry``h]j)}(hj8h]hstruct dentry *dentry}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubj2)}(hhh]h)}(hdirectory to removeh]hdirectory to remove}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubeh}(h]h ]h"]h$]h&]uh1j hjڥubh)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjڥubh)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjڥubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjڥubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjڥubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_path_symlink (C function)c.security_path_symlinkhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h_int security_path_symlink (const struct path *dir, struct dentry *dentry, const char *old_name)h]j)}(h^int security_path_symlink(const struct path *dir, struct dentry *dentry, const char *old_name)h](j )}(hinth]hint}(hjߦhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjۦhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjۦhhhjhMubj{)}(hsecurity_path_symlinkh]j)}(hsecurity_path_symlinkh]hsecurity_path_symlink}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjۦhhhjhMubj)}(hE(const struct path *dir, struct dentry *dentry, const char *old_name)h](j)}(hconst struct path *dirh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hpathh]hpath}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_path_symlinkasbuh1hhjubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjǧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjħubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjɧmodnameN classnameNj] j` )}jc ]jqc.security_path_symlinkasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *old_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hold_nameh]hold_name}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjۦhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjצhhhjhMubah}(h]jҦah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjԦhhubj)}(hhh]h)}(h,Check if creating a symbolic link is allowedh]h,Check if creating a symbolic link is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjԦhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``const struct path *dir`` parent directory ``struct dentry *dentry`` symbolic link ``const char *old_name`` file pathname **Description** Check the permission to create a symbolic link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h,``const struct path *dir`` parent directory h](j)}(h``const struct path *dir``h]j)}(hjȨh]hconst struct path *dir}(hjʨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƨubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj¨ubj2)}(hhh]h)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjݨhMhjިubah}(h]h ]h"]h$]h&]uh1j1hj¨ubeh}(h]h ]h"]h$]h&]uh1jhjݨhMhjubj)}(h(``struct dentry *dentry`` symbolic link h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h symbolic linkh]h symbolic link}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``const char *old_name`` file pathname h](j)}(h``const char *old_name``h]j)}(hj:h]hconst char *old_name}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubj2)}(hhh]h)}(h file pathnameh]h file pathname}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h9Check the permission to create a symbolic link to a file.h]h9Check the permission to create a symbolic link to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_path_link (C function)c.security_path_linkhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hiint security_path_link (struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h]j)}(hhint security_path_link(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjݩhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjݩhhhjhMubj{)}(hsecurity_path_linkh]j)}(hsecurity_path_linkh]hsecurity_path_link}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjݩhhhjhMubj)}(hR(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)h](j)}(hstruct dentry *old_dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj>modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_path_linkasbuh1hhjubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h old_dentryh]h old_dentry}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *new_dirh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hpathh]hpath}(hjɪhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƪubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj˪modnameN classnameNj] j` )}jc ]jXc.security_path_linkasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_dirh]hnew_dir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *new_dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;modnameN classnameNj] j` )}jc ]jXc.security_path_linkasbuh1hhjubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h new_dentryh]h new_dentry}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjݩhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj٩hhhjhMubah}(h]jԩah ](jjeh"]h$]h&]jj)jhuh1jhjhMhj֩hhubj)}(hhh]h)}(h(Check if creating a hard link is allowedh]h(Check if creating a hard link is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj֩hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct dentry *old_dentry`` existing file ``const struct path *new_dir`` new parent directory ``struct dentry *new_dentry`` new link **Description** Check permission before creating a new hard link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h,``struct dentry *old_dentry`` existing file h](j)}(h``struct dentry *old_dentry``h]j)}(hjݫh]hstruct dentry *old_dentry}(hj߫hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj۫ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj׫ubj2)}(hhh]h)}(h existing fileh]h existing file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj׫ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjԫubj)}(h4``const struct path *new_dir`` new parent directory h](j)}(h``const struct path *new_dir``h]j)}(hjh]hconst struct path *new_dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hnew parent directoryh]hnew parent directory}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjԫubj)}(h'``struct dentry *new_dentry`` new link h](j)}(h``struct dentry *new_dentry``h]j)}(hjOh]hstruct dentry *new_dentry}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIubj2)}(hhh]h)}(hnew linkh]hnew link}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjԫubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h;Check permission before creating a new hard link to a file.h]h;Check permission before creating a new hard link to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjǬhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_path_truncate (C function)c.security_path_truncatehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h4int security_path_truncate (const struct path *path)h]j)}(h3int security_path_truncate(const struct path *path)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_path_truncateh]j)}(hsecurity_path_truncateh]hsecurity_path_truncate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hj h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubh)}(hhh]j)}(hpathh]hpath}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_path_truncateasbuh1hhj/ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h%Check if truncating a file is allowedh]h%Check if truncating a file is allowed}(hjѭhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjέhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX2**Parameters** ``const struct path *path`` file **Description** Check permission before truncating the file indicated by path. Note that truncation permissions may also be checked based on already opened files, using the security_file_truncate() hook. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj2)}(hhh]h)}(hfileh]hfile}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj(ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hCheck permission before truncating the file indicated by path. Note that truncation permissions may also be checked based on already opened files, using the security_file_truncate() hook.h]hCheck permission before truncating the file indicated by path. Note that truncation permissions may also be checked based on already opened files, using the security_file_truncate() hook.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjth]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_path_chmod (C function)c.security_path_chmodhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h?int security_path_chmod (const struct path *path, umode_t mode)h]j)}(h>int security_path_chmod(const struct path *path, umode_t mode)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjȮhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjǮhMubj{)}(hsecurity_path_chmodh]j)}(hsecurity_path_chmodh]hsecurity_path_chmod}(hjڮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֮ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjǮhMubj)}(h'(const struct path *path, umode_t mode)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hpathh]hpath}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj1modnameN classnameNj] j` )}jc ]jf )}jY jܮsbc.security_path_chmodasbuh1hhjubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jKc.security_path_chmodasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjǮhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjǮhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjǮhMhjhhubj)}(hhh]h)}(h,Check if changing the file's mode is allowedh]h.Check if changing the file’s mode is allowed}(hjܯhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjٯhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjǮhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX6**Parameters** ``const struct path *path`` file ``umode_t mode`` new mode **Description** Check for permission to change a mode of the file **path**. The new mode is specified in **mode** which is a bitmask of constants from . **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM#hjubj )}(hhh](j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hfileh]hfile}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM hj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hM hjubj)}(h``umode_t mode`` new mode h](j)}(h``umode_t mode``h]j)}(hjVh]h umode_t mode}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hjPubj2)}(hhh]h)}(hnew modeh]hnew mode}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM!hjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM!hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM#hjubh)}(hCheck for permission to change a mode of the file **path**. The new mode is specified in **mode** which is a bitmask of constants from .h](h2Check for permission to change a mode of the file }(hjhhhNhNubj)}(h**path**h]hpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. The new mode is specified in }(hjhhhNhNubj)}(h**mode**h]hmode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhB which is a bitmask of constants from .}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hjubh)}(h **Return**h]j)}(hjܰh]hReturn}(hjްhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڰubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_path_chown (C function)c.security_path_chownhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hIint security_path_chown (const struct path *path, kuid_t uid, kgid_t gid)h]j)}(hHint security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)h](j )}(hinth]hint}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj/hM1ubj{)}(hsecurity_path_chownh]j)}(hsecurity_path_chownh]hsecurity_path_chown}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj/hM1ubj)}(h1(const struct path *path, kuid_t uid, kgid_t gid)h](j)}(hconst struct path *pathh](j)}(hjh]hconst}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hj h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jDsbc.security_path_chownasbuh1hhjZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjűhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hpathh]hpath}(hjұhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h kuid_t uidh](h)}(hhh]j)}(hkuid_th]hkuid_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_path_chownasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(huidh]huid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h kgid_t gidh](h)}(hhh]j)}(hkgid_th]hkgid_t}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jc.security_path_chownasbuh1hhj/ubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hgidh]hgid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hM1ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hM1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj/hM1hjhhubj)}(hhh]h)}(h3Check if changing the file's owner/group is allowedh]h5Check if changing the file’s owner/group is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``const struct path *path`` file ``kuid_t uid`` file owner ``kgid_t gid`` file group **Description** Check for permission to change owner/group of a file or directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hjubj )}(hhh](j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hjͲh]hconst struct path *path}(hjϲhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˲ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjDzubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1j1hjDzubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjIJubj)}(h``kuid_t uid`` file owner h](j)}(h``kuid_t uid``h]j)}(hjh]h kuid_t uid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3hjubj2)}(hhh]h)}(h file ownerh]h file owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM3hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjIJubj)}(h``kgid_t gid`` file group h](j)}(h``kgid_t gid``h]j)}(hj?h]h kgid_t gid}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hj9ubj2)}(hhh]h)}(h file grouph]h file group}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM4hjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM4hjIJubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hjubh)}(hBCheck for permission to change owner/group of a file or directory.h]hBCheck for permission to change owner/group of a file or directory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_path_chroot (C function)c.security_path_chroothNtauh1hhj-hhhNhNubj)}(hhh](j)}(h2int security_path_chroot (const struct path *path)h]j)}(h1int security_path_chroot(const struct path *path)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMBubj{)}(hsecurity_path_chrooth]j)}(hsecurity_path_chrooth]hsecurity_path_chroot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMBubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hpathh]hpath}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_path_chrootasbuh1hhjubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj޳hhhjhMBubah}(h]jٳah ](jjeh"]h$]h&]jj)jhuh1jhjhMBhj۳hhubj)}(hhh]h)}(h/Check if changing the root directory is allowedh]h/Check if changing the root directory is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjhhubah}(h]h ]h"]h$]h&]uh1jhj۳hhhjhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjٴjjٴjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``const struct path *path`` directory **Description** Check for permission to change root directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjݴubj )}(hhh]j)}(h&``const struct path *path`` directory h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjubj2)}(hhh]h)}(h directoryh]h directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubah}(h]h ]h"]h$]h&]uh1j hjݴubh)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhjݴubh)}(h.Check for permission to change root directory.h]h.Check for permission to change root directory.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjݴubh)}(h **Return**h]j)}(hjdh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjݴubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhjݴubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j /security_inode_post_create_tmpfile (C function)$c.security_inode_post_create_tmpfilehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hVvoid security_inode_post_create_tmpfile (struct mnt_idmap *idmap, struct inode *inode)h]j)}(hUvoid security_inode_post_create_tmpfile(struct mnt_idmap *idmap, struct inode *inode)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMcubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMcubj{)}(h"security_inode_post_create_tmpfileh]j)}(h"security_inode_post_create_tmpfileh]h"security_inode_post_create_tmpfile}(hjʵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƵubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMcubj)}(h.(struct mnt_idmap *idmap, struct inode *inode)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j̵sb$c.security_inode_post_create_tmpfileasbuh1hhjubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj޵ubj)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubh)}(hhh]j)}(hinodeh]hinode}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjxmodnameN classnameNj] j` )}jc ]j $c.security_inode_post_create_tmpfileasbuh1hhjTubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj޵ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMchjhhubj)}(hhh]h)}(h$Update inode security of new tmpfileh]h$Update inode security of new tmpfile}(hjٶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMchjֶhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct inode *inode`` inode of the new tmpfile **Description** Update inode security data after a tmpfile has been created.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMdhj0ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj/hMdhjubj)}(h1``struct inode *inode`` inode of the new tmpfile h](j)}(h``struct inode *inode``h]j)}(hjSh]hstruct inode *inode}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehjMubj2)}(hhh]h)}(hinode of the new tmpfileh]hinode of the new tmpfile}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMehjiubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMehjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjubh)}(hah"]h$]h&]uh1j1hjϷhhhjhMrubj{)}(hsecurity_inode_linkh]j)}(hsecurity_inode_linkh]hsecurity_inode_link}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjϷhhhjhMrubj)}(hI(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry)h](j)}(hstruct dentry *old_dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hdentryh]hdentry}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_linkasbuh1hhj ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(h old_dentryh]h old_dentry}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *dirh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jJc.security_inode_linkasbuh1hhj~ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ubj)}(hjh]h*}(hj̸hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj)}(hdirh]hdir}(hjٸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *new_dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jJc.security_inode_linkasbuh1hhjubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h new_dentryh]h new_dentry}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjϷhhhjhMrubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj˷hhhjhMrubah}(h]jƷah ](jjeh"]h$]h&]jj)jhuh1jhjhMrhjȷhhubj)}(hhh]h)}(h(Check if creating a hard link is allowedh]h(Check if creating a hard link is allowed}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjphhubah}(h]h ]h"]h$]h&]uh1jhjȷhhhjhMrubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct dentry *old_dentry`` existing file ``struct inode *dir`` new parent directory ``struct dentry *new_dentry`` new link **Description** Check permission before creating a new hard link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjubj )}(hhh](j)}(h,``struct dentry *old_dentry`` existing file h](j)}(h``struct dentry *old_dentry``h]j)}(hjh]hstruct dentry *old_dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjubj2)}(hhh]h)}(h existing fileh]h existing file}(hj͹hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɹhMshjʹubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjɹhMshjubj)}(h+``struct inode *dir`` new parent directory h](j)}(h``struct inode *dir``h]j)}(hjh]hstruct inode *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjubj2)}(hhh]h)}(hnew parent directoryh]hnew parent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMthjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMthjubj)}(h'``struct dentry *new_dentry`` new link h](j)}(h``struct dentry *new_dentry``h]j)}(hj&h]hstruct dentry *new_dentry}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhj ubj2)}(hhh]h)}(hnew linkh]hnew link}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMuhj<ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMuhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjubh)}(h;Check permission before creating a new hard link to a file.h]h;Check permission before creating a new hard link to a file.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_inode_unlink (C function)c.security_inode_unlinkhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hDint security_inode_unlink (struct inode *dir, struct dentry *dentry)h]j)}(hCint security_inode_unlink(struct inode *dir, struct dentry *dentry)h](j )}(hinth]hint}(hjͺhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjɺhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjܺhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjɺhhhjۺhMubj{)}(hsecurity_inode_unlinkh]j)}(hsecurity_inode_unlinkh]hsecurity_inode_unlink}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjɺhhhjۺhMubj)}(h*(struct inode *dir, struct dentry *dentry)h](j)}(hstruct inode *dirh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hinodeh]hinode}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_unlinkasbuh1hhjubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdirh]hdir}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jDc.security_inode_unlinkasbuh1hhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hjh]h*}(hjƻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hdentryh]hdentry}(hjӻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjɺhhhjۺhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjźhhhjۺhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjۺhMhjºhhubj)}(hhh]h)}(h(Check if removing a hard link is allowedh]h(Check if removing a hard link is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjºhhhjۺhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` file **Description** Check the permission to remove a hard link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h'``struct inode *dir`` parent directory h](j)}(h``struct inode *dir``h]j)}(hj>h]hstruct inode *dir}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj8ubj2)}(hhh]h)}(hparent directoryh]hparent directory}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj5ubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjwh]hstruct dentry *dentry}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjqubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhj5ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h5Check the permission to remove a hard link to a file.h]h5Check the permission to remove a hard link to a file.}(hjȼhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjټh]hReturn}(hjۼhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj׼ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_inode_symlink (C function)c.security_inode_symlinkhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h[int security_inode_symlink (struct inode *dir, struct dentry *dentry, const char *old_name)h]j)}(hZint security_inode_symlink(struct inode *dir, struct dentry *dentry, const char *old_name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj,hMubj{)}(hsecurity_inode_symlinkh]j)}(hsecurity_inode_symlinkh]hsecurity_inode_symlink}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj,hMubj)}(h@(struct inode *dir, struct dentry *dentry, const char *old_name)h](j)}(hstruct inode *dirh](j)}(hj h]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubh)}(hhh]j)}(hinodeh]hinode}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj{modnameN classnameNj] j` )}jc ]jf )}jY jAsbc.security_inode_symlinkasbuh1hhjWubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjͽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɽubj2)}(h h]h }(hjڽhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjɽubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_inode_symlinkasbuh1hhjɽubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjɽubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɽubj)}(hdentryh]hdentry}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɽubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hconst char *old_nameh](j)}(hjh]hconst}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj )}(hcharh]hchar}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hold_nameh]hold_name}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj,hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj,hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj,hMhjhhubj)}(hhh]h)}(h,Check if creating a symbolic link is allowedh]h,Check if creating a symbolic link is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjþjjþjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` symbolic link ``const char *old_name`` existing filename **Description** Check the permission to create a symbolic link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hjϾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˾ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjǾubj )}(hhh](j)}(h'``struct inode *dir`` parent directory h](j)}(h``struct inode *dir``h]j)}(hjh]hstruct inode *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``struct dentry *dentry`` symbolic link h](j)}(h``struct dentry *dentry``h]j)}(hj%h]hstruct dentry *dentry}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h symbolic linkh]h symbolic link}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(h+``const char *old_name`` existing filename h](j)}(h``const char *old_name``h]j)}(hj^h]hconst char *old_name}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubj2)}(hhh]h)}(hexisting filenameh]hexisting filename}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubeh}(h]h ]h"]h$]h&]uh1j hjǾubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjǾubh)}(h9Check the permission to create a symbolic link to a file.h]h9Check the permission to create a symbolic link to a file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjǾubh)}(h **Return**h]j)}(hjh]hReturn}(hj¿hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjǾubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjֿhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjǾubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_inode_rmdir (C function)c.security_inode_rmdirhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hCint security_inode_rmdir (struct inode *dir, struct dentry *dentry)h]j)}(hBint security_inode_rmdir(struct inode *dir, struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_rmdirh]j)}(hsecurity_inode_rmdirh]hsecurity_inode_rmdir}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h*(struct inode *dir, struct dentry *dentry)h](j)}(hstruct inode *dirh](j)}(hj h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubh)}(hhh]j)}(hinodeh]hinode}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jf )}jY j(sbc.security_inode_rmdirasbuh1hhj>ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j|c.security_inode_rmdirasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h(Check if removing a directory is allowedh]h(Check if removing a directory is allowed}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` directory to be removed **Description** Check the permission to remove a directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQubj )}(hhh](j)}(h'``struct inode *dir`` parent directory h](j)}(h``struct inode *dir``h]j)}(hjvh]hstruct inode *dir}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjpubj2)}(hhh]h)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubj)}(h2``struct dentry *dentry`` directory to be removed h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hdirectory to be removedh]hdirectory to be removed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjmubeh}(h]h ]h"]h$]h&]uh1j hjQubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQubh)}(h+Check the permission to remove a directory.h]h+Check the permission to remove a directory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_inode_mknod (C function)c.security_inode_mknodhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h\int security_inode_mknod (struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h]j)}(h[int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRhhhjdhMubj{)}(hsecurity_inode_mknodh]j)}(hsecurity_inode_mknodh]hsecurity_inode_mknod}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhjdhMubj)}(hC(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)h](j)}(hstruct inode *dirh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jysbc.security_inode_mknodasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj%modnameN classnameNj] j` )}jc ]jc.security_inode_mknodasbuh1hhjubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjzmodnameN classnameNj] j` )}jc ]jc.security_inode_mknodasbuh1hhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h dev_t devh](h)}(hhh]j)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_inode_mknodasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjdhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jhjdhMhjKhhubj)}(hhh]h)}(h+Check if creating a special file is allowedh]h+Check if creating a special file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` new file ``umode_t mode`` new file mode ``dev_t dev`` device number **Description** Check permissions when creating a special file (or a socket or a fifo file created via the mknod system call). Note that if mknod operation is being done for a regular file, then the create hook will be called and not this hook. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubj )}(hhh](j)}(h'``struct inode *dir`` parent directory h](j)}(h``struct inode *dir``h]j)}(hjWh]hstruct inode *dir}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjQubj2)}(hhh]h)}(hparent directoryh]hparent directory}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjNubj)}(h#``struct dentry *dentry`` new file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hnew fileh]hnew file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubj)}(h``umode_t mode`` new file mode h](j)}(h``umode_t mode``h]j)}(hjh]h umode_t mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h new file modeh]h new file mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubj)}(h``dev_t dev`` device number h](j)}(h ``dev_t dev``h]j)}(hjh]h dev_t dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h device numberh]h device number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubeh}(h]h ]h"]h$]h&]uh1j hj2ubh)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubh)}(hCheck permissions when creating a special file (or a socket or a fifo file created via the mknod system call). Note that if mknod operation is being done for a regular file, then the create hook will be called and not this hook.h]hCheck permissions when creating a special file (or a socket or a fifo file created via the mknod system call). Note that if mknod operation is being done for a regular file, then the create hook will be called and not this hook.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubh)}(h **Return**h]j)}(hjdh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_inode_rename (C function)c.security_inode_renamehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hint security_inode_rename (struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)h]j)}(hint security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_renameh]j)}(hsecurity_inode_renameh]hsecurity_inode_rename}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hx(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)h](j)}(hstruct inode *old_dirh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_renameasbuh1hhjubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hold_dirh]hold_dir}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *old_dentryh](j)}(hj h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubh)}(hhh]j)}(hdentryh]hdentry}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjxmodnameN classnameNj] j` )}jc ]j c.security_inode_renameasbuh1hhjTubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(h old_dentryh]h old_dentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *new_dirh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.security_inode_renameasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_dirh]hnew_dir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *new_dentryh](j)}(hj h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubh)}(hhh]j)}(hdentryh]hdentry}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]j c.security_inode_renameasbuh1hhj4ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(h new_dentryh]h new_dentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h#Check if renaming a file is allowedh]h#Check if renaming a file is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1jhhhj-hNhNubj)}(hX}**Parameters** ``struct inode *old_dir`` parent directory of the old file ``struct dentry *old_dentry`` the old file ``struct inode *new_dir`` parent directory of the new file ``struct dentry *new_dentry`` the new file ``unsigned int flags`` flags **Description** Check for permission to rename a file or directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj&ubj )}(hhh](j)}(h;``struct inode *old_dir`` parent directory of the old file h](j)}(h``struct inode *old_dir``h]j)}(hjKh]hstruct inode *old_dir}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubj2)}(hhh]h)}(h parent directory of the old fileh]h parent directory of the old file}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubj)}(h+``struct dentry *old_dentry`` the old file h](j)}(h``struct dentry *old_dentry``h]j)}(hjh]hstruct dentry *old_dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj~ubj2)}(hhh]h)}(h the old fileh]h the old file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjBubj)}(h;``struct inode *new_dir`` parent directory of the new file h](j)}(h``struct inode *new_dir``h]j)}(hjh]hstruct inode *new_dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h parent directory of the new fileh]h parent directory of the new file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjBubj)}(h+``struct dentry *new_dentry`` the new file h](j)}(h``struct dentry *new_dentry``h]j)}(hjh]hstruct dentry *new_dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h the new fileh]h the new file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjBubj)}(h``unsigned int flags`` flags h](j)}(h``unsigned int flags``h]j)}(hj/h]hunsigned int flags}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj)ubj2)}(hhh]h)}(hflagsh]hflags}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjBubeh}(h]h ]h"]h$]h&]uh1j hj&ubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj&ubh)}(h3Check for permission to rename a file or directory.h]h3Check for permission to rename a file or directory.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj&ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj&ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_inode_readlink (C function)c.security_inode_readlinkhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h3int security_inode_readlink (struct dentry *dentry)h]j)}(h2int security_inode_readlink(struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_readlinkh]j)}(hsecurity_inode_readlinkh]hsecurity_inode_readlink}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_readlinkasbuh1hhjubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h+Check if reading a symbolic link is allowedh]h+Check if reading a symbolic link is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct dentry *dentry`` link **Description** Check the permission to read the symbolic link. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h``struct dentry *dentry`` link h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hlinkh]hlink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h/Check the permission to read the symbolic link.h]h/Check the permission to read the symbolic link.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hj9h]hReturn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_inode_follow_link (C function)c.security_inode_follow_linkhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hUint security_inode_follow_link (struct dentry *dentry, struct inode *inode, bool rcu)h]j)}(hTint security_inode_follow_link(struct dentry *dentry, struct inode *inode, bool rcu)h](j )}(hinth]hint}(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzhhhjhMubj{)}(hsecurity_inode_follow_linkh]j)}(hsecurity_inode_follow_linkh]hsecurity_inode_follow_link}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzhhhjhMubj)}(h6(struct dentry *dentry, struct inode *inode, bool rcu)h](j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_follow_linkasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubh)}(hhh]j)}(hinodeh]hinode}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jc.security_inode_follow_linkasbuh1hhj)ubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hbool rcuh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hrcuh]hrcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjzhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjshhubj)}(hhh]h)}(h-Check if following a symbolic link is allowedh]h-Check if following a symbolic link is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX>**Parameters** ``struct dentry *dentry`` link dentry ``struct inode *inode`` link inode ``bool rcu`` true if in RCU-walk mode **Description** Check permission to follow a symbolic link when looking up a pathname. If **rcu** is true, **inode** is not stable. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h&``struct dentry *dentry`` link dentry h](j)}(h``struct dentry *dentry``h]j)}(hj#h]hstruct dentry *dentry}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h link dentryh]h link dentry}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(h#``struct inode *inode`` link inode h](j)}(h``struct inode *inode``h]j)}(hj\h]hstruct inode *inode}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVubj2)}(hhh]h)}(h link inodeh]h link inode}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(h&``bool rcu`` true if in RCU-walk mode h](j)}(h ``bool rcu``h]j)}(hjh]hbool rcu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(htrue if in RCU-walk modeh]htrue if in RCU-walk mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(htCheck permission to follow a symbolic link when looking up a pathname. If **rcu** is true, **inode** is not stable.h](hKCheck permission to follow a symbolic link when looking up a pathname. If }(hjhhhNhNubj)}(h**rcu**h]hrcu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is true, }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is not stable.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_inode_permission (C function)c.security_inode_permissionhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h=int security_inode_permission (struct inode *inode, int mask)h]j)}(hah"]h$]h&]uh1j1hj\hhhjnhM!ubj{)}(hsecurity_inode_permissionh]j)}(hsecurity_inode_permissionh]hsecurity_inode_permission}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj\hhhjnhM!ubj)}(h(struct inode *inode, int mask)h](j)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_permissionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint maskh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hmaskh]hmask}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj\hhhjnhM!ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhjnhM!ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jhjnhM!hjUhhubj)}(hhh]h)}(h&Check if accessing an inode is allowedh]h&Check if accessing an inode is allowed}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hjRhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjnhM!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhj-hNhNubj)}(hX'**Parameters** ``struct inode *inode`` inode ``int mask`` access mask **Description** Check permission before accessing an inode. This hook is called by the existing Linux permission function, so a security module can use it to provide additional checking for existing Linux permission checks. Notice that this hook is called when a file is opened (as well as many other operations), whereas the file_security_ops permission hook is called when the actual read/write operations are performed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hjubj2)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubj)}(h``int mask`` access mask h](j)}(h ``int mask``h]j)}(hjh]hint mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM#hjubj2)}(hhh]h)}(h access maskh]h access mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjubeh}(h]h ]h"]h$]h&]uh1j hjqubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM%hjqubh)}(hXCheck permission before accessing an inode. This hook is called by the existing Linux permission function, so a security module can use it to provide additional checking for existing Linux permission checks. Notice that this hook is called when a file is opened (as well as many other operations), whereas the file_security_ops permission hook is called when the actual read/write operations are performed.h]hXCheck permission before accessing an inode. This hook is called by the existing Linux permission function, so a security module can use it to provide additional checking for existing Linux permission checks. Notice that this hook is called when a file is opened (as well as many other operations), whereas the file_security_ops permission hook is called when the actual read/write operations are performed.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hjqubh)}(h **Return**h]j)}(hj1h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjqubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_inode_post_setattr (C function)c.security_inode_post_setattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h_void security_inode_post_setattr (struct mnt_idmap *idmap, struct dentry *dentry, int ia_valid)h]j)}(h^void security_inode_post_setattr(struct mnt_idmap *idmap, struct dentry *dentry, int ia_valid)h](j )}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrhhhjhMLubj{)}(hsecurity_inode_post_setattrh]j)}(hsecurity_inode_post_setattrh]hsecurity_inode_post_setattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjhMLubj)}(h>(struct mnt_idmap *idmap, struct dentry *dentry, int ia_valid)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_post_setattrasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubh)}(hhh]j)}(hdentryh]hdentry}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jc.security_inode_post_setattrasbuh1hhj!ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hdentryh]hdentry}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int ia_validh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hia_validh]hia_valid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnhhhjhMLubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1jhjhMLhjkhhubj)}(hhh]h)}(h*Update the inode after a setattr operationh]h*Update the inode after a setattr operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``int ia_valid`` file attributes set **Description** Update inode security field after successful setting file attributes.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhjubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMMhj2ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj1hMMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjUh]hstruct dentry *dentry}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjOubj2)}(hhh]h)}(hfileh]hfile}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMNhjkubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMNhjubj)}(h%``int ia_valid`` file attributes set h](j)}(h``int ia_valid``h]j)}(hjh]h int ia_valid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjubj2)}(hhh]h)}(hfile attributes seth]hfile attributes set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjubh)}(hEUpdate inode security field after successful setting file attributes.h]hEUpdate inode security field after successful setting file attributes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_inode_getattr (C function)c.security_inode_getattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h4int security_inode_getattr (const struct path *path)h]j)}(h3int security_inode_getattr(const struct path *path)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhM\ubj{)}(hsecurity_inode_getattrh]j)}(hsecurity_inode_getattrh]hsecurity_inode_getattr}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhM\ubj)}(h(const struct path *path)h]j)}(hconst struct path *pathh](j)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hj h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j1sbc.security_inode_getattrasbuh1hhjGubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM\ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM\hjhhubj)}(hhh]h)}(h+Check if getting file attributes is allowedh]h+Check if getting file attributes is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``const struct path *path`` file **Description** Check permission before obtaining file attributes. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjubj )}(hhh]j)}(h!``const struct path *path`` file h](j)}(h``const struct path *path``h]j)}(hj*h]hconst struct path *path}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hj$ubj2)}(hhh]h)}(hfileh]hfile}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM]hj@ubah}(h]h ]h"]h$]h&]uh1j1hj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hM]hj!ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjubh)}(h2Check permission before obtaining file attributes.h]h2Check permission before obtaining file attributes.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_inode_setxattr (C function)c.security_inode_setxattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hint security_inode_setxattr (struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h]j)}(hint security_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMkubj{)}(hsecurity_inode_setxattrh]j)}(hsecurity_inode_setxattrh]hsecurity_inode_setxattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMkubj)}(hm(struct mnt_idmap *idmap, struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj.modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_setxattrasbuh1hhj ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hidmaph]hidmap}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jHc.security_inode_setxattrasbuh1hhj|ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *valueh](j)}(hjh]hconst}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubj )}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jHc.security_inode_setxattrasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMkhjhhubj)}(hhh]h)}(h'Check if setting file xattrs is allowedh]h'Check if setting file xattrs is allowed}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhj5hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *name`` xattr name ``const void *value`` xattr value ``size_t size`` size of xattr value ``int flags`` flags **Description** This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer. Normally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohjTubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjyh]hstruct mnt_idmap *idmap}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMlhjsubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMlhjubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjhMlhjpubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMmhjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjpubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMnhjubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjpubj)}(h"``const void *value`` xattr value h](j)}(h``const void *value``h]j)}(hj$h]hconst void *value}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohjubj2)}(hhh]h)}(h xattr valueh]h xattr value}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMohj:ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMohjpubj)}(h$``size_t size`` size of xattr value h](j)}(h``size_t size``h]j)}(hj]h]h size_t size}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphjWubj2)}(hhh]h)}(hsize of xattr valueh]hsize of xattr value}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMphjsubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMphjpubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhjubj2)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjpubeh}(h]h ]h"]h$]h&]uh1j hjTubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjTubh)}(hX%This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer.h](hdThis hook performs the desired permission checks before setting the extended attributes (xattrs) on }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjTubh)}(hXeNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed.h]hXqNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a ‘inode_xattr_skipcap’ hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a ‘inode_xattr_skipcap’ hook, or return a 0 (the default return value), the capability check is still performed. If no ‘inode_xattr_skipcap’ hooks are registered the capability check is performed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjTubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjTubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_inode_set_acl (C function)c.security_inode_set_aclhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hyint security_inode_set_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h]j)}(hxint security_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j )}(hinth]hint}(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZhhhjlhMubj{)}(hsecurity_inode_set_aclh]j)}(hsecurity_inode_set_aclh]hsecurity_inode_set_acl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjZhhhjlhMubj)}(h^(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_set_aclasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hdentryh]hdentry}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-modnameN classnameNj] j` )}jc ]jc.security_inode_set_aclasbuh1hhj ubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hdentryh]hdentry}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct posix_acl *kaclh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h posix_aclh]h posix_acl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_inode_set_aclasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkaclh]hkacl}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjlhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1jhjlhMhjShhubj)}(hhh]h)}(h&Check if setting posix acls is allowedh]h&Check if setting posix acls is allowed}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhj-hNhNubj)}(hXZ**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name ``struct posix_acl *kacl`` acl struct **Description** Check permission before setting posix acls, the posix acls in **kacl** are identified by **acl_name**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hacl nameh]hacl name}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(h&``struct posix_acl *kacl`` acl struct h](j)}(h``struct posix_acl *kacl``h]j)}(hjGh]hstruct posix_acl *kacl}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjAubj2)}(hhh]h)}(h acl structh]h acl struct}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubeh}(h]h ]h"]h$]h&]uh1j hjwubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubh)}(hfCheck permission before setting posix acls, the posix acls in **kacl** are identified by **acl_name**.h](h>Check permission before setting posix acls, the posix acls in }(hjhhhNhNubj)}(h**kacl**h]hkacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_inode_post_set_acl (C function)c.security_inode_post_set_aclhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hfvoid security_inode_post_set_acl (struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h]j)}(hevoid security_inode_post_set_acl(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hMubj{)}(hsecurity_inode_post_set_aclh]j)}(hsecurity_inode_post_set_aclh]hsecurity_inode_post_set_acl}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMubj)}(hE(struct dentry *dentry, const char *acl_name, struct posix_acl *kacl)h](j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubh)}(hhh]j)}(hdentryh]hdentry}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjomodnameN classnameNj] j` )}jc ]jf )}jY j5sbc.security_inode_post_set_aclasbuh1hhjKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hacl_nameh]hacl_name}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct posix_acl *kaclh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h posix_aclh]h posix_acl}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj>modnameN classnameNj] j` )}jc ]jc.security_inode_post_set_aclasbuh1hhjubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkaclh]hkacl}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hMhjhhubj)}(hhh]h)}(h)Update inode security from posix acls seth]h)Update inode security from posix acls set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct dentry *dentry`` file ``const char *acl_name`` acl name ``struct posix_acl *kacl`` acl struct **Description** Update inode security data after successfully setting posix acls on **dentry**. The posix acls in **kacl** are identified by **acl_name**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjh]hconst char *acl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hacl nameh]hacl name}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(h&``struct posix_acl *kacl`` acl struct h](j)}(h``struct posix_acl *kacl``h]j)}(hjRh]hstruct posix_acl *kacl}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjLubj2)}(hhh]h)}(h acl structh]h acl struct}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hUpdate inode security data after successfully setting posix acls on **dentry**. The posix acls in **kacl** are identified by **acl_name**.h](hDUpdate inode security data after successfully setting posix acls on }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. The posix acls in }(hjhhhNhNubj)}(h**kacl**h]hkacl}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_inode_get_acl (C function)c.security_inode_get_aclhNtauh1hhj-hhhNhNubj)}(hhh](j)}(haint security_inode_get_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]j)}(h`int security_inode_get_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_get_aclh]j)}(hsecurity_inode_get_aclh]hsecurity_inode_get_acl}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjemodnameN classnameNj] j` )}jc ]jf )}jY j+sbc.security_inode_get_aclasbuh1hhjAubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_inode_get_aclasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj )}(hcharh]hchar}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hacl_nameh]hacl_name}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h&Check if reading posix acls is allowedh]h&Check if reading posix acls is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX$**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name **Description** Check permission before getting osix acls, the posix acls are identified by **acl_name**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj2)}(hhh]h)}(hfileh]hfile}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjHh]hconst char *acl_name}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjBubj2)}(hhh]h)}(hacl nameh]hacl name}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hYCheck permission before getting osix acls, the posix acls are identified by **acl_name**.h](hLCheck permission before getting osix acls, the posix acls are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_inode_remove_acl (C function)c.security_inode_remove_aclhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hdint security_inode_remove_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]j)}(hcint security_inode_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_remove_aclh]j)}(hsecurity_inode_remove_aclh]hsecurity_inode_remove_acl}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]jf )}jY j$sbc.security_inode_remove_aclasbuh1hhj:ubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jxc.security_inode_remove_aclasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hacl_nameh]hacl_name}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h(Check if removing a posix acl is allowedh]h(Check if removing a posix acl is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX&**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name **Description** Check permission before removing posix acls, the posix acls are identified by **acl_name**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hfileh]hfile}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hjAh]hconst char *acl_name}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj;ubj2)}(hhh]h)}(hacl nameh]hacl name}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h[Check permission before removing posix acls, the posix acls are identified by **acl_name**.h](hNCheck permission before removing posix acls, the posix acls are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +security_inode_post_remove_acl (C function) c.security_inode_post_remove_aclhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hjvoid security_inode_post_remove_acl (struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h]j)}(hivoid security_inode_post_remove_acl(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_post_remove_aclh]j)}(hsecurity_inode_post_remove_aclh]hsecurity_inode_post_remove_acl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hF(struct mnt_idmap *idmap, struct dentry *dentry, const char *acl_name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.security_inode_post_remove_aclasbuh1hhj3ubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jq c.security_inode_post_remove_aclasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubj)}(hconst char *acl_nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hacl_nameh]hacl_name}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h)Update inode security after rm posix aclsh]h)Update inode security after rm posix acls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX&**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *acl_name`` acl name **Description** Update inode security data after successfully removing posix acls on **dentry** in **idmap**. The posix acls are identified by **acl_name**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``const char *acl_name`` acl name h](j)}(h``const char *acl_name``h]j)}(hj:h]hconst char *acl_name}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubj2)}(hhh]h)}(hacl nameh]hacl name}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hUpdate inode security data after successfully removing posix acls on **dentry** in **idmap**. The posix acls are identified by **acl_name**.h](hEUpdate inode security data after successfully removing posix acls on }(hjhhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in }(hjhhhNhNubj)}(h **idmap**h]hidmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh#. The posix acls are identified by }(hjhhhNhNubj)}(h **acl_name**h]hacl_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_inode_post_setxattr (C function)c.security_inode_post_setxattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hvvoid security_inode_post_setxattr (struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h]j)}(huvoid security_inode_post_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_post_setxattrh]j)}(hsecurity_inode_post_setxattrh]hsecurity_inode_post_setxattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hT(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubh)}(hhh]j)}(hdentryh]hdentry}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_post_setxattrasbuh1hhj)ubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hconst void *valueh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvalueh]hvalue}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]jgc.security_inode_post_setxattrasbuh1hhjUubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(h int flagsh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h+Update the inode after a setxattr operationh]h+Update the inode after a setxattr operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct dentry *dentry`` file ``const char *name`` xattr name ``const void *value`` xattr value ``size_t size`` xattr value size ``int flags`` flags **Description** Update inode security field after successful setxattr operation.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hj(h]hstruct dentry *dentry}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj"ubj2)}(hhh]h)}(hfileh]hfile}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjah]hconst char *name}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj[ubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubj)}(h"``const void *value`` xattr value h](j)}(h``const void *value``h]j)}(hjh]hconst void *value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h xattr valueh]h xattr value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``size_t size`` xattr value size h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hxattr value sizeh]hxattr value size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hj h]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hflagsh]hflags}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h@Update inode security field after successful setxattr operation.h]h@Update inode security field after successful setxattr operation.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_inode_getxattr (C function)c.security_inode_getxattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hEint security_inode_getxattr (struct dentry *dentry, const char *name)h]j)}(hDint security_inode_getxattr(struct dentry *dentry, const char *name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_getxattrh]j)}(hsecurity_inode_getxattrh]hsecurity_inode_getxattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h)(struct dentry *dentry, const char *name)h](j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_getxattrasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj )}(hcharh]hchar}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h Check if xattr access is allowedh]h Check if xattr access is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** Check permission before obtaining the extended attributes identified by **name** for **dentry**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj )}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hj#h]hconst char *name}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM hj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hM hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj^h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h`Check permission before obtaining the extended attributes identified by **name** for **dentry**.h](hHCheck permission before obtaining the extended attributes identified by }(hjthhhNhNubj)}(h**name**h]hname}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh for }(hjthhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_inode_listxattr (C function)c.security_inode_listxattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h4int security_inode_listxattr (struct dentry *dentry)h]j)}(h3int security_inode_listxattr(struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_listxattrh]j)}(hsecurity_inode_listxattrh]hsecurity_inode_listxattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubh)}(hhh]j)}(hdentryh]hdentry}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjKmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_listxattrasbuh1hhj'ubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h"Check if listing xattrs is allowedh]h"Check if listing xattrs is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct dentry *dentry`` file **Description** Check permission before obtaining the list of extended attribute names for **dentry**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj*h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hVCheck permission before obtaining the list of extended attribute names for **dentry**.h](hKCheck permission before obtaining the list of extended attribute names for }(hj@hhhNhNubj)}(h **dentry**h]hdentry}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_inode_removexattr (C function)c.security_inode_removexattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(haint security_inode_removexattr (struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h]j)}(h`int security_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM)ubj{)}(hsecurity_inode_removexattrh]j)}(hsecurity_inode_removexattrh]hsecurity_inode_removexattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM)ubj)}(hB(struct mnt_idmap *idmap, struct dentry *dentry, const char *name)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_removexattrasbuh1hhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubh)}(hhh]j)}(hdentryh]hdentry}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjwmodnameN classnameNj] j` )}jc ]jc.security_inode_removexattrasbuh1hhjSubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM)ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM)ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM)hjhhubj)}(hhh]h)}(h%Check if removing an xattr is allowedh]h%Check if removing an xattr is allowed}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hj2hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1jhhhj-hNhNubj)}(hXU**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer. Normally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hjQubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjvh]hstruct mnt_idmap *idmap}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjpubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1j1hjpubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjmubj)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjmubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM,hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjmubeh}(h]h ]h"]h$]h&]uh1j hjQubh)}(h**Description**h]j)}(hj#h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjQubh)}(hX%This hook performs the desired permission checks before setting the extended attributes (xattrs) on **dentry**. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer.h](hdThis hook performs the desired permission checks before setting the extended attributes (xattrs) on }(hj9hhhNhNubj)}(h **dentry**h]hdentry}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh. It is important to note that we have some additional logic before the main LSM implementation calls to detect if we need to perform an additional capability check at the LSM layer.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hjQubh)}(hXeNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a 'inode_xattr_skipcap' hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a 'inode_xattr_skipcap' hook, or return a 0 (the default return value), the capability check is still performed. If no 'inode_xattr_skipcap' hooks are registered the capability check is performed.h]hXqNormally we enforce a capability check prior to executing the various LSM hook implementations, but if a LSM wants to avoid this capability check, it can register a ‘inode_xattr_skipcap’ hook and return a value of 1 for xattrs that it wants to avoid the capability check, leaving the LSM fully responsible for enforcing the access control for the specific xattr. If all of the enabled LSMs refrain from registering a ‘inode_xattr_skipcap’ hook, or return a 0 (the default return value), the capability check is still performed. If no ‘inode_xattr_skipcap’ hooks are registered the capability check is performed.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjQubh)}(h **Return**h]j)}(hjkh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjQubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,security_inode_post_removexattr (C function)!c.security_inode_post_removexattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hNvoid security_inode_post_removexattr (struct dentry *dentry, const char *name)h]j)}(hMvoid security_inode_post_removexattr(struct dentry *dentry, const char *name)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMRubj{)}(hsecurity_inode_post_removexattrh]j)}(hsecurity_inode_post_removexattrh]hsecurity_inode_post_removexattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMRubj)}(h)(struct dentry *dentry, const char *name)h](j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsb!c.security_inode_post_removexattrasbuh1hhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj )}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMRhjhhubj)}(hhh]h)}(h'Update the inode after a removexattr oph]h'Update the inode after a removexattr op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct dentry *dentry`` file ``const char *name`` xattr name **Description** Update the inode after a successful removexattr operation.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjubj )}(hhh](j)}(h``struct dentry *dentry`` file h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShjubj2)}(hhh]h)}(hfileh]hfile}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMShj$ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj#hMShjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjGh]hconst char *name}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThjAubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMThj]ubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMThjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjubh)}(h:Update the inode after a successful removexattr operation.h]h:Update the inode after a successful removexattr operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_inode_file_setattr (C function)c.security_inode_file_setattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hNint security_inode_file_setattr (struct dentry *dentry, struct file_kattr *fa)h]j)}(hMint security_inode_file_setattr(struct dentry *dentry, struct file_kattr *fa)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM`ubj{)}(hsecurity_inode_file_setattrh]j)}(hsecurity_inode_file_setattrh]hsecurity_inode_file_setattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM`ubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_file_setattrasbuh1hhjubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct file_kattr *fah](j)}(hj h]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubh)}(hhh]j)}(h file_kattrh]h file_kattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j>c.security_inode_file_setattrasbuh1hhjrubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hfah]hfa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM`ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM`ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM`hjhhubj)}(hhh]h)}(h#check if setting fsxattr is allowedh]h#check if setting fsxattr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM`ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX4**Parameters** ``struct dentry *dentry`` file to set filesystem extended attributes on ``struct file_kattr *fa`` extended attributes to set on the inode **Description** Called when file_setattr() syscall or FS_IOC_FSSETXATTR ioctl() is called on inode **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjubj )}(hhh](j)}(hH``struct dentry *dentry`` file to set filesystem extended attributes on h](j)}(h``struct dentry *dentry``h]j)}(hj8h]hstruct dentry *dentry}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahj2ubj2)}(hhh]h)}(h-file to set filesystem extended attributes onh]h-file to set filesystem extended attributes on}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMahjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMahj/ubj)}(hB``struct file_kattr *fa`` extended attributes to set on the inode h](j)}(h``struct file_kattr *fa``h]j)}(hjqh]hstruct file_kattr *fa}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhjkubj2)}(hhh]h)}(h'extended attributes to set on the inodeh]h'extended attributes to set on the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMbhjubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjhMbhj/ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjubh)}(hRCalled when file_setattr() syscall or FS_IOC_FSSETXATTR ioctl() is called on inodeh]hRCalled when file_setattr() syscall or FS_IOC_FSSETXATTR ioctl() is called on inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMchjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_inode_file_getattr (C function)c.security_inode_file_getattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hNint security_inode_file_getattr (struct dentry *dentry, struct file_kattr *fa)h]j)}(hMint security_inode_file_getattr(struct dentry *dentry, struct file_kattr *fa)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMoubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj&hMoubj{)}(hsecurity_inode_file_getattrh]j)}(hsecurity_inode_file_getattrh]hsecurity_inode_file_getattr}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj&hMoubj)}(h.(struct dentry *dentry, struct file_kattr *fa)h](j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubh)}(hhh]j)}(hdentryh]hdentry}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjumodnameN classnameNj] j` )}jc ]jf )}jY j;sbc.security_inode_file_getattrasbuh1hhjQubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hstruct file_kattr *fah](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h file_kattrh]h file_kattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_inode_file_getattrasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfah]hfa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hMoubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj&hMoubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj&hMohj hhubj)}(hhh]h)}(h&check if retrieving fsxattr is allowedh]h&check if retrieving fsxattr is allowed}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMohjEhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hMoubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1jhhhj-hNhNubj)}(hX.**Parameters** ``struct dentry *dentry`` file to retrieve filesystem extended attributes from ``struct file_kattr *fa`` extended attributes to get **Description** Called when file_getattr() syscall or FS_IOC_FSGETXATTR ioctl() is called on inode **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjdubj )}(hhh](j)}(hO``struct dentry *dentry`` file to retrieve filesystem extended attributes from h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMphjubj2)}(hhh]h)}(h4file to retrieve filesystem extended attributes fromh]h4file to retrieve filesystem extended attributes from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMphjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMphjubj)}(h5``struct file_kattr *fa`` extended attributes to get h](j)}(h``struct file_kattr *fa``h]j)}(hjh]hstruct file_kattr *fa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhjubj2)}(hhh]h)}(hextended attributes to geth]hextended attributes to get}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMqhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubeh}(h]h ]h"]h$]h&]uh1j hjdubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjdubh)}(hRCalled when file_getattr() syscall or FS_IOC_FSGETXATTR ioctl() is called on inodeh]hRCalled when file_getattr() syscall or FS_IOC_FSGETXATTR ioctl() is called on inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjdubh)}(h **Return**h]j)}(hj$h]hReturn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhjdubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_inode_need_killpriv (C function)c.security_inode_need_killprivhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h8int security_inode_need_killpriv (struct dentry *dentry)h]j)}(h7int security_inode_need_killpriv(struct dentry *dentry)h](j )}(hinth]hint}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~ubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjehhhjwhM~ubj{)}(hsecurity_inode_need_killprivh]j)}(hsecurity_inode_need_killprivh]hsecurity_inode_need_killpriv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjwhM~ubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_need_killprivasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjehhhjwhM~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhM~ubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jhjwhM~hj^hhubj)}(hhh]h)}(h+Check if security_inode_killpriv() requiredh]h+Check if security_inode_killpriv() required}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~hj&hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhj-hNhNubj)}(hXw**Parameters** ``struct dentry *dentry`` associated dentry **Description** Called when an inode has been changed to determine if security_inode_killpriv() should be called. **Return** Return <0 on error to abort the inode change operation, return 0 if security_inode_killpriv() does not need to be called, return >0 if security_inode_killpriv() does need to be called.h](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubj )}(hhh]j)}(h,``struct dentry *dentry`` associated dentry h](j)}(h``struct dentry *dentry``h]j)}(hjjh]hstruct dentry *dentry}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubj2)}(hhh]h)}(hassociated dentryh]hassociated dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubah}(h]h ]h"]h$]h&]uh1j hjEubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubh)}(haCalled when an inode has been changed to determine if security_inode_killpriv() should be called.h]haCalled when an inode has been changed to determine if security_inode_killpriv() should be called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubh)}(hReturn <0 on error to abort the inode change operation, return 0 if security_inode_killpriv() does not need to be called, return >0 if security_inode_killpriv() does need to be called.h]hReturn <0 on error to abort the inode change operation, return 0 if security_inode_killpriv() does not need to be called, return >0 if security_inode_killpriv() does need to be called.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_inode_killpriv (C function)c.security_inode_killprivhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hLint security_inode_killpriv (struct mnt_idmap *idmap, struct dentry *dentry)h]j)}(hKint security_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhMubj{)}(hsecurity_inode_killprivh]j)}(hsecurity_inode_killprivh]hsecurity_inode_killpriv}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMubj)}(h0(struct mnt_idmap *idmap, struct dentry *dentry)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnmodnameN classnameNj] j` )}jc ]jf )}jY j4sbc.security_inode_killprivasbuh1hhjJubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hidmaph]hidmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubj)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_inode_killprivasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h+The setuid bit is removed, update LSM stateh]h+The setuid bit is removed, update LSM state}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1jhhhj-hNhNubj)}(hXq**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` associated dentry **Description** The **dentry**'s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held. **Return** Return 0 on success. If error is returned, then the operation causing setuid bit removal is failed.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]ubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj|ubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubj)}(h,``struct dentry *dentry`` associated dentry h](j)}(h``struct dentry *dentry``h]j)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hassociated dentryh]hassociated dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjyubeh}(h]h ]h"]h$]h&]uh1j hj]ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]ubh)}(h}The **dentry**'s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.h](hThe }(hj hhhNhNubj)}(h **dentry**h]hdentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhq’s setuid bit is being removed. Remove similar security labels. Called with the dentry->d_inode->i_mutex held.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]ubh)}(h **Return**h]j)}(hj/h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]ubh)}(hdReturn 0 on success. If error is returned, then the operation causing setuid bit removal is failed.h]hdReturn 0 on success. If error is returned, then the operation causing setuid bit removal is failed.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_inode_getsecurity (C function)c.security_inode_getsecurityhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hzint security_inode_getsecurity (struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h]j)}(hyint security_inode_getsecurity(struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h](j )}(hinth]hint}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjphhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjphhhjhMubj{)}(hsecurity_inode_getsecurityh]j)}(hsecurity_inode_getsecurityh]hsecurity_inode_getsecurity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhjhMubj)}(h[(struct mnt_idmap *idmap, struct inode *inode, const char *name, void **buffer, bool alloc)h](j)}(hstruct mnt_idmap *idmaph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h mnt_idmaph]h mnt_idmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_getsecurityasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidmaph]hidmap}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hinodeh]hinode}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]jc.security_inode_getsecurityasbuh1hhjubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void **bufferh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufferh]hbuffer}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool alloch](j )}(hj8h]hbool}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(halloch]halloc}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjphhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjihhubj)}(hhh]h)}(h(Get the xattr security label of an inodeh]h(Get the xattr security label of an inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hXh**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct inode *inode`` inode ``const char *name`` xattr name ``void **buffer`` security label buffer ``bool alloc`` allocation flag **Description** Retrieve a copy of the extended attribute representation of the security label associated with **name** for **inode** via **buffer**. Note that **name** is the remainder of the attribute name after the security prefix has been removed. **alloc** is used to specify if the call should return a value via the buffer or just the value length. **Return** Returns size of buffer on success.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j)}(h``struct mnt_idmap *idmap``h]j)}(hjh]hstruct mnt_idmap *idmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hj7h]hconst char *name}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1ubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjubj)}(h(``void **buffer`` security label buffer h](j)}(h``void **buffer``h]j)}(hjph]h void **buffer}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjjubj2)}(hhh]h)}(hsecurity label bufferh]hsecurity label buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``bool alloc`` allocation flag h](j)}(h``bool alloc``h]j)}(hjh]h bool alloc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hallocation flagh]hallocation flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hXTRetrieve a copy of the extended attribute representation of the security label associated with **name** for **inode** via **buffer**. Note that **name** is the remainder of the attribute name after the security prefix has been removed. **alloc** is used to specify if the call should return a value via the buffer or just the value length.h](h_Retrieve a copy of the extended attribute representation of the security label associated with }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for }(hjhhhNhNubj)}(h **inode**h]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh via }(hjhhhNhNubj)}(h **buffer**h]hbuffer}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh . Note that }(hjhhhNhNubj)}(h**name**h]hname}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhT is the remainder of the attribute name after the security prefix has been removed. }(hjhhhNhNubj)}(h **alloc**h]halloc}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh^ is used to specify if the call should return a value via the buffer or just the value length.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjeh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h"Returns size of buffer on success.h]h"Returns size of buffer on success.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_inode_setsecurity (C function)c.security_inode_setsecurityhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hqint security_inode_setsecurity (struct inode *inode, const char *name, const void *value, size_t size, int flags)h]j)}(hpint security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_setsecurityh]j)}(hsecurity_inode_setsecurityh]hsecurity_inode_setsecurity}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hR(struct inode *inode, const char *name, const void *value, size_t size, int flags)h](j)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_setsecurityasbuh1hhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hinodeh]hinode}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj )}(hcharh]hchar}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *valueh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j!c.security_inode_setsecurityasbuh1hhjubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](j )}(hinth]hint}(hj[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hflagsh]hflags}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h(Set the xattr security label of an inodeh]h(Set the xattr security label of an inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX0**Parameters** ``struct inode *inode`` inode ``const char *name`` xattr name ``const void *value`` security label ``size_t size`` length of security label ``int flags`` flags **Description** Set the security label associated with **name** for **inode** from the extended attribute value **value**. **size** indicates the size of the **value** in bytes. **flags** may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that **name** is the remainder of the attribute name after the security. prefix has been removed. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``const char *name`` xattr name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h xattr nameh]h xattr name}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(h%``const void *value`` security label h](j)}(h``const void *value``h]j)}(hjTh]hconst void *value}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjNubj2)}(hhh]h)}(hsecurity labelh]hsecurity label}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubj)}(h)``size_t size`` length of security label h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hlength of security labelh]hlength of security label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int flags`` flags h](j)}(h ``int flags``h]j)}(hjh]h int flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hX=Set the security label associated with **name** for **inode** from the extended attribute value **value**. **size** indicates the size of the **value** in bytes. **flags** may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that **name** is the remainder of the attribute name after the security. prefix has been removed.h](h'Set the security label associated with }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for }(hjhhhNhNubj)}(h **inode**h]hinode}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# from the extended attribute value }(hjhhhNhNubj)}(h **value**h]hvalue}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**size**h]hsize}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh indicates the size of the }(hjhhhNhNubj)}(h **value**h]hvalue}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh in bytes. }(hjhhhNhNubj)}(h **flags**h]hflags}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh5 may be XATTR_CREATE, XATTR_REPLACE, or 0. Note that }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhT is the remainder of the attribute name after the security. prefix has been removed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_inode_getlsmprop (C function)c.security_inode_getlsmprophNtauh1hhj-hhhNhNubj)}(hhh](j)}(hKvoid security_inode_getlsmprop (struct inode *inode, struct lsm_prop *prop)h]j)}(hJvoid security_inode_getlsmprop(struct inode *inode, struct lsm_prop *prop)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_inode_getlsmproph]j)}(hsecurity_inode_getlsmproph]hsecurity_inode_getlsmprop}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h,(struct inode *inode, struct lsm_prop *prop)h](j)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubh)}(hhh]j)}(hinodeh]hinode}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_inode_getlsmpropasbuh1hhj$ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct lsm_prop *proph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hlsm_proph]hlsm_prop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jbc.security_inode_getlsmpropasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hproph]hprop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hGet an inode's LSM datah]hGet an inode’s LSM data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct inode *inode`` inode ``struct lsm_prop *prop`` lsm specific information to return **Description** Get the lsm specific information associated with the node.h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj7ubj )}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjVubj2)}(hhh]h)}(hinodeh]hinode}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjSubj)}(h=``struct lsm_prop *prop`` lsm specific information to return h](j)}(h``struct lsm_prop *prop``h]j)}(hjh]hstruct lsm_prop *prop}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h"lsm specific information to returnh]h"lsm specific information to return}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjSubeh}(h]h ]h"]h$]h&]uh1j hj7ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj7ubh)}(h:Get the lsm specific information associated with the node.h]h:Get the lsm specific information associated with the node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *security_kernfs_init_security (C function)c.security_kernfs_init_securityhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hVint security_kernfs_init_security (struct kernfs_node *kn_dir, struct kernfs_node *kn)h]j)}(hUint security_kernfs_init_security(struct kernfs_node *kn_dir, struct kernfs_node *kn)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 ubj2)}(h h]h }(hj$ hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj# hM4 ubj{)}(hsecurity_kernfs_init_securityh]j)}(hsecurity_kernfs_init_securityh]hsecurity_kernfs_init_security}(hj6 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2 ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj# hM4 ubj)}(h4(struct kernfs_node *kn_dir, struct kernfs_node *kn)h](j)}(hstruct kernfs_node *kn_dirh](j)}(hj h]hstruct}(hjR hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN ubj2)}(h h]h }(hj_ hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjN ubh)}(hhh]j)}(h kernfs_nodeh]h kernfs_node}(hjp hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjr modnameN classnameNj] j` )}jc ]jf )}jY j8 sbc.security_kernfs_init_securityasbuh1hhjN ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjN ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN ubj)}(hkn_dirh]hkn_dir}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJ ubj)}(hstruct kernfs_node *knh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(h kernfs_nodeh]h kernfs_node}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]j c.security_kernfs_init_securityasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hknh]hkn}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJ ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj# hM4 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj# hM4 ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj# hM4 hj hhubj)}(hhh]h)}(h"Init LSM context for a kernfs nodeh]h"Init LSM context for a kernfs node}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 hjB hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj# hM4 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj] jj] jjjuh1jhhhj-hNhNubj)}(hX/**Parameters** ``struct kernfs_node *kn_dir`` parent kernfs node ``struct kernfs_node *kn`` the kernfs node to initialize **Description** Initialize the security context of a newly created kernfs node based on its own and its parent's attributes. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjg h]h Parameters}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8 hja ubj )}(hhh](j)}(h2``struct kernfs_node *kn_dir`` parent kernfs node h](j)}(h``struct kernfs_node *kn_dir``h]j)}(hj h]hstruct kernfs_node *kn_dir}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5 hj ubj2)}(hhh]h)}(hparent kernfs nodeh]hparent kernfs node}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM5 hj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM5 hj} ubj)}(h9``struct kernfs_node *kn`` the kernfs node to initialize h](j)}(h``struct kernfs_node *kn``h]j)}(hj h]hstruct kernfs_node *kn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6 hj ubj2)}(hhh]h)}(hthe kernfs node to initializeh]hthe kernfs node to initialize}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM6 hj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM6 hj} ubeh}(h]h ]h"]h$]h&]uh1j hja ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8 hja ubh)}(hlInitialize the security context of a newly created kernfs node based on its own and its parent's attributes.h]hnInitialize the security context of a newly created kernfs node based on its own and its parent’s attributes.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7 hja ubh)}(h **Return**h]j)}(hj! h]hReturn}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM: hja ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM; hja ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_file_permission (C function)c.security_file_permissionhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h:int security_file_permission (struct file *file, int mask)h]j)}(h9int security_file_permission(struct file *file, int mask)h](j )}(hinth]hint}(hjf hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjb hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD ubj2)}(h h]h }(hju hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjb hhhjt hMD ubj{)}(hsecurity_file_permissionh]j)}(hsecurity_file_permissionh]hsecurity_file_permission}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjb hhhjt hMD ubj)}(h(struct file *file, int mask)h](j)}(hstruct file *fileh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_file_permissionasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hint maskh](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj# hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hmaskh]hmask}(hj1 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjb hhhjt hMD ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^ hhhjt hMD ubah}(h]jY ah ](jjeh"]h$]h&]jj)jhuh1jhjt hMD hj[ hhubj)}(hhh]h)}(hCheck file permissionsh]hCheck file permissions}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hjX hhubah}(h]h ]h"]h$]h&]uh1jhj[ hhhjt hMD ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjs jjs jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct file *file`` file ``int mask`` requested permissions **Description** Check file permissions before accessing an open file. This hook is called by various operations that read or write files. A security module can use this hook to perform additional checking on these operations, e.g. to revalidate permissions on use to support privilege bracketing or policy changes. Notice that this hook is used when the actual read/write operations are performed, whereas the inode_security_ops hook is called when a file is opened (as well as many other operations). Although this hook can be used to revalidate permissions for various system call operations that read or write files, it does not address the revalidation of permissions for memory-mapped files. Security modules must handle this separately if they need such revalidation. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj} h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMH hjw ubj )}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hj h]hstruct file *file}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chME hj ubj2)}(hhh]h)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hME hj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hME hj ubj)}(h#``int mask`` requested permissions h](j)}(h ``int mask``h]j)}(hj h]hint mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMF hj ubj2)}(hhh]h)}(hrequested permissionsh]hrequested permissions}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMF hj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMF hj ubeh}(h]h ]h"]h$]h&]uh1j hjw ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMH hjw ubh)}(hXCheck file permissions before accessing an open file. This hook is called by various operations that read or write files. A security module can use this hook to perform additional checking on these operations, e.g. to revalidate permissions on use to support privilege bracketing or policy changes. Notice that this hook is used when the actual read/write operations are performed, whereas the inode_security_ops hook is called when a file is opened (as well as many other operations). Although this hook can be used to revalidate permissions for various system call operations that read or write files, it does not address the revalidation of permissions for memory-mapped files. Security modules must handle this separately if they need such revalidation.h]hXCheck file permissions before accessing an open file. This hook is called by various operations that read or write files. A security module can use this hook to perform additional checking on these operations, e.g. to revalidate permissions on use to support privilege bracketing or policy changes. Notice that this hook is used when the actual read/write operations are performed, whereas the inode_security_ops hook is called when a file is opened (as well as many other operations). Although this hook can be used to revalidate permissions for various system call operations that read or write files, it does not address the revalidation of permissions for memory-mapped files. Security modules must handle this separately if they need such revalidation.}(hj& hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMG hjw ubh)}(h **Return**h]j)}(hj7 h]hReturn}(hj9 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5 ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMS hjw ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMT hjw ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_file_alloc (C function)c.security_file_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h+int security_file_alloc (struct file *file)h]j)}(h*int security_file_alloc(struct file *file)h](j )}(hinth]hint}(hj| hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjx hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\ ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjx hhhj hM\ ubj{)}(hsecurity_file_alloch]j)}(hsecurity_file_alloch]hsecurity_file_alloc}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjx hhhj hM\ ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_file_allocasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjx hhhj hM\ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjt hhhj hM\ ubah}(h]jo ah ](jjeh"]h$]h&]jj)jhuh1jhj hM\ hjq hhubj)}(hhh]h)}(h#Allocate and init a file's LSM blobh]h%Allocate and init a file’s LSM blob}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\ hj9hhubah}(h]h ]h"]h$]h&]uh1jhjq hhhj hM\ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1jhhhj-hNhNubj)}(hX%**Parameters** ``struct file *file`` the file **Description** Allocate and attach a security structure to the file->f_security field. The security field is initialized to NULL when the structure is first created. **Return** Return 0 if the hook is successful and permission is granted.h](h)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` hjXubj )}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hj}h]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM] hjwubj2)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM] hjubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjhM] hjtubah}(h]h ]h"]h$]h&]uh1j hjXubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_ hjXubh)}(hAllocate and attach a security structure to the file->f_security field. The security field is initialized to NULL when the structure is first created.h]hAllocate and attach a security structure to the file->f_security field. The security field is initialized to NULL when the structure is first created.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^ hjXubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hjXubh)}(h=Return 0 if the hook is successful and permission is granted.h]h=Return 0 if the hook is successful and permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_file_release (C function)c.security_file_releasehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h.void security_file_release (struct file *file)h]j)}(h-void security_file_release(struct file *file)h](j )}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj2hMq ubj{)}(hsecurity_file_releaseh]j)}(hsecurity_file_releaseh]hsecurity_file_release}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj2hMq ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jGsbc.security_file_releaseasbuh1hhj]ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj2hMq ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj2hMq ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj2hMq hjhhubj)}(hhh]h)}(h-Perform actions before releasing the file refh]h-Perform actions before releasing the file ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hMq ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct file *file`` the file **Description** Perform actions before releasing the last reference to a file.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMu hjubj )}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hj%h]hstruct file *file}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMr hjubj2)}(hhh]h)}(hthe fileh]hthe file}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMr hj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMr hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMt hjubh)}(h>Perform actions before releasing the last reference to a file.h]h>Perform actions before releasing the last reference to a file.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMs hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_file_free (C function)c.security_file_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h+void security_file_free (struct file *file)h]j)}(h*void security_file_free(struct file *file)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM| ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM| ubj{)}(hsecurity_file_freeh]j)}(hsecurity_file_freeh]hsecurity_file_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM| ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_file_freeasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfileh]hfile}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM| ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM| ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM| hjhhubj)}(hhh]h)}(hFree a file's LSM blobh]hFree a file’s LSM blob}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM| hjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM| ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct file *file`` the file **Description** Deallocate and free any security structures stored in file->f_security.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj )}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM} hjubj2)}(hhh]h)}(hthe fileh]hthe file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM} hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM} hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hGDeallocate and free any security structures stored in file->f_security.h]hGDeallocate and free any security structures stored in file->f_security.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~ hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_backing_file_alloc (C function)c.security_backing_file_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(hYint security_backing_file_alloc (struct file *backing_file, const struct file *user_file)h]j)}(hXint security_backing_file_alloc(struct file *backing_file, const struct file *user_file)h](j )}(hinth]hint}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"hhhj4hM ubj{)}(hsecurity_backing_file_alloch]j)}(hsecurity_backing_file_alloch]hsecurity_backing_file_alloc}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhj4hM ubj)}(h9(struct file *backing_file, const struct file *user_file)h](j)}(hstruct file *backing_fileh](j)}(hj h]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jIsbc.security_backing_file_allocasbuh1hhj_ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(h backing_fileh]h backing_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hconst struct file *user_fileh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_backing_file_allocasbuh1hhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h user_fileh]h user_file}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhj"hhhj4hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj4hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj4hM hjhhubj)}(hhh]h)}(h&Allocate and setup a backing file blobh]h&Allocate and setup a backing file blob}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj4hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct file *backing_file`` the backing file ``const struct file *user_file`` the associated user visible file **Description** Allocate a backing file LSM blob and perform any necessary initialization of the LSM blob. There will be some operations where the LSM will not have access to **user_file** after this point, so any important state associated with **user_file** that is important to the LSM should be captured in the backing file's LSM blob. LSM's should avoid taking a reference to **user_file** in this hook as it will result in problems later when the system attempts to drop/put the file references due to a circular dependency. **Return** Return 0 if the hook is successful, negative values otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj )}(hhh](j)}(h/``struct file *backing_file`` the backing file h](j)}(h``struct file *backing_file``h]j)}(hjh]hstruct file *backing_file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hthe backing fileh]hthe backing file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hB``const struct file *user_file`` the associated user visible file h](j)}(h ``const struct file *user_file``h]j)}(hjh]hconst struct file *user_file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(h the associated user visible fileh]h the associated user visible file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hXDAllocate a backing file LSM blob and perform any necessary initialization of the LSM blob. There will be some operations where the LSM will not have access to **user_file** after this point, so any important state associated with **user_file** that is important to the LSM should be captured in the backing file's LSM blob.h](hAllocate a backing file LSM blob and perform any necessary initialization of the LSM blob. There will be some operations where the LSM will not have access to }(hj<hhhNhNubj)}(h **user_file**h]h user_file}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh: after this point, so any important state associated with }(hj<hhhNhNubj)}(h **user_file**h]h user_file}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubhR that is important to the LSM should be captured in the backing file’s LSM blob.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hLSM's should avoid taking a reference to **user_file** in this hook as it will result in problems later when the system attempts to drop/put the file references due to a circular dependency.h](h+LSM’s should avoid taking a reference to }(hjohhhNhNubj)}(h **user_file**h]h user_file}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh in this hook as it will result in problems later when the system attempts to drop/put the file references due to a circular dependency.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h>Return 0 if the hook is successful, negative values otherwise.h]h>Return 0 if the hook is successful, negative values otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_backing_file_free (C function)c.security_backing_file_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h;void security_backing_file_free (struct file *backing_file)h]j)}(h:void security_backing_file_free(struct file *backing_file)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hsecurity_backing_file_freeh]j)}(hsecurity_backing_file_freeh]hsecurity_backing_file_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(struct file *backing_file)h]j)}(hstruct file *backing_fileh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfileh]hfile}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_backing_file_freeasbuh1hhjubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h backing_fileh]h backing_file}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(hFree a backing file blobh]hFree a backing file blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct file *backing_file`` the backing file **Description** Free any LSM state associate with a backing file's LSM blob, including the blob itself.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj )}(hhh]j)}(h/``struct file *backing_file`` the backing file h](j)}(h``struct file *backing_file``h]j)}(hjh]hstruct file *backing_file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hthe backing fileh]hthe backing file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hWFree any LSM state associate with a backing file's LSM blob, including the blob itself.h]hYFree any LSM state associate with a backing file’s LSM blob, including the blob itself.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_mmap_file (C function)c.security_mmap_filehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hSint security_mmap_file (struct file *file, unsigned long prot, unsigned long flags)h]j)}(hRint security_mmap_file(struct file *file, unsigned long prot, unsigned long flags)h](j )}(hinth]hint}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjThhhjfhM ubj{)}(hsecurity_mmap_fileh]j)}(hsecurity_mmap_fileh]hsecurity_mmap_file}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhjfhM ubj)}(h<(struct file *file, unsigned long prot, unsigned long flags)h](j)}(hstruct file *fileh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j{sbc.security_mmap_fileasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long proth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hproth]hprot}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj )}(hlongh]hlong}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjfhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjPhhhjfhM ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhjfhM hjMhhubj)}(hhh]h)}(h#Check if mmap'ing a file is allowedh]h%Check if mmap’ing a file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX0**Parameters** ``struct file *file`` file ``unsigned long prot`` protection applied by the kernel ``unsigned long flags`` flags **Description** Check permissions for a mmap operation. The **file** may be NULL, e.g. if mapping anonymous memory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj )}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h8``unsigned long prot`` protection applied by the kernel h](j)}(h``unsigned long prot``h]j)}(hj4h]hunsigned long prot}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj.ubj2)}(hhh]h)}(h protection applied by the kernelh]h protection applied by the kernel}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM hjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM hjubj)}(h``unsigned long flags`` flags h](j)}(h``unsigned long flags``h]j)}(hjmh]hunsigned long flags}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjgubj2)}(hhh]h)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hdCheck permissions for a mmap operation. The **file** may be NULL, e.g. if mapping anonymous memory.h](h-Check permissions for a mmap operation. The }(hjhhhNhNubj)}(h**file**h]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh/ may be NULL, e.g. if mapping anonymous memory.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_mmap_addr (C function)c.security_mmap_addrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h+int security_mmap_addr (unsigned long addr)h]j)}(h*int security_mmap_addr(unsigned long addr)h](j )}(hinth]hint}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"hhhj4hM4 ubj{)}(hsecurity_mmap_addrh]j)}(hsecurity_mmap_addrh]hsecurity_mmap_addr}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhj4hM4 ubj)}(h(unsigned long addr)h]j)}(hunsigned long addrh](j )}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(haddrh]haddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubah}(h]h ]h"]h$]h&]jjuh1jhj"hhhj4hM4 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj4hM4 ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj4hM4 hjhhubj)}(hhh]h)}(h'Check if mmap'ing an address is allowedh]h)Check if mmap’ing an address is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4 hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj4hM4 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``unsigned long addr`` address **Description** Check permissions for a mmap operation at **addr**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8 hjubj )}(hhh]j)}(h``unsigned long addr`` address h](j)}(h``unsigned long addr``h]j)}(hjh]hunsigned long addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5 hjubj2)}(hhh]h)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5 hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM5 hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh10jhj?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7 hjubh)}(h3Check permissions for a mmap operation at **addr**.h](h*Check permissions for a mmap operation at }(hjWhhhNhNubj)}(h**addr**h]haddr}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubh.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6 hjubh)}(h **Return**h]j)}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8 hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_file_mprotect (C function)c.security_file_mprotecthNtauh1hhj-hhhNhNubj)}(hhh](j)}(hbint security_file_mprotect (struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h]j)}(haint security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMA ubj{)}(hsecurity_file_mprotecth]j)}(hsecurity_file_mprotecth]hsecurity_file_mprotect}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMA ubj)}(hG(struct vm_area_struct *vma, unsigned long reqprot, unsigned long prot)h](j)}(hstruct vm_area_struct *vmah](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_file_mprotectasbuh1hhjubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvmah]hvma}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long reqproth](j )}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hreqproth]hreqprot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long proth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hproth]hprot}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMA ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMA ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMA hjhhubj)}(hhh]h)}(h/Check if changing memory protections is allowedh]h/Check if changing memory protections is allowed}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMA ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jhhhj-hNhNubj)}(hX7**Parameters** ``struct vm_area_struct *vma`` memory region ``unsigned long reqprot`` application requested protection ``unsigned long prot`` protection applied by the kernel **Description** Check permissions before changing memory access permissions. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chME hj=ubj )}(hhh](j)}(h-``struct vm_area_struct *vma`` memory region h](j)}(h``struct vm_area_struct *vma``h]j)}(hjbh]hstruct vm_area_struct *vma}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hj\ubj2)}(hhh]h)}(h memory regionh]h memory region}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMB hjxubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMB hjYubj)}(h;``unsigned long reqprot`` application requested protection h](j)}(h``unsigned long reqprot``h]j)}(hjh]hunsigned long reqprot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMC hjubj2)}(hhh]h)}(h application requested protectionh]h application requested protection}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMC hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMC hjYubj)}(h8``unsigned long prot`` protection applied by the kernel h](j)}(h``unsigned long prot``h]j)}(hjh]hunsigned long prot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMD hjubj2)}(hhh]h)}(h protection applied by the kernelh]h protection applied by the kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMD hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMD hjYubeh}(h]h ]h"]h$]h&]uh1j hj=ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMF hj=ubh)}(hah"]h$]h&]uh1j1hjwhhhjhMQ ubj{)}(hsecurity_file_lockh]j)}(hsecurity_file_lockh]hsecurity_file_lock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhjhMQ ubj)}(h%(struct file *file, unsigned int cmd)h](j)}(hstruct file *fileh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_file_lockasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int cmdh](j )}(hunsignedh]hunsigned}(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj )}(hinth]hint}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&ubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&ubj)}(hcmdh]hcmd}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjhMQ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjhMQ ubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1jhjhMQ hjphhubj)}(hhh]h)}(hCheck if a file lock is allowedh]hCheck if a file lock is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQ hjhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhMQ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX$**Parameters** ``struct file *file`` file ``unsigned int cmd`` lock operation (e.g. F_RDLCK, F_WRLCK) **Description** Check permission before performing file locking operations. Note the hook mediates both flock and fcntl style locks. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMU hjubj )}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjh]hstruct file *file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR hjubj2)}(hhh]h)}(hfileh]hfile}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMR hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMR hjubj)}(h<``unsigned int cmd`` lock operation (e.g. F_RDLCK, F_WRLCK) h](j)}(h``unsigned int cmd``h]j)}(hjh]hunsigned int cmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMS hjubj2)}(hhh]h)}(h&lock operation (e.g. F_RDLCK, F_WRLCK)h]h&lock operation (e.g. F_RDLCK, F_WRLCK)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMS hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMS hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMU hjubh)}(huCheck permission before performing file locking operations. Note the hook mediates both flock and fcntl style locks.h]huCheck permission before performing file locking operations. Note the hook mediates both flock and fcntl style locks.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMT hjubh)}(h **Return**h]j)}(hjhh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMW hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMX hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_file_fcntl (C function)c.security_file_fcntlhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hPint security_file_fcntl (struct file *file, unsigned int cmd, unsigned long arg)h]j)}(hOint security_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM` ubj{)}(hsecurity_file_fcntlh]j)}(hsecurity_file_fcntlh]hsecurity_file_fcntl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM` ubj)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j)}(hstruct file *fileh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfileh]hfile}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_file_fcntlasbuh1hhjubj2)}(h h]h }(hj( hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj6 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfileh]hfile}(hjC hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int cmdh](j )}(hunsignedh]hunsigned}(hj\ hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjX ubj2)}(h h]h }(hjj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjX ubj )}(hinth]hint}(hjx hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjX ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjX ubj)}(hcmdh]hcmd}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long argh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hlongh]hlong}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hargh]harg}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM` ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM` ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM` hjhhubj)}(hhh]h)}(hCheck if fcntl() op is allowedh]hCheck if fcntl() op is allowed}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` hj !hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM` ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'!jj'!jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct file *file`` file ``unsigned int cmd`` fcntl command ``unsigned long arg`` command argument **Description** Check permission before allowing the file operation specified by **cmd** from being performed on the file **file**. Note that **arg** sometimes represents a user space pointer; in other cases, it may be a simple integer value. When **arg** represents a user space pointer, it should never be used by the security module. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj1!h]h Parameters}(hj3!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hj+!ubj )}(hhh](j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hjP!h]hstruct file *file}(hjR!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hjJ!ubj2)}(hhh]h)}(hfileh]hfile}(hji!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje!hMa hjf!ubah}(h]h ]h"]h$]h&]uh1j1hjJ!ubeh}(h]h ]h"]h$]h&]uh1jhje!hMa hjG!ubj)}(h#``unsigned int cmd`` fcntl command h](j)}(h``unsigned int cmd``h]j)}(hj!h]hunsigned int cmd}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hj!ubj2)}(hhh]h)}(h fcntl commandh]h fcntl command}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMb hj!ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMb hjG!ubj)}(h'``unsigned long arg`` command argument h](j)}(h``unsigned long arg``h]j)}(hj!h]hunsigned long arg}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMc hj!ubj2)}(hhh]h)}(hcommand argumenth]hcommand argument}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMc hj!ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMc hjG!ubeh}(h]h ]h"]h$]h&]uh1j hj+!ubh)}(h**Description**h]j)}(hj!h]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMe hj+!ubh)}(hXBCheck permission before allowing the file operation specified by **cmd** from being performed on the file **file**. Note that **arg** sometimes represents a user space pointer; in other cases, it may be a simple integer value. When **arg** represents a user space pointer, it should never be used by the security module.h](hACheck permission before allowing the file operation specified by }(hj"hhhNhNubj)}(h**cmd**h]hcmd}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh" from being performed on the file }(hj"hhhNhNubj)}(h**file**h]hfile}(hj-"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh . Note that }(hj"hhhNhNubj)}(h**arg**h]harg}(hj?"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubhd sometimes represents a user space pointer; in other cases, it may be a simple integer value. When }(hj"hhhNhNubj)}(h**arg**h]harg}(hjQ"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubhQ represents a user space pointer, it should never be used by the security module.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hj+!ubh)}(h **Return**h]j)}(hjl"h]hReturn}(hjn"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMj hj+!ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMk hj+!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_file_set_fowner (C function)c.security_file_set_fownerhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h1void security_file_set_fowner (struct file *file)h]j)}(h0void security_file_set_fowner(struct file *file)h](j )}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMs ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"hhhj"hMs ubj{)}(hsecurity_file_set_fownerh]j)}(hsecurity_file_set_fownerh]hsecurity_file_set_fowner}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhj"hMs ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubh)}(hhh]j)}(hfileh]hfile}(hj #hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj #ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jf )}jY j"sbc.security_file_set_fownerasbuh1hhj"ubj2)}(h h]h }(hj,#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(hjh]h*}(hj:#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hfileh]hfile}(hjG#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubah}(h]h ]h"]h$]h&]jjuh1jhj"hhhj"hMs ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj"hMs ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jhj"hMs hj"hhubj)}(hhh]h)}(h'Set the file owner info in the LSM blobh]h'Set the file owner info in the LSM blob}(hjq#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMs hjn#hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj"hMs ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct file *file`` the file **Description** Save owner security information (typically from current->security) in file->f_security for later use by the send_sigiotask hook. This hook is called with file->f_owner.lock held. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw hj#ubj )}(hhh]j)}(h``struct file *file`` the file h](j)}(h``struct file *file``h]j)}(hj#h]hstruct file *file}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMt hj#ubj2)}(hhh]h)}(hthe fileh]hthe file}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMt hj#ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMt hj#ubah}(h]h ]h"]h$]h&]uh1j hj#ubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMv hj#ubh)}(hSave owner security information (typically from current->security) in file->f_security for later use by the send_sigiotask hook.h]hSave owner security information (typically from current->security) in file->f_security for later use by the send_sigiotask hook.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMu hj#ubh)}(h1This hook is called with file->f_owner.lock held.h]h1This hook is called with file->f_owner.lock held.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hj#ubh)}(h **Return**h]j)}(hj#$h]hReturn}(hj%$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMz hj#ubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hj9$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{ hj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_file_send_sigiotask (C function)c.security_file_send_sigiotaskhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h]int security_file_send_sigiotask (struct task_struct *tsk, struct fown_struct *fown, int sig)h]j)}(h\int security_file_send_sigiotask(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j )}(hinth]hint}(hjh$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjd$hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjw$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjd$hhhjv$hM ubj{)}(hsecurity_file_send_sigiotaskh]j)}(hsecurity_file_send_sigiotaskh]hsecurity_file_send_sigiotask}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjd$hhhjv$hM ubj)}(h<(struct task_struct *tsk, struct fown_struct *fown, int sig)h](j)}(hstruct task_struct *tskh](j)}(hj h]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubh)}(hhh]j)}(h task_structh]h task_struct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$modnameN classnameNj] j` )}jc ]jf )}jY j$sbc.security_file_send_sigiotaskasbuh1hhj$ubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(htskh]htsk}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct fown_struct *fownh](j)}(hj h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj2)}(h h]h }(hj$%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubh)}(hhh]j)}(h fown_structh]h fown_struct}(hj5%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7%modnameN classnameNj] j` )}jc ]j$c.security_file_send_sigiotaskasbuh1hhj%ubj2)}(h h]h }(hjS%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hjh]h*}(hja%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hfownh]hfown}(hjn%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hint sigh](j )}(hinth]hint}(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hsigh]hsig}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhjd$hhhjv$hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`$hhhjv$hM ubah}(h]j[$ah ](jjeh"]h$]h&]jj)jhuh1jhjv$hM hj]$hhubj)}(hhh]h)}(h(Check if sending SIGIO/SIGURG is allowedh]h(Check if sending SIGIO/SIGURG is allowed}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%hhubah}(h]h ]h"]h$]h&]uh1jhj]$hhhjv$hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jhhhj-hNhNubj)}(hXH**Parameters** ``struct task_struct *tsk`` target task ``struct fown_struct *fown`` signal sender ``int sig`` signal to be sent, SIGIO is sent if 0 **Description** Check permission for the file owner **fown** to send SIGIO or SIGURG to the process **tsk**. Note that this hook is sometimes called from interrupt. Note that the fown_struct, **fown**, is never outside the context of a struct file, so the file structure (and associated security information) can always be obtained: container_of(fown, struct file, f_owner). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubj )}(hhh](j)}(h(``struct task_struct *tsk`` target task h](j)}(h``struct task_struct *tsk``h]j)}(hj&h]hstruct task_struct *tsk}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj &ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj&ubj2)}(hhh]h)}(h target taskh]h target task}(hj'&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#&hM hj$&ubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhj#&hM hj&ubj)}(h+``struct fown_struct *fown`` signal sender h](j)}(h``struct fown_struct *fown``h]j)}(hjG&h]hstruct fown_struct *fown}(hjI&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjA&ubj2)}(hhh]h)}(h signal senderh]h signal sender}(hj`&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\&hM hj]&ubah}(h]h ]h"]h$]h&]uh1j1hjA&ubeh}(h]h ]h"]h$]h&]uh1jhj\&hM hj&ubj)}(h2``int sig`` signal to be sent, SIGIO is sent if 0 h](j)}(h ``int sig``h]j)}(hj&h]hint sig}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjz&ubj2)}(hhh]h)}(h%signal to be sent, SIGIO is sent if 0h]h%signal to be sent, SIGIO is sent if 0}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM hj&ubah}(h]h ]h"]h$]h&]uh1j1hjz&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM hj&ubeh}(h]h ]h"]h$]h&]uh1j hj%ubh)}(h**Description**h]j)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubh)}(hXhCheck permission for the file owner **fown** to send SIGIO or SIGURG to the process **tsk**. Note that this hook is sometimes called from interrupt. Note that the fown_struct, **fown**, is never outside the context of a struct file, so the file structure (and associated security information) can always be obtained: container_of(fown, struct file, f_owner).h](h$Check permission for the file owner }(hj&hhhNhNubj)}(h**fown**h]hfown}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh( to send SIGIO or SIGURG to the process }(hj&hhhNhNubj)}(h**tsk**h]htsk}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubhW. Note that this hook is sometimes called from interrupt. Note that the fown_struct, }(hj&hhhNhNubj)}(h**fown**h]hfown}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh, is never outside the context of a struct file, so the file structure (and associated security information) can always be obtained: container_of(fown, struct file, f_owner).}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubh)}(h **Return**h]j)}(hj'h]hReturn}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj.'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_file_receive (C function)c.security_file_receivehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h-int security_file_receive (struct file *file)h]j)}(h,int security_file_receive(struct file *file)h](j )}(hinth]hint}(hj]'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjY'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjl'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjY'hhhjk'hM ubj{)}(hsecurity_file_receiveh]j)}(hsecurity_file_receiveh]hsecurity_file_receive}(hj~'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz'ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjY'hhhjk'hM ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubh)}(hhh]j)}(hfileh]hfile}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj'modnameN classnameNj] j` )}jc ]jf )}jY j'sbc.security_file_receiveasbuh1hhj'ubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hfileh]hfile}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubah}(h]h ]h"]h$]h&]jjuh1jhjY'hhhjk'hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjU'hhhjk'hM ubah}(h]jP'ah ](jjeh"]h$]h&]jj)jhuh1jhjk'hM hjR'hhubj)}(hhh]h)}(h,Check if receiving a file via IPC is allowedh]h,Check if receiving a file via IPC is allowed}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj(hhubah}(h]h ]h"]h$]h&]uh1jhjR'hhhjk'hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5(jj5(jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct file *file`` file being received **Description** This hook allows security modules to control the ability of a process to receive an open file descriptor via socket IPC. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj?(h]h Parameters}(hjA(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj9(ubj )}(hhh]j)}(h*``struct file *file`` file being received h](j)}(h``struct file *file``h]j)}(hj^(h]hstruct file *file}(hj`(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\(ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjX(ubj2)}(hhh]h)}(hfile being receivedh]hfile being received}(hjw(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs(hM hjt(ubah}(h]h ]h"]h$]h&]uh1j1hjX(ubeh}(h]h ]h"]h$]h&]uh1jhjs(hM hjU(ubah}(h]h ]h"]h$]h&]uh1j hj9(ubh)}(h**Description**h]j)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj9(ubh)}(hxThis hook allows security modules to control the ability of a process to receive an open file descriptor via socket IPC.h]hxThis hook allows security modules to control the ability of a process to receive an open file descriptor via socket IPC.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj9(ubh)}(h **Return**h]j)}(hj(h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj9(ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj9(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_file_open (C function)c.security_file_openhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h*int security_file_open (struct file *file)h]j)}(h)int security_file_open(struct file *file)h](j )}(hinth]hint}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)hhhj)hM ubj{)}(hsecurity_file_openh]j)}(hsecurity_file_openh]hsecurity_file_open}(hj&)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj")ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj)hhhj)hM ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj h]hstruct}(hjB)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>)ubj2)}(h h]h }(hjO)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>)ubh)}(hhh]j)}(hfileh]hfile}(hj`)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj])ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjb)modnameN classnameNj] j` )}jc ]jf )}jY j()sbc.security_file_openasbuh1hhj>)ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>)ubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>)ubj)}(hfileh]hfile}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:)ubah}(h]h ]h"]h$]h&]jjuh1jhj)hhhj)hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj)hM ubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhj)hM hj(hhubj)}(hhh]h)}(h.Save open() time state for late use by the LSMh]h.Save open() time state for late use by the LSM}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj)hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct file *file`` **Description** Save open-time permission checking state for later use upon file_permission, and recheck access if anything has changed since inode_permission. We can check if a file is opened for execution (e.g. execve(2) call), either directly or indirectly (e.g. ELF's ld.so) by checking file->f_flags & __FMODE_EXEC . **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubh)}(h``struct file *file``h]j)}(hj)h]hstruct file *file}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubh)}(h**Description**h]j)}(hj*h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubh)}(hSave open-time permission checking state for later use upon file_permission, and recheck access if anything has changed since inode_permission.h]hSave open-time permission checking state for later use upon file_permission, and recheck access if anything has changed since inode_permission.}(hj-*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubh)}(hWe can check if a file is opened for execution (e.g. execve(2) call), either directly or indirectly (e.g. ELF's ld.so) by checking file->f_flags & __FMODE_EXEC .h]hWe can check if a file is opened for execution (e.g. execve(2) call), either directly or indirectly (e.g. ELF’s ld.so) by checking file->f_flags & __FMODE_EXEC .}(hj<*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubh)}(h **Return**h]j)}(hjM*h]hReturn}(hjO*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK*ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjc*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_file_truncate (C function)c.security_file_truncatehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h.int security_file_truncate (struct file *file)h]j)}(h-int security_file_truncate(struct file *file)h](j )}(hinth]hint}(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*hhhj*hM ubj{)}(hsecurity_file_truncateh]j)}(hsecurity_file_truncateh]hsecurity_file_truncate}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj*hhhj*hM ubj)}(h(struct file *file)h]j)}(hstruct file *fileh](j)}(hj h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*ubh)}(hhh]j)}(hfileh]hfile}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]jf )}jY j*sbc.security_file_truncateasbuh1hhj*ubj2)}(h h]h }(hj +hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hfileh]hfile}(hj(+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubah}(h]h ]h"]h$]h&]jjuh1jhj*hhhj*hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj*hM ubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1jhj*hM hj*hhubj)}(hhh]h)}(h%Check if truncating a file is allowedh]h%Check if truncating a file is allowed}(hjR+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjO+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjj+jjj+jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct file *file`` file **Description** Check permission before truncating a file, i.e. using ftruncate. Note that truncation permission may also be checked based on the path, using the **path_truncate** hook. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjt+h]h Parameters}(hjv+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr+ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjn+ubj )}(hhh]j)}(h``struct file *file`` file h](j)}(h``struct file *file``h]j)}(hj+h]hstruct file *file}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj+ubj2)}(hhh]h)}(hfileh]hfile}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM hj+ubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM hj+ubah}(h]h ]h"]h$]h&]uh1j hjn+ubh)}(h**Description**h]j)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjn+ubh)}(hCheck permission before truncating a file, i.e. using ftruncate. Note that truncation permission may also be checked based on the path, using the **path_truncate** hook.h](hCheck permission before truncating a file, i.e. using ftruncate. Note that truncation permission may also be checked based on the path, using the }(hj+hhhNhNubj)}(h**path_truncate**h]h path_truncate}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh hook.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjn+ubh)}(h **Return**h]j)}(hj,h]hReturn}(hj ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjn+ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjn+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_task_alloc (C function)c.security_task_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(hCint security_task_alloc (struct task_struct *task, u64 clone_flags)h]j)}(hBint security_task_alloc(struct task_struct *task, u64 clone_flags)h](j )}(hinth]hint}(hjL,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjH,hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj[,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH,hhhjZ,hM ubj{)}(hsecurity_task_alloch]j)}(hsecurity_task_alloch]hsecurity_task_alloc}(hjm,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjH,hhhjZ,hM ubj)}(h+(struct task_struct *task, u64 clone_flags)h](j)}(hstruct task_struct *taskh](j)}(hj h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubh)}(hhh]j)}(h task_structh]h task_struct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,modnameN classnameNj] j` )}jc ]jf )}jY jo,sbc.security_task_allocasbuh1hhj,ubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(htaskh]htask}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hu64 clone_flagsh](h)}(hhh]j)}(hu64h]hu64}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-modnameN classnameNj] j` )}jc ]j,c.security_task_allocasbuh1hhj,ubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(h clone_flagsh]h clone_flags}(hj*-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhjH,hhhjZ,hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjD,hhhjZ,hM ubah}(h]j?,ah ](jjeh"]h$]h&]jj)jhuh1jhjZ,hM hjA,hhubj)}(hhh]h)}(hAllocate a task's LSM blobh]hAllocate a task’s LSM blob}(hjT-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjQ-hhubah}(h]h ]h"]h$]h&]uh1jhjA,hhhjZ,hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjl-jjl-jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *task`` the task ``u64 clone_flags`` flags indicating what is being shared **Description** Handle allocation of task-related resources. **Return** Returns a zero on success, negative values on failure.h](h)}(h**Parameters**h]j)}(hjv-h]h Parameters}(hjx-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjp-ubj )}(hhh](j)}(h&``struct task_struct *task`` the task h](j)}(h``struct task_struct *task``h]j)}(hj-h]hstruct task_struct *task}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj-ubj2)}(hhh]h)}(hthe taskh]hthe task}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM hj-ubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM hj-ubj)}(h:``u64 clone_flags`` flags indicating what is being shared h](j)}(h``u64 clone_flags``h]j)}(hj-h]hu64 clone_flags}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj-ubj2)}(hhh]h)}(h%flags indicating what is being sharedh]h%flags indicating what is being shared}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hM hj-ubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM hj-ubeh}(h]h ]h"]h$]h&]uh1j hjp-ubh)}(h**Description**h]j)}(hj .h]h Description}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjp-ubh)}(h,Handle allocation of task-related resources.h]h,Handle allocation of task-related resources.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjp-ubh)}(h **Return**h]j)}(hj0.h]hReturn}(hj2.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj..ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjp-ubh)}(h6Returns a zero on success, negative values on failure.h]h6Returns a zero on success, negative values on failure.}(hjF.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjp-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_task_free (C function)c.security_task_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h2void security_task_free (struct task_struct *task)h]j)}(h1void security_task_free(struct task_struct *task)h](j )}(hvoidh]hvoid}(hju.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjq.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjq.hhhj.hM ubj{)}(hsecurity_task_freeh]j)}(hsecurity_task_freeh]hsecurity_task_free}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjq.hhhj.hM ubj)}(h(struct task_struct *task)h]j)}(hstruct task_struct *taskh](j)}(hj h]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubh)}(hhh]j)}(h task_structh]h task_struct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj.modnameN classnameNj] j` )}jc ]jf )}jY j.sbc.security_task_freeasbuh1hhj.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(htaskh]htask}(hj /hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubah}(h]h ]h"]h$]h&]jjuh1jhjq.hhhj.hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjm.hhhj.hM ubah}(h]jh.ah ](jjeh"]h$]h&]jj)jhuh1jhj.hM hjj.hhubj)}(hhh]h)}(h,Free a task's LSM blob and related resourcesh]h.Free a task’s LSM blob and related resources}(hj5/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2/hhubah}(h]h ]h"]h$]h&]uh1jhjj.hhhj.hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjM/jjM/jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *task`` task **Description** Handle release of task-related resources. Note that this can be called from interrupt context.h](h)}(h**Parameters**h]j)}(hjW/h]h Parameters}(hjY/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjQ/ubj )}(hhh]j)}(h"``struct task_struct *task`` task h](j)}(h``struct task_struct *task``h]j)}(hjv/h]hstruct task_struct *task}(hjx/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjp/ubj2)}(hhh]h)}(htaskh]htask}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hM hj/ubah}(h]h ]h"]h$]h&]uh1j1hjp/ubeh}(h]h ]h"]h$]h&]uh1jhj/hM hjm/ubah}(h]h ]h"]h$]h&]uh1j hjQ/ubh)}(h**Description**h]j)}(hj/h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjQ/ubh)}(h_Handle release of task-related resources. Note that this can be called from interrupt context.h]h_Handle release of task-related resources. Note that this can be called from interrupt context.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjQ/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_cred_alloc_blank (C function)c.security_cred_alloc_blankhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hj/hhhj0hM ubj{)}(hsecurity_cred_alloc_blankh]j)}(hsecurity_cred_alloc_blankh]hsecurity_cred_alloc_blank}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhj0hM ubj)}(h(struct cred *cred, gfp_t gfp)h](j)}(hstruct cred *credh](j)}(hj h]hstruct}(hj30hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/0ubj2)}(h h]h }(hj@0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/0ubh)}(hhh]j)}(hcredh]hcred}(hjQ0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjS0modnameN classnameNj] j` )}jc ]jf )}jY j0sbc.security_cred_alloc_blankasbuh1hhj/0ubj2)}(h h]h }(hjq0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/0ubj)}(hcredh]hcred}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+0ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0modnameN classnameNj] j` )}jc ]jm0c.security_cred_alloc_blankasbuh1hhj0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hgfph]hgfp}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+0ubeh}(h]h ]h"]h$]h&]jjuh1jhj/hhhj0hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhj0hM ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jhj0hM hj/hhubj)}(hhh]h)}(h.Allocate the min memory to allow cred_transferh]h.Allocate the min memory to allow cred_transfer}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj0hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj0hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct cred *cred`` credentials ``gfp_t gfp`` gfp flags **Description** Only allocate sufficient memory and attach to **cred** such that cred_transfer() will not get ENOMEM. **Return** Returns 0 on success, negative values on failure.h](h)}(h**Parameters**h]j)}(hj 1h]h Parameters}(hj"1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj1ubj )}(hhh](j)}(h"``struct cred *cred`` credentials h](j)}(h``struct cred *cred``h]j)}(hj?1h]hstruct cred *cred}(hjA1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj91ubj2)}(hhh]h)}(h credentialsh]h credentials}(hjX1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT1hM hjU1ubah}(h]h ]h"]h$]h&]uh1j1hj91ubeh}(h]h ]h"]h$]h&]uh1jhjT1hM hj61ubj)}(h``gfp_t gfp`` gfp flags h](j)}(h ``gfp_t gfp``h]j)}(hjx1h]h gfp_t gfp}(hjz1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjr1ubj2)}(hhh]h)}(h gfp flagsh]h gfp flags}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM hj1ubah}(h]h ]h"]h$]h&]uh1j1hjr1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM hj61ubeh}(h]h ]h"]h$]h&]uh1j hj1ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj1ubh)}(heOnly allocate sufficient memory and attach to **cred** such that cred_transfer() will not get ENOMEM.h](h.Only allocate sufficient memory and attach to }(hj1hhhNhNubj)}(h**cred**h]hcred}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh/ such that cred_transfer() will not get ENOMEM.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj1ubh)}(h **Return**h]j)}(hj1h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj1ubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_cred_free (C function)c.security_cred_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h+void security_cred_free (struct cred *cred)h]j)}(h*void security_cred_free(struct cred *cred)h](j )}(hvoidh]hvoid}(hj12hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj@2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-2hhhj?2hM ubj{)}(hsecurity_cred_freeh]j)}(hsecurity_cred_freeh]hsecurity_cred_free}(hjR2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN2ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-2hhhj?2hM ubj)}(h(struct cred *cred)h]j)}(hstruct cred *credh](j)}(hj h]hstruct}(hjn2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj2ubj2)}(h h]h }(hj{2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjj2ubh)}(hhh]j)}(hcredh]hcred}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2modnameN classnameNj] j` )}jc ]jf )}jY jT2sbc.security_cred_freeasbuh1hhjj2ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjj2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj2ubj)}(hcredh]hcred}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjf2ubah}(h]h ]h"]h$]h&]jjuh1jhj-2hhhj?2hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)2hhhj?2hM ubah}(h]j$2ah ](jjeh"]h$]h&]jj)jhuh1jhj?2hM hj&2hhubj)}(hhh]h)}(h1Free the cred's LSM blob and associated resourcesh]h3Free the cred’s LSM blob and associated resources}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2hhubah}(h]h ]h"]h$]h&]uh1jhj&2hhhj?2hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 3jj 3jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct cred *cred`` credentials **Description** Deallocate and clear the cred->security field in a set of credentials.h](h)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj 3ubj )}(hhh]j)}(h"``struct cred *cred`` credentials h](j)}(h``struct cred *cred``h]j)}(hj23h]hstruct cred *cred}(hj43hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj03ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj,3ubj2)}(hhh]h)}(h credentialsh]h credentials}(hjK3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG3hM hjH3ubah}(h]h ]h"]h$]h&]uh1j1hj,3ubeh}(h]h ]h"]h$]h&]uh1jhjG3hM hj)3ubah}(h]h ]h"]h$]h&]uh1j hj 3ubh)}(h**Description**h]j)}(hjm3h]h Description}(hjo3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj 3ubh)}(hFDeallocate and clear the cred->security field in a set of credentials.h]hFDeallocate and clear the cred->security field in a set of credentials.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj 3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_prepare_creds (C function)c.security_prepare_credshNtauh1hhj-hhhNhNubj)}(hhh](j)}(hPint security_prepare_creds (struct cred *new, const struct cred *old, gfp_t gfp)h]j)}(hOint security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp)h](j )}(hinth]hint}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM' ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3hhhj3hM' ubj{)}(hsecurity_prepare_credsh]j)}(hsecurity_prepare_credsh]hsecurity_prepare_creds}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhj3hM' ubj)}(h5(struct cred *new, const struct cred *old, gfp_t gfp)h](j)}(hstruct cred *newh](j)}(hj h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubh)}(hhh]j)}(hcredh]hcred}(hj 4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jf )}jY j3sbc.security_prepare_credsasbuh1hhj3ubj2)}(h h]h }(hj-4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hj;4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hnewh]hnew}(hjH4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hja4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]4ubj2)}(h h]h }(hjn4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]4ubj)}(hj h]hstruct}(hj|4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]4ubh)}(hhh]j)}(hcredh]hcred}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]j)4c.security_prepare_credsasbuh1hhj]4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]4ubj)}(holdh]hold}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]j)4c.security_prepare_credsasbuh1hhj4ubj2)}(h h]h }(hj 5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hgfph]hgfp}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hM' ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hM' ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhj3hM' hj3hhubj)}(hhh]h)}(h Prepare a new set of credentialsh]h Prepare a new set of credentials}(hjE5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM' hjB5hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hM' ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]5jj]5jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct cred *new`` new credentials ``const struct cred *old`` original credentials ``gfp_t gfp`` gfp flags **Description** Prepare a new set of credentials by copying the data from the old set. **Return** Returns 0 on success, negative values on failure.h](h)}(h**Parameters**h]j)}(hjg5h]h Parameters}(hji5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+ hja5ubj )}(hhh](j)}(h%``struct cred *new`` new credentials h](j)}(h``struct cred *new``h]j)}(hj5h]hstruct cred *new}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM( hj5ubj2)}(hhh]h)}(hnew credentialsh]hnew credentials}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM( hj5ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM( hj}5ubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hj5h]hconst struct cred *old}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM) hj5ubj2)}(hhh]h)}(horiginal credentialsh]horiginal credentials}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM) hj5ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM) hj}5ubj)}(h``gfp_t gfp`` gfp flags h](j)}(h ``gfp_t gfp``h]j)}(hj5h]h gfp_t gfp}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM* hj5ubj2)}(hhh]h)}(h gfp flagsh]h gfp flags}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 6hM* hj6ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj 6hM* hj}5ubeh}(h]h ]h"]h$]h&]uh1j hja5ubh)}(h**Description**h]j)}(hj36h]h Description}(hj56hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj16ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM, hja5ubh)}(hFPrepare a new set of credentials by copying the data from the old set.h]hFPrepare a new set of credentials by copying the data from the old set.}(hjI6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+ hja5ubh)}(h **Return**h]j)}(hjZ6h]hReturn}(hj\6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM- hja5ubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjp6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM. hja5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_transfer_creds (C function)c.security_transfer_credshNtauh1hhj-hhhNhNubj)}(hhh](j)}(hGvoid security_transfer_creds (struct cred *new, const struct cred *old)h]j)}(hFvoid security_transfer_creds(struct cred *new, const struct cred *old)h](j )}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6hhhj6hM> ubj{)}(hsecurity_transfer_credsh]j)}(hsecurity_transfer_credsh]hsecurity_transfer_creds}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6hhhj6hM> ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hj h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubh)}(hhh]j)}(hcredh]hcred}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6modnameN classnameNj] j` )}jc ]jf )}jY j6sbc.security_transfer_credsasbuh1hhj6ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hjh]h*}(hj(7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hnewh]hnew}(hj57hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjN7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ7ubj2)}(h h]h }(hj[7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ7ubj)}(hj h]hstruct}(hji7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ7ubj2)}(h h]h }(hjv7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ7ubh)}(hhh]j)}(hcredh]hcred}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]j7c.security_transfer_credsasbuh1hhjJ7ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ7ubj)}(holdh]hold}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhj6hM> ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhj6hM> ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1jhj6hM> hj6hhubj)}(hhh]h)}(hTransfer credsh]hTransfer creds}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> hj7hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hM> ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct cred *new`` target credentials ``const struct cred *old`` original credentials **Description** Transfer data from original creds to new creds.h](h)}(h**Parameters**h]j)}(hj 8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hj8ubj )}(hhh](j)}(h(``struct cred *new`` target credentials h](j)}(h``struct cred *new``h]j)}(hj+8h]hstruct cred *new}(hj-8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM? hj%8ubj2)}(hhh]h)}(htarget credentialsh]htarget credentials}(hjD8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@8hM? hjA8ubah}(h]h ]h"]h$]h&]uh1j1hj%8ubeh}(h]h ]h"]h$]h&]uh1jhj@8hM? hj"8ubj)}(h0``const struct cred *old`` original credentials h](j)}(h``const struct cred *old``h]j)}(hjd8h]hconst struct cred *old}(hjf8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@ hj^8ubj2)}(hhh]h)}(horiginal credentialsh]horiginal credentials}(hj}8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy8hM@ hjz8ubah}(h]h ]h"]h$]h&]uh1j1hj^8ubeh}(h]h ]h"]h$]h&]uh1jhjy8hM@ hj"8ubeh}(h]h ]h"]h$]h&]uh1j hj8ubh)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hj8ubh)}(h/Transfer data from original creds to new creds.h]h/Transfer data from original creds to new creds.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_kernel_act_as (C function)c.security_kernel_act_ashNtauh1hhj-hhhNhNubj)}(hhh](j)}(h8int security_kernel_act_as (struct cred *new, u32 secid)h]j)}(h7int security_kernel_act_as(struct cred *new, u32 secid)h](j )}(hinth]hint}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMh ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8hhhj8hMh ubj{)}(hsecurity_kernel_act_ash]j)}(hsecurity_kernel_act_ash]hsecurity_kernel_act_as}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhj8hMh ubj)}(h(struct cred *new, u32 secid)h](j)}(hstruct cred *newh](j)}(hj h]hstruct}(hj!9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hj.9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubh)}(hhh]j)}(hcredh]hcred}(hj?9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjA9modnameN classnameNj] j` )}jc ]jf )}jY j9sbc.security_kernel_act_asasbuh1hhj9ubj2)}(h h]h }(hj_9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hjm9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hnewh]hnew}(hjz9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(h u32 secidh](h)}(hhh]j)}(hu32h]hu32}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]j[9c.security_kernel_act_asasbuh1hhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hsecidh]hsecid}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hMh ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hMh ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jhj8hMh hj8hhubj)}(hhh]h)}(h*Set the kernel credentials to act as secidh]h*Set the kernel credentials to act as secid}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMh hj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMh ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct cred *new`` credentials ``u32 secid`` secid **Description** Set the credentials for a kernel service to act as (subjective context). The current task must be the one that nominated **secid**. **Return** Returns 0 if successful.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj :ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMl hj:ubj )}(hhh](j)}(h!``struct cred *new`` credentials h](j)}(h``struct cred *new``h]j)}(hj-:h]hstruct cred *new}(hj/:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMi hj':ubj2)}(hhh]h)}(h credentialsh]h credentials}(hjF:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB:hMi hjC:ubah}(h]h ]h"]h$]h&]uh1j1hj':ubeh}(h]h ]h"]h$]h&]uh1jhjB:hMi hj$:ubj)}(h``u32 secid`` secid h](j)}(h ``u32 secid``h]j)}(hjf:h]h u32 secid}(hjh:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMj hj`:ubj2)}(hhh]h)}(hsecidh]hsecid}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{:hMj hj|:ubah}(h]h ]h"]h$]h&]uh1j1hj`:ubeh}(h]h ]h"]h$]h&]uh1jhj{:hMj hj$:ubeh}(h]h ]h"]h$]h&]uh1j hj:ubh)}(h**Description**h]j)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMl hj:ubh)}(hSet the credentials for a kernel service to act as (subjective context). The current task must be the one that nominated **secid**.h](hySet the credentials for a kernel service to act as (subjective context). The current task must be the one that nominated }(hj:hhhNhNubj)}(h **secid**h]hsecid}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMk hj:ubh)}(h **Return**h]j)}(hj:h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMn hj:ubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMo hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,security_kernel_create_files_as (C function)!c.security_kernel_create_files_ashNtauh1hhj-hhhNhNubj)}(hhh](j)}(hKint security_kernel_create_files_as (struct cred *new, struct inode *inode)h]j)}(hJint security_kernel_create_files_as(struct cred *new, struct inode *inode)h](j )}(hinth]hint}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw ubj2)}(h h]h }(hj.;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;hhhj-;hMw ubj{)}(hsecurity_kernel_create_files_ash]j)}(hsecurity_kernel_create_files_ash]hsecurity_kernel_create_files_as}(hj@;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;hhhj-;hMw ubj)}(h'(struct cred *new, struct inode *inode)h](j)}(hstruct cred *newh](j)}(hj h]hstruct}(hj\;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX;ubj2)}(h h]h }(hji;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjX;ubh)}(hhh]j)}(hcredh]hcred}(hjz;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw;ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|;modnameN classnameNj] j` )}jc ]jf )}jY jB;sb!c.security_kernel_create_files_asasbuh1hhjX;ubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjX;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX;ubj)}(hnewh]hnew}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjT;ubj)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubh)}(hhh]j)}(hinodeh]hinode}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;modnameN classnameNj] j` )}jc ]j;!c.security_kernel_create_files_asasbuh1hhj;ubj2)}(h h]h }(hj <hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hinodeh]hinode}(hj%<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjT;ubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhj-;hMw ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhj-;hMw ubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1jhj-;hMw hj;hhubj)}(hhh]h)}(h(Set file creation context using an inodeh]h(Set file creation context using an inode}(hjO<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw hjL<hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj-;hMw ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjg<jjg<jjjuh1jhhhj-hNhNubj)}(hXN**Parameters** ``struct cred *new`` target credentials ``struct inode *inode`` reference inode **Description** Set the file creation context in a set of credentials to be the same as the objective context of the specified inode. The current task must be the one that nominated **inode**. **Return** Returns 0 if successful.h](h)}(h**Parameters**h]j)}(hjq<h]h Parameters}(hjs<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo<ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{ hjk<ubj )}(hhh](j)}(h(``struct cred *new`` target credentials h](j)}(h``struct cred *new``h]j)}(hj<h]hstruct cred *new}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hj<ubj2)}(hhh]h)}(htarget credentialsh]htarget credentials}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMx hj<ubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMx hj<ubj)}(h(``struct inode *inode`` reference inode h](j)}(h``struct inode *inode``h]j)}(hj<h]hstruct inode *inode}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMy hj<ubj2)}(hhh]h)}(hreference inodeh]hreference inode}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMy hj<ubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMy hj<ubeh}(h]h ]h"]h$]h&]uh1j hjk<ubh)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{ hjk<ubh)}(hSet the file creation context in a set of credentials to be the same as the objective context of the specified inode. The current task must be the one that nominated **inode**.h](hSet the file creation context in a set of credentials to be the same as the objective context of the specified inode. The current task must be the one that nominated }(hj=hhhNhNubj)}(h **inode**h]hinode}(hj"=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMz hjk<ubh)}(h **Return**h]j)}(hj==h]hReturn}(hj?=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;=ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~ hjk<ubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hjS=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjk<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +security_kernel_module_request (C function) c.security_kernel_module_requesthNtauh1hhj-hhhNhNubj)}(hhh](j)}(h4int security_kernel_module_request (char *kmod_name)h]j)}(h3int security_kernel_module_request(char *kmod_name)h](j )}(hinth]hint}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~=hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~=hhhj=hM ubj{)}(hsecurity_kernel_module_requesth]j)}(hsecurity_kernel_module_requesth]hsecurity_kernel_module_request}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~=hhhj=hM ubj)}(h(char *kmod_name)h]j)}(hchar *kmod_nameh](j )}(hcharh]hchar}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(h kmod_nameh]h kmod_name}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(h]h ]h"]h$]h&]jjuh1jhj~=hhhj=hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjz=hhhj=hM ubah}(h]ju=ah ](jjeh"]h$]h&]jj)jhuh1jhj=hM hjw=hhubj)}(hhh]h)}(h$Check if loading a module is allowedh]h$Check if loading a module is allowed}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj>hhubah}(h]h ]h"]h$]h&]uh1jhjw=hhhj=hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*>jj*>jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``char *kmod_name`` module name **Description** Ability to trigger the kernel to automatically upcall to userspace for userspace to load a kernel module with the given name. **Return** Returns 0 if successful.h](h)}(h**Parameters**h]j)}(hj4>h]h Parameters}(hj6>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj.>ubj )}(hhh]j)}(h ``char *kmod_name`` module name h](j)}(h``char *kmod_name``h]j)}(hjS>h]hchar *kmod_name}(hjU>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjM>ubj2)}(hhh]h)}(h module nameh]h module name}(hjl>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh>hM hji>ubah}(h]h ]h"]h$]h&]uh1j1hjM>ubeh}(h]h ]h"]h$]h&]uh1jhjh>hM hjJ>ubah}(h]h ]h"]h$]h&]uh1j hj.>ubh)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj.>ubh)}(h}Ability to trigger the kernel to automatically upcall to userspace for userspace to load a kernel module with the given name.h]h}Ability to trigger the kernel to automatically upcall to userspace for userspace to load a kernel module with the given name.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj.>ubh)}(h **Return**h]j)}(hj>h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj.>ubh)}(hReturns 0 if successful.h]hReturns 0 if successful.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj.>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_task_fix_setuid (C function)c.security_task_fix_setuidhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hRint security_task_fix_setuid (struct cred *new, const struct cred *old, int flags)h]j)}(hQint security_task_fix_setuid(struct cred *new, const struct cred *old, int flags)h](j )}(hinth]hint}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj ?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>hhhj?hM ubj{)}(hsecurity_task_fix_setuidh]j)}(hsecurity_task_fix_setuidh]hsecurity_task_fix_setuid}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhj?hM ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hj h]hstruct}(hj7?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3?ubj2)}(h h]h }(hjD?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3?ubh)}(hhh]j)}(hcredh]hcred}(hjU?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR?ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjW?modnameN classnameNj] j` )}jc ]jf )}jY j?sbc.security_task_fix_setuidasbuh1hhj3?ubj2)}(h h]h }(hju?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3?ubj)}(hnewh]hnew}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/?ubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hj h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubh)}(hhh]j)}(hcredh]hcred}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jq?c.security_task_fix_setuidasbuh1hhj?ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(holdh]hold}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/?ubj)}(h int flagsh](j )}(hinth]hint}(hj4@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0@ubj2)}(h h]h }(hjB@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0@ubj)}(hflagsh]hflags}(hjP@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/?ubeh}(h]h ]h"]h$]h&]jjuh1jhj>hhhj?hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj?hM ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhj?hM hj>hhubj)}(hhh]h)}(h&Update LSM with new user id attributesh]h&Update LSM with new user id attributes}(hjz@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjw@hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj?hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct cred *new`` updated credentials ``const struct cred *old`` credentials being replaced ``int flags`` LSM_SETID_* flag values **Description** Update the module's state after setting one or more of the user identity attributes of the current process. The **flags** parameter indicates which of the set*uid system calls invoked this hook. If **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@ubj )}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hj@h]hstruct cred *new}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@ubj2)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM hj@ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hM hj@ubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hj@h]hconst struct cred *old}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@ubj2)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj AhM hj Aubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj AhM hj@ubj)}(h&``int flags`` LSM_SETID_* flag values h](j)}(h ``int flags``h]j)}(hj-Ah]h int flags}(hj/AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Aubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj'Aubj2)}(hhh]h)}(hLSM_SETID_* flag valuesh]hLSM_SETID_* flag values}(hjFAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBAhM hjCAubah}(h]h ]h"]h$]h&]uh1j1hj'Aubeh}(h]h ]h"]h$]h&]uh1jhjBAhM hj@ubeh}(h]h ]h"]h$]h&]uh1j hj@ubh)}(h**Description**h]j)}(hjhAh]h Description}(hjjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@ubh)}(hXIUpdate the module's state after setting one or more of the user identity attributes of the current process. The **flags** parameter indicates which of the set*uid system calls invoked this hook. If **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**.h](hsUpdate the module’s state after setting one or more of the user identity attributes of the current process. The }(hj~AhhhNhNubj)}(h **flags**h]hflags}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~AubhN parameter indicates which of the set*uid system calls invoked this hook. If }(hj~AhhhNhNubj)}(h**new**h]hnew}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Aubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hj~AhhhNhNubj)}(h**current->cred**h]h current->cred}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Aubh.}(hj~AhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@ubh)}(h **Return**h]j)}(hjAh]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@ubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_task_fix_setgid (C function)c.security_task_fix_setgidhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hRint security_task_fix_setgid (struct cred *new, const struct cred *old, int flags)h]j)}(hQint security_task_fix_setgid(struct cred *new, const struct cred *old, int flags)h](j )}(hinth]hint}(hj BhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBhhhjBhM ubj{)}(hsecurity_task_fix_setgidh]j)}(hsecurity_task_fix_setgidh]hsecurity_task_fix_setgid}(hj+BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Bubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjBhM ubj)}(h5(struct cred *new, const struct cred *old, int flags)h](j)}(hstruct cred *newh](j)}(hj h]hstruct}(hjGBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCBubj2)}(h h]h }(hjTBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCBubh)}(hhh]j)}(hcredh]hcred}(hjeBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbBubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgBmodnameN classnameNj] j` )}jc ]jf )}jY j-Bsbc.security_task_fix_setgidasbuh1hhjCBubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCBubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCBubj)}(hnewh]hnew}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?Bubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hj h]hstruct}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubh)}(hhh]j)}(hcredh]hcred}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjBmodnameN classnameNj] j` )}jc ]jBc.security_task_fix_setgidasbuh1hhjBubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(holdh]hold}(hj+ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?Bubj)}(h int flagsh](j )}(hinth]hint}(hjDChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@Cubj2)}(h h]h }(hjRChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@Cubj)}(hflagsh]hflags}(hj`ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?Bubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjBhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjBhM ubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jhjBhM hjAhhubj)}(hhh]h)}(h'Update LSM with new group id attributesh]h'Update LSM with new group id attributes}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjChhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjBhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct cred *new`` updated credentials ``const struct cred *old`` credentials being replaced ``int flags`` LSM_SETID_* flag value **Description** Update the module's state after setting one or more of the group identity attributes of the current process. The **flags** parameter indicates which of the set*gid system calls invoked this hook. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCubj )}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjCh]hstruct cred *new}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCubj2)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM hjCubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhjChM hjCubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hjDh]hconst struct cred *old}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCubj2)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhM hjDubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhjDhM hjCubj)}(h%``int flags`` LSM_SETID_* flag value h](j)}(h ``int flags``h]j)}(hj=Dh]h int flags}(hj?DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Dubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj7Dubj2)}(hhh]h)}(hLSM_SETID_* flag valueh]hLSM_SETID_* flag value}(hjVDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRDhM hjSDubah}(h]h ]h"]h$]h&]uh1j1hj7Dubeh}(h]h ]h"]h$]h&]uh1jhjRDhM hjCubeh}(h]h ]h"]h$]h&]uh1j hjCubh)}(h**Description**h]j)}(hjxDh]h Description}(hjzDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCubh)}(hXGUpdate the module's state after setting one or more of the group identity attributes of the current process. The **flags** parameter indicates which of the set*gid system calls invoked this hook. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**.h](htUpdate the module’s state after setting one or more of the group identity attributes of the current process. The }(hjDhhhNhNubj)}(h **flags**h]hflags}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubhK parameter indicates which of the set*gid system calls invoked this hook. }(hjDhhhNhNubj)}(h**new**h]hnew}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hjDhhhNhNubj)}(h**current->cred**h]h current->cred}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCubh)}(h **Return**h]j)}(hjDh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_task_fix_setgroups (C function)c.security_task_fix_setgroupshNtauh1hhj-hhhNhNubj)}(hhh](j)}(hJint security_task_fix_setgroups (struct cred *new, const struct cred *old)h]j)}(hIint security_task_fix_setgroups(struct cred *new, const struct cred *old)h](j )}(hinth]hint}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj)EhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEhhhj(EhM ubj{)}(hsecurity_task_fix_setgroupsh]j)}(hsecurity_task_fix_setgroupsh]hsecurity_task_fix_setgroups}(hj;EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Eubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhj(EhM ubj)}(h*(struct cred *new, const struct cred *old)h](j)}(hstruct cred *newh](j)}(hj h]hstruct}(hjWEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSEubj2)}(h h]h }(hjdEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSEubh)}(hhh]j)}(hcredh]hcred}(hjuEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrEubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjwEmodnameN classnameNj] j` )}jc ]jf )}jY j=Esbc.security_task_fix_setgroupsasbuh1hhjSEubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSEubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSEubj)}(hnewh]hnew}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOEubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hj h]hstruct}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubh)}(hhh]j)}(hcredh]hcred}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjFmodnameN classnameNj] j` )}jc ]jEc.security_task_fix_setgroupsasbuh1hhjEubj2)}(h h]h }(hj FhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hjh]h*}(hj.FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(holdh]hold}(hj;FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOEubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhj(EhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj(EhM ubah}(h]j Eah ](jjeh"]h$]h&]jj)jhuh1jhj(EhM hjEhhubj)}(hhh]h)}(h(Update LSM with new supplementary groupsh]h(Update LSM with new supplementary groups}(hjeFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjbFhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj(EhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}Fjj}Fjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct cred *new`` updated credentials ``const struct cred *old`` credentials being replaced **Description** Update the module's state after setting the supplementary group identity attributes of the current process. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**. **Return** Returns 0 on success.h](h)}(h**Parameters**h]j)}(hjFh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h& ]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjFubj )}(hhh](j)}(h)``struct cred *new`` updated credentials h](j)}(h``struct cred *new``h]j)}(hjFh]hstruct cred *new}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjFubj2)}(hhh]h)}(hupdated credentialsh]hupdated credentials}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjFubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjFhM hjFubj)}(h6``const struct cred *old`` credentials being replaced h](j)}(h``const struct cred *old``h]j)}(hjFh]hconst struct cred *old}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjFubj2)}(hhh]h)}(hcredentials being replacedh]hcredentials being replaced}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjFubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjFhM hjFubeh}(h]h ]h"]h$]h&]uh1j hjFubh)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjFubh)}(hUpdate the module's state after setting the supplementary group identity attributes of the current process. **new** is the set of credentials that will be installed. Modifications should be made to this rather than to **current->cred**.h](hoUpdate the module’s state after setting the supplementary group identity attributes of the current process. }(hj0GhhhNhNubj)}(h**new**h]hnew}(hj8GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Gubhh is the set of credentials that will be installed. Modifications should be made to this rather than to }(hj0GhhhNhNubj)}(h**current->cred**h]h current->cred}(hjJGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Gubh.}(hj0GhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjFubh)}(h **Return**h]j)}(hjeGh]hReturn}(hjgGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjFubh)}(hReturns 0 on success.h]hReturns 0 on success.}(hj{GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_task_setpgid (C function)c.security_task_setpgidhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h=int security_task_setpgid (struct task_struct *p, pid_t pgid)h]j)}(hah"]h$]h&]uh1j1hjGhhhjGhM ubj{)}(hsecurity_task_setpgidh]j)}(hsecurity_task_setpgidh]hsecurity_task_setpgid}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjGhM ubj)}(h#(struct task_struct *p, pid_t pgid)h](j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubh)}(hhh]j)}(h task_structh]h task_struct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]jf )}jY jGsbc.security_task_setpgidasbuh1hhjGubj2)}(h h]h }(hj%HhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hj3HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hjh]hp}(hj@HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(h pid_t pgidh](h)}(hhh]j)}(hpid_th]hpid_t}(hj[HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj]HmodnameN classnameNj] j` )}jc ]j!Hc.security_task_setpgidasbuh1hhjTHubj2)}(h h]h }(hjyHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTHubj)}(hpgidh]hpgid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjGhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjGhhhjGhM ubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1jhjGhM hjGhhubj)}(hhh]h)}(h$Check if setting the pgid is allowedh]h$Check if setting the pgid is allowed}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *p`` task being modified ``pid_t pgid`` new pgid **Description** Check permission before setting the process group identifier of the process **p** to **pgid**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHubj )}(hhh](j)}(h.``struct task_struct *p`` task being modified h](j)}(h``struct task_struct *p``h]j)}(hjHh]hstruct task_struct *p}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHubj2)}(hhh]h)}(htask being modifiedh]htask being modified}(hj IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM hjIubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjIhM hjHubj)}(h``pid_t pgid`` new pgid h](j)}(h``pid_t pgid``h]j)}(hj+Ih]h pid_t pgid}(hj-IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Iubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj%Iubj2)}(hhh]h)}(hnew pgidh]hnew pgid}(hjDIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@IhM hjAIubah}(h]h ]h"]h$]h&]uh1j1hj%Iubeh}(h]h ]h"]h$]h&]uh1jhj@IhM hjHubeh}(h]h ]h"]h$]h&]uh1j hjHubh)}(h**Description**h]j)}(hjfIh]h Description}(hjhIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHubh)}(h^Check permission before setting the process group identifier of the process **p** to **pgid**.h](hLCheck permission before setting the process group identifier of the process }(hj|IhhhNhNubj)}(h**p**h]hp}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Iubh to }(hj|IhhhNhNubj)}(h**pgid**h]hpgid}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Iubh.}(hj|IhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHubh)}(h **Return**h]j)}(hjIh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_task_getpgid (C function)c.security_task_getpgidhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h1int security_task_getpgid (struct task_struct *p)h]j)}(h0int security_task_getpgid(struct task_struct *p)h](j )}(hinth]hint}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM' ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIhhhjJhM' ubj{)}(hsecurity_task_getpgidh]j)}(hsecurity_task_getpgidh]hsecurity_task_getpgid}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIhhhjJhM' ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hj3JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Jubj2)}(h h]h }(hj@JhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/Jubh)}(hhh]j)}(h task_structh]h task_struct}(hjQJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSJmodnameN classnameNj] j` )}jc ]jf )}jY jJsbc.security_task_getpgidasbuh1hhj/Jubj2)}(h h]h }(hjqJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/Jubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Jubj)}(hjh]hp}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Jubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+Jubah}(h]h ]h"]h$]h&]jjuh1jhjIhhhjJhM' ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjJhM' ubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jhjJhM' hjIhhubj)}(hhh]h)}(h$Check if getting the pgid is allowedh]h$Check if getting the pgid is allowed}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM' hjJhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjJhM' ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *p`` task **Description** Check permission before getting the process group identifier of the process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+ hjJubj )}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjJh]hstruct task_struct *p}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM( hjJubj2)}(hhh]h)}(htaskh]htask}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj KhM( hj Kubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhj KhM( hjJubah}(h]h ]h"]h$]h&]uh1j hjJubh)}(h**Description**h]j)}(hj1Kh]h Description}(hj3KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/Kubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM* hjJubh)}(hRCheck permission before getting the process group identifier of the process **p**.h](hLCheck permission before getting the process group identifier of the process }(hjGKhhhNhNubj)}(h**p**h]hp}(hjOKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGKubh.}(hjGKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM) hjJubh)}(h **Return**h]j)}(hjjKh]hReturn}(hjlKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM, hjJubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM- hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_task_getsid (C function)c.security_task_getsidhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h0int security_task_getsid (struct task_struct *p)h]j)}(h/int security_task_getsid(struct task_struct *p)h](j )}(hinth]hint}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5 ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKhhhjKhM5 ubj{)}(hsecurity_task_getsidh]j)}(hsecurity_task_getsidh]hsecurity_task_getsid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjKhhhjKhM5 ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubh)}(hhh]j)}(h task_structh]h task_struct}(hj LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj LmodnameN classnameNj] j` )}jc ]jf )}jY jKsbc.security_task_getsidasbuh1hhjKubj2)}(h h]h }(hj*LhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKubj)}(hjh]h*}(hj8LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj)}(hjh]hp}(hjELhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubah}(h]h ]h"]h$]h&]jjuh1jhjKhhhjKhM5 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjKhM5 ubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1jhjKhM5 hjKhhubj)}(hhh]h)}(h*Check if getting the session id is allowedh]h*Check if getting the session id is allowed}(hjnLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5 hjkLhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjKhM5 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLjjLjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *p`` task **Description** Check permission before getting the session identifier of the process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9 hjLubj )}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjLh]hstruct task_struct *p}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6 hjLubj2)}(hhh]h)}(htaskh]htask}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM6 hjLubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhM6 hjLubah}(h]h ]h"]h$]h&]uh1j hjLubh)}(h**Description**h]j)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8 hjLubh)}(hLCheck permission before getting the session identifier of the process **p**.h](hFCheck permission before getting the session identifier of the process }(hjMhhhNhNubj)}(h**p**h]hp}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7 hjLubh)}(h **Return**h]j)}(hj#Mh]hReturn}(hj%MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Mubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9 hjLubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj9MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM: hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_task_setnice (C function)c.security_task_setnicehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h;int security_task_setnice (struct task_struct *p, int nice)h]j)}(h:int security_task_setnice(struct task_struct *p, int nice)h](j )}(hinth]hint}(hjhMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdMhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_ ubj2)}(h h]h }(hjwMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdMhhhjvMhM_ ubj{)}(hsecurity_task_setniceh]j)}(hsecurity_task_setniceh]hsecurity_task_setnice}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdMhhhjvMhM_ ubj)}(h!(struct task_struct *p, int nice)h](j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubh)}(hhh]j)}(h task_structh]h task_struct}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jf )}jY jMsbc.security_task_setniceasbuh1hhjMubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hjh]hp}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hint niceh](j )}(hinth]hint}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNubj2)}(h h]h }(hj$NhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hniceh]hnice}(hj2NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjdMhhhjvMhM_ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`MhhhjvMhM_ ubah}(h]j[Mah ](jjeh"]h$]h&]jj)jhuh1jhjvMhM_ hj]Mhhubj)}(hhh]h)}(h/Check if setting a task's nice value is allowedh]h1Check if setting a task’s nice value is allowed}(hj\NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_ hjYNhhubah}(h]h ]h"]h$]h&]uh1jhj]MhhhjvMhM_ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtNjjtNjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *p`` target task ``int nice`` nice value **Description** Check permission before setting the nice value of **p** to **nice**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj~Nh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|Nubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMc hjxNubj )}(hhh](j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjNh]hstruct task_struct *p}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` hjNubj2)}(hhh]h)}(h target taskh]h target task}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM` hjNubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjNhM` hjNubj)}(h``int nice`` nice value h](j)}(h ``int nice``h]j)}(hjNh]hint nice}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hjNubj2)}(hhh]h)}(h nice valueh]h nice value}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMa hjNubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMa hjNubeh}(h]h ]h"]h$]h&]uh1j hjxNubh)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMc hjxNubh)}(hDCheck permission before setting the nice value of **p** to **nice**.h](h2Check permission before setting the nice value of }(hj'OhhhNhNubj)}(h**p**h]hp}(hj/OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Oubh to }(hj'OhhhNhNubj)}(h**nice**h]hnice}(hjAOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Oubh.}(hj'OhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hjxNubh)}(h **Return**h]j)}(hj\Oh]hReturn}(hj^OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZOubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hjxNubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjrOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMe hjxNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_task_setioprio (C function)c.security_task_setiopriohNtauh1hhj-hhhNhNubj)}(hhh](j)}(h?int security_task_setioprio (struct task_struct *p, int ioprio)h]j)}(h>int security_task_setioprio(struct task_struct *p, int ioprio)h](j )}(hinth]hint}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMm ubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOhhhjOhMm ubj{)}(hsecurity_task_setioprioh]j)}(hsecurity_task_setioprioh]hsecurity_task_setioprio}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhjOhMm ubj)}(h#(struct task_struct *p, int ioprio)h](j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubh)}(hhh]j)}(h task_structh]h task_struct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jf )}jY jOsbc.security_task_setioprioasbuh1hhjOubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hj*PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hjh]hp}(hj7PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(h int ioprioh](j )}(hinth]hint}(hjOPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjKPubj2)}(h h]h }(hj]PhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKPubj)}(hioprioh]hioprio}(hjkPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjOhMm ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjOhMm ubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1jhjOhMm hjOhhubj)}(hhh]h)}(h+Check if setting a task's ioprio is allowedh]h-Check if setting a task’s ioprio is allowed}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMm hjPhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjOhMm ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *p`` target task ``int ioprio`` ioprio value **Description** Check permission before setting the ioprio value of **p** to **ioprio**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq hjPubj )}(hhh](j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjPh]hstruct task_struct *p}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMn hjPubj2)}(hhh]h)}(h target taskh]h target task}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMn hjPubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMn hjPubj)}(h``int ioprio`` ioprio value h](j)}(h``int ioprio``h]j)}(hjQh]h int ioprio}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Qubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMo hj Qubj2)}(hhh]h)}(h ioprio valueh]h ioprio value}(hj(QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$QhMo hj%Qubah}(h]h ]h"]h$]h&]uh1j1hj Qubeh}(h]h ]h"]h$]h&]uh1jhj$QhMo hjPubeh}(h]h ]h"]h$]h&]uh1j hjPubh)}(h**Description**h]j)}(hjJQh]h Description}(hjLQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMq hjPubh)}(hHCheck permission before setting the ioprio value of **p** to **ioprio**.h](h4Check permission before setting the ioprio value of }(hj`QhhhNhNubj)}(h**p**h]hp}(hjhQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Qubh to }(hj`QhhhNhNubj)}(h **ioprio**h]hioprio}(hjzQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Qubh.}(hj`QhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMp hjPubh)}(h **Return**h]j)}(hjQh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMr hjPubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMs hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_task_getioprio (C function)c.security_task_getiopriohNtauh1hhj-hhhNhNubj)}(hhh](j)}(h3int security_task_getioprio (struct task_struct *p)h]j)}(h2int security_task_getioprio(struct task_struct *p)h](j )}(hinth]hint}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{ ubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQhhhjQhM{ ubj{)}(hsecurity_task_getioprioh]j)}(hsecurity_task_getioprioh]hsecurity_task_getioprio}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQhhhjQhM{ ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hj$RhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubh)}(hhh]j)}(h task_structh]h task_struct}(hj5RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Rubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7RmodnameN classnameNj] j` )}jc ]jf )}jY jQsbc.security_task_getioprioasbuh1hhjRubj2)}(h h]h }(hjURhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hjcRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hjh]hp}(hjpRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubah}(h]h ]h"]h$]h&]jjuh1jhjQhhhjQhM{ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjQhM{ ubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1jhjQhM{ hjQhhubj)}(hhh]h)}(h+Check if getting a task's ioprio is allowedh]h-Check if getting a task’s ioprio is allowed}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{ hjRhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjQhM{ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *p`` task **Description** Check permission before getting the ioprio value of **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjRubj )}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjRh]hstruct task_struct *p}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM| hjRubj2)}(hhh]h)}(htaskh]htask}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM| hjRubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjRhM| hjRubah}(h]h ]h"]h$]h&]uh1j hjRubh)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM~ hjRubh)}(h:Check permission before getting the ioprio value of **p**.h](h4Check permission before getting the ioprio value of }(hj+ShhhNhNubj)}(h**p**h]hp}(hj3ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Subh.}(hj+ShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM} hjRubh)}(h **Return**h]j)}(hjNSh]hReturn}(hjPShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjRubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjdShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_task_prlimit (C function)c.security_task_prlimithNtauh1hhj-hhhNhNubj)}(hhh](j)}(haint security_task_prlimit (const struct cred *cred, const struct cred *tcred, unsigned int flags)h]j)}(h`int security_task_prlimit(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](j )}(hinth]hint}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjShhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjShhhjShM ubj{)}(hsecurity_task_prlimith]j)}(hsecurity_task_prlimith]hsecurity_task_prlimit}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjShhhjShM ubj)}(hG(const struct cred *cred, const struct cred *tcred, unsigned int flags)h](j)}(hconst struct cred *credh](j)}(hjh]hconst}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hj h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubh)}(hhh]j)}(hcredh]hcred}(hj ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj TmodnameN classnameNj] j` )}jc ]jf )}jY jSsbc.security_task_prlimitasbuh1hhjSubj2)}(h h]h }(hj)ThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hjh]h*}(hj7ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hcredh]hcred}(hjDThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hconst struct cred *tcredh](j)}(hjh]hconst}(hj]ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYTubj2)}(h h]h }(hjjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYTubj)}(hj h]hstruct}(hjxThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYTubh)}(hhh]j)}(hcredh]hcred}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTmodnameN classnameNj] j` )}jc ]j%Tc.security_task_prlimitasbuh1hhjYTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYTubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYTubj)}(htcredh]htcred}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj )}(hinth]hint}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hflagsh]hflags}(hj UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjShM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjShM ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jhjShM hjShhubj)}(hhh]h)}(h0Check if get/setting resources limits is allowedh]h0Check if get/setting resources limits is allowed}(hjJUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjGUhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjShM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbUjjbUjjjuh1jhhhj-hNhNubj)}(hXa**Parameters** ``const struct cred *cred`` current task credentials ``const struct cred *tcred`` target task credentials ``unsigned int flags`` LSM_PRLIMIT_* flag bits indicating a get/set/both **Description** Check permission before getting and/or setting the resource limits of another task. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjlUh]h Parameters}(hjnUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjUubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjfUubj )}(hhh](j)}(h5``const struct cred *cred`` current task credentials h](j)}(h``const struct cred *cred``h]j)}(hjUh]hconst struct cred *cred}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUubj2)}(hhh]h)}(hcurrent task credentialsh]hcurrent task credentials}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM hjUubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM hjUubj)}(h5``const struct cred *tcred`` target task credentials h](j)}(h``const struct cred *tcred``h]j)}(hjUh]hconst struct cred *tcred}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUubj2)}(hhh]h)}(htarget task credentialsh]htarget task credentials}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM hjUubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhM hjUubj)}(hI``unsigned int flags`` LSM_PRLIMIT_* flag bits indicating a get/set/both h](j)}(h``unsigned int flags``h]j)}(hjUh]hunsigned int flags}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUubj2)}(hhh]h)}(h1LSM_PRLIMIT_* flag bits indicating a get/set/bothh]h1LSM_PRLIMIT_* flag bits indicating a get/set/both}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhM hjVubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjVhM hjUubeh}(h]h ]h"]h$]h&]uh1j hjfUubh)}(h**Description**h]j)}(hj8Vh]h Description}(hj:VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Vubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjfUubh)}(hSCheck permission before getting and/or setting the resource limits of another task.h]hSCheck permission before getting and/or setting the resource limits of another task.}(hjNVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjfUubh)}(h **Return**h]j)}(hj_Vh]hReturn}(hjaVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Vubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjfUubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjuVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjfUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_task_setrlimit (C function)c.security_task_setrlimithNtauh1hhj-hhhNhNubj)}(hhh](j)}(hcint security_task_setrlimit (struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h]j)}(hbint security_task_setrlimit(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVhhhjVhM ubj{)}(hsecurity_task_setrlimith]j)}(hsecurity_task_setrlimith]hsecurity_task_setrlimit}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjVhM ubj)}(hG(struct task_struct *p, unsigned int resource, struct rlimit *new_rlim)h](j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubh)}(hhh]j)}(h task_structh]h task_struct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]jf )}jY jVsbc.security_task_setrlimitasbuh1hhjVubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]h*}(hj-WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hjh]hp}(hj:WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hunsigned int resourceh](j )}(hunsignedh]hunsigned}(hjRWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNWubj2)}(h h]h }(hj`WhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNWubj )}(hinth]hint}(hjnWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNWubj2)}(h h]h }(hj|WhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNWubj)}(hresourceh]hresource}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hstruct rlimit *new_rlimh](j)}(hj h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubh)}(hhh]j)}(hrlimith]hrlimit}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]jWc.security_task_setrlimitasbuh1hhjWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hnew_rlimh]hnew_rlim}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjVhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjVhM ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1jhjVhM hjVhhubj)}(hhh]h)}(h.Check if setting a new rlimit value is allowedh]h.Check if setting a new rlimit value is allowed}(hj$XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!Xhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjVhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsignal->rlim + resource). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjFXh]h Parameters}(hjHXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@Xubj )}(hhh](j)}(h5``struct task_struct *p`` target task's group leader h](j)}(h``struct task_struct *p``h]j)}(hjeXh]hstruct task_struct *p}(hjgXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj_Xubj2)}(hhh]h)}(htarget task's group leaderh]htarget task’s group leader}(hj~XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzXhM hj{Xubah}(h]h ]h"]h$]h&]uh1j1hj_Xubeh}(h]h ]h"]h$]h&]uh1jhjzXhM hj\Xubj)}(h<``unsigned int resource`` resource whose limit is being set h](j)}(h``unsigned int resource``h]j)}(hjXh]hunsigned int resource}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjXubj2)}(hhh]h)}(h!resource whose limit is being seth]h!resource whose limit is being set}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM hjXubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjXhM hj\Xubj)}(h/``struct rlimit *new_rlim`` new resource limit h](j)}(h``struct rlimit *new_rlim``h]j)}(hjXh]hstruct rlimit *new_rlim}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjXubj2)}(hhh]h)}(hnew resource limith]hnew resource limit}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM hjXubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjXhM hj\Xubeh}(h]h ]h"]h$]h&]uh1j hj@Xubh)}(h**Description**h]j)}(hjYh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@Xubh)}(hCheck permission before setting the resource limits of process **p** for **resource** to **new_rlim**. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).h](h?Check permission before setting the resource limits of process }(hj(YhhhNhNubj)}(h**p**h]hp}(hj0YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Yubh for }(hj(YhhhNhNubj)}(h **resource**h]hresource}(hjBYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Yubh to }(hj(YhhhNhNubj)}(h **new_rlim**h]hnew_rlim}(hjTYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Yubh_. The old resource limit values can be examined by dereferencing (p->signal->rlim + resource).}(hj(YhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@Xubh)}(h **Return**h]j)}(hjoYh]hReturn}(hjqYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@Xubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj@Xubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_task_setscheduler (C function)c.security_task_setschedulerhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h6int security_task_setscheduler (struct task_struct *p)h]j)}(h5int security_task_setscheduler(struct task_struct *p)h](j )}(hinth]hint}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYhhhjYhM ubj{)}(hsecurity_task_setschedulerh]j)}(hsecurity_task_setschedulerh]hsecurity_task_setscheduler}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYhhhjYhM ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubh)}(hhh]j)}(h task_structh]h task_struct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Zubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjZmodnameN classnameNj] j` )}jc ]jf )}jY jYsbc.security_task_setschedulerasbuh1hhjYubj2)}(h h]h }(hj/ZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hj=ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hjh]hp}(hjJZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhM ubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1jhjYhM hjYhhubj)}(hhh]h)}(h.Check if setting sched policy/param is allowedh]h.Check if setting sched policy/param is allowed}(hjsZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjpZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *p`` target task **Description** Check permission before setting scheduling policy and/or parameters of process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjZubj )}(hhh]j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjZh]hstruct task_struct *p}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjZubj2)}(hhh]h)}(h target taskh]h target task}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhM hjZubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjZhM hjZubah}(h]h ]h"]h$]h&]uh1j hjZubh)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjZubh)}(hUCheck permission before setting scheduling policy and/or parameters of process **p**.h](hOCheck permission before setting scheduling policy and/or parameters of process }(hj[hhhNhNubj)}(h**p**h]hp}(hj [hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjZubh)}(h **Return**h]j)}(hj([h]hReturn}(hj*[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&[ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjZubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj>[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_task_getscheduler (C function)c.security_task_getschedulerhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h6int security_task_getscheduler (struct task_struct *p)h]j)}(h5int security_task_getscheduler(struct task_struct *p)h](j )}(hinth]hint}(hjm[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhji[hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj|[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hji[hhhj{[hM ubj{)}(hsecurity_task_getschedulerh]j)}(hsecurity_task_getschedulerh]hsecurity_task_getscheduler}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhji[hhhj{[hM ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubh)}(hhh]j)}(h task_structh]h task_struct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[modnameN classnameNj] j` )}jc ]jf )}jY j[sbc.security_task_getschedulerasbuh1hhj[ubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hjh]hp}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubah}(h]h ]h"]h$]h&]jjuh1jhji[hhhj{[hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhje[hhhj{[hM ubah}(h]j`[ah ](jjeh"]h$]h&]jj)jhuh1jhj{[hM hjb[hhubj)}(hhh]h)}(h+Check if getting scheduling info is allowedh]h+Check if getting scheduling info is allowed}(hj,\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj)\hhubah}(h]h ]h"]h$]h&]uh1jhjb[hhhj{[hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjD\jjD\jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *p`` target task **Description** Check permission before obtaining scheduling information for process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjN\h]h Parameters}(hjP\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL\ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjH\ubj )}(hhh]j)}(h&``struct task_struct *p`` target task h](j)}(h``struct task_struct *p``h]j)}(hjm\h]hstruct task_struct *p}(hjo\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjg\ubj2)}(hhh]h)}(h target taskh]h target task}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hM hj\ubah}(h]h ]h"]h$]h&]uh1j1hjg\ubeh}(h]h ]h"]h$]h&]uh1jhj\hM hjd\ubah}(h]h ]h"]h$]h&]uh1j hjH\ubh)}(h**Description**h]j)}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjH\ubh)}(hKCheck permission before obtaining scheduling information for process **p**.h](hECheck permission before obtaining scheduling information for process }(hj\hhhNhNubj)}(h**p**h]hp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjH\ubh)}(h **Return**h]j)}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjH\ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjH\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_task_movememory (C function)c.security_task_movememoryhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h4int security_task_movememory (struct task_struct *p)h]j)}(h3int security_task_movememory(struct task_struct *p)h](j )}(hinth]hint}(hj&]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj"]hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj5]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"]hhhj4]hM ubj{)}(hsecurity_task_movememoryh]j)}(hsecurity_task_movememoryh]hsecurity_task_movememory}(hjG]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"]hhhj4]hM ubj)}(h(struct task_struct *p)h]j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hjc]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_]ubj2)}(h h]h }(hjp]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_]ubh)}(hhh]j)}(h task_structh]h task_struct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~]ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj]modnameN classnameNj] j` )}jc ]jf )}jY jI]sbc.security_task_movememoryasbuh1hhj_]ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_]ubj)}(hjh]hp}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[]ubah}(h]h ]h"]h$]h&]jjuh1jhj"]hhhj4]hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj4]hM ubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1jhj4]hM hj]hhubj)}(hhh]h)}(h!Check if moving memory is allowedh]h!Check if moving memory is allowed}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj]hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj4]hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *p`` task **Description** Check permission before moving memory owned by process **p**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj ^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubj )}(hhh]j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hj&^h]hstruct task_struct *p}(hj(^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ^ubj2)}(hhh]h)}(htaskh]htask}(hj?^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;^hM hj<^ubah}(h]h ]h"]h$]h&]uh1j1hj ^ubeh}(h]h ]h"]h$]h&]uh1jhj;^hM hj^ubah}(h]h ]h"]h$]h&]uh1j hj^ubh)}(h**Description**h]j)}(hja^h]h Description}(hjc^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubh)}(h=Check permission before moving memory owned by process **p**.h](h7Check permission before moving memory owned by process }(hjw^hhhNhNubj)}(h**p**h]hp}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw^ubh.}(hjw^hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubh)}(h **Return**h]j)}(hj^h]hReturn}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_task_kill (C function)c.security_task_killhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hmint security_task_kill (struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)h]j)}(hlint security_task_kill(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)h](j )}(hinth]hint}(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj^hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^hhhj^hM ubj{)}(hsecurity_task_killh]j)}(hsecurity_task_killh]hsecurity_task_kill}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhj^hM ubj)}(hV(struct task_struct *p, struct kernel_siginfo *info, int sig, const struct cred *cred)h](j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hj)_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubh)}(hhh]j)}(h task_structh]h task_struct}(hj:_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7_ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj<_modnameN classnameNj] j` )}jc ]jf )}jY j_sbc.security_task_killasbuh1hhj_ubj2)}(h h]h }(hjZ_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(hjh]h*}(hjh_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hjh]hp}(hju_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hstruct kernel_siginfo *infoh](j)}(hj h]hstruct}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubh)}(hhh]j)}(hkernel_siginfoh]hkernel_siginfo}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_modnameN classnameNj] j` )}jc ]jV_c.security_task_killasbuh1hhj_ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj)}(hinfoh]hinfo}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hint sigh](j )}(hinth]hint}(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj_ubj2)}(h h]h }(hj `hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj_ubj)}(hsigh]hsig}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hj2`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.`ubj2)}(h h]h }(hj?`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.`ubj)}(hj h]hstruct}(hjM`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.`ubj2)}(h h]h }(hjZ`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.`ubh)}(hhh]j)}(hcredh]hcred}(hjk`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjh`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjm`modnameN classnameNj] j` )}jc ]jV_c.security_task_killasbuh1hhj.`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.`ubj)}(hcredh]hcred}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhj^hhhj^hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj^hM ubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1jhj^hM hj^hhubj)}(hhh]h)}(h$Check if sending a signal is allowedh]h$Check if sending a signal is allowed}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj`hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct task_struct *p`` target process ``struct kernel_siginfo *info`` signal information ``int sig`` signal value ``const struct cred *cred`` credentials of the signal sender, NULL if **current** **Description** Check permission before sending signal **sig** to **p**. **info** can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If **info** is 1 or SI_FROMKERNEL(info) is true, then the signal should be viewed as coming from the kernel and should typically be permitted. SIGIO signals are handled separately by the send_sigiotask hook in file_security_ops. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj`ubj )}(hhh](j)}(h)``struct task_struct *p`` target process h](j)}(h``struct task_struct *p``h]j)}(hjah]hstruct task_struct *p}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj aubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj aubj2)}(hhh]h)}(htarget processh]htarget process}(hj(ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ahM hj%aubah}(h]h ]h"]h$]h&]uh1j1hj aubeh}(h]h ]h"]h$]h&]uh1jhj$ahM hjaubj)}(h3``struct kernel_siginfo *info`` signal information h](j)}(h``struct kernel_siginfo *info``h]j)}(hjHah]hstruct kernel_siginfo *info}(hjJahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjBaubj2)}(hhh]h)}(hsignal informationh]hsignal information}(hjaahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]ahM hj^aubah}(h]h ]h"]h$]h&]uh1j1hjBaubeh}(h]h ]h"]h$]h&]uh1jhj]ahM hjaubj)}(h``int sig`` signal value h](j)}(h ``int sig``h]j)}(hjah]hint sig}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj{aubj2)}(hhh]h)}(h signal valueh]h signal value}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1j1hj{aubeh}(h]h ]h"]h$]h&]uh1jhjahM hjaubj)}(hR``const struct cred *cred`` credentials of the signal sender, NULL if **current** h](j)}(h``const struct cred *cred``h]j)}(hjah]hconst struct cred *cred}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjaubj2)}(hhh]h)}(h5credentials of the signal sender, NULL if **current**h](h*credentials of the signal sender, NULL if }(hjahhhNhNubj)}(h **current**h]hcurrent}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahM hjaubeh}(h]h ]h"]h$]h&]uh1j hj`ubh)}(h**Description**h]j)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj`ubh)}(hXrCheck permission before sending signal **sig** to **p**. **info** can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If **info** is 1 or SI_FROMKERNEL(info) is true, then the signal should be viewed as coming from the kernel and should typically be permitted. SIGIO signals are handled separately by the send_sigiotask hook in file_security_ops.h](h'Check permission before sending signal }(hjbhhhNhNubj)}(h**sig**h]hsig}(hj!bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh to }(hjbhhhNhNubj)}(h**p**h]hp}(hj3bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh. }(hjbhhhNhNubj)}(h**info**h]hinfo}(hjEbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubhN can be NULL, the constant 1, or a pointer to a kernel_siginfo structure. If }(hjbhhhNhNubj)}(h**info**h]hinfo}(hjWbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh is 1 or SI_FROMKERNEL(info) is true, then the signal should be viewed as coming from the kernel and should typically be permitted. SIGIO signals are handled separately by the send_sigiotask hook in file_security_ops.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj`ubh)}(h **Return**h]j)}(hjrbh]hReturn}(hjtbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpbubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj`ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_task_prctl (C function)c.security_task_prctlhNtauh1hhj-hhhNhNubj)}(hhh](j)}(htint security_task_prctl (int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h]j)}(hsint security_task_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h](j )}(hinth]hint}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbhhhjbhM ubj{)}(hsecurity_task_prctlh]j)}(hsecurity_task_prctlh]hsecurity_task_prctl}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjbhhhjbhM ubj)}(h\(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)h](j)}(h int optionh](j )}(hinth]hint}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hoptionh]hoption}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hunsigned long arg2h](j )}(hunsignedh]hunsigned}(hj)chhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%cubj2)}(h h]h }(hj7chhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%cubj )}(hlongh]hlong}(hjEchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%cubj2)}(h h]h }(hjSchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%cubj)}(harg2h]harg2}(hjachhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hunsigned long arg3h](j )}(hunsignedh]hunsigned}(hjzchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvcubj )}(hlongh]hlong}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvcubj)}(harg3h]harg3}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hunsigned long arg4h](j )}(hunsignedh]hunsigned}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj )}(hlongh]hlong}(hjchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(harg4h]harg4}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hunsigned long arg5h](j )}(hunsignedh]hunsigned}(hjdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubj2)}(h h]h }(hj*dhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj )}(hlongh]hlong}(hj8dhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjFdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(harg5h]harg5}(hjTdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhjbhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjbhM ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1jhjbhM hjbhhubj)}(hhh]h)}(h#Handle an LSM specific prctl() callh]h#Handle an LSM specific prctl() call}(hj~dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj{dhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1jhhhj-hNhNubj)}(hXx**Parameters** ``int option`` operation ``unsigned long arg2`` argument ``unsigned long arg3`` argument ``unsigned long arg4`` argument ``unsigned long arg5`` argument **Description** Handle lsm specific prctl() operations. **Return** Return -ENOSYS if no-one wanted to handle this op, any other value to cause prctl() to return immediately with that value.h](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubj )}(hhh](j)}(h``int option`` operation h](j)}(h``int option``h]j)}(hjdh]h int option}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubj2)}(hhh]h)}(h operationh]h operation}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM hjdubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjdhM hjdubj)}(h ``unsigned long arg2`` argument h](j)}(h``unsigned long arg2``h]j)}(hjdh]hunsigned long arg2}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubj2)}(hhh]h)}(hargumenth]hargument}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ehM hjeubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhj ehM hjdubj)}(h ``unsigned long arg3`` argument h](j)}(h``unsigned long arg3``h]j)}(hj1eh]hunsigned long arg3}(hj3ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/eubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj+eubj2)}(hhh]h)}(hargumenth]hargument}(hjJehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFehM hjGeubah}(h]h ]h"]h$]h&]uh1j1hj+eubeh}(h]h ]h"]h$]h&]uh1jhjFehM hjdubj)}(h ``unsigned long arg4`` argument h](j)}(h``unsigned long arg4``h]j)}(hjjeh]hunsigned long arg4}(hjlehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjheubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdeubj2)}(hhh]h)}(hargumenth]hargument}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hjeubah}(h]h ]h"]h$]h&]uh1j1hjdeubeh}(h]h ]h"]h$]h&]uh1jhjehM hjdubj)}(h ``unsigned long arg5`` argument h](j)}(h``unsigned long arg5``h]j)}(hjeh]hunsigned long arg5}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjeubj2)}(hhh]h)}(hargumenth]hargument}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hjeubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjehM hjdubeh}(h]h ]h"]h$]h&]uh1j hjdubh)}(h**Description**h]j)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubh)}(h'Handle lsm specific prctl() operations.h]h'Handle lsm specific prctl() operations.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubh)}(h **Return**h]j)}(hjfh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubh)}(hzReturn -ENOSYS if no-one wanted to handle this op, any other value to cause prctl() to return immediately with that value.h]hzReturn -ENOSYS if no-one wanted to handle this op, any other value to cause prctl() to return immediately with that value.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_task_to_inode (C function)c.security_task_to_inodehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hHvoid security_task_to_inode (struct task_struct *p, struct inode *inode)h]j)}(hGvoid security_task_to_inode(struct task_struct *p, struct inode *inode)h](j )}(hvoidh]hvoid}(hjJfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFfhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjYfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFfhhhjXfhM ubj{)}(hsecurity_task_to_inodeh]j)}(hsecurity_task_to_inodeh]hsecurity_task_to_inode}(hjkfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFfhhhjXfhM ubj)}(h,(struct task_struct *p, struct inode *inode)h](j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(hhh]j)}(h task_structh]h task_struct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jf )}jY jmfsbc.security_task_to_inodeasbuh1hhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hjh]hp}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hstruct inode *inodeh](j)}(hj h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(hhh]j)}(hinodeh]hinode}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgmodnameN classnameNj] j` )}jc ]jfc.security_task_to_inodeasbuh1hhjfubj2)}(h h]h }(hj4ghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hjBghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hinodeh]hinode}(hjOghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhjFfhhhjXfhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBfhhhjXfhM ubah}(h]j=fah ](jjeh"]h$]h&]jj)jhuh1jhjXfhM hj?fhhubj)}(hhh]h)}(h-Set the security attributes of a task's inodeh]h/Set the security attributes of a task’s inode}(hjyghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjvghhubah}(h]h ]h"]h$]h&]uh1jhj?fhhhjXfhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct task_struct *p`` task ``struct inode *inode`` inode **Description** Set the security attributes for an inode based on an associated task's security attributes, e.g. for /proc/pid inodes.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjgubj )}(hhh](j)}(h``struct task_struct *p`` task h](j)}(h``struct task_struct *p``h]j)}(hjgh]hstruct task_struct *p}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjgubj2)}(hhh]h)}(htaskh]htask}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM hjgubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghM hjgubj)}(h``struct inode *inode`` inode h](j)}(h``struct inode *inode``h]j)}(hjgh]hstruct inode *inode}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjgubj2)}(hhh]h)}(hinodeh]hinode}(hj hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM hj hubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjgubeh}(h]h ]h"]h$]h&]uh1j hjgubh)}(h**Description**h]j)}(hj.hh]h Description}(hj0hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjgubh)}(hvSet the security attributes for an inode based on an associated task's security attributes, e.g. for /proc/pid inodes.h]hxSet the security attributes for an inode based on an associated task’s security attributes, e.g. for /proc/pid inodes.}(hjDhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_create_user_ns (C function)c.security_create_user_nshNtauh1hhj-hhhNhNubj)}(hhh](j)}(h5int security_create_user_ns (const struct cred *cred)h]j)}(h4int security_create_user_ns(const struct cred *cred)h](j )}(hinth]hint}(hjshhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhhjhhM ubj{)}(hsecurity_create_user_nsh]j)}(hsecurity_create_user_nsh]hsecurity_create_user_ns}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhhjhhM ubj)}(h(const struct cred *cred)h]j)}(hconst struct cred *credh](j)}(hjh]hconst}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hj h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubh)}(hhh]j)}(hcredh]hcred}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jf )}jY jhsbc.security_create_user_nsasbuh1hhjhubj2)}(h h]h }(hj ihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hcredh]hcred}(hj$ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubah}(h]h ]h"]h$]h&]jjuh1jhjohhhhjhhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhhjhhM ubah}(h]jfhah ](jjeh"]h$]h&]jj)jhuh1jhjhhM hjhhhhubj)}(hhh]h)}(h)Check if creating a new userns is allowedh]h)Check if creating a new userns is allowed}(hjNihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjKihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhhjhhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfijjfijjjuh1jhhhj-hNhNubj)}(h**Parameters** ``const struct cred *cred`` prepared creds **Description** Check permission prior to creating a new user namespace. **Return** Returns 0 if successful, otherwise < 0 error code.h](h)}(h**Parameters**h]j)}(hjpih]h Parameters}(hjrihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjniubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjjiubj )}(hhh]j)}(h+``const struct cred *cred`` prepared creds h](j)}(h``const struct cred *cred``h]j)}(hjih]hconst struct cred *cred}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjiubj2)}(hhh]h)}(hprepared credsh]hprepared creds}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM hjiubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjihM hjiubah}(h]h ]h"]h$]h&]uh1j hjjiubh)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjjiubh)}(h8Check permission prior to creating a new user namespace.h]h8Check permission prior to creating a new user namespace.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjjiubh)}(h **Return**h]j)}(hjih]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjjiubh)}(h2Returns 0 if successful, otherwise < 0 error code.h]h2Returns 0 if successful, otherwise < 0 error code.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_ipc_permission (C function)c.security_ipc_permissionhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hDint security_ipc_permission (struct kern_ipc_perm *ipcp, short flag)h]j)}(hCint security_ipc_permission(struct kern_ipc_perm *ipcp, short flag)h](j )}(hinth]hint}(hj6jhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2jhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM! ubj2)}(h h]h }(hjEjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2jhhhjDjhM! ubj{)}(hsecurity_ipc_permissionh]j)}(hsecurity_ipc_permissionh]hsecurity_ipc_permission}(hjWjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2jhhhjDjhM! ubj)}(h((struct kern_ipc_perm *ipcp, short flag)h](j)}(hstruct kern_ipc_perm *ipcph](j)}(hj h]hstruct}(hjsjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjojubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjojubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]jf )}jY jYjsbc.security_ipc_permissionasbuh1hhjojubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjojubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjojubj)}(hipcph]hipcp}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjojubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkjubj)}(h short flagh](j )}(hshorth]hshort}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hflagh]hflag}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkjubeh}(h]h ]h"]h$]h&]jjuh1jhj2jhhhjDjhM! ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.jhhhjDjhM! ubah}(h]j)jah ](jjeh"]h$]h&]jj)jhuh1jhjDjhM! hj+jhhubj)}(hhh]h)}(h#Check if sysv ipc access is allowedh]h#Check if sysv ipc access is allowed}(hj+khhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM! hj(khhubah}(h]h ]h"]h$]h&]uh1jhj+jhhhjDjhM! ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCkjjCkjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *ipcp`` ipc permission structure ``short flag`` requested permissions **Description** Check permissions for access to IPC. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjMkh]h Parameters}(hjOkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM% hjGkubj )}(hhh](j)}(h8``struct kern_ipc_perm *ipcp`` ipc permission structure h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjlkh]hstruct kern_ipc_perm *ipcp}(hjnkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM" hjfkubj2)}(hhh]h)}(hipc permission structureh]hipc permission structure}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM" hjkubah}(h]h ]h"]h$]h&]uh1j1hjfkubeh}(h]h ]h"]h$]h&]uh1jhjkhM" hjckubj)}(h%``short flag`` requested permissions h](j)}(h``short flag``h]j)}(hjkh]h short flag}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM# hjkubj2)}(hhh]h)}(hrequested permissionsh]hrequested permissions}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhM# hjkubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjkhM# hjckubeh}(h]h ]h"]h$]h&]uh1j hjGkubh)}(h**Description**h]j)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM% hjGkubh)}(h$Check permissions for access to IPC.h]h$Check permissions for access to IPC.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$ hjGkubh)}(h **Return**h]j)}(hjlh]hReturn}(hj lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM& hjGkubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM' hjGkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_ipc_getlsmprop (C function)c.security_ipc_getlsmprophNtauh1hhj-hhhNhNubj)}(hhh](j)}(hPvoid security_ipc_getlsmprop (struct kern_ipc_perm *ipcp, struct lsm_prop *prop)h]j)}(hOvoid security_ipc_getlsmprop(struct kern_ipc_perm *ipcp, struct lsm_prop *prop)h](j )}(hvoidh]hvoid}(hjLlhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjHlhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/ ubj2)}(h h]h }(hj[lhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHlhhhjZlhM/ ubj{)}(hsecurity_ipc_getlsmproph]j)}(hsecurity_ipc_getlsmproph]hsecurity_ipc_getlsmprop}(hjmlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjilubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHlhhhjZlhM/ ubj)}(h3(struct kern_ipc_perm *ipcp, struct lsm_prop *prop)h](j)}(hstruct kern_ipc_perm *ipcph](j)}(hj h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]jf )}jY jolsbc.security_ipc_getlsmpropasbuh1hhjlubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hipcph]hipcp}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hstruct lsm_prop *proph](j)}(hj h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubh)}(hhh]j)}(hlsm_proph]hlsm_prop}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmmodnameN classnameNj] j` )}jc ]jlc.security_ipc_getlsmpropasbuh1hhjlubj2)}(h h]h }(hj7mhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hjh]h*}(hjEmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hproph]hprop}(hjRmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhjHlhhhjZlhM/ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDlhhhjZlhM/ ubah}(h]j?lah ](jjeh"]h$]h&]jj)jhuh1jhjZlhM/ hjAlhhubj)}(hhh]h)}(h Get the sysv ipc object LSM datah]h Get the sysv ipc object LSM data}(hj|mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/ hjymhhubah}(h]h ]h"]h$]h&]uh1jhjAlhhhjZlhM/ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *ipcp`` ipc permission structure ``struct lsm_prop *prop`` pointer to lsm information **Description** Get the lsm information associated with the ipc object.h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3 hjmubj )}(hhh](j)}(h8``struct kern_ipc_perm *ipcp`` ipc permission structure h](j)}(h``struct kern_ipc_perm *ipcp``h]j)}(hjmh]hstruct kern_ipc_perm *ipcp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0 hjmubj2)}(hhh]h)}(hipc permission structureh]hipc permission structure}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhM0 hjmubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjmhM0 hjmubj)}(h5``struct lsm_prop *prop`` pointer to lsm information h](j)}(h``struct lsm_prop *prop``h]j)}(hjmh]hstruct lsm_prop *prop}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1 hjmubj2)}(hhh]h)}(hpointer to lsm informationh]hpointer to lsm information}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj nhM1 hj nubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhj nhM1 hjmubeh}(h]h ]h"]h$]h&]uh1j hjmubh)}(h**Description**h]j)}(hj1nh]h Description}(hj3nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/nubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3 hjmubh)}(h7Get the lsm information associated with the ipc object.h]h7Get the lsm information associated with the ipc object.}(hjGnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2 hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_msg_msg_alloc (C function)c.security_msg_msg_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h0int security_msg_msg_alloc (struct msg_msg *msg)h]j)}(h/int security_msg_msg_alloc(struct msg_msg *msg)h](j )}(hinth]hint}(hjvnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrnhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM= ubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrnhhhjnhM= ubj{)}(hsecurity_msg_msg_alloch]j)}(hsecurity_msg_msg_alloch]hsecurity_msg_msg_alloc}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrnhhhjnhM= ubj)}(h(struct msg_msg *msg)h]j)}(hstruct msg_msg *msgh](j)}(hj h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnmodnameN classnameNj] j` )}jc ]jf )}jY jnsbc.security_msg_msg_allocasbuh1hhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hmsgh]hmsg}(hj ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubah}(h]h ]h"]h$]h&]jjuh1jhjrnhhhjnhM= ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjnnhhhjnhM= ubah}(h]jinah ](jjeh"]h$]h&]jj)jhuh1jhjnhM= hjknhhubj)}(hhh]h)}(h$Allocate a sysv ipc message LSM blobh]h$Allocate a sysv ipc message LSM blob}(hj6ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM= hj3ohhubah}(h]h ]h"]h$]h&]uh1jhjknhhhjnhM= ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNojjNojjjuh1jhhhj-hNhNubj)}(hX/**Parameters** ``struct msg_msg *msg`` message structure **Description** Allocate and attach a security structure to the msg->security field. The security field is initialized to NULL when the structure is first created. **Return** Return 0 if operation was successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjXoh]h Parameters}(hjZohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMA hjRoubj )}(hhh]j)}(h*``struct msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hjwoh]hstruct msg_msg *msg}(hjyohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM> hjqoubj2)}(hhh]h)}(hmessage structureh]hmessage structure}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohM> hjoubah}(h]h ]h"]h$]h&]uh1j1hjqoubeh}(h]h ]h"]h$]h&]uh1jhjohM> hjnoubah}(h]h ]h"]h$]h&]uh1j hjRoubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@ hjRoubh)}(hAllocate and attach a security structure to the msg->security field. The security field is initialized to NULL when the structure is first created.h]hAllocate and attach a security structure to the msg->security field. The security field is initialized to NULL when the structure is first created.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM? hjRoubh)}(h **Return**h]j)}(hjoh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMB hjRoubh)}(h?Return 0 if operation was successful and permission is granted.h]h?Return 0 if operation was successful and permission is granted.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMC hjRoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_msg_msg_free (C function)c.security_msg_msg_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h0void security_msg_msg_free (struct msg_msg *msg)h]j)}(h/void security_msg_msg_free(struct msg_msg *msg)h](j )}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjphhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR ubj2)}(h h]h }(hj-phhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjphhhj,phMR ubj{)}(hsecurity_msg_msg_freeh]j)}(hsecurity_msg_msg_freeh]hsecurity_msg_msg_free}(hj?phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;pubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhj,phMR ubj)}(h(struct msg_msg *msg)h]j)}(hstruct msg_msg *msgh](j)}(hj h]hstruct}(hj[phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWpubj2)}(h h]h }(hjhphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWpubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hjyphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj{pmodnameN classnameNj] j` )}jc ]jf )}jY jApsbc.security_msg_msg_freeasbuh1hhjWpubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWpubj)}(hmsgh]hmsg}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSpubah}(h]h ]h"]h$]h&]jjuh1jhjphhhj,phMR ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhj,phMR ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jhj,phMR hjphhubj)}(hhh]h)}(h Free a sysv ipc message LSM blobh]h Free a sysv ipc message LSM blob}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMR hjphhubah}(h]h ]h"]h$]h&]uh1jhjphhhj,phMR ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct msg_msg *msg`` message structure **Description** Deallocate the security structure for this message.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMV hjpubj )}(hhh]j)}(h*``struct msg_msg *msg`` message structure h](j)}(h``struct msg_msg *msg``h]j)}(hjqh]hstruct msg_msg *msg}(hj!qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMS hjqubj2)}(hhh]h)}(hmessage structureh]hmessage structure}(hj8qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4qhMS hj5qubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhj4qhMS hjqubah}(h]h ]h"]h$]h&]uh1j hjpubh)}(h**Description**h]j)}(hjZqh]h Description}(hj\qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXqubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMU hjpubh)}(h3Deallocate the security structure for this message.h]h3Deallocate the security structure for this message.}(hjpqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMT hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_msg_queue_alloc (C function)c.security_msg_queue_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h8int security_msg_queue_alloc (struct kern_ipc_perm *msq)h]j)}(h7int security_msg_queue_alloc(struct kern_ipc_perm *msq)h](j )}(hinth]hint}(hjqhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_ ubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqhhhjqhM_ ubj{)}(hsecurity_msg_queue_alloch]j)}(hsecurity_msg_queue_alloch]hsecurity_msg_queue_alloc}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqhhhjqhM_ ubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hj h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jf )}jY jqsbc.security_msg_queue_allocasbuh1hhjqubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hj(rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hmsqh]hmsq}(hj5rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhjqhhhjqhM_ ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjqhM_ ubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhjqhM_ hjqhhubj)}(hhh]h)}(h&Allocate a sysv ipc msg queue LSM blobh]h&Allocate a sysv ipc msg queue LSM blob}(hj_rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_ hj\rhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhM_ ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwrjjwrjjjuh1jhhhj-hNhNubj)}(hX1**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure **Description** Allocate and attach a security structure to **msg**. The security field is initialized to NULL when the structure is first created. **Return** Returns 0 if operation was successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMc hj{rubj )}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjrh]hstruct kern_ipc_perm *msq}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM` hjrubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhM` hjrubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjrhM` hjrubah}(h]h ]h"]h$]h&]uh1j hj{rubh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMb hj{rubh)}(hAllocate and attach a security structure to **msg**. The security field is initialized to NULL when the structure is first created.h](h,Allocate and attach a security structure to }(hjrhhhNhNubj)}(h**msg**h]hmsg}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubhP. The security field is initialized to NULL when the structure is first created.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMa hj{rubh)}(h **Return**h]j)}(hjsh]hReturn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMd hj{rubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hj*shhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMe hj{rubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_msg_queue_free (C function)c.security_msg_queue_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h8void security_msg_queue_free (struct kern_ipc_perm *msq)h]j)}(h7void security_msg_queue_free(struct kern_ipc_perm *msq)h](j )}(hvoidh]hvoid}(hjYshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUshhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMt ubj2)}(h h]h }(hjhshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUshhhjgshMt ubj{)}(hsecurity_msg_queue_freeh]j)}(hsecurity_msg_queue_freeh]hsecurity_msg_queue_free}(hjzshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUshhhjgshMt ubj)}(h(struct kern_ipc_perm *msq)h]j)}(hstruct kern_ipc_perm *msqh](j)}(hj h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsmodnameN classnameNj] j` )}jc ]jf )}jY j|ssbc.security_msg_queue_freeasbuh1hhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hmsqh]hmsq}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhjUshhhjgshMt ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQshhhjgshMt ubah}(h]jLsah ](jjeh"]h$]h&]jj)jhuh1jhjgshMt hjNshhubj)}(hhh]h)}(h"Free a sysv ipc msg queue LSM blobh]h"Free a sysv ipc msg queue LSM blob}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMt hjthhubah}(h]h ]h"]h$]h&]uh1jhjNshhhjgshMt ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1tjj1tjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure **Description** Deallocate security field **perm->security** for the message queue.h](h)}(h**Parameters**h]j)}(hj;th]h Parameters}(hj=thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9tubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMx hj5tubj )}(hhh]j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjZth]hstruct kern_ipc_perm *msq}(hj\thhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMu hjTtubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjsthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjothMu hjptubah}(h]h ]h"]h$]h&]uh1j1hjTtubeh}(h]h ]h"]h$]h&]uh1jhjothMu hjQtubah}(h]h ]h"]h$]h&]uh1j hj5tubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMw hj5tubh)}(hCDeallocate security field **perm->security** for the message queue.h](hDeallocate security field }(hjthhhNhNubj)}(h**perm->security**h]hperm->security}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh for the message queue.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMv hj5tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_msg_queue_associate (C function)c.security_msg_queue_associatehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hHint security_msg_queue_associate (struct kern_ipc_perm *msq, int msqflg)h]j)}(hGint security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg)h](j )}(hinth]hint}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjthhhjthM ubj{)}(hsecurity_msg_queue_associateh]j)}(hsecurity_msg_queue_associateh]hsecurity_msg_queue_associate}(hj uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj uubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjthhhjthM ubj)}(h'(struct kern_ipc_perm *msq, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hj h]hstruct}(hj)uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%uubj2)}(h h]h }(hj6uhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%uubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjGuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDuubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjIumodnameN classnameNj] j` )}jc ]jf )}jY jusbc.security_msg_queue_associateasbuh1hhj%uubj2)}(h h]h }(hjguhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%uubj)}(hjh]h*}(hjuuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%uubj)}(hmsqh]hmsq}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!uubj)}(h int msqflgh](j )}(hinth]hint}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj)}(hmsqflgh]hmsqflg}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!uubeh}(h]h ]h"]h$]h&]jjuh1jhjthhhjthM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjthM ubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjthM hjthhubj)}(hhh]h)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure ``int msqflg`` operation flags **Description** Check permission when a message queue is requested through the msgget system call. This hook is only called when returning the message queue identifier for an existing message queue, not when a new message queue is created. **Return** Return 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjuubj )}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hj"vh]hstruct kern_ipc_perm *msq}(hj$vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj vubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjvubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj;vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7vhM hj8vubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhj7vhM hjvubj)}(h``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hj[vh]h int msqflg}(hj]vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjUvubj2)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjtvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpvhM hjqvubah}(h]h ]h"]h$]h&]uh1j1hjUvubeh}(h]h ]h"]h$]h&]uh1jhjpvhM hjvubeh}(h]h ]h"]h$]h&]uh1j hjuubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjuubh)}(hCheck permission when a message queue is requested through the msgget system call. This hook is only called when returning the message queue identifier for an existing message queue, not when a new message queue is created.h]hCheck permission when a message queue is requested through the msgget system call. This hook is only called when returning the message queue identifier for an existing message queue, not when a new message queue is created.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjuubh)}(h **Return**h]j)}(hjvh]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjuubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_msg_queue_msgctl (C function)c.security_msg_queue_msgctlhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hBint security_msg_queue_msgctl (struct kern_ipc_perm *msq, int cmd)h]j)}(hAint security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd)h](j )}(hinth]hint}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjwhM ubj{)}(hsecurity_msg_queue_msgctlh]j)}(hsecurity_msg_queue_msgctlh]hsecurity_msg_queue_msgctl}(hj#whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjwhM ubj)}(h$(struct kern_ipc_perm *msq, int cmd)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hj h]hstruct}(hj?whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;wubj2)}(h h]h }(hjLwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;wubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj]whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_wmodnameN classnameNj] j` )}jc ]jf )}jY j%wsbc.security_msg_queue_msgctlasbuh1hhj;wubj2)}(h h]h }(hj}whhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;wubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;wubj)}(hmsqh]hmsq}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7wubj)}(hint cmdh](j )}(hinth]hint}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hcmdh]hcmd}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7wubeh}(h]h ]h"]h$]h&]jjuh1jhjvhhhjwhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjwhM ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1jhjwhM hjvhhubj)}(hhh]h)}(h)Check if a msg queue operation is allowedh]h)Check if a msg queue operation is allowed}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjwhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjwhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1jhhhj-hNhNubj)}(hX***Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure ``int cmd`` operation **Description** Check permission when a message control operation specified by **cmd** is to be performed on the message queue with permissions. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjxubj )}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hj8xh]hstruct kern_ipc_perm *msq}(hj:xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6xubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj2xubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjQxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMxhM hjNxubah}(h]h ]h"]h$]h&]uh1j1hj2xubeh}(h]h ]h"]h$]h&]uh1jhjMxhM hj/xubj)}(h``int cmd`` operation h](j)}(h ``int cmd``h]j)}(hjqxh]hint cmd}(hjsxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjkxubj2)}(hhh]h)}(h operationh]h operation}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM hjxubah}(h]h ]h"]h$]h&]uh1j1hjkxubeh}(h]h ]h"]h$]h&]uh1jhjxhM hj/xubeh}(h]h ]h"]h$]h&]uh1j hjxubh)}(h**Description**h]j)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjxubh)}(hCheck permission when a message control operation specified by **cmd** is to be performed on the message queue with permissions.h](h?Check permission when a message control operation specified by }(hjxhhhNhNubj)}(h**cmd**h]hcmd}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh: is to be performed on the message queue with permissions.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjxubh)}(h **Return**h]j)}(hjxh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjxubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_msg_queue_msgsnd (C function)c.security_msg_queue_msgsndhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hZint security_msg_queue_msgsnd (struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h]j)}(hYint security_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](j )}(hinth]hint}(hj*yhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&yhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj9yhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&yhhhj8yhM ubj{)}(hsecurity_msg_queue_msgsndh]j)}(hsecurity_msg_queue_msgsndh]hsecurity_msg_queue_msgsnd}(hjKyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&yhhhj8yhM ubj)}(h<(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hj h]hstruct}(hjgyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcyubj2)}(h h]h }(hjtyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcyubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjymodnameN classnameNj] j` )}jc ]jf )}jY jMysbc.security_msg_queue_msgsndasbuh1hhjcyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcyubj)}(hmsqh]hmsq}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_yubj)}(hstruct msg_msg *msgh](j)}(hj h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjymodnameN classnameNj] j` )}jc ]jyc.security_msg_queue_msgsndasbuh1hhjyubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hj#zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hmsgh]hmsg}(hj0zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_yubj)}(h int msqflgh](j )}(hinth]hint}(hjIzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEzubj2)}(h h]h }(hjWzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEzubj)}(hmsqflgh]hmsqflg}(hjezhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_yubeh}(h]h ]h"]h$]h&]jjuh1jhj&yhhhj8yhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"yhhhj8yhM ubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jhj8yhM hjyhhubj)}(hhh]h)}(h.Check if sending a sysv ipc message is allowedh]h.Check if sending a sysv ipc message is allowed}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjzhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhj8yhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jhhhj-hNhNubj)}(hXI**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure ``struct msg_msg *msg`` message ``int msqflg`` operation flags **Description** Check permission before a message, **msg**, is enqueued on the message queue with permissions specified in **msq**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjzubj )}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjzh]hstruct kern_ipc_perm *msq}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjzubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhM hjzubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhM hjzubj)}(h ``struct msg_msg *msg`` message h](j)}(h``struct msg_msg *msg``h]j)}(hj {h]hstruct msg_msg *msg}(hj {hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj{ubj2)}(hhh]h)}(hmessageh]hmessage}(hj"{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hM hj{ubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hM hjzubj)}(h``int msqflg`` operation flags h](j)}(h``int msqflg``h]j)}(hjB{h]h int msqflg}(hjD{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj<{ubj2)}(hhh]h)}(hoperation flagsh]hoperation flags}(hj[{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW{hM hjX{ubah}(h]h ]h"]h$]h&]uh1j1hj<{ubeh}(h]h ]h"]h$]h&]uh1jhjW{hM hjzubeh}(h]h ]h"]h$]h&]uh1j hjzubh)}(h**Description**h]j)}(hj}{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjzubh)}(hsCheck permission before a message, **msg**, is enqueued on the message queue with permissions specified in **msq**.h](h#Check permission before a message, }(hj{hhhNhNubj)}(h**msg**h]hmsg}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubhA, is enqueued on the message queue with permissions specified in }(hj{hhhNhNubj)}(h**msq**h]hmsq}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjzubh)}(h **Return**h]j)}(hj{h]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjzubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_msg_queue_msgrcv (C function)c.security_msg_queue_msgrcvhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hint security_msg_queue_msgrcv (struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)h]j)}(h~int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)h](j )}(hinth]hint}(hj |hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj |hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj |hhhj|hM ubj{)}(hsecurity_msg_queue_msgrcvh]j)}(hsecurity_msg_queue_msgrcvh]hsecurity_msg_queue_msgrcv}(hj.|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*|ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj |hhhj|hM ubj)}(ha(struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)h](j)}(hstruct kern_ipc_perm *msqh](j)}(hj h]hstruct}(hjJ|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF|ubj2)}(h h]h }(hjW|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjF|ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjh|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjj|modnameN classnameNj] j` )}jc ]jf )}jY j0|sbc.security_msg_queue_msgrcvasbuh1hhjF|ubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjF|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF|ubj)}(hmsqh]hmsq}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjB|ubj)}(hstruct msg_msg *msgh](j)}(hj h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubh)}(hhh]j)}(hmsg_msgh]hmsg_msg}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|modnameN classnameNj] j` )}jc ]j|c.security_msg_queue_msgrcvasbuh1hhj|ubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hmsgh]hmsg}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjB|ubj)}(hstruct task_struct *targeth](j)}(hj h]hstruct}(hj,}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(}ubj2)}(h h]h }(hj9}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(}ubh)}(hhh]j)}(h task_structh]h task_struct}(hjJ}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjL}modnameN classnameNj] j` )}jc ]j|c.security_msg_queue_msgrcvasbuh1hhj(}ubj2)}(h h]h }(hjh}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(}ubj)}(hjh]h*}(hjv}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(}ubj)}(htargeth]htarget}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjB|ubj)}(h long typeh](j )}(hlongh]hlong}(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}ubj)}(htypeh]htype}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjB|ubj)}(hint modeh](j )}(hinth]hint}(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}ubj)}(hmodeh]hmode}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjB|ubeh}(h]h ]h"]h$]h&]jjuh1jhj |hhhj|hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj|hM ubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1jhj|hM hj|hhubj)}(hhh]h)}(h,Check if receiving a sysv ipc msg is allowedh]h,Check if receiving a sysv ipc msg is allowed}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj|hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/~jj/~jjjuh1jhhhj-hNhNubj)}(hX+**Parameters** ``struct kern_ipc_perm *msq`` sysv ipc permission structure ``struct msg_msg *msg`` message ``struct task_struct *target`` target task ``long type`` type of message requested ``int mode`` operation flags **Description** Check permission before a message, **msg**, is removed from the message queue. The **target** task structure contains a pointer to the process that will be receiving the message (not equal to the current process when inline receives are being performed). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj9~h]h Parameters}(hj;~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj3~ubj )}(hhh](j)}(h<``struct kern_ipc_perm *msq`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *msq``h]j)}(hjX~h]hstruct kern_ipc_perm *msq}(hjZ~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjR~ubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjq~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm~hM hjn~ubah}(h]h ]h"]h$]h&]uh1j1hjR~ubeh}(h]h ]h"]h$]h&]uh1jhjm~hM hjO~ubj)}(h ``struct msg_msg *msg`` message h](j)}(h``struct msg_msg *msg``h]j)}(hj~h]hstruct msg_msg *msg}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubj2)}(hhh]h)}(hmessageh]hmessage}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hM hj~ubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hM hjO~ubj)}(h+``struct task_struct *target`` target task h](j)}(h``struct task_struct *target``h]j)}(hj~h]hstruct task_struct *target}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubj2)}(hhh]h)}(h target taskh]h target task}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hM hj~ubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hM hjO~ubj)}(h(``long type`` type of message requested h](j)}(h ``long type``h]j)}(hjh]h long type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~ubj2)}(hhh]h)}(htype of message requestedh]htype of message requested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjO~ubj)}(h``int mode`` operation flags h](j)}(h ``int mode``h]j)}(hj<h]hint mode}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj6ubj2)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM hjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjO~ubeh}(h]h ]h"]h$]h&]uh1j hj3~ubh)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj3~ubh)}(hCheck permission before a message, **msg**, is removed from the message queue. The **target** task structure contains a pointer to the process that will be receiving the message (not equal to the current process when inline receives are being performed).h](h#Check permission before a message, }(hjhhhNhNubj)}(h**msg**h]hmsg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh), is removed from the message queue. The }(hjhhhNhNubj)}(h **target**h]htarget}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh task structure contains a pointer to the process that will be receiving the message (not equal to the current process when inline receives are being performed).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj3~ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj3~ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj3~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_shm_alloc (C function)c.security_shm_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h2int security_shm_alloc (struct kern_ipc_perm *shp)h]j)}(h1int security_shm_alloc(struct kern_ipc_perm *shp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hsecurity_shm_alloch]j)}(hsecurity_shm_alloch]hsecurity_shm_alloc}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hj h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjdmodnameN classnameNj] j` )}jc ]jf )}jY j*sbc.security_shm_allocasbuh1hhj@ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hshph]hshp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(hAllocate a sysv shm LSM blobh]hAllocate a sysv shm LSM blob}(hjǀhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjĀhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj߀jj߀jjjuh1jhhhj-hNhNubj)}(hXE**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure **Description** Allocate and attach a security structure to the **shp** security field. The security field is initialized to NULL when the structure is first created. **Return** Returns 0 if operation was successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj )}(hhh]j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hjh]hstruct kern_ipc_perm *shp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hAllocate and attach a security structure to the **shp** security field. The security field is initialized to NULL when the structure is first created.h](h0Allocate and attach a security structure to the }(hjYhhhNhNubj)}(h**shp**h]hshp}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubh` security field. The security field is initialized to NULL when the structure is first created.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hj|h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_shm_free (C function)c.security_shm_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h2void security_shm_free (struct kern_ipc_perm *shp)h]j)}(h1void security_shm_free(struct kern_ipc_perm *shp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjЁhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjρhM ubj{)}(hsecurity_shm_freeh]j)}(hsecurity_shm_freeh]hsecurity_shm_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjށubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjρhM ubj)}(h(struct kern_ipc_perm *shp)h]j)}(hstruct kern_ipc_perm *shph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_shm_freeasbuh1hhjubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshph]hshp}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjρhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjρhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjρhM hjhhubj)}(hhh]h)}(hFree a sysv shm LSM blobh]hFree a sysv shm LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjρhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure **Description** Deallocate the security structure **perm->security** for the memory segment.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj )}(hhh]j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hj‚h]hstruct kern_ipc_perm *shp}(hjĂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjۂhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjׂhM hj؂ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjׂhM hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hLDeallocate the security structure **perm->security** for the memory segment.h](h"Deallocate the security structure }(hjhhhNhNubj)}(h**perm->security**h]hperm->security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for the memory segment.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_shm_associate (C function)c.security_shm_associatehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hBint security_shm_associate (struct kern_ipc_perm *shp, int shmflg)h]j)}(hAint security_shm_associate(struct kern_ipc_perm *shp, int shmflg)h](j )}(hinth]hint}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPhhhjbhM ubj{)}(hsecurity_shm_associateh]j)}(hsecurity_shm_associateh]hsecurity_shm_associate}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhjbhM ubj)}(h'(struct kern_ipc_perm *shp, int shmflg)h](j)}(hstruct kern_ipc_perm *shph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jwsbc.security_shm_associateasbuh1hhjubj2)}(h h]h }(hjσhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj݃hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshph]hshp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int shmflgh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hshmflgh]hshmflg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhM ubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1jhjbhM hjIhhubj)}(hhh]h)}(h(Check if a sysv shm operation is allowedh]h(Check if a sysv shm operation is allowed}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjFhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure ``int shmflg`` operation flags **Description** Check permission when a shared memory region is requested through the shmget system call. This hook is only called when returning the shared memory region identifier for an existing region, not when a new shared memory region is created. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjeubj )}(hhh](j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hjh]hstruct kern_ipc_perm *shp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``int shmflg`` operation flags h](j)}(h``int shmflg``h]j)}(hjÄh]h int shmflg}(hjńhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hoperation flagsh]hoperation flags}(hj܄hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj؄hM hjلubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj؄hM hjubeh}(h]h ]h"]h$]h&]uh1j hjeubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjeubh)}(hCheck permission when a shared memory region is requested through the shmget system call. This hook is only called when returning the shared memory region identifier for an existing region, not when a new shared memory region is created.h]hCheck permission when a shared memory region is requested through the shmget system call. This hook is only called when returning the shared memory region identifier for an existing region, not when a new shared memory region is created.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjeubh)}(h **Return**h]j)}(hj%h]hReturn}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjeubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_shm_shmctl (C function)c.security_shm_shmctlhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjfhhhjxhM ubj{)}(hsecurity_shm_shmctlh]j)}(hsecurity_shm_shmctlh]hsecurity_shm_shmctl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjfhhhjxhM ubj)}(h$(struct kern_ipc_perm *shp, int cmd)h](j)}(hstruct kern_ipc_perm *shph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjŅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj…ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDžmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_shm_shmctlasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hshph]hshp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint cmdh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcmdh]hcmd}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjfhhhjxhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhM ubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1jhjxhM hj_hhubj)}(hhh]h)}(h(Check if a sysv shm operation is allowedh]h(Check if a sysv shm operation is allowed}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj\hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jhhhj-hNhNubj)}(hXA**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure ``int cmd`` operation **Description** Check permission when a shared memory control operation specified by **cmd** is to be performed on the shared memory region with permissions in **shp**. **Return** Return 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj{ubj )}(hhh](j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hjh]hstruct kern_ipc_perm *shp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``int cmd`` operation h](j)}(h ``int cmd``h]j)}(hjنh]hint cmd}(hjۆhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj׆ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjӆubj2)}(hhh]h)}(h operationh]h operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjӆubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1j hj{ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj{ubh)}(hCheck permission when a shared memory control operation specified by **cmd** is to be performed on the shared memory region with permissions in **shp**.h](hECheck permission when a shared memory control operation specified by }(hj*hhhNhNubj)}(h**cmd**h]hcmd}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubhD is to be performed on the shared memory region with permissions in }(hj*hhhNhNubj)}(h**shp**h]hshp}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubh.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj{ubh)}(h **Return**h]j)}(hj_h]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj{ubh)}(h"Return 0 if permission is granted.h]h"Return 0 if permission is granted.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_shm_shmat (C function)c.security_shm_shmathNtauh1hhj-hhhNhNubj)}(hhh](j)}(hTint security_shm_shmat (struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg)h]j)}(hSint security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_shm_shmath]j)}(hsecurity_shm_shmath]hsecurity_shm_shmat}(hjŇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h=(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg)h](j)}(hstruct kern_ipc_perm *shph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݇ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj݇ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jLJsbc.security_shm_shmatasbuh1hhj݇ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj݇ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݇ubj)}(hshph]hshp}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj݇ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjهubj)}(hchar __user *shmaddrh](j )}(hcharh]hchar}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubh__user}(hjOhhhNhNubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hshmaddrh]hshmaddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjهubj)}(h int shmflgh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hshmflgh]hshmflg}(hjÈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjهubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h/Check if a sysv shm attach operation is allowedh]h/Check if a sysv shm attach operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *shp`` sysv ipc permission structure ``char __user *shmaddr`` address of memory region to attach ``int shmflg`` operation flags **Description** Check permissions prior to allowing the shmat system call to attach the shared memory segment with permissions **shp** to the data segment of the calling process. The attaching address is specified by **shmaddr**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubj )}(hhh](j)}(h<``struct kern_ipc_perm *shp`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *shp``h]j)}(hj.h]hstruct kern_ipc_perm *shp}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj(ubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM hjDubah}(h]h ]h"]h$]h&]uh1j1hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChM hj%ubj)}(h<``char __user *shmaddr`` address of memory region to attach h](j)}(h``char __user *shmaddr``h]j)}(hjgh]hchar __user *shmaddr}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjaubj2)}(hhh]h)}(h"address of memory region to attachh]h"address of memory region to attach}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hM hj}ubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM hj%ubj)}(h``int shmflg`` operation flags h](j)}(h``int shmflg``h]j)}(hjh]h int shmflg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hoperation flagsh]hoperation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj%ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjۉh]h Description}(hj݉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjىubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubh)}(hCheck permissions prior to allowing the shmat system call to attach the shared memory segment with permissions **shp** to the data segment of the calling process. The attaching address is specified by **shmaddr**.h](hoCheck permissions prior to allowing the shmat system call to attach the shared memory segment with permissions }(hjhhhNhNubj)}(h**shp**h]hshp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhS to the data segment of the calling process. The attaching address is specified by }(hjhhhNhNubj)}(h **shmaddr**h]hshmaddr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj ubh)}(h **Return**h]j)}(hj&h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sem_alloc (C function)c.security_sem_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h2int security_sem_alloc (struct kern_ipc_perm *sma)h]j)}(h1int security_sem_alloc(struct kern_ipc_perm *sma)h](j )}(hinth]hint}(hjkhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjghhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjghhhjyhMubj{)}(hsecurity_sem_alloch]j)}(hsecurity_sem_alloch]hsecurity_sem_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjghhhjyhMubj)}(h(struct kern_ipc_perm *sma)h]j)}(hstruct kern_ipc_perm *smah](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjƊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÊubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjȊmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sem_allocasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjghhhjyhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjyhMubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1jhjyhMhj`hhubj)}(hhh]h)}(h"Allocate a sysv semaphore LSM blobh]h"Allocate a sysv semaphore LSM blob}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj`hhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jhhhj-hNhNubj)}(hXD**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure **Description** Allocate and attach a security structure to the **sma** security field. The security field is initialized to NULL when the structure is first created. **Return** Returns 0 if operation was successful and permission is granted.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjGubj )}(hhh]j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjlh]hstruct kern_ipc_perm *sma}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjfubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubah}(h]h ]h"]h$]h&]uh1j hjGubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjGubh)}(hAllocate and attach a security structure to the **sma** security field. The security field is initialized to NULL when the structure is first created.h](h0Allocate and attach a security structure to the }(hjhhhNhNubj)}(h**sma**h]hsma}(hjŋhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh_ security field. The security field is initialized to NULL when the structure is first created.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjGubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjދubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjGubh)}(h@Returns 0 if operation was successful and permission is granted.h]h@Returns 0 if operation was successful and permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sem_free (C function)c.security_sem_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h2void security_sem_free (struct kern_ipc_perm *sma)h]j)}(h1void security_sem_free(struct kern_ipc_perm *sma)h](j )}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!hhhj3hM/ubj{)}(hsecurity_sem_freeh]j)}(hsecurity_sem_freeh]hsecurity_sem_free}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj!hhhj3hM/ubj)}(h(struct kern_ipc_perm *sma)h]j)}(hstruct kern_ipc_perm *smah](j)}(hj h]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jHsbc.security_sem_freeasbuh1hhj^ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubah}(h]h ]h"]h$]h&]jjuh1jhj!hhhj3hM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj3hM/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj3hM/hjhhubj)}(hhh]h)}(hFree a sysv semaphore LSM blobh]hFree a sysv semaphore LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure **Description** Deallocate security structure **sma->security** for the semaphore.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM3hjubj )}(hhh]j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hj&h]hstruct kern_ipc_perm *sma}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hj ubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM0hj<ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM0hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM2hjubh)}(hBDeallocate security structure **sma->security** for the semaphore.h](hDeallocate security structure }(hjwhhhNhNubj)}(h**sma->security**h]h sma->security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh for the semaphore.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_sem_associate (C function)c.security_sem_associatehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hBint security_sem_associate (struct kern_ipc_perm *sma, int semflg)h]j)}(hAint security_sem_associate(struct kern_ipc_perm *sma, int semflg)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<ubj2)}(h h]h }(hjǍhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjƍhM<ubj{)}(hsecurity_sem_associateh]j)}(hsecurity_sem_associateh]hsecurity_sem_associate}(hjٍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՍubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjƍhM<ubj)}(h'(struct kern_ipc_perm *sma, int semflg)h](j)}(hstruct kern_ipc_perm *smah](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jۍsbc.security_sem_associateasbuh1hhjubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int semflgh](j )}(hinth]hint}(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hsemflgh]hsemflg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjƍhM<ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjƍhM<ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjƍhM<hjhhubj)}(hhh]h)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjƍhM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjŎjjŎjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure ``int semflg`` operation flags **Description** Check permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjώh]h Parameters}(hjюhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͎ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hjɎubj )}(hhh](j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjh]hstruct kern_ipc_perm *sma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hjubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM=hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjubj)}(h``int semflg`` operation flags h](j)}(h``int semflg``h]j)}(hj'h]h int semflg}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>hj!ubj2)}(hhh]h)}(hoperation flagsh]hoperation flags}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM>hj=ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hM>hjubeh}(h]h ]h"]h$]h&]uh1j hjɎubh)}(h**Description**h]j)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM@hjɎubh)}(hCheck permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created.h]hCheck permission when a semaphore is requested through the semget system call. This hook is only called when returning the semaphore identifier for an existing semaphore, not when a new one must be created.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM?hjɎubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMChjɎubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjɎubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  security_sem_semctl (C function)c.security_sem_semctlhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjʏhhhj܏hMLubj{)}(hsecurity_sem_semctlh]j)}(hsecurity_sem_semctlh]hsecurity_sem_semctl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjʏhhhj܏hMLubj)}(h$(struct kern_ipc_perm *sma, int cmd)h](j)}(hstruct kern_ipc_perm *smah](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj+modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sem_semctlasbuh1hhjubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsmah]hsma}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint cmdh](j )}(hinth]hint}(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjʏhhhj܏hMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjƏhhhj܏hMLubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj܏hMLhjÏhhubj)}(hhh]h)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hjÐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjhhubah}(h]h ]h"]h$]h&]uh1jhjÏhhhj܏hMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjېjjېjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure ``int cmd`` operation **Description** Check permission when a semaphore operation specified by **cmd** is to be performed on the semaphore. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhjߐubj )}(hhh](j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjh]hstruct kern_ipc_perm *sma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubj)}(h``int cmd`` operation h](j)}(h ``int cmd``h]j)}(hj=h]hint cmd}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhj7ubj2)}(hhh]h)}(h operationh]h operation}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMNhjSubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMNhjubeh}(h]h ]h"]h$]h&]uh1j hjߐubh)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhjߐubh)}(heCheck permission when a semaphore operation specified by **cmd** is to be performed on the semaphore.h](h9Check permission when a semaphore operation specified by }(hjhhhNhNubj)}(h**cmd**h]hcmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% is to be performed on the semaphore.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjߐubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhjߐubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjǑhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShjߐubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sem_semop (C function)c.security_sem_semophNtauh1hhj-hhhNhNubj)}(hhh](j)}(hbint security_sem_semop (struct kern_ipc_perm *sma, struct sembuf *sops, unsigned nsops, int alter)h]j)}(haint security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops, unsigned nsops, int alter)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM[ubj{)}(hsecurity_sem_semoph]j)}(hsecurity_sem_semoph]hsecurity_sem_semop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM[ubj)}(hK(struct kern_ipc_perm *sma, struct sembuf *sops, unsigned nsops, int alter)h](j)}(hstruct kern_ipc_perm *smah](j)}(hj h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sem_semopasbuh1hhj/ubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hsmah]hsma}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hstruct sembuf *sopsh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsembufh]hsembuf}(hjÒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjŒmodnameN classnameNj] j` )}jc ]jmc.security_sem_semopasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsopsh]hsops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hunsigned nsopsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnsopsh]hnsops}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(h int alterh](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(halterh]halter}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM[ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM[hjhhubj)}(hhh]h)}(h.Check if a sysv semaphore operation is allowedh]h.Check if a sysv semaphore operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct kern_ipc_perm *sma`` sysv ipc permission structure ``struct sembuf *sops`` operations to perform ``unsigned nsops`` number of operations ``int alter`` flag indicating changes will be made **Description** Check permissions before performing operations on members of the semaphore set. If the **alter** flag is nonzero, the semaphore set may be modified. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjubj )}(hhh](j)}(h<``struct kern_ipc_perm *sma`` sysv ipc permission structure h](j)}(h``struct kern_ipc_perm *sma``h]j)}(hjѓh]hstruct kern_ipc_perm *sma}(hjӓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϓubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hj˓ubj2)}(hhh]h)}(hsysv ipc permission structureh]hsysv ipc permission structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1j1hj˓ubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjȓubj)}(h.``struct sembuf *sops`` operations to perform h](j)}(h``struct sembuf *sops``h]j)}(hj h]hstruct sembuf *sops}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM]hjubj2)}(hhh]h)}(hoperations to performh]hoperations to perform}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjȓubj)}(h(``unsigned nsops`` number of operations h](j)}(h``unsigned nsops``h]j)}(hjCh]hunsigned nsops}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^hj=ubj2)}(hhh]h)}(hnumber of operationsh]hnumber of operations}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM^hjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhM^hjȓubj)}(h3``int alter`` flag indicating changes will be made h](j)}(h ``int alter``h]j)}(hj|h]h int alter}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjvubj2)}(hhh]h)}(h$flag indicating changes will be madeh]h$flag indicating changes will be made}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM_hjubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjȓubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjubh)}(hCheck permissions before performing operations on members of the semaphore set. If the **alter** flag is nonzero, the semaphore set may be modified.h](hWCheck permissions before performing operations on members of the semaphore set. If the }(hj͔hhhNhNubj)}(h **alter**h]halter}(hjՔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͔ubh4 flag is nonzero, the semaphore set may be modified.}(hj͔hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMchjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_getselfattr (C function)c.security_getselfattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hfint security_getselfattr (unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h]j)}(heint security_getselfattr(unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1hhhjChMubj{)}(hsecurity_getselfattrh]j)}(hsecurity_getselfattrh]hsecurity_getselfattr}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhjChMubj)}(hM(unsigned int attr, struct lsm_ctx __user *uctx, u32 __user *size, u32 flags)h](j)}(hunsigned int attrh](j )}(hunsignedh]hunsigned}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hstruct lsm_ctx __user *uctxh](j)}(hj h]hstruct}(hjÕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjЕhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hlsm_ctxh]hlsm_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޕubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jXsbc.security_getselfattrasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh__user}(hjhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(huctxh]huctx}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hu32 __user *sizeh](h)}(hhh]j)}(hu32h]hu32}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLmodnameN classnameNj] j` )}jc ]jc.security_getselfattrasbuh1hhjCubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubh__user}(hjChhhNhNubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_getselfattrasbuh1hhjubj2)}(h h]h }(hjϖhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjݖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjChMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhjChMhj*hhubj)}(hhh]h)}(h-Read an LSM attribute of the current process.h]h-Read an LSM attribute of the current process.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``unsigned int attr`` which attribute to return ``struct lsm_ctx __user *uctx`` the user-space destination for the information, or NULL ``u32 __user *size`` pointer to the size of space available to receive the data ``u32 flags`` special handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported. **Description** A NULL value for **uctx** can be used to get both the number of attributes and the size of the data. Returns the number of attributes found on success, negative value on error. **size** is reset to the total size of the data. If **size** is insufficient to contain the data -E2BIG is returned.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#ubj )}(hhh](j)}(h0``unsigned int attr`` which attribute to return h](j)}(h``unsigned int attr``h]j)}(hjHh]hunsigned int attr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjBubj2)}(hhh]h)}(hwhich attribute to returnh]hwhich attribute to return}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?ubj)}(hX``struct lsm_ctx __user *uctx`` the user-space destination for the information, or NULL h](j)}(h``struct lsm_ctx __user *uctx``h]j)}(hjh]hstruct lsm_ctx __user *uctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ubj2)}(hhh]h)}(h7the user-space destination for the information, or NULLh]h7the user-space destination for the information, or NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubj)}(hP``u32 __user *size`` pointer to the size of space available to receive the data h](j)}(h``u32 __user *size``h]j)}(hjh]hu32 __user *size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h:pointer to the size of space available to receive the datah]h:pointer to the size of space available to receive the data}(hjӗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϗhMhjЗubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjϗhMhj?ubj)}(h``u32 flags`` special handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported. h](j)}(h ``u32 flags``h]j)}(hjh]h u32 flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hspecial handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed **ctx** be reported.h](hzspecial handling options. LSM_FLAG_SINGLE indicates that only attributes associated with the LSM identified in the passed }(hj hhhNhNubj)}(h**ctx**h]hctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh be reported.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubeh}(h]h ]h"]h$]h&]uh1j hj#ubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#ubh)}(hdA NULL value for **uctx** can be used to get both the number of attributes and the size of the data.h](hA NULL value for }(hjWhhhNhNubj)}(h**uctx**h]huctx}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhK can be used to get both the number of attributes and the size of the data.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#ubh)}(hReturns the number of attributes found on success, negative value on error. **size** is reset to the total size of the data. If **size** is insufficient to contain the data -E2BIG is returned.h](hLReturns the number of attributes found on success, negative value on error. }(hjxhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh, is reset to the total size of the data. If }(hjxhhhNhNubj)}(h**size**h]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh8 is insufficient to contain the data -E2BIG is returned.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_setselfattr (C function)c.security_setselfattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h^int security_setselfattr (unsigned int attr, struct lsm_ctx __user *uctx, u32 size, u32 flags)h]j)}(h]int security_setselfattr(unsigned int attr, struct lsm_ctx __user *uctx, u32 size, u32 flags)h](j )}(hinth]hint}(hj˘hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjǘhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjژhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjǘhhhj٘hMubj{)}(hsecurity_setselfattrh]j)}(hsecurity_setselfattrh]hsecurity_setselfattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjǘhhhj٘hMubj)}(hE(unsigned int attr, struct lsm_ctx __user *uctx, u32 size, u32 flags)h](j)}(hunsigned int attrh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hattrh]hattr}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct lsm_ctx __user *uctxh](j)}(hj h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubh)}(hhh]j)}(hlsm_ctxh]hlsm_ctx}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjymodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_setselfattrasbuh1hhjUubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubh__user}(hjUhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(huctxh]huctx}(hjęhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 sizeh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݙubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_setselfattrasbuh1hhjٙubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjٙubj)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٙubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]jc.security_setselfattrasbuh1hhj!ubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hflagsh]hflags}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjǘhhhj٘hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjØhhhj٘hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj٘hMhjhhubj)}(hhh]h)}(h,Set an LSM attribute on the current process.h]h,Set an LSM attribute on the current process.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj٘hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``unsigned int attr`` which attribute to set ``struct lsm_ctx __user *uctx`` the user-space source for the information ``u32 size`` the size of the data ``u32 flags`` reserved for future use, must be 0 **Description** Set an LSM attribute for the current process. The LSM, attribute and new value are included in **uctx**. Returns 0 on success, -EINVAL if the input is inconsistent, -EFAULT if the user buffer is inaccessible, E2BIG if size is too big, or an LSM specific failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h-``unsigned int attr`` which attribute to set h](j)}(h``unsigned int attr``h]j)}(hjh]hunsigned int attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hwhich attribute to seth]hwhich attribute to set}(hjؚhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԚhMhj՚ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjԚhMhjubj)}(hJ``struct lsm_ctx __user *uctx`` the user-space source for the information h](j)}(h``struct lsm_ctx __user *uctx``h]j)}(hjh]hstruct lsm_ctx __user *uctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h)the user-space source for the informationh]h)the user-space source for the information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h"``u32 size`` the size of the data h](j)}(h ``u32 size``h]j)}(hj1h]hu32 size}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj+ubj2)}(hhh]h)}(hthe size of the datah]hthe size of the data}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjubj)}(h1``u32 flags`` reserved for future use, must be 0 h](j)}(h ``u32 flags``h]j)}(hjjh]h u32 flags}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjdubj2)}(hhh]h)}(h"reserved for future use, must be 0h]h"reserved for future use, must be 0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hhSet an LSM attribute for the current process. The LSM, attribute and new value are included in **uctx**.h](h_Set an LSM attribute for the current process. The LSM, attribute and new value are included in }(hjhhhNhNubj)}(h**uctx**h]huctx}(hjÛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hReturns 0 on success, -EINVAL if the input is inconsistent, -EFAULT if the user buffer is inaccessible, E2BIG if size is too big, or an LSM specific failure.h]hReturns 0 on success, -EINVAL if the input is inconsistent, -EFAULT if the user buffer is inaccessible, E2BIG if size is too big, or an LSM specific failure.}(hjܛhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_getprocattr (C function)c.security_getprocattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h[int security_getprocattr (struct task_struct *p, int lsmid, const char *name, char **value)h]j)}(hZint security_getprocattr(struct task_struct *p, int lsmid, const char *name, char **value)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_getprocattrh]j)}(hsecurity_getprocattrh]hsecurity_getprocattr}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hB(struct task_struct *p, int lsmid, const char *name, char **value)h](j)}(hstruct task_struct *ph](j)}(hj h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubh)}(hhh]j)}(h task_structh]h task_struct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]jf )}jY j.sbc.security_getprocattrasbuh1hhjDubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h int lsmidh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjǜhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlsmidh]hlsmid}(hj՜hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubj)}(h char **valueh](j )}(hcharh]hchar}(hjKhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hRead an attribute for a taskh]hRead an attribute for a task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjÝjjÝjjjuh1jhhhj-hNhNubj)}(hXY**Parameters** ``struct task_struct *p`` the task ``int lsmid`` LSM identification ``const char *name`` attribute name ``char **value`` attribute value **Description** Read attribute **name** for task **p** and store it into **value** if allowed. **Return** Returns the length of **value** on success, a negative value otherwise.h](h)}(h**Parameters**h]j)}(hj͝h]h Parameters}(hjϝhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˝ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjǝubj )}(hhh](j)}(h#``struct task_struct *p`` the task h](j)}(h``struct task_struct *p``h]j)}(hjh]hstruct task_struct *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hthe taskh]hthe task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``int lsmid`` LSM identification h](j)}(h ``int lsmid``h]j)}(hj%h]h int lsmid}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hLSM identificationh]hLSM identification}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(h$``const char *name`` attribute name h](j)}(h``const char *name``h]j)}(hj^h]hconst char *name}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXubj2)}(hhh]h)}(hattribute nameh]hattribute name}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubj)}(h!``char **value`` attribute value h](j)}(h``char **value``h]j)}(hjh]h char **value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hattribute valueh]hattribute value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjǝubh)}(h**Description**h]j)}(hjҞh]h Description}(hjԞhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjОubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjǝubh)}(hNRead attribute **name** for task **p** and store it into **value** if allowed.h](hRead attribute }(hjhhhNhNubj)}(h**name**h]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for task }(hjhhhNhNubj)}(h**p**h]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and store it into }(hjhhhNhNubj)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if allowed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjǝubh)}(h **Return**h]j)}(hj/h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjǝubh)}(hGReturns the length of **value** on success, a negative value otherwise.h](hReturns the length of }(hjEhhhNhNubj)}(h **value**h]hvalue}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh( on success, a negative value otherwise.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjǝubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_setprocattr (C function)c.security_setprocattrhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hPint security_setprocattr (int lsmid, const char *name, void *value, size_t size)h]j)}(hOint security_setprocattr(int lsmid, const char *name, void *value, size_t size)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM(ubj{)}(hsecurity_setprocattrh]j)}(hsecurity_setprocattrh]hsecurity_setprocattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM(ubj)}(h7(int lsmid, const char *name, void *value, size_t size)h](j)}(h int lsmidh](j )}(hinth]hint}(hjßhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjџhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlsmidh]hlsmid}(hjߟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *valueh](j )}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hvalueh]hvalue}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_setprocattrasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hjȠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM(ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhjhM(ubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jhjhM(hj{hhubj)}(hhh]h)}(hSet an attribute for a taskh]hSet an attribute for a task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjhhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj-hNhNubj)}(hX[**Parameters** ``int lsmid`` LSM identification ``const char *name`` attribute name ``void *value`` attribute value ``size_t size`` attribute value size **Description** Write (set) the current task's attribute **name** to **value**, size **size** if allowed. **Return** Returns bytes written on success, a negative value otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjubj )}(hhh](j)}(h!``int lsmid`` LSM identification h](j)}(h ``int lsmid``h]j)}(hj3h]h int lsmid}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hj-ubj2)}(hhh]h)}(hLSM identificationh]hLSM identification}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM)hjIubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhM)hj*ubj)}(h$``const char *name`` attribute name h](j)}(h``const char *name``h]j)}(hjlh]hconst char *name}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjfubj2)}(hhh]h)}(hattribute nameh]hattribute name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjhM*hj*ubj)}(h ``void *value`` attribute value h](j)}(h``void *value``h]j)}(hjh]h void *value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjubj2)}(hhh]h)}(hattribute valueh]hattribute value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hj*ubj)}(h%``size_t size`` attribute value size h](j)}(h``size_t size``h]j)}(hjޡh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܡubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjءubj2)}(hhh]h)}(hattribute value sizeh]hattribute value size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM,hjubah}(h]h ]h"]h$]h&]uh1j1hjءubeh}(h]h ]h"]h$]h&]uh1jhjhM,hj*ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjubh)}(hYWrite (set) the current task's attribute **name** to **value**, size **size** if allowed.h](h+Write (set) the current task’s attribute }(hj/hhhNhNubj)}(h**name**h]hname}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh to }(hj/hhhNhNubj)}(h **value**h]hvalue}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh, size }(hj/hhhNhNubj)}(h**size**h]hsize}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubh if allowed.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hjubh)}(h **Return**h]j)}(hjvh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hjubh)}(h=Returns bytes written on success, a negative value otherwise.h]h=Returns bytes written on success, a negative value otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_post_notification (C function)c.security_post_notificationhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hqint security_post_notification (const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h]j)}(hpint security_post_notification(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjʢhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjɢhMubj{)}(hsecurity_post_notificationh]j)}(hsecurity_post_notificationh]hsecurity_post_notification}(hjܢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjآubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjɢhMubj)}(hR(const struct cred *w_cred, const struct cred *cred, struct watch_notification *n)h](j)}(hconst struct cred *w_credh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hcredh]hcred}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]jf )}jY jޢsbc.security_post_notificationasbuh1hhjubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hw_credh]hw_cred}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jMc.security_post_notificationasbuh1hhjubj2)}(h h]h }(hjܣhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct watch_notification *nh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hwatch_notificationh]hwatch_notification}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0modnameN classnameNj] j` )}jc ]jMc.security_post_notificationasbuh1hhj ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]hn}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjɢhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjɢhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjɢhMhjhhubj)}(hhh]h)}(h+Check if a watch notification can be postedh]h+Check if a watch notification can be posted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjɢhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hXm**Parameters** ``const struct cred *w_cred`` credentials of the task that set the watch ``const struct cred *cred`` credentials of the task which triggered the watch ``struct watch_notification *n`` the notification **Description** Check to see if a watch notification can be posted to a particular queue. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(hI``const struct cred *w_cred`` credentials of the task that set the watch h](j)}(h``const struct cred *w_cred``h]j)}(hjѤh]hconst struct cred *w_cred}(hjӤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϤubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjˤubj2)}(hhh]h)}(h*credentials of the task that set the watchh]h*credentials of the task that set the watch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjˤubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȤubj)}(hN``const struct cred *cred`` credentials of the task which triggered the watch h](j)}(h``const struct cred *cred``h]j)}(hj h]hconst struct cred *cred}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h1credentials of the task which triggered the watchh]h1credentials of the task which triggered the watch}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȤubj)}(h2``struct watch_notification *n`` the notification h](j)}(h ``struct watch_notification *n``h]j)}(hjCh]hstruct watch_notification *n}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj=ubj2)}(hhh]h)}(hthe notificationh]hthe notification}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjȤubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hICheck to see if a watch notification can be posted to a particular queue.h]hICheck to see if a watch notification can be posted to a particular queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_watch_key (C function)c.security_watch_keyhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h(int security_watch_key (struct key *key)h]j)}(h'int security_watch_key(struct key *key)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_watch_keyh]j)}(hsecurity_watch_keyh]hsecurity_watch_key}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hj h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubh)}(hhh]j)}(hkeyh]hkey}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGmodnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_watch_keyasbuh1hhj#ubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jݥah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjߥhhubj)}(hhh]h)}(h2Check if a task is allowed to watch for key eventsh]h2Check if a task is allowed to watch for key events}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjߥhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj¦jj¦jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct key *key`` the key to watch **Description** Check to see if a process is allowed to watch for event notifications from a key or keyring. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj̦h]h Parameters}(hjΦhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʦubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjƦubj )}(hhh]j)}(h%``struct key *key`` the key to watch h](j)}(h``struct key *key``h]j)}(hjh]hstruct key *key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hthe key to watchh]hthe key to watch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjƦubh)}(h**Description**h]j)}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjƦubh)}(h\Check to see if a process is allowed to watch for event notifications from a key or keyring.h]h\Check to see if a process is allowed to watch for event notifications from a key or keyring.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjƦubh)}(h **Return**h]j)}(hjMh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjƦubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjƦubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_netlink_send (C function)c.security_netlink_sendhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h@int security_netlink_send (struct sock *sk, struct sk_buff *skb)h]j)}(h?int security_netlink_send(struct sock *sk, struct sk_buff *skb)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hsecurity_netlink_sendh]j)}(hsecurity_netlink_sendh]hsecurity_netlink_send}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h&(struct sock *sk, struct sk_buff *skb)h](j)}(hstruct sock *skh](j)}(hj h]hstruct}(hjϧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˧ubj2)}(h h]h }(hjܧhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj˧ubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_netlink_sendasbuh1hhj˧ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj˧ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˧ubj)}(hskh]hsk}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˧ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjǧubj)}(hstruct sk_buff *skbh](j)}(hj h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubh)}(hhh]j)}(hsk_buffh]hsk_buff}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjamodnameN classnameNj] j` )}jc ]j c.security_netlink_sendasbuh1hhj=ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hskbh]hskb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjǧubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(h1Save info and check if netlink sending is allowedh]h1Save info and check if netlink sending is allowed}(hj¨hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjڨjjڨjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct sock *sk`` sending socket ``struct sk_buff *skb`` netlink message **Description** Save security information for a netlink message so that permission checking can be performed when the message is processed. The security information can be saved using the eff_cap field of the netlink_skb_parms structure. Also may be used to provide fine grained control over message transmission. **Return** Returns 0 if the information was successfully saved and message is allowed to be transmitted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjިubj )}(hhh](j)}(h#``struct sock *sk`` sending socket h](j)}(h``struct sock *sk``h]j)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hsending socketh]hsending socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h(``struct sk_buff *skb`` netlink message h](j)}(h``struct sk_buff *skb``h]j)}(hj<h]hstruct sk_buff *skb}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj6ubj2)}(hhh]h)}(hnetlink messageh]hnetlink message}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM hjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjubeh}(h]h ]h"]h$]h&]uh1j hjިubh)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjިubh)}(hX*Save security information for a netlink message so that permission checking can be performed when the message is processed. The security information can be saved using the eff_cap field of the netlink_skb_parms structure. Also may be used to provide fine grained control over message transmission.h]hX*Save security information for a netlink message so that permission checking can be performed when the message is processed. The security information can be saved using the eff_cap field of the netlink_skb_parms structure. Also may be used to provide fine grained control over message transmission.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjިubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjިubh)}(h]Returns 0 if the information was successfully saved and message is allowed to be transmitted.h]h]Returns 0 if the information was successfully saved and message is allowed to be transmitted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjިubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_socket_create (C function)c.security_socket_createhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hIint security_socket_create (int family, int type, int protocol, int kern)h]j)}(hHint security_socket_create(int family, int type, int protocol, int kern)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjߩhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMSubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjߩhhhjhMSubj{)}(hsecurity_socket_createh]j)}(hsecurity_socket_createh]hsecurity_socket_create}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjߩhhhjhMSubj)}(h.(int family, int type, int protocol, int kern)h](j)}(h int familyh](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfamilyh]hfamily}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint typeh](j )}(hinth]hint}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(htypeh]htype}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int protocolh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hprotocolh]hprotocol}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint kernh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjͪhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hkernh]hkern}(hj۪hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjߩhhhjhMSubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj۩hhhjhMSubah}(h]j֩ah ](jjeh"]h$]h&]jj)jhuh1jhjhMShjةhhubj)}(hhh]h)}(h)Check if creating a new socket is allowedh]h)Check if creating a new socket is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShjhhubah}(h]h ]h"]h$]h&]uh1jhjةhhhjhMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX)**Parameters** ``int family`` protocol family ``int type`` communications type ``int protocol`` requested protocol ``int kern`` set to 1 if a kernel socket is requested **Description** Check permissions prior to creating a new socket. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhj!ubj )}(hhh](j)}(h``int family`` protocol family h](j)}(h``int family``h]j)}(hjFh]h int family}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThj@ubj2)}(hhh]h)}(hprotocol familyh]hprotocol family}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMThj\ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMThj=ubj)}(h!``int type`` communications type h](j)}(h ``int type``h]j)}(hjh]hint type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjyubj2)}(hhh]h)}(hcommunications typeh]hcommunications type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMUhjubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjhMUhj=ubj)}(h$``int protocol`` requested protocol h](j)}(h``int protocol``h]j)}(hjh]h int protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjubj2)}(hhh]h)}(hrequested protocolh]hrequested protocol}(hjѫhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjͫhMVhjΫubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjͫhMVhj=ubj)}(h6``int kern`` set to 1 if a kernel socket is requested h](j)}(h ``int kern``h]j)}(hjh]hint kern}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjubj2)}(hhh]h)}(h(set to 1 if a kernel socket is requestedh]h(set to 1 if a kernel socket is requested}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhj=ubeh}(h]h ]h"]h$]h&]uh1j hj!ubh)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj!ubh)}(h1Check permissions prior to creating a new socket.h]h1Check permissions prior to creating a new socket.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhj!ubh)}(h **Return**h]j)}(hjSh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMZhj!ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_socket_post_create (C function)c.security_socket_post_createhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hcint security_socket_post_create (struct socket *sock, int family, int type, int protocol, int kern)h]j)}(hbint security_socket_post_create(struct socket *sock, int family, int type, int protocol, int kern)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMcubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMcubj{)}(hsecurity_socket_post_createh]j)}(hsecurity_socket_post_createh]hsecurity_socket_post_create}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMcubj)}(hC(struct socket *sock, int family, int type, int protocol, int kern)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hjլhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѬubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjѬubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_post_createasbuh1hhjѬubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjѬubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѬubj)}(hsockh]hsock}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѬubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjͬubj)}(h int familyh](j )}(hinth]hint}(hjGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hfamilyh]hfamily}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjͬubj)}(hint typeh](j )}(hinth]hint}(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjͬubj)}(h int protocolh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hprotocolh]hprotocol}(hjͭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjͬubj)}(hint kernh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hkernh]hkern}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjͬubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMcubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMchjhhubj)}(hhh]h)}(h!Initialize a newly created socketh]h!Initialize a newly created socket}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMchj)hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct socket *sock`` socket ``int family`` protocol family ``int type`` communications type ``int protocol`` requested protocol ``int kern`` set to 1 if a kernel socket is requested **Description** This hook allows a module to update or allocate a per-socket security structure. Note that the security field was not added directly to the socket structure, but rather, the socket security information is stored in the associated inode. Typically, the inode alloc_security hook will allocate and attach security information to SOCK_INODE(sock)->i_security. This hook may be used to update the SOCK_INODE(sock)->i_security field with additional information that wasn't available when the inode was allocated. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjHubj )}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjmh]hstruct socket *sock}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjgubj2)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjdubj)}(h``int family`` protocol family h](j)}(h``int family``h]j)}(hjh]h int family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehjubj2)}(hhh]h)}(hprotocol familyh]hprotocol family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjdubj)}(h!``int type`` communications type h](j)}(h ``int type``h]j)}(hj߮h]hint type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݮubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhjٮubj2)}(hhh]h)}(hcommunications typeh]hcommunications type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j1hjٮubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjdubj)}(h$``int protocol`` requested protocol h](j)}(h``int protocol``h]j)}(hjh]h int protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjubj2)}(hhh]h)}(hrequested protocolh]hrequested protocol}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMghj.ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj-hMghjdubj)}(h6``int kern`` set to 1 if a kernel socket is requested h](j)}(h ``int kern``h]j)}(hjQh]hint kern}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhjKubj2)}(hhh]h)}(h(set to 1 if a kernel socket is requestedh]h(set to 1 if a kernel socket is requested}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhhjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhhjdubeh}(h]h ]h"]h$]h&]uh1j hjHubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhjHubh)}(hXThis hook allows a module to update or allocate a per-socket security structure. Note that the security field was not added directly to the socket structure, but rather, the socket security information is stored in the associated inode. Typically, the inode alloc_security hook will allocate and attach security information to SOCK_INODE(sock)->i_security. This hook may be used to update the SOCK_INODE(sock)->i_security field with additional information that wasn't available when the inode was allocated.h]hXThis hook allows a module to update or allocate a per-socket security structure. Note that the security field was not added directly to the socket structure, but rather, the socket security information is stored in the associated inode. Typically, the inode alloc_security hook will allocate and attach security information to SOCK_INODE(sock)->i_security. This hook may be used to update the SOCK_INODE(sock)->i_security field with additional information that wasn’t available when the inode was allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihjHubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhjHubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjɯhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !security_socket_bind (C function)c.security_socket_bindhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hUint security_socket_bind (struct socket *sock, struct sockaddr *address, int addrlen)h]j)}(hTint security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_socket_bindh]j)}(hsecurity_socket_bindh]hsecurity_socket_bind}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubh)}(hhh]j)}(hsocketh]hsocket}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjUmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_bindasbuh1hhj1ubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(hstruct sockaddr *addressh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsockaddrh]hsockaddr}(hjŰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj°ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjǰmodnameN classnameNj] j` )}jc ]joc.security_socket_bindasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubj)}(h int addrlenh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(haddrlenh]haddrlen}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h+Check if a socket bind operation is allowedh]h+Check if a socket bind operation is allowed}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhj-hNhNubj)}(hXq**Parameters** ``struct socket *sock`` socket ``struct sockaddr *address`` requested bind address ``int addrlen`` length of address **Description** Check permission before socket protocol layer bind operation is performed and the socket **sock** is bound to the address specified in the **address** parameter. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyubj )}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``struct sockaddr *address`` requested bind address h](j)}(h``struct sockaddr *address``h]j)}(hjױh]hstruct sockaddr *address}(hjٱhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjձubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjѱubj2)}(hhh]h)}(hrequested bind addressh]hrequested bind address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjѱubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``int addrlen`` length of address h](j)}(h``int addrlen``h]j)}(hjh]h int addrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj2)}(hhh]h)}(hlength of addressh]hlength of address}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubeh}(h]h ]h"]h$]h&]uh1j hjyubh)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyubh)}(hCheck permission before socket protocol layer bind operation is performed and the socket **sock** is bound to the address specified in the **address** parameter.h](hYCheck permission before socket protocol layer bind operation is performed and the socket }(hjahhhNhNubj)}(h**sock**h]hsock}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh* is bound to the address specified in the }(hjahhhNhNubj)}(h **address**h]haddress}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh parameter.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_socket_connect (C function)c.security_socket_connecthNtauh1hhj-hhhNhNubj)}(hhh](j)}(hXint security_socket_connect (struct socket *sock, struct sockaddr *address, int addrlen)h]j)}(hWint security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen)h](j )}(hinth]hint}(hj۲hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjײhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjײhhhjhMubj{)}(hsecurity_socket_connecth]j)}(hsecurity_socket_connecth]hsecurity_socket_connect}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjײhhhjhMubj)}(h<(struct socket *sock, struct sockaddr *address, int addrlen)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsocketh]hsocket}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_connectasbuh1hhjubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sockaddr *addressh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsockaddrh]hsockaddr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jRc.security_socket_connectasbuh1hhjubj2)}(h h]h }(hjƳhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjԳhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int addrlenh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(haddrlenh]haddrlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjײhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjӲhhhjhMubah}(h]jβah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjвhhubj)}(hhh]h)}(h.Check if a socket connect operation is allowedh]h.Check if a socket connect operation is allowed}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhjвhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jhhhj-hNhNubj)}(hXa**Parameters** ``struct socket *sock`` socket ``struct sockaddr *address`` address of remote connection point ``int addrlen`` length of address **Description** Check permission before socket protocol layer connect operation attempts to connect socket **sock** to a remote address, **address**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubj )}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ubj2)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(h@``struct sockaddr *address`` address of remote connection point h](j)}(h``struct sockaddr *address``h]j)}(hjh]hstruct sockaddr *address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h"address of remote connection pointh]h"address of remote connection point}(hjӴhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϴhMhjдubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjϴhMhjxubj)}(h"``int addrlen`` length of address h](j)}(h``int addrlen``h]j)}(hjh]h int addrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hlength of addressh]hlength of address}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubeh}(h]h ]h"]h$]h&]uh1j hj\ubh)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubh)}(hCheck permission before socket protocol layer connect operation attempts to connect socket **sock** to a remote address, **address**.h](h[Check permission before socket protocol layer connect operation attempts to connect socket }(hjDhhhNhNubj)}(h**sock**h]hsock}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh to a remote address, }(hjDhhhNhNubj)}(h **address**h]haddress}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubh)}(h **Return**h]j)}(hjyh]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_socket_listen (C function)c.security_socket_listenhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h=int security_socket_listen (struct socket *sock, int backlog)h]j)}(hah"]h$]h&]uh1j1hjhhhj̵hMubj{)}(hsecurity_socket_listenh]j)}(hsecurity_socket_listenh]hsecurity_socket_listen}(hjߵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۵ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj̵hMubj)}(h"(struct socket *sock, int backlog)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_listenasbuh1hhjubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int backlogh](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjiubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(hbacklogh]hbacklog}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj̵hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj̵hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj̵hMhjhhubj)}(hhh]h)}(h&Check if a socket is allowed to listenh]h&Check if a socket is allowed to listen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̵hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj˶jj˶jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct socket *sock`` socket ``int backlog`` connection queue size **Description** Check permission before socket protocol layer listen operation. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjնh]h Parameters}(hj׶hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӶubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj϶ubj )}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hsocketh]hsocket}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h&``int backlog`` connection queue size h](j)}(h``int backlog``h]j)}(hj-h]h int backlog}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj'ubj2)}(hhh]h)}(hconnection queue sizeh]hconnection queue size}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubeh}(h]h ]h"]h$]h&]uh1j hj϶ubh)}(h**Description**h]j)}(hjhh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj϶ubh)}(h?Check permission before socket protocol layer listen operation.h]h?Check permission before socket protocol layer listen operation.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj϶ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj϶ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj϶ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_socket_accept (C function)c.security_socket_accepthNtauh1hhj-hhhNhNubj)}(hhh](j)}(hHint security_socket_accept (struct socket *sock, struct socket *newsock)h]j)}(hGint security_socket_accept(struct socket *sock, struct socket *newsock)h](j )}(hinth]hint}(hjԷhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjзhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjзhhhjhMubj{)}(hsecurity_socket_accepth]j)}(hsecurity_socket_accepth]hsecurity_socket_accept}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjзhhhjhMubj)}(h-(struct socket *sock, struct socket *newsock)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hsocketh]hsocket}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj1modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_acceptasbuh1hhj ubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hsockh]hsock}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct socket *newsockh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jKc.security_socket_acceptasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj͸hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewsockh]hnewsock}(hjڸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjзhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj̷hhhjhMubah}(h]jǷah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjɷhhubj)}(hhh]h)}(h2Check if a socket is allowed to accept connectionsh]h2Check if a socket is allowed to accept connections}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjɷhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct socket *sock`` listening socket ``struct socket *newsock`` newly creation connection socket **Description** Check permission before accepting a new connection. Note that the new socket, **newsock**, has been created and some information copied to it, but the accept operation has not actually been performed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj )}(hhh](j)}(h)``struct socket *sock`` listening socket h](j)}(h``struct socket *sock``h]j)}(hjEh]hstruct socket *sock}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?ubj2)}(hhh]h)}(hlistening socketh]hlistening socket}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1j1hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubj)}(h<``struct socket *newsock`` newly creation connection socket h](j)}(h``struct socket *newsock``h]j)}(hj~h]hstruct socket *newsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubj2)}(hhh]h)}(h newly creation connection socketh]h newly creation connection socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhj<ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(hCheck permission before accepting a new connection. Note that the new socket, **newsock**, has been created and some information copied to it, but the accept operation has not actually been performed.h](hOCheck permission before accepting a new connection. Note that the new socket, }(hjϹhhhNhNubj)}(h **newsock**h]hnewsock}(hj׹hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϹubho, has been created and some information copied to it, but the accept operation has not actually been performed.}(hjϹhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_socket_sendmsg (C function)c.security_socket_sendmsghNtauh1hhj-hhhNhNubj)}(hhh](j)}(hOint security_socket_sendmsg (struct socket *sock, struct msghdr *msg, int size)h]j)}(hNint security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size)h](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3hhhjEhMubj{)}(hsecurity_socket_sendmsgh]j)}(hsecurity_socket_sendmsgh]hsecurity_socket_sendmsg}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhjEhMubj)}(h3(struct socket *sock, struct msghdr *msg, int size)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jZsbc.security_socket_sendmsgasbuh1hhjpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hsockh]hsock}(hjͺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hstruct msghdr *msgh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hmsghdrh]hmsghdr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_socket_sendmsgasbuh1hhjubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsgh]hmsg}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hint sizeh](j )}(hinth]hint}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hsizeh]hsize}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhjEhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj/hhhjEhMubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1jhjEhMhj,hhubj)}(hhh]h)}(h%Check if sending a message is allowedh]h%Check if sending a message is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct socket *sock`` sending socket ``struct msghdr *msg`` message to send ``int size`` size of message **Description** Check permission before transmitting a message to another socket. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h'``struct socket *sock`` sending socket h](j)}(h``struct socket *sock``h]j)}(hjݻh]hstruct socket *sock}(hj߻hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۻubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj׻ubj2)}(hhh]h)}(hsending socketh]hsending socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj׻ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjԻubj)}(h'``struct msghdr *msg`` message to send h](j)}(h``struct msghdr *msg``h]j)}(hjh]hstruct msghdr *msg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hmessage to sendh]hmessage to send}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj+hMhjԻubj)}(h``int size`` size of message h](j)}(h ``int size``h]j)}(hjOh]hint size}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjIubj2)}(hhh]h)}(hsize of messageh]hsize of message}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjԻubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hACheck permission before transmitting a message to another socket.h]hACheck permission before transmitting a message to another socket.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjǼhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_socket_recvmsg (C function)c.security_socket_recvmsghNtauh1hhj-hhhNhNubj)}(hhh](j)}(hZint security_socket_recvmsg (struct socket *sock, struct msghdr *msg, int size, int flags)h]j)}(hYint security_socket_recvmsg(struct socket *sock, struct msghdr *msg, int size, int flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_socket_recvmsgh]j)}(hsecurity_socket_recvmsgh]hsecurity_socket_recvmsg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h>(struct socket *sock, struct msghdr *msg, int size, int flags)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubh)}(hhh]j)}(hsocketh]hsocket}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_recvmsgasbuh1hhj/ubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hstruct msghdr *msgh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hmsghdrh]hmsghdr}(hjýhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjŽmodnameN classnameNj] j` )}jc ]jmc.security_socket_recvmsgasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmsgh]hmsg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(hint sizeh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubj)}(h int flagsh](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hflagsh]hflags}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h'Check if receiving a message is allowedh]h'Check if receiving a message is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX(**Parameters** ``struct socket *sock`` receiving socket ``struct msghdr *msg`` message to receive ``int size`` size of message ``int flags`` operational flags **Description** Check permission before receiving a message from a socket. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h)``struct socket *sock`` receiving socket h](j)}(h``struct socket *sock``h]j)}(hjѾh]hstruct socket *sock}(hjӾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϾubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj˾ubj2)}(hhh]h)}(hreceiving socketh]hreceiving socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj˾ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȾubj)}(h*``struct msghdr *msg`` message to receive h](j)}(h``struct msghdr *msg``h]j)}(hj h]hstruct msghdr *msg}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hmessage to receiveh]hmessage to receive}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȾubj)}(h``int size`` size of message h](j)}(h ``int size``h]j)}(hjCh]hint size}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj=ubj2)}(hhh]h)}(hsize of messageh]hsize of message}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjȾubj)}(h ``int flags`` operational flags h](j)}(h ``int flags``h]j)}(hj|h]h int flags}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjvubj2)}(hhh]h)}(hoperational flagsh]hoperational flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjȾubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h:Check permission before receiving a message from a socket.h]h:Check permission before receiving a message from a socket.}(hjͿhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hj޿h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܿubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_socket_getsockname (C function)c.security_socket_getsocknamehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h5int security_socket_getsockname (struct socket *sock)h]j)}(h4int security_socket_getsockname(struct socket *sock)h](j )}(hinth]hint}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj1hMubj{)}(hsecurity_socket_getsocknameh]j)}(hsecurity_socket_getsocknameh]hsecurity_socket_getsockname}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj1hMubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubh)}(hhh]j)}(hsocketh]hsocket}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jFsbc.security_socket_getsocknameasbuh1hhj\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj1hMhjhhubj)}(hhh]h)}(h+Check if reading the socket addr is allowedh]h+Check if reading the socket addr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct socket *sock`` socket **Description** Check permission before reading the local address (name) of the socket object. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hj$h]hstruct socket *sock}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hsocketh]hsocket}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hNCheck permission before reading the local address (name) of the socket object.h]hNCheck permission before reading the local address (name) of the socket object.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_socket_getpeername (C function)c.security_socket_getpeernamehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h5int security_socket_getpeername (struct socket *sock)h]j)}(h4int security_socket_getpeername(struct socket *sock)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_socket_getpeernameh]j)}(hsecurity_socket_getpeernameh]hsecurity_socket_getpeername}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct socket *sock)h]j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsocketh]hsocket}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj(modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_getpeernameasbuh1hhjubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h+Check if reading the peer's addr is allowedh]h-Check if reading the peer’s addr is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct socket *sock`` socket **Description** Check permission before the remote address (name) of a socket object. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hECheck permission before the remote address (name) of a socket object.h]hECheck permission before the remote address (name) of a socket object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hj.h]hReturn}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_socket_getsockopt (C function)c.security_socket_getsockopthNtauh1hhj-hhhNhNubj)}(hhh](j)}(hLint security_socket_getsockopt (struct socket *sock, int level, int optname)h]j)}(hKint security_socket_getsockopt(struct socket *sock, int level, int optname)h](j )}(hinth]hint}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhjhMubj{)}(hsecurity_socket_getsockopth]j)}(hsecurity_socket_getsockopth]hsecurity_socket_getsockopt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjhMubj)}(h-(struct socket *sock, int level, int optname)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_getsockoptasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int levelh](j )}(hinth]hint}(hj"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlevelh]hlevel}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int optnameh](j )}(hinth]hint}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hoptnameh]hoptname}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhhubj)}(hhh]h)}(h+Check if reading a socket option is allowedh]h+Check if reading a socket option is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX **Parameters** ``struct socket *sock`` socket ``int level`` option's protocol level ``int optname`` option name **Description** Check permissions before retrieving the options associated with socket **sock**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj )}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h&``int level`` option's protocol level h](j)}(h ``int level``h]j)}(hjh]h int level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hoption's protocol levelh]hoption’s protocol level}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM hj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hM hjubj)}(h``int optname`` option name h](j)}(h``int optname``h]j)}(hjPh]h int optname}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjJubj2)}(hhh]h)}(h option nameh]h option name}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hjfubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjehM hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hPCheck permissions before retrieving the options associated with socket **sock**.h](hGCheck permissions before retrieving the options associated with socket }(hjhhhNhNubj)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_socket_setsockopt (C function)c.security_socket_setsockopthNtauh1hhj-hhhNhNubj)}(hhh](j)}(hLint security_socket_setsockopt (struct socket *sock, int level, int optname)h]j)}(hKint security_socket_setsockopt(struct socket *sock, int level, int optname)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_socket_setsockopth]j)}(hsecurity_socket_setsockopth]hsecurity_socket_setsockopt}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h-(struct socket *sock, int level, int optname)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubh)}(hhh]j)}(hsocketh]hsocket}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jf )}jY j,sbc.security_socket_setsockoptasbuh1hhjBubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(h int levelh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlevelh]hlevel}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(h int optnameh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hoptnameh]hoptname}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h+Check if setting a socket option is allowedh]h+Check if setting a socket option is allowed}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhj-hNhNubj)}(hX **Parameters** ``struct socket *sock`` socket ``int level`` option's protocol level ``int optname`` option name **Description** Check permissions before setting the options associated with socket **sock**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjOubj )}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjth]hstruct socket *sock}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjnubj2)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubj)}(h&``int level`` option's protocol level h](j)}(h ``int level``h]j)}(hjh]h int level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hoption's protocol levelh]hoption’s protocol level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubj)}(h``int optname`` option name h](j)}(h``int optname``h]j)}(hjh]h int optname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h option nameh]h option name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubeh}(h]h ]h"]h$]h&]uh1j hjOubh)}(h**Description**h]j)}(hj!h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjOubh)}(hMCheck permissions before setting the options associated with socket **sock**.h](hDCheck permissions before setting the options associated with socket }(hj7hhhNhNubj)}(h**sock**h]hsock}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjOubh)}(h **Return**h]j)}(hjZh]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjOubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_socket_shutdown (C function)c.security_socket_shutdownhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h;int security_socket_shutdown (struct socket *sock, int how)h]j)}(h:int security_socket_shutdown(struct socket *sock, int how)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM'ubj{)}(hsecurity_socket_shutdownh]j)}(hsecurity_socket_shutdownh]hsecurity_socket_shutdown}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM'ubj)}(h(struct socket *sock, int how)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_socket_shutdownasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint howh](j )}(hinth]hint}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hhowh]hhow}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM'ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM'ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM'hjhhubj)}(hhh]h)}(h-Checks if shutting down the socket is allowedh]h-Checks if shutting down the socket is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM'ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct socket *sock`` socket ``int how`` flag indicating how sends and receives are handled **Description** Checks permission before all or part of a connection on the socket **sock** is shut down. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjubj )}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjubj2)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjubj)}(h?``int how`` flag indicating how sends and receives are handled h](j)}(h ``int how``h]j)}(hjh]hint how}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hjubj2)}(hhh]h)}(h2flag indicating how sends and receives are handledh]h2flag indicating how sends and receives are handled}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM)hj$ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj#hM)hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjubh)}(hYChecks permission before all or part of a connection on the socket **sock** is shut down.h](hCChecks permission before all or part of a connection on the socket }(hj_hhhNhNubj)}(h**sock**h]hsock}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh is shut down.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .security_socket_getpeersec_stream (C function)#c.security_socket_getpeersec_streamhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hqint security_socket_getpeersec_stream (struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h]j)}(hpint security_socket_getpeersec_stream(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMHubj{)}(h!security_socket_getpeersec_streamh]j)}(h!security_socket_getpeersec_streamh]h!security_socket_getpeersec_stream}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMHubj)}(hK(struct socket *sock, sockptr_t optval, sockptr_t optlen, unsigned int len)h](j)}(hstruct socket *sockh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsocketh]hsocket}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$modnameN classnameNj] j` )}jc ]jf )}jY jsb#c.security_socket_getpeersec_streamasbuh1hhjubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsockh]hsock}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsockptr_t optvalh](h)}(hhh]j)}(h sockptr_th]h sockptr_t}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj{modnameN classnameNj] j` )}jc ]j>#c.security_socket_getpeersec_streamasbuh1hhjrubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(hoptvalh]hoptval}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsockptr_t optlenh](h)}(hhh]j)}(h sockptr_th]h sockptr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j>#c.security_socket_getpeersec_streamasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hoptlenh]hoptlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hj"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMHubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMHubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMHhjhhubj)}(hhh]h)}(hGet the remote peer labelh]hGet the remote peer label}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjehhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX/**Parameters** ``struct socket *sock`` socket ``sockptr_t optval`` destination buffer ``sockptr_t optlen`` size of peer label copied into the buffer ``unsigned int len`` maximum size of the destination buffer **Description** This hook allows the security module to provide peer socket security state for unix or connected tcp sockets to userspace via getsockopt SO_GETPEERSEC. For tcp sockets this can be meaningful if the socket is associated with an ipsec SA. **Return** Returns 0 if all is well, otherwise, typical getsockopt return values.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjubj )}(hhh](j)}(h``struct socket *sock`` socket h](j)}(h``struct socket *sock``h]j)}(hjh]hstruct socket *sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMIhjubj2)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubj)}(h(``sockptr_t optval`` destination buffer h](j)}(h``sockptr_t optval``h]j)}(hjh]hsockptr_t optval}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMJhjubj2)}(hhh]h)}(hdestination bufferh]hdestination buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubj)}(h?``sockptr_t optlen`` size of peer label copied into the buffer h](j)}(h``sockptr_t optlen``h]j)}(hjh]hsockptr_t optlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMKhjubj2)}(hhh]h)}(h)size of peer label copied into the bufferh]h)size of peer label copied into the buffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMKhj1ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj0hMKhjubj)}(h<``unsigned int len`` maximum size of the destination buffer h](j)}(h``unsigned int len``h]j)}(hjTh]hunsigned int len}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMLhjNubj2)}(hhh]h)}(h&maximum size of the destination bufferh]h&maximum size of the destination buffer}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMLhjjubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMLhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhjubh)}(hThis hook allows the security module to provide peer socket security state for unix or connected tcp sockets to userspace via getsockopt SO_GETPEERSEC. For tcp sockets this can be meaningful if the socket is associated with an ipsec SA.h]hThis hook allows the security module to provide peer socket security state for unix or connected tcp sockets to userspace via getsockopt SO_GETPEERSEC. For tcp sockets this can be meaningful if the socket is associated with an ipsec SA.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhjubh)}(hFReturns 0 if all is well, otherwise, typical getsockopt return values.h]hFReturns 0 if all is well, otherwise, typical getsockopt return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lsm_sock_alloc (C function)c.lsm_sock_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h1int lsm_sock_alloc (struct sock *sock, gfp_t gfp)h]j)}(h0int lsm_sock_alloc(struct sock *sock, gfp_t gfp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMsubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hMsubj{)}(hlsm_sock_alloch]j)}(hlsm_sock_alloch]hlsm_sock_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMsubj)}(h(struct sock *sock, gfp_t gfp)h](j)}(hstruct sock *sockh](j)}(hj h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubh)}(hhh]j)}(hsockh]hsock}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.lsm_sock_allocasbuh1hhj4ubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jrc.lsm_sock_allocasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMsubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hMshjhhubj)}(hhh]h)}(hallocate a composite sock blobh]hallocate a composite sock blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct sock *sock`` the sock that needs a blob ``gfp_t gfp`` allocation mode **Description** Allocate the sock blob for all the modules Returns 0, or -ENOMEM if memory can't be allocated.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjubj )}(hhh](j)}(h1``struct sock *sock`` the sock that needs a blob h](j)}(h``struct sock *sock``h]j)}(hjDh]hstruct sock *sock}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthj>ubj2)}(hhh]h)}(hthe sock that needs a blobh]hthe sock that needs a blob}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMthjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMthj;ubj)}(h``gfp_t gfp`` allocation mode h](j)}(h ``gfp_t gfp``h]j)}(hj}h]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhjwubj2)}(hhh]h)}(hallocation modeh]hallocation mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjhMuhj;ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjubh)}(h*Allocate the sock blob for all the modulesh]h*Allocate the sock blob for all the modules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjubh)}(h3Returns 0, or -ENOMEM if memory can't be allocated.h]h5Returns 0, or -ENOMEM if memory can’t be allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sk_alloc (C function)c.security_sk_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(hCint security_sk_alloc (struct sock *sk, int family, gfp_t priority)h]j)}(hBint security_sk_alloc(struct sock *sk, int family, gfp_t priority)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_sk_alloch]j)}(hsecurity_sk_alloch]hsecurity_sk_alloc}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h-(struct sock *sk, int family, gfp_t priority)h](j)}(hstruct sock *skh](j)}(hj h]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubh)}(hhh]j)}(hsockh]hsock}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjimodnameN classnameNj] j` )}jc ]jf )}jY j/sbc.security_sk_allocasbuh1hhjEubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(h int familyh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfamilyh]hfamily}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hgfp_t priorityh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_sk_allocasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hpriorityh]hpriority}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h)Allocate and initialize a sock's LSM blobh]h+Allocate and initialize a sock’s LSM blob}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jhhhj-hNhNubj)}(hXB**Parameters** ``struct sock *sk`` sock ``int family`` protocol family ``gfp_t priority`` gfp flags **Description** Allocate and attach a security structure to the sk->sk_security field, which is used to copy security attributes between local stream sockets. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubj )}(hhh](j)}(h``struct sock *sk`` sock h](j)}(h``struct sock *sk``h]j)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int family`` protocol family h](j)}(h``int family``h]j)}(hjh]h int family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hprotocol familyh]hprotocol family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``gfp_t priority`` gfp flags h](j)}(h``gfp_t priority``h]j)}(hjh]hgfp_t priority}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h gfp flagsh]h gfp flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjeubh)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(hAllocate and attach a security structure to the sk->sk_security field, which is used to copy security attributes between local stream sockets.h]hAllocate and attach a security structure to the sk->sk_security field, which is used to copy security attributes between local stream sockets.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(h **Return**h]j)}(hj^h]hReturn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sk_free (C function)c.security_sk_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h'void security_sk_free (struct sock *sk)h]j)}(h&void security_sk_free(struct sock *sk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_sk_freeh]j)}(hsecurity_sk_freeh]hsecurity_sk_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct sock *sk)h]j)}(hstruct sock *skh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_sk_freeasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskh]hsk}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hFree the sock's LSM blobh]hFree the sock’s LSM blob}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1jhhhj-hNhNubj)}(h[**Parameters** ``struct sock *sk`` sock **Description** Deallocate security structure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h``struct sock *sk`` sock h](j)}(h``struct sock *sk``h]j)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hDeallocate security structure.h]hDeallocate security structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_inet_csk_clone (C function)c.security_inet_csk_clonehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hQvoid security_inet_csk_clone (struct sock *newsk, const struct request_sock *req)h]j)}(hPvoid security_inet_csk_clone(struct sock *newsk, const struct request_sock *req)h](j )}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj2hMubj{)}(hsecurity_inet_csk_cloneh]j)}(hsecurity_inet_csk_cloneh]hsecurity_inet_csk_clone}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj2hMubj)}(h4(struct sock *newsk, const struct request_sock *req)h](j)}(hstruct sock *newskh](j)}(hj h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jGsbc.security_inet_csk_cloneasbuh1hhj]ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hnewskh]hnewsk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hconst struct request_sock *reqh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h request_sockh]h request_sock}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_inet_csk_cloneasbuh1hhjubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hreqh]hreq}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj2hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj2hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj2hMhjhhubj)}(hhh]h)}(h,Set new sock LSM state based on request_sockh]h,Set new sock LSM state based on request_sock}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct sock *newsk`` new sock ``const struct request_sock *req`` connection request_sock **Description** Set that LSM state of **sock** using the LSM state from **req**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h ``struct sock *newsk`` new sock h](j)}(h``struct sock *newsk``h]j)}(hjh]hstruct sock *newsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hnew sockh]hnew sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``const struct request_sock *req`` connection request_sock h](j)}(h"``const struct request_sock *req``h]j)}(hjh]hconst struct request_sock *req}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hconnection request_sockh]hconnection request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h@Set that LSM state of **sock** using the LSM state from **req**.h](hSet that LSM state of }(hj:hhhNhNubj)}(h**sock**h]hsock}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh using the LSM state from }(hj:hhhNhNubj)}(h**req**h]hreq}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubh.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_mptcp_add_subflow (C function)c.security_mptcp_add_subflowhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hBint security_mptcp_add_subflow (struct sock *sk, struct sock *ssk)h]j)}(hAint security_mptcp_add_subflow(struct sock *sk, struct sock *ssk)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_mptcp_add_subflowh]j)}(hsecurity_mptcp_add_subflowh]hsecurity_mptcp_add_subflow}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h#(struct sock *sk, struct sock *ssk)h](j)}(hstruct sock *skh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_mptcp_add_subflowasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskh]hsk}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sock *sskh](j)}(hj h]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubh)}(hhh]j)}(hsockh]hsock}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj\modnameN classnameNj] j` )}jc ]jc.security_mptcp_add_subflowasbuh1hhj8ubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hsskh]hssk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h+Inherit the LSM label from the MPTCP socketh]h+Inherit the LSM label from the MPTCP socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct sock *sk`` the owning MPTCP socket ``struct sock *ssk`` the new subflow **Description** Update the labeling for the given MPTCP subflow, to match the one of the owning MPTCP socket. This hook has to be called after the socket creation and initialization via the security_socket_create() and security_socket_post_create() LSM hooks. **Return** Returns 0 on success or a negative error code on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h,``struct sock *sk`` the owning MPTCP socket h](j)}(h``struct sock *sk``h]j)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hthe owning MPTCP socketh]hthe owning MPTCP socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``struct sock *ssk`` the new subflow h](j)}(h``struct sock *ssk``h]j)}(hj7h]hstruct sock *ssk}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1ubj2)}(hhh]h)}(hthe new subflowh]hthe new subflow}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hUpdate the labeling for the given MPTCP subflow, to match the one of the owning MPTCP socket. This hook has to be called after the socket creation and initialization via the security_socket_create() and security_socket_post_create() LSM hooks.h]hUpdate the labeling for the given MPTCP subflow, to match the one of the owning MPTCP socket. This hook has to be called after the socket creation and initialization via the security_socket_create() and security_socket_post_create() LSM hooks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h9Returns 0 on success or a negative error code on failure.h]h9Returns 0 on success or a negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_xfrm_policy_clone (C function)c.security_xfrm_policy_clonehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h]int security_xfrm_policy_clone (struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h]j)}(h\int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMUubj{)}(hsecurity_xfrm_policy_cloneh]j)}(hsecurity_xfrm_policy_cloneh]hsecurity_xfrm_policy_clone}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMUubj)}(h>(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)h](j)}(hstruct xfrm_sec_ctx *old_ctxh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_xfrm_policy_cloneasbuh1hhjubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hold_ctxh]hold_ctx}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_sec_ctx **new_ctxph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jUc.security_xfrm_policy_cloneasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnew_ctxph]hnew_ctxp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMUubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMUhjhhubj)}(hhh]h)}(hClone xfrm policy LSM stateh]hClone xfrm policy LSM state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jhhhj-hNhNubj)}(hX4**Parameters** ``struct xfrm_sec_ctx *old_ctx`` xfrm security context ``struct xfrm_sec_ctx **new_ctxp`` target xfrm security context **Description** Allocate a security structure in new_ctxp that contains the information from the old_ctx structure. **Return** Return 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj7ubj )}(hhh](j)}(h7``struct xfrm_sec_ctx *old_ctx`` xfrm security context h](j)}(h ``struct xfrm_sec_ctx *old_ctx``h]j)}(hj\h]hstruct xfrm_sec_ctx *old_ctx}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMVhjVubj2)}(hhh]h)}(hxfrm security contexth]hxfrm security context}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMVhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMVhjSubj)}(h@``struct xfrm_sec_ctx **new_ctxp`` target xfrm security context h](j)}(h"``struct xfrm_sec_ctx **new_ctxp``h]j)}(hjh]hstruct xfrm_sec_ctx **new_ctxp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMWhjubj2)}(hhh]h)}(htarget xfrm security contexth]htarget xfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMWhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjSubeh}(h]h ]h"]h$]h&]uh1j hj7ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMYhj7ubh)}(hcAllocate a security structure in new_ctxp that contains the information from the old_ctx structure.h]hcAllocate a security structure in new_ctxp that contains the information from the old_ctx structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMXhj7ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM[hj7ubh)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM\hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_xfrm_policy_delete (C function)c.security_xfrm_policy_deletehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h:int security_xfrm_policy_delete (struct xfrm_sec_ctx *ctx)h]j)}(h9int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx)h](j )}(hinth]hint}(hj<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8hhhjJhMqubj{)}(hsecurity_xfrm_policy_deleteh]j)}(hsecurity_xfrm_policy_deleteh]hsecurity_xfrm_policy_delete}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhjJhMqubj)}(h(struct xfrm_sec_ctx *ctx)h]j)}(hstruct xfrm_sec_ctx *ctxh](j)}(hj h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j_sbc.security_xfrm_policy_deleteasbuh1hhjuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhjJhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjJhMqubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jhjJhMqhj1hhubj)}(hhh]h)}(h*Check if deleting a xfrm policy is allowedh]h*Check if deleting a xfrm policy is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMqhjhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjJhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct xfrm_sec_ctx *ctx`` xfrm security context **Description** Authorize deletion of a SPD entry. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhjubj )}(hhh]j)}(h3``struct xfrm_sec_ctx *ctx`` xfrm security context h](j)}(h``struct xfrm_sec_ctx *ctx``h]j)}(hj=h]hstruct xfrm_sec_ctx *ctx}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMrhj7ubj2)}(hhh]h)}(hxfrm security contexth]hxfrm security context}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMrhjSubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMrhj4ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMthjubh)}(h"Authorize deletion of a SPD entry.h]h"Authorize deletion of a SPD entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMshjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .security_xfrm_state_alloc_acquire (C function)#c.security_xfrm_state_alloc_acquirehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hdint security_xfrm_state_alloc_acquire (struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h]j)}(hcint security_xfrm_state_alloc_acquire(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(h!security_xfrm_state_alloc_acquireh]j)}(h!security_xfrm_state_alloc_acquireh]h!security_xfrm_state_alloc_acquire}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h>(struct xfrm_state *x, struct xfrm_sec_ctx *polsec, u32 secid)h](j)}(hstruct xfrm_state *xh](j)}(hj h]hstruct}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h xfrm_stateh]h xfrm_state}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjAmodnameN classnameNj] j` )}jc ]jf )}jY jsb#c.security_xfrm_state_alloc_acquireasbuh1hhjubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hx}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_sec_ctx *polsech](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j[#c.security_xfrm_state_alloc_acquireasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpolsech]hpolsec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 secidh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j[#c.security_xfrm_state_alloc_acquireasbuh1hhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsecidh]hsecid}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hAllocate a xfrm state LSM blobh]hAllocate a xfrm state LSM blob}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjXhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct xfrm_state *x`` xfrm state being added to the SAD ``struct xfrm_sec_ctx *polsec`` associated policy's security context ``u32 secid`` secid from the flow **Description** Allocate a security structure to the x->security field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to secid. **Return** Returns 0 if operation was successful.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubj )}(hhh](j)}(h;``struct xfrm_state *x`` xfrm state being added to the SAD h](j)}(h``struct xfrm_state *x``h]j)}(hjh]hstruct xfrm_state *x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h!xfrm state being added to the SADh]h!xfrm state being added to the SAD}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hE``struct xfrm_sec_ctx *polsec`` associated policy's security context h](j)}(h``struct xfrm_sec_ctx *polsec``h]j)}(hjh]hstruct xfrm_sec_ctx *polsec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h$associated policy's security contexth]h&associated policy’s security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``u32 secid`` secid from the flow h](j)}(h ``u32 secid``h]j)}(hjh]h u32 secid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hsecid from the flowh]hsecid from the flow}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubeh}(h]h ]h"]h$]h&]uh1j hjwubh)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubh)}(hAllocate a security structure to the x->security field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to secid.h]hAllocate a security structure to the x->security field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to secid.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubh)}(h **Return**h]j)}(hjph]hReturn}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubh)}(h&Returns 0 if operation was successful.h]h&Returns 0 if operation was successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_xfrm_state_free (C function)c.security_xfrm_state_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h4void security_xfrm_state_free (struct xfrm_state *x)h]j)}(h3void security_xfrm_state_free(struct xfrm_state *x)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_xfrm_state_freeh]j)}(hsecurity_xfrm_state_freeh]hsecurity_xfrm_state_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct xfrm_state *x)h]j)}(hstruct xfrm_state *xh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h xfrm_stateh]h xfrm_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_xfrm_state_freeasbuh1hhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hx}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hFree a xfrm stateh]hFree a xfrm state}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h_**Parameters** ``struct xfrm_state *x`` xfrm state **Description** Deallocate x->security.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h$``struct xfrm_state *x`` xfrm state h](j)}(h``struct xfrm_state *x``h]j)}(hjh]hstruct xfrm_state *x}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h xfrm stateh]h xfrm state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hDeallocate x->security.h]hDeallocate x->security.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (security_xfrm_policy_lookup (C function)c.security_xfrm_policy_lookuphNtauh1hhj-hhhNhNubj)}(hhh](j)}(hHint security_xfrm_policy_lookup (struct xfrm_sec_ctx *ctx, u32 fl_secid)h]j)}(hGint security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid)h](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1hhhjChMubj{)}(hsecurity_xfrm_policy_lookuph]j)}(hsecurity_xfrm_policy_lookuph]hsecurity_xfrm_policy_lookup}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhjChMubj)}(h((struct xfrm_sec_ctx *ctx, u32 fl_secid)h](j)}(hstruct xfrm_sec_ctx *ctxh](j)}(hj h]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubh)}(hhh]j)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jXsbc.security_xfrm_policy_lookupasbuh1hhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h u32 fl_secidh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_xfrm_policy_lookupasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfl_secidh]hfl_secid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjChMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhjChMhj*hhubj)}(hhh]h)}(h'Check if using a xfrm policy is allowedh]h'Check if using a xfrm policy is allowed}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct xfrm_sec_ctx *ctx`` target xfrm security context ``u32 fl_secid`` flow secid used to authorize access **Description** Check permission when a flow selects a xfrm_policy for processing XFRMs on a packet. The hook is called when selecting either a per-socket policy or a generic xfrm policy. **Return** Return 0 if permission is granted, -ESRCH otherwise, or -errno on other errors.h](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubj )}(hhh](j)}(h:``struct xfrm_sec_ctx *ctx`` target xfrm security context h](j)}(h``struct xfrm_sec_ctx *ctx``h]j)}(hj~h]hstruct xfrm_sec_ctx *ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjxubj2)}(hhh]h)}(htarget xfrm security contexth]htarget xfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(h5``u32 fl_secid`` flow secid used to authorize access h](j)}(h``u32 fl_secid``h]j)}(hjh]h u32 fl_secid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h#flow secid used to authorize accessh]h#flow secid used to authorize access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubeh}(h]h ]h"]h$]h&]uh1j hjYubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubh)}(hCheck permission when a flow selects a xfrm_policy for processing XFRMs on a packet. The hook is called when selecting either a per-socket policy or a generic xfrm policy.h]hCheck permission when a flow selects a xfrm_policy for processing XFRMs on a packet. The hook is called when selecting either a per-socket policy or a generic xfrm policy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubh)}(hOReturn 0 if permission is granted, -ESRCH otherwise, or -errno on other errors.h]hOReturn 0 if permission is granted, -ESRCH otherwise, or -errno on other errors.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j /security_xfrm_state_pol_flow_match (C function)$c.security_xfrm_state_pol_flow_matchhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hvint security_xfrm_state_pol_flow_match (struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h]j)}(huint security_xfrm_state_pol_flow_match(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](j )}(hinth]hint}(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZhhhjlhMubj{)}(h"security_xfrm_state_pol_flow_matchh]j)}(h"security_xfrm_state_pol_flow_matchh]h"security_xfrm_state_pol_flow_match}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjZhhhjlhMubj)}(hO(struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi_common *flic)h](j)}(hstruct xfrm_state *xh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h xfrm_stateh]h xfrm_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb$c.security_xfrm_state_pol_flow_matchasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct xfrm_policy *xph](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h xfrm_policyh]h xfrm_policy}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,modnameN classnameNj] j` )}jc ]j$c.security_xfrm_state_pol_flow_matchasbuh1hhjubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxph]hxp}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct flowi_common *flich](j)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubh)}(hhh]j)}(h flowi_commonh]h flowi_common}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j$c.security_xfrm_state_pol_flow_matchasbuh1hhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hflich]hflic}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjVhhhjlhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1jhjlhMhjShhubj)}(hhh]h)}(hCheck for a xfrm matchh]hCheck for a xfrm match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jhhhj-hNhNubj)}(hX/**Parameters** ``struct xfrm_state *x`` xfrm state to match ``struct xfrm_policy *xp`` xfrm policy to check for a match ``const struct flowi_common *flic`` flow to check for a match. **Description** Check **xp** and **flic** for a match with **x**. **Return** Returns 1 if there is a match.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubj )}(hhh](j)}(h-``struct xfrm_state *x`` xfrm state to match h](j)}(h``struct xfrm_state *x``h]j)}(hjYh]hstruct xfrm_state *x}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjSubj2)}(hhh]h)}(hxfrm state to matchh]hxfrm state to match}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjPubj)}(h<``struct xfrm_policy *xp`` xfrm policy to check for a match h](j)}(h``struct xfrm_policy *xp``h]j)}(hjh]hstruct xfrm_policy *xp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h xfrm policy to check for a matchh]h xfrm policy to check for a match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubj)}(h?``const struct flowi_common *flic`` flow to check for a match. h](j)}(h#``const struct flowi_common *flic``h]j)}(hjh]hconst struct flowi_common *flic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hflow to check for a match.h]hflow to check for a match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubeh}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubh)}(h1Check **xp** and **flic** for a match with **x**.h](hCheck }(hjhhhNhNubj)}(h**xp**h]hxp}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**flic**h]hflic}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for a match with }(hjhhhNhNubj)}(h**x**h]hx}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubh)}(h **Return**h]j)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubh)}(hReturns 1 if there is a match.h]hReturns 1 if there is a match.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_xfrm_decode_session (C function)c.security_xfrm_decode_sessionhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hBint security_xfrm_decode_session (struct sk_buff *skb, u32 *secid)h]j)}(hAint security_xfrm_decode_session(struct sk_buff *skb, u32 *secid)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_xfrm_decode_sessionh]j)}(hsecurity_xfrm_decode_sessionh]hsecurity_xfrm_decode_session}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h!(struct sk_buff *skb, u32 *secid)h](j)}(hstruct sk_buff *skbh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_xfrm_decode_sessionasbuh1hhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hskbh]hskb}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 *secidh](h)}(hhh]j)}(hu32h]hu32}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj\modnameN classnameNj] j` )}jc ]jc.security_xfrm_decode_sessionasbuh1hhjSubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h%Determine the xfrm secid for a packeth]h%Determine the xfrm secid for a packet}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct sk_buff *skb`` xfrm packet ``u32 *secid`` secid **Description** Decode the packet in **skb** and return the security label in **secid**. **Return** Return 0 if all xfrms used have the same secid.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h$``struct sk_buff *skb`` xfrm packet h](j)}(h``struct sk_buff *skb``h]j)}(hjh]hstruct sk_buff *skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h xfrm packeth]h xfrm packet}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``u32 *secid`` secid h](j)}(h``u32 *secid``h]j)}(hj7h]h u32 *secid}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj1ubj2)}(hhh]h)}(hsecidh]hsecid}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hHDecode the packet in **skb** and return the security label in **secid**.h](hDecode the packet in }(hjhhhNhNubj)}(h**skb**h]hskb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" and return the security label in }(hjhhhNhNubj)}(h **secid**h]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h/Return 0 if all xfrms used have the same secid.h]h/Return 0 if all xfrms used have the same secid.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_key_alloc (C function)c.security_key_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(hVint security_key_alloc (struct key *key, const struct cred *cred, unsigned long flags)h]j)}(hUint security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_key_alloch]j)}(hsecurity_key_alloch]hsecurity_key_alloc}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h?(struct key *key, const struct cred *cred, unsigned long flags)h](j)}(hstruct key *keyh](j)}(hj h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubh)}(hhh]j)}(hkeyh]hkey}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_modnameN classnameNj] j` )}jc ]jf )}jY j%sbc.security_key_allocasbuh1hhj;ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jyc.security_key_allocasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcredh]hcred}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hj<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubj )}(hlongh]hlong}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8ubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubj)}(hflagsh]hflags}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h-Allocate and initialize a kernel key LSM blobh]h-Allocate and initialize a kernel key LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hXP**Parameters** ``struct key *key`` key ``const struct cred *cred`` credentials ``unsigned long flags`` allocation flags **Description** Permit allocation of a key and assign security data. Note that key does not have a serial number assigned at this point. **Return** Return 0 if permission is granted, -ve error otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj )}(hhh](j)}(h``struct key *key`` key h](j)}(h``struct key *key``h]j)}(hjh]hstruct key *key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``const struct cred *cred`` credentials h](j)}(h``const struct cred *cred``h]j)}(hjh]hconst struct cred *cred}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h credentialsh]h credentials}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubj)}(h)``unsigned long flags`` allocation flags h](j)}(h``unsigned long flags``h]j)}(hjQh]hunsigned long flags}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjKubj2)}(hhh]h)}(hallocation flagsh]hallocation flags}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhM hjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhM hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(hxPermit allocation of a key and assign security data. Note that key does not have a serial number assigned at this point.h]hxPermit allocation of a key and assign security data. Note that key does not have a serial number assigned at this point.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubh)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_key_free (C function)c.security_key_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h(void security_key_free (struct key *key)h]j)}(h'void security_key_free(struct key *key)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_key_freeh]j)}(hsecurity_key_freeh]hsecurity_key_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct key *key)h]j)}(hstruct key *keyh](j)}(hj h]hstruct}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubh)}(hhh]j)}(hkeyh]hkey}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjUmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_key_freeasbuh1hhj1ubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hFree a kernel key LSM blobh]hFree a kernel key LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hl**Parameters** ``struct key *key`` key **Description** Notification of destruction; free security data.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM"hjubj )}(hhh]j)}(h``struct key *key`` key h](j)}(h``struct key *key``h]j)}(hjh]hstruct key *key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM!hjubh)}(h0Notification of destruction; free security data.h]h0Notification of destruction; free security data.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_key_permission (C function)c.security_key_permissionhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hfint security_key_permission (key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm)h]j)}(heint security_key_permission(key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm)h](j )}(hinth]hint}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjuhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuhhhjhM*ubj{)}(hsecurity_key_permissionh]j)}(hsecurity_key_permissionh]hsecurity_key_permission}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjuhhhjhM*ubj)}(hJ(key_ref_t key_ref, const struct cred *cred, enum key_need_perm need_perm)h](j)}(hkey_ref_t key_refh](h)}(hhh]j)}(h key_ref_th]h key_ref_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_key_permissionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hkey_refh]hkey_ref}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct cred *credh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hcredh]hcred}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;modnameN classnameNj] j` )}jc ]jc.security_key_permissionasbuh1hhjubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hcredh]hcred}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum key_need_perm need_permh](j)}(hj;@h]henum}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h key_need_permh]h key_need_perm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_key_permissionasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h need_permh]h need_perm}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjuhhhjhM*ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjqhhhjhM*ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1jhjhM*hjnhhubj)}(hhh]h)}(h*Check if a kernel key operation is allowedh]h*Check if a kernel key operation is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM*hjhhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hXW**Parameters** ``key_ref_t key_ref`` key reference ``const struct cred *cred`` credentials of actor requesting access ``enum key_need_perm need_perm`` requested permissions **Description** See whether a specific operational right is granted to a process on a key. **Return** Return 0 if permission is granted, -ve error otherwise.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjubj )}(hhh](j)}(h$``key_ref_t key_ref`` key reference h](j)}(h``key_ref_t key_ref``h]j)}(hj@h]hkey_ref_t key_ref}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hj:ubj2)}(hhh]h)}(h key referenceh]h key reference}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM+hjVubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhM+hj7ubj)}(hC``const struct cred *cred`` credentials of actor requesting access h](j)}(h``const struct cred *cred``h]j)}(hjyh]hconst struct cred *cred}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjsubj2)}(hhh]h)}(h&credentials of actor requesting accessh]h&credentials of actor requesting access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM,hjubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjhM,hj7ubj)}(h7``enum key_need_perm need_perm`` requested permissions h](j)}(h ``enum key_need_perm need_perm``h]j)}(hjh]henum key_need_perm need_perm}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM-hjubj2)}(hhh]h)}(hrequested permissionsh]hrequested permissions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hj7ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM/hjubh)}(hJSee whether a specific operational right is granted to a process on a key.h]hJSee whether a specific operational right is granted to a process on a key.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM.hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM0hjubh)}(h7Return 0 if permission is granted, -ve error otherwise.h]h7Return 0 if permission is granted, -ve error otherwise.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_key_getsecurity (C function)c.security_key_getsecurityhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h=int security_key_getsecurity (struct key *key, char **buffer)h]j)}(hah"]h$]h&]uh1j1hjUhhhjghM:ubj{)}(hsecurity_key_getsecurityh]j)}(hsecurity_key_getsecurityh]hsecurity_key_getsecurity}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUhhhjghM:ubj)}(h (struct key *key, char **buffer)h](j)}(hstruct key *keyh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j|sbc.security_key_getsecurityasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char **bufferh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbufferh]hbuffer}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghM:ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghM:ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jhjghM:hjNhhubj)}(hhh]h)}(hGet the key's security labelh]hGet the key’s security label}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM:hjehhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghM:ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct key *key`` key ``char **buffer`` security label buffer **Description** Get a textual representation of the security context attached to a key for the purposes of honouring KEYCTL_GETSECURITY. This function allocates the storage for the NUL-terminated string and the caller should free it. **Return** Returns the length of **buffer** (including terminating NUL) or -ve if an error occurs. May also return 0 (and a NULL buffer pointer) if there is no security label assigned to the key.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>hjubj )}(hhh](j)}(h``struct key *key`` key h](j)}(h``struct key *key``h]j)}(hjh]hstruct key *key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hjubj2)}(hhh]h)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubj)}(h(``char **buffer`` security label buffer h](j)}(h``char **buffer``h]j)}(hjh]h char **buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjubj2)}(hhh]h)}(hsecurity label bufferh]hsecurity label buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM>hjubh)}(hGet a textual representation of the security context attached to a key for the purposes of honouring KEYCTL_GETSECURITY. This function allocates the storage for the NUL-terminated string and the caller should free it.h]hGet a textual representation of the security context attached to a key for the purposes of honouring KEYCTL_GETSECURITY. This function allocates the storage for the NUL-terminated string and the caller should free it.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM=hjubh)}(h **Return**h]j)}(hjDh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhjubh)}(hReturns the length of **buffer** (including terminating NUL) or -ve if an error occurs. May also return 0 (and a NULL buffer pointer) if there is no security label assigned to the key.h](hReturns the length of }(hjZhhhNhNubj)}(h **buffer**h]hbuffer}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh (including terminating NUL) or -ve if an error occurs. May also return 0 (and a NULL buffer pointer) if there is no security label assigned to the key.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j /security_key_post_create_or_update (C function)$c.security_key_post_create_or_updatehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hvoid security_key_post_create_or_update (struct key *keyring, struct key *key, const void *payload, size_t payload_len, unsigned long flags, bool create)h]j)}(hvoid security_key_post_create_or_update(struct key *keyring, struct key *key, const void *payload, size_t payload_len, unsigned long flags, bool create)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMMubj{)}(h"security_key_post_create_or_updateh]j)}(h"security_key_post_create_or_updateh]h"security_key_post_create_or_update}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMMubj)}(hq(struct key *keyring, struct key *key, const void *payload, size_t payload_len, unsigned long flags, bool create)h](j)}(hstruct key *keyringh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb$c.security_key_post_create_or_updateasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkeyringh]hkeyring}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct key *keyh](j)}(hj h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubh)}(hhh]j)}(hkeyh]hkey}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]j$c.security_key_post_create_or_updateasbuh1hhjFubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hkeyh]hkey}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *payloadh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpayloadh]hpayload}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsize_t payload_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j$c.security_key_post_create_or_updateasbuh1hhjubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h payload_lenh]h payload_len}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long flagsh](j )}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj )}(hlongh]hlong}(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool createh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcreateh]hcreate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMMhjhhubj)}(hhh]h)}(h$Notification of key create or updateh]h$Notification of key create or update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct key *keyring`` keyring to which the key is linked to ``struct key *key`` created or updated key ``const void *payload`` data used to instantiate or update the key ``size_t payload_len`` length of payload ``unsigned long flags`` key flags ``bool create`` flag indicating whether the key was created or updated **Description** Notify the caller of a key creation or update.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjubj )}(hhh](j)}(h>``struct key *keyring`` keyring to which the key is linked to h](j)}(h``struct key *keyring``h]j)}(hj6h]hstruct key *keyring}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhj0ubj2)}(hhh]h)}(h%keyring to which the key is linked toh]h%keyring to which the key is linked to}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMNhjLubah}(h]h ]h"]h$]h&]uh1j1hj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMNhj-ubj)}(h+``struct key *key`` created or updated key h](j)}(h``struct key *key``h]j)}(hjoh]hstruct key *key}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhjiubj2)}(hhh]h)}(hcreated or updated keyh]hcreated or updated key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjhMOhj-ubj)}(hC``const void *payload`` data used to instantiate or update the key h](j)}(h``const void *payload``h]j)}(hjh]hconst void *payload}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMPhjubj2)}(hhh]h)}(h*data used to instantiate or update the keyh]h*data used to instantiate or update the key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMPhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhj-ubj)}(h)``size_t payload_len`` length of payload h](j)}(h``size_t payload_len``h]j)}(hjh]hsize_t payload_len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhjubj2)}(hhh]h)}(hlength of payloadh]hlength of payload}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMQhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMQhj-ubj)}(h"``unsigned long flags`` key flags h](j)}(h``unsigned long flags``h]j)}(hjh]hunsigned long flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhjubj2)}(hhh]h)}(h key flagsh]h key flags}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMRhj0ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj/hMRhj-ubj)}(hG``bool create`` flag indicating whether the key was created or updated h](j)}(h``bool create``h]j)}(hjSh]h bool create}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMShjMubj2)}(hhh]h)}(h6flag indicating whether the key was created or updatedh]h6flag indicating whether the key was created or updated}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMShjiubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMShj-ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhjubh)}(h.Notify the caller of a key creation or update.h]h.Notify the caller of a key creation or update.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_audit_rule_init (C function)c.security_audit_rule_inithNtauh1hhj-hhhNhNubj)}(hhh](j)}(hZint security_audit_rule_init (u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h]j)}(hYint security_audit_rule_init(u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMbubj{)}(hsecurity_audit_rule_inith]j)}(hsecurity_audit_rule_inith]hsecurity_audit_rule_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMbubj)}(h=(u32 field, u32 op, char *rulestr, void **lsmrule, gfp_t gfp)h](j)}(h u32 fieldh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_audit_rule_initasbuh1hhj ubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hfieldh]hfield}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 oph](h)}(hhh]j)}(hu32h]hu32}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_modnameN classnameNj] j` )}jc ]j/c.security_audit_rule_initasbuh1hhjVubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h char *rulestrh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrulestrh]hrulestr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid **lsmruleh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlsmruleh]hlsmrule}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8modnameN classnameNj] j` )}jc ]j/c.security_audit_rule_initasbuh1hhj/ubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hgfph]hgfp}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMbhjhhubj)}(hhh]h)}(h*Allocate and init an LSM audit rule structh]h*Allocate and init an LSM audit rule struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hX{**Parameters** ``u32 field`` audit action ``u32 op`` rule operator ``char *rulestr`` rule context ``void **lsmrule`` receive buffer for audit rule struct ``gfp_t gfp`` GFP flag used for kmalloc **Description** Allocate and initialize an LSM audit rule structure. **Return** Return 0 if **lsmrule** has been successfully set, -EINVAL in case of an invalid rule.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhjubj )}(hhh](j)}(h``u32 field`` audit action h](j)}(h ``u32 field``h]j)}(hjh]h u32 field}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMchjubj2)}(hhh]h)}(h audit actionh]h audit action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMchjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubj)}(h``u32 op`` rule operator h](j)}(h ``u32 op``h]j)}(hjh]hu32 op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMdhjubj2)}(hhh]h)}(h rule operatorh]h rule operator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubj)}(h``char *rulestr`` rule context h](j)}(h``char *rulestr``h]j)}(hj?h]h char *rulestr}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMehj9ubj2)}(hhh]h)}(h rule contexth]h rule context}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMehjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMehjubj)}(h8``void **lsmrule`` receive buffer for audit rule struct h](j)}(h``void **lsmrule``h]j)}(hjxh]hvoid **lsmrule}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMfhjrubj2)}(hhh]h)}(h$receive buffer for audit rule structh]h$receive buffer for audit rule struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMfhjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubj)}(h(``gfp_t gfp`` GFP flag used for kmalloc h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMghjubj2)}(hhh]h)}(hGFP flag used for kmalloch]hGFP flag used for kmalloc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMihjubh)}(h4Allocate and initialize an LSM audit rule structure.h]h4Allocate and initialize an LSM audit rule structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMjhjubh)}(hVReturn 0 if **lsmrule** has been successfully set, -EINVAL in case of an invalid rule.h](h Return 0 if }(hj)hhhNhNubj)}(h **lsmrule**h]hlsmrule}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh? has been successfully set, -EINVAL in case of an invalid rule.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_audit_rule_known (C function)c.security_audit_rule_knownhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h9int security_audit_rule_known (struct audit_krule *krule)h]j)}(h8int security_audit_rule_known(struct audit_krule *krule)h](j )}(hinth]hint}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjfhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfhhhjxhMuubj{)}(hsecurity_audit_rule_knownh]j)}(hsecurity_audit_rule_knownh]hsecurity_audit_rule_known}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjfhhhjxhMuubj)}(h(struct audit_krule *krule)h]j)}(hstruct audit_krule *kruleh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h audit_kruleh]h audit_krule}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_audit_rule_knownasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkruleh]hkrule}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjfhhhjxhMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjbhhhjxhMuubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1jhjxhMuhj_hhubj)}(hhh]h)}(h*Check if an audit rule contains LSM fieldsh]h*Check if an audit rule contains LSM fields}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMuhj'hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct audit_krule *krule`` audit rule **Description** Specifies whether given **krule** contains any fields related to the current LSM. **Return** Returns 1 in case of relation found, 0 otherwise.h](h)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMyhjFubj )}(hhh]j)}(h)``struct audit_krule *krule`` audit rule h](j)}(h``struct audit_krule *krule``h]j)}(hjkh]hstruct audit_krule *krule}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMvhjeubj2)}(hhh]h)}(h audit ruleh]h audit rule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjbubah}(h]h ]h"]h$]h&]uh1j hjFubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMxhjFubh)}(hQSpecifies whether given **krule** contains any fields related to the current LSM.h](hSpecifies whether given }(hjhhhNhNubj)}(h **krule**h]hkrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0 contains any fields related to the current LSM.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMwhjFubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMzhjFubh)}(h1Returns 1 in case of relation found, 0 otherwise.h]h1Returns 1 in case of relation found, 0 otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM{hjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_audit_rule_free (C function)c.security_audit_rule_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h-void security_audit_rule_free (void *lsmrule)h]j)}(h,void security_audit_rule_free(void *lsmrule)h](j )}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj3hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj2hMubj{)}(hsecurity_audit_rule_freeh]j)}(hsecurity_audit_rule_freeh]hsecurity_audit_rule_free}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj2hMubj)}(h(void *lsmrule)h]j)}(h void *lsmruleh](j )}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hlsmruleh]hlsmrule}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj2hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj2hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj2hMhjhhubj)}(hhh]h)}(hFree an LSM audit rule structh]hFree an LSM audit rule struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``void *lsmrule`` audit rule struct **Description** Deallocate the LSM audit rule structure previously allocated by audit_rule_init().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h$``void *lsmrule`` audit rule struct h](j)}(h``void *lsmrule``h]j)}(hjh]h void *lsmrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(haudit rule structh]haudit rule struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj0h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hRDeallocate the LSM audit rule structure previously allocated by audit_rule_init().h]hRDeallocate the LSM audit rule structure previously allocated by audit_rule_init().}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_audit_rule_match (C function)c.security_audit_rule_matchhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hWint security_audit_rule_match (struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h]j)}(hVint security_audit_rule_match(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](j )}(hinth]hint}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjqhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqhhhjhMubj{)}(hsecurity_audit_rule_matchh]j)}(hsecurity_audit_rule_matchh]hsecurity_audit_rule_match}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjqhhhjhMubj)}(h9(struct lsm_prop *prop, u32 field, u32 op, void *lsmrule)h](j)}(hstruct lsm_prop *proph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hlsm_proph]hlsm_prop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_audit_rule_matchasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hproph]hprop}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u32 fieldh](h)}(hhh]j)}(hu32h]hu32}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj)modnameN classnameNj] j` )}jc ]jc.security_audit_rule_matchasbuh1hhj ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hfieldh]hfield}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu32 oph](h)}(hhh]j)}(hu32h]hu32}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jc.security_audit_rule_matchasbuh1hhjhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hoph]hop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *lsmruleh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlsmruleh]hlsmrule}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjjhhubj)}(hhh]h)}(h&Check if a label matches an audit ruleh]h&Check if a label matches an audit rule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hXd**Parameters** ``struct lsm_prop *prop`` security label ``u32 field`` LSM audit field ``u32 op`` matching operator ``void *lsmrule`` audit rule **Description** Determine if given **secid** matches a rule previously approved by security_audit_rule_known(). **Return** Returns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#ubj )}(hhh](j)}(h)``struct lsm_prop *prop`` security label h](j)}(h``struct lsm_prop *prop``h]j)}(hjHh]hstruct lsm_prop *prop}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjBubj2)}(hhh]h)}(hsecurity labelh]hsecurity label}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj?ubj)}(h``u32 field`` LSM audit field h](j)}(h ``u32 field``h]j)}(hjh]h u32 field}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ubj2)}(hhh]h)}(hLSM audit fieldh]hLSM audit field}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubj)}(h``u32 op`` matching operator h](j)}(h ``u32 op``h]j)}(hjh]hu32 op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hmatching operatorh]hmatching operator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubj)}(h``void *lsmrule`` audit rule h](j)}(h``void *lsmrule``h]j)}(hjh]h void *lsmrule}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h audit ruleh]h audit rule}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubeh}(h]h ]h"]h$]h&]uh1j hj#ubh)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#ubh)}(h_Determine if given **secid** matches a rule previously approved by security_audit_rule_known().h](hDetermine if given }(hjDhhhNhNubj)}(h **secid**h]hsecid}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubhC matches a rule previously approved by security_audit_rule_known().}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#ubh)}(h **Return**h]j)}(hjgh]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#ubh)}(hIReturns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.h]hIReturns 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_bpf (C function)c.security_bpfhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hPint security_bpf (int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h]j)}(hOint security_bpf(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(h security_bpfh]j)}(h security_bpfh]h security_bpf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h?(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)h](j)}(hint cmdh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hunionh]hunion}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_bpfasbuh1hhjubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hattrh]hattr}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int sizeh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool kernelh](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hkernelh]hkernel}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h-Check if the bpf syscall operation is allowedh]h-Check if the bpf syscall operation is allowed}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``int cmd`` command ``union bpf_attr *attr`` bpf attribute ``unsigned int size`` size ``bool kernel`` whether or not call originated from kernel **Description** Do a initial check for all bpf syscalls after the attribute is copied into the kernel. The actual security module can implement their own rules to check the specific cmd they need. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCubj )}(hhh](j)}(h``int cmd`` command h](j)}(h ``int cmd``h]j)}(hjhh]hint cmd}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjbubj2)}(hhh]h)}(hcommandh]hcommand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhj_ubj)}(h'``union bpf_attr *attr`` bpf attribute h](j)}(h``union bpf_attr *attr``h]j)}(hjh]hunion bpf_attr *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h bpf attributeh]h bpf attribute}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj_ubj)}(h``unsigned int size`` size h](j)}(h``unsigned int size``h]j)}(hjh]hunsigned int size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj_ubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hjh]h bool kernel}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj2)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhj)ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhj_ubeh}(h]h ]h"]h$]h&]uh1j hjCubh)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCubh)}(hDo a initial check for all bpf syscalls after the attribute is copied into the kernel. The actual security module can implement their own rules to check the specific cmd they need.h]hDo a initial check for all bpf syscalls after the attribute is copied into the kernel. The actual security module can implement their own rules to check the specific cmd they need.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCubh)}(h **Return**h]j)}(hjuh]hReturn}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_bpf_map (C function)c.security_bpf_maphNtauh1hhj-hhhNhNubj)}(hhh](j)}(h9int security_bpf_map (struct bpf_map *map, fmode_t fmode)h]j)}(h8int security_bpf_map(struct bpf_map *map, fmode_t fmode)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_bpf_maph]j)}(hsecurity_bpf_maph]hsecurity_bpf_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h$(struct bpf_map *map, fmode_t fmode)h](j)}(hstruct bpf_map *maph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbpf_maph]hbpf_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_bpf_mapasbuh1hhjubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaph]hmap}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h fmode_t fmodeh](h)}(hhh]j)}(hfmode_th]hfmode_t}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnmodnameN classnameNj] j` )}jc ]j1c.security_bpf_mapasbuh1hhjeubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hfmodeh]hfmode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h'Check if access to a bpf map is allowedh]h'Check if access to a bpf map is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct bpf_map *map`` bpf map ``fmode_t fmode`` mode **Description** Do a check when the kernel generates and returns a file descriptor for eBPF maps. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh](j)}(h ``struct bpf_map *map`` bpf map h](j)}(h``struct bpf_map *map``h]j)}(hjh]hstruct bpf_map *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(hbpf maph]hbpf map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``fmode_t fmode`` mode h](j)}(h``fmode_t fmode``h]j)}(hj<h]h fmode_t fmode}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj6ubj2)}(hhh]h)}(hmodeh]hmode}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjwh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hQDo a check when the kernel generates and returns a file descriptor for eBPF maps.h]hQDo a check when the kernel generates and returns a file descriptor for eBPF maps.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_bpf_prog (C function)c.security_bpf_proghNtauh1hhj-hhhNhNubj)}(hhh](j)}(h-int security_bpf_prog (struct bpf_prog *prog)h]j)}(h,int security_bpf_prog(struct bpf_prog *prog)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_bpf_progh]j)}(hsecurity_bpf_progh]hsecurity_bpf_prog}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbpf_progh]hbpf_prog}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@modnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_bpf_progasbuh1hhjubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprogh]hprog}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h+Check if access to a bpf program is allowedh]h+Check if access to a bpf program is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct bpf_prog *prog`` bpf program **Description** Do a check when the kernel generates and returns a file descriptor for eBPF programs. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h&``struct bpf_prog *prog`` bpf program h](j)}(h``struct bpf_prog *prog``h]j)}(hjh]hstruct bpf_prog *prog}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h bpf programh]h bpf program}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(hUDo a check when the kernel generates and returns a file descriptor for eBPF programs.h]hUDo a check when the kernel generates and returns a file descriptor for eBPF programs.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjFh]hReturn}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $security_bpf_map_create (C function)c.security_bpf_map_createhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hmint security_bpf_map_create (struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h]j)}(hlint security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_bpf_map_createh]j)}(hsecurity_bpf_map_createh]hsecurity_bpf_map_create}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hQ(struct bpf_map *map, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j)}(hstruct bpf_map *maph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbpf_maph]hbpf_map}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_bpf_map_createasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hmaph]hmap}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hj h]hunion}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjZmodnameN classnameNj] j` )}jc ]jc.security_bpf_map_createasbuh1hhj6ubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bpf_token *tokenh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_bpf_map_createasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htokenh]htoken}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h bool kernelh](j )}(hj8h]hbool}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj' hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hkernelh]hkernel}(hj5 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h$Check if BPF map creation is allowedh]h$Check if BPF map creation is allowed}(hj_ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj\ hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjw jjw jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct bpf_map *map`` BPF map object ``union bpf_attr *attr`` BPF syscall attributes used to create BPF map ``struct bpf_token *token`` BPF token used to grant user access ``bool kernel`` whether or not call originated from kernel **Description** Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ ubj )}(hhh](j)}(h'``struct bpf_map *map`` BPF map object h](j)}(h``struct bpf_map *map``h]j)}(hj h]hstruct bpf_map *map}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj2)}(hhh]h)}(hBPF map objecth]hBPF map object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(hG``union bpf_attr *attr`` BPF syscall attributes used to create BPF map h](j)}(h``union bpf_attr *attr``h]j)}(hj h]hunion bpf_attr *attr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj2)}(hhh]h)}(h-BPF syscall attributes used to create BPF maph]h-BPF syscall attributes used to create BPF map}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(h@``struct bpf_token *token`` BPF token used to grant user access h](j)}(h``struct bpf_token *token``h]j)}(hj h]hstruct bpf_token *token}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj2)}(hhh]h)}(h#BPF token used to grant user accessh]h#BPF token used to grant user access}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj' hMhj( ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj' hMhj ubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hjK h]h bool kernel}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjE ubj2)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj` hMhja ubah}(h]h ]h"]h$]h&]uh1j1hjE ubeh}(h]h ]h"]h$]h&]uh1jhj` hMhj ubeh}(h]h ]h"]h$]h&]uh1j hj{ ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ ubh)}(h}Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them.h]h}Do a check when the kernel creates a new BPF map. This is also the point where LSM blob is allocated for LSMs that need them.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ ubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj{ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_bpf_prog_load (C function)c.security_bpf_prog_loadhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hnint security_bpf_prog_load (struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h]j)}(hmint security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hMubj{)}(hsecurity_bpf_prog_loadh]j)}(hsecurity_bpf_prog_loadh]hsecurity_bpf_prog_load}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hMubj)}(hS(struct bpf_prog *prog, union bpf_attr *attr, struct bpf_token *token, bool kernel)h](j)}(hstruct bpf_prog *progh](j)}(hj h]hstruct}(hj/ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubj2)}(h h]h }(hj< hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ ubh)}(hhh]j)}(hbpf_progh]hbpf_prog}(hjM hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjO modnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_bpf_prog_loadasbuh1hhj+ ubj2)}(h h]h }(hjm hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ ubj)}(hjh]h*}(hj{ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubj)}(hprogh]hprog}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj' ubj)}(hunion bpf_attr *attrh](j)}(hj h]hunion}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]ji c.security_bpf_prog_loadasbuh1hhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hattrh]hattr}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj' ubj)}(hstruct bpf_token *tokenh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hj/ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj, ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj1 modnameN classnameNj] j` )}jc ]ji c.security_bpf_prog_loadasbuh1hhj ubj2)}(h h]h }(hjM hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hj[ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(htokenh]htoken}(hjh hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj' ubj)}(h bool kernelh](j )}(hj8h]hbool}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj} ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj} ubj)}(hkernelh]hkernel}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj} ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj' ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hMhj hhubj)}(hhh]h)}(h*Check if loading of BPF program is allowedh]h*Check if loading of BPF program is allowed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhj-hNhNubj)}(hX/**Parameters** ``struct bpf_prog *prog`` BPF program object ``union bpf_attr *attr`` BPF syscall attributes used to create BPF program ``struct bpf_token *token`` BPF token used to grant user access to BPF subsystem ``bool kernel`` whether or not call originated from kernel **Description** Perform an access control check when the kernel loads a BPF program and allocates associated BPF program object. This hook is also responsible for allocating any required LSM state for the BPF program. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj )}(hhh](j)}(h-``struct bpf_prog *prog`` BPF program object h](j)}(h``struct bpf_prog *prog``h]j)}(hj h]hstruct bpf_prog *prog}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj2)}(hhh]h)}(hBPF program objecth]hBPF program object}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(hK``union bpf_attr *attr`` BPF syscall attributes used to create BPF program h](j)}(h``union bpf_attr *attr``h]j)}(hj@ h]hunion bpf_attr *attr}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj> ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj: ubj2)}(hhh]h)}(h1BPF syscall attributes used to create BPF programh]h1BPF syscall attributes used to create BPF program}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU hMhjV ubah}(h]h ]h"]h$]h&]uh1j1hj: ubeh}(h]h ]h"]h$]h&]uh1jhjU hMhj ubj)}(hQ``struct bpf_token *token`` BPF token used to grant user access to BPF subsystem h](j)}(h``struct bpf_token *token``h]j)}(hjy h]hstruct bpf_token *token}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjs ubj2)}(hhh]h)}(h4BPF token used to grant user access to BPF subsystemh]h4BPF token used to grant user access to BPF subsystem}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjs ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(h;``bool kernel`` whether or not call originated from kernel h](j)}(h``bool kernel``h]j)}(hj h]h bool kernel}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj2)}(hhh]h)}(h*whether or not call originated from kernelh]h*whether or not call originated from kernel}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(hPerform an access control check when the kernel loads a BPF program and allocates associated BPF program object. This hook is also responsible for allocating any required LSM state for the BPF program.h]hPerform an access control check when the kernel loads a BPF program and allocates associated BPF program object. This hook is also responsible for allocating any required LSM state for the BPF program.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_bpf_token_create (C function)c.security_bpf_token_createhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hfint security_bpf_token_create (struct bpf_token *token, union bpf_attr *attr, const struct path *path)h]j)}(heint security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, const struct path *path)h](j )}(hinth]hint}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUhhhjghM ubj{)}(hsecurity_bpf_token_createh]j)}(hsecurity_bpf_token_createh]hsecurity_bpf_token_create}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUhhhjghM ubj)}(hH(struct bpf_token *token, union bpf_attr *attr, const struct path *path)h](j)}(hstruct bpf_token *tokenh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j|sbc.security_bpf_token_createasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunion bpf_attr *attrh](j)}(hj h]hunion}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbpf_attrh]hbpf_attr}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj(modnameN classnameNj] j` )}jc ]jc.security_bpf_token_createasbuh1hhjubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hattrh]hattr}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct path *pathh](j)}(hjh]hconst}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubh)}(hhh]j)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.security_bpf_token_createasbuh1hhjtubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjghM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjghM ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1jhjghM hjNhhubj)}(hhh]h)}(h)Check if creating of BPF token is allowedh]h)Check if creating of BPF token is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``struct bpf_token *token`` BPF token object ``union bpf_attr *attr`` BPF syscall attributes used to create BPF token ``const struct path *path`` path pointing to BPF FS mount point from which BPF token is created **Description** Do a check when the kernel instantiates a new BPF token object from BPF FS instance. This is also the point where LSM blob can be allocated for LSMs. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubj )}(hhh](j)}(h-``struct bpf_token *token`` BPF token object h](j)}(h``struct bpf_token *token``h]j)}(hjUh]hstruct bpf_token *token}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjOubj2)}(hhh]h)}(hBPF token objecth]hBPF token object}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhM hjkubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhM hjLubj)}(hI``union bpf_attr *attr`` BPF syscall attributes used to create BPF token h](j)}(h``union bpf_attr *attr``h]j)}(hjh]hunion bpf_attr *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(h/BPF syscall attributes used to create BPF tokenh]h/BPF syscall attributes used to create BPF token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjLubj)}(h```const struct path *path`` path pointing to BPF FS mount point from which BPF token is created h](j)}(h``const struct path *path``h]j)}(hjh]hconst struct path *path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hjubj2)}(hhh]h)}(hCpath pointing to BPF FS mount point from which BPF token is createdh]hCpath pointing to BPF FS mount point from which BPF token is created}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjLubeh}(h]h ]h"]h$]h&]uh1j hj0ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubh)}(hDo a check when the kernel instantiates a new BPF token object from BPF FS instance. This is also the point where LSM blob can be allocated for LSMs.h]hDo a check when the kernel instantiates a new BPF token object from BPF FS instance. This is also the point where LSM blob can be allocated for LSMs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubh)}(h **Return**h]j)}(hj)h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_bpf_token_cmd (C function)c.security_bpf_token_cmdhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hLint security_bpf_token_cmd (const struct bpf_token *token, enum bpf_cmd cmd)h]j)}(hKint security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd)h](j )}(hinth]hint}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjhhhj|hM$ubj{)}(hsecurity_bpf_token_cmdh]j)}(hsecurity_bpf_token_cmdh]hsecurity_bpf_token_cmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhj|hM$ubj)}(h1(const struct bpf_token *token, enum bpf_cmd cmd)h](j)}(hconst struct bpf_token *tokenh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_bpf_token_cmdasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum bpf_cmd cmdh](j)}(hj;@h]henum}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubh)}(hhh]j)}(hbpf_cmdh]hbpf_cmd}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]jc.security_bpf_token_cmdasbuh1hhj4ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhj|hM$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj|hM$ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1jhj|hM$hjchhubj)}(hhh]h)}(hGCheck if BPF token is allowed to delegate requested BPF syscall commandh]hGCheck if BPF token is allowed to delegate requested BPF syscall command}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM$hjhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|hM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hXV**Parameters** ``const struct bpf_token *token`` BPF token object ``enum bpf_cmd cmd`` BPF syscall command requested to be delegated by BPF token **Description** Do a check when the kernel decides whether provided BPF token should allow delegation of requested BPF syscall command. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjubj )}(hhh](j)}(h3``const struct bpf_token *token`` BPF token object h](j)}(h!``const struct bpf_token *token``h]j)}(hjh]hconst struct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM&hjubj2)}(hhh]h)}(hBPF token objecth]hBPF token object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM&hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjubj)}(hP``enum bpf_cmd cmd`` BPF syscall command requested to be delegated by BPF token h](j)}(h``enum bpf_cmd cmd``h]j)}(hj&h]henum bpf_cmd cmd}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hj ubj2)}(hhh]h)}(h:BPF syscall command requested to be delegated by BPF tokenh]h:BPF syscall command requested to be delegated by BPF token}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hM'hj<ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM'hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM)hjubh)}(hwDo a check when the kernel decides whether provided BPF token should allow delegation of requested BPF syscall command.h]hwDo a check when the kernel decides whether provided BPF token should allow delegation of requested BPF syscall command.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'security_bpf_token_capable (C function)c.security_bpf_token_capablehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hGint security_bpf_token_capable (const struct bpf_token *token, int cap)h]j)}(hFint security_bpf_token_capable(const struct bpf_token *token, int cap)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM4ubj{)}(hsecurity_bpf_token_capableh]j)}(hsecurity_bpf_token_capableh]hsecurity_bpf_token_capable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM4ubj)}(h((const struct bpf_token *token, int cap)h](j)}(hconst struct bpf_token *tokenh](j)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_bpf_token_capableasbuh1hhjubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htokenh]htoken}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint caph](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcaph]hcap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM4ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM4ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM4hjhhubj)}(hhh]h)}(hJCheck if BPF token is allowed to delegate requested BPF-related capabilityh]hJCheck if BPF token is allowed to delegate requested BPF-related capability}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(hXK**Parameters** ``const struct bpf_token *token`` BPF token object ``int cap`` capabilities requested to be delegated by BPF token **Description** Do a check when the kernel decides whether provided BPF token should allow delegation of requested BPF-related capabilities. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjubj )}(hhh](j)}(h3``const struct bpf_token *token`` BPF token object h](j)}(h!``const struct bpf_token *token``h]j)}(hjh]hconst struct bpf_token *token}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hjubj2)}(hhh]h)}(hBPF token objecth]hBPF token object}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM6hj4ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj3hM6hjubj)}(h@``int cap`` capabilities requested to be delegated by BPF token h](j)}(h ``int cap``h]j)}(hjWh]hint cap}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7hjQubj2)}(hhh]h)}(h3capabilities requested to be delegated by BPF tokenh]h3capabilities requested to be delegated by BPF token}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM7hjmubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhM7hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjubh)}(h|Do a check when the kernel decides whether provided BPF token should allow delegation of requested BPF-related capabilities.h]h|Do a check when the kernel decides whether provided BPF token should allow delegation of requested BPF-related capabilities.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM;hjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM<hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_bpf_map_free (C function)c.security_bpf_map_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h0void security_bpf_map_free (struct bpf_map *map)h]j)}(h/void security_bpf_map_free(struct bpf_map *map)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hMDubj{)}(hsecurity_bpf_map_freeh]j)}(hsecurity_bpf_map_freeh]hsecurity_bpf_map_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMDubj)}(h(struct bpf_map *map)h]j)}(hstruct bpf_map *maph](j)}(hj h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubh)}(hhh]j)}(hbpf_maph]hbpf_map}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[modnameN classnameNj] j` )}jc ]jf )}jY j!sbc.security_bpf_map_freeasbuh1hhj7ubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hmaph]hmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMDubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hMDhjhhubj)}(hhh]h)}(hFree a bpf map's LSM blobh]hFree a bpf map’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h|**Parameters** ``struct bpf_map *map`` bpf map **Description** Clean up the security information stored inside bpf map.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMHhjubj )}(hhh]j)}(h ``struct bpf_map *map`` bpf map h](j)}(h``struct bpf_map *map``h]j)}(hjh]hstruct bpf_map *map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhjubj2)}(hhh]h)}(hbpf maph]hbpf map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMGhjubh)}(h8Clean up the security information stored inside bpf map.h]h8Clean up the security information stored inside bpf map.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMFhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_bpf_prog_free (C function)c.security_bpf_prog_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h3void security_bpf_prog_free (struct bpf_prog *prog)h]j)}(h2void security_bpf_prog_free(struct bpf_prog *prog)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj{hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{hhhjhMQubj{)}(hsecurity_bpf_prog_freeh]j)}(hsecurity_bpf_prog_freeh]hsecurity_bpf_prog_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{hhhjhMQubj)}(h(struct bpf_prog *prog)h]j)}(hstruct bpf_prog *progh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbpf_progh]hbpf_prog}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_bpf_prog_freeasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprogh]hprog}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj{hhhjhMQubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjhMQubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1jhjhMQhjthhubj)}(hhh]h)}(hFree a BPF program's LSM blobh]hFree a BPF program’s LSM blob}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMQhj<hhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct bpf_prog *prog`` BPF program struct **Description** Clean up the security information stored inside BPF program.h](h)}(h**Parameters**h]j)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMUhj[ubj )}(hhh]j)}(h-``struct bpf_prog *prog`` BPF program struct h](j)}(h``struct bpf_prog *prog``h]j)}(hjh]hstruct bpf_prog *prog}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhjzubj2)}(hhh]h)}(hBPF program structh]hBPF program struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMRhjubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjwubah}(h]h ]h"]h$]h&]uh1j hj[ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMThj[ubh)}(hah"]h$]h&]uh1j1hjhhhjhM^ubj{)}(hsecurity_bpf_token_freeh]j)}(hsecurity_bpf_token_freeh]hsecurity_bpf_token_free}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM^ubj)}(h(struct bpf_token *token)h]j)}(hstruct bpf_token *tokenh](j)}(hj h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubh)}(hhh]j)}(h bpf_tokenh]h bpf_token}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj]modnameN classnameNj] j` )}jc ]jf )}jY j#sbc.security_bpf_token_freeasbuh1hhj9ubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(htokenh]htoken}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM^ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM^hjhhubj)}(hhh]h)}(hFree a BPF token's LSM blobh]hFree a BPF token’s LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM^hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct bpf_token *token`` BPF token struct **Description** Clean up the security information stored inside BPF token.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMbhjubj )}(hhh]j)}(h-``struct bpf_token *token`` BPF token struct h](j)}(h``struct bpf_token *token``h]j)}(hjh]hstruct bpf_token *token}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM_hjubj2)}(hhh]h)}(hBPF token structh]hBPF token struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM_hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMahjubh)}(h:Clean up the security information stored inside BPF token.h]h:Clean up the security information stored inside BPF token.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM`hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_perf_event_open (C function)c.security_perf_event_openhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h'int security_perf_event_open (int type)h]j)}(h&int security_perf_event_open(int type)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}hhhjhMubj{)}(hsecurity_perf_event_openh]j)}(hsecurity_perf_event_openh]hsecurity_perf_event_open}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhhjhMubj)}(h (int type)h]j)}(hint typeh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(htypeh]htype}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj}hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjhMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjvhhubj)}(hhh]h)}(h%Check if a perf event open is allowedh]h%Check if a perf event open is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjvhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``int type`` type of event **Description** Check whether the **type** of perf_event_open syscall is allowed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj )}(hhh]j)}(h``int type`` type of event h](j)}(h ``int type``h]j)}(hjEh]hint type}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj?ubj2)}(hhh]h)}(h type of eventh]h type of event}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1j1hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(hACheck whether the **type** of perf_event_open syscall is allowed.h](hCheck whether the }(hjhhhNhNubj)}(h**type**h]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' of perf_event_open syscall is allowed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_perf_event_alloc (C function)c.security_perf_event_allochNtauh1hhj-hhhNhNubj)}(hhh](j)}(h8int security_perf_event_alloc (struct perf_event *event)h]j)}(h7int security_perf_event_alloc(struct perf_event *event)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hMubj{)}(hsecurity_perf_event_alloch]j)}(hsecurity_perf_event_alloch]hsecurity_perf_event_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hj h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubh)}(hhh]j)}(h perf_eventh]h perf_event}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[modnameN classnameNj] j` )}jc ]jf )}jY j!sbc.security_perf_event_allocasbuh1hhj7ubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(heventh]hevent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj3ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hMhjhhubj)}(hhh]h)}(hAllocate a perf event LSM blobh]hAllocate a perf event LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Allocate and save perf_event security info. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h(``struct perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hjh]hstruct perf_event *event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h perf eventh]h perf event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h+Allocate and save perf_event security info.h]h+Allocate and save perf_event security info.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h **Return**h]j)}(hjah]hReturn}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_perf_event_free (C function)c.security_perf_event_freehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h8void security_perf_event_free (struct perf_event *event)h]j)}(h7void security_perf_event_free(struct perf_event *event)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hsecurity_perf_event_freeh]j)}(hsecurity_perf_event_freeh]hsecurity_perf_event_free}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h perf_eventh]h perf_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.security_perf_event_freeasbuh1hhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(heventh]hevent}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hFree a perf event LSM blobh]hFree a perf event LSM blob}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhj-hNhNubj)}(ht**Parameters** ``struct perf_event *event`` perf event **Description** Release (free) perf_event security info.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj )}(hhh]j)}(h(``struct perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hjh]hstruct perf_event *event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubj2)}(hhh]h)}(h perf eventh]h perf event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubh)}(h(Release (free) perf_event security info.h]h(Release (free) perf_event security info.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %security_perf_event_read (C function)c.security_perf_event_readhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h7int security_perf_event_read (struct perf_event *event)h]j)}(h6int security_perf_event_read(struct perf_event *event)h](j )}(hinth]hint}(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#hhhj5hMubj{)}(hsecurity_perf_event_readh]j)}(hsecurity_perf_event_readh]hsecurity_perf_event_read}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#hhhj5hMubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hj h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubh)}(hhh]j)}(h perf_eventh]h perf_event}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jJsbc.security_perf_event_readasbuh1hhj`ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(heventh]hevent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj5hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj5hMhjhhubj)}(hhh]h)}(h.Check if reading a perf event label is allowedh]h.Check if reading a perf event label is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Read perf_event security info if allowed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubj )}(hhh]j)}(h(``struct perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hj( h]hstruct perf_event *event}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj& ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj" ubj2)}(hhh]h)}(h perf eventh]h perf event}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj= hMhj> ubah}(h]h ]h"]h$]h&]uh1j1hj" ubeh}(h]h ]h"]h$]h&]uh1jhj= hMhj ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjc h]h Description}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h)Read perf_event security info if allowed.h]h)Read perf_event security info if allowed.}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &security_perf_event_write (C function)c.security_perf_event_writehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h8int security_perf_event_write (struct perf_event *event)h]j)}(h7int security_perf_event_write(struct perf_event *event)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hM ubj{)}(hsecurity_perf_event_writeh]j)}(hsecurity_perf_event_writeh]hsecurity_perf_event_write}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hM ubj)}(h(struct perf_event *event)h]j)}(hstruct perf_event *eventh](j)}(hj h]hstruct}(hj !hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubh)}(hhh]j)}(h perf_eventh]h perf_event}(hj*!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,!modnameN classnameNj] j` )}jc ]jf )}jY j sbc.security_perf_event_writeasbuh1hhj!ubj2)}(h h]h }(hjJ!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hjX!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(heventh]hevent}(hje!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hM hj hhubj)}(hhh]h)}(h.Check if writing a perf event label is allowedh]h.Check if writing a perf event label is allowed}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct perf_event *event`` perf event **Description** Write perf_event security info if allowed. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubj )}(hhh]j)}(h(``struct perf_event *event`` perf event h](j)}(h``struct perf_event *event``h]j)}(hj!h]hstruct perf_event *event}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubj2)}(hhh]h)}(h perf eventh]h perf event}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM hj!ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM hj!ubah}(h]h ]h"]h$]h&]uh1j hj!ubh)}(h**Description**h]j)}(hj "h]h Description}(hj "hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj "ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubh)}(h*Write perf_event security info if allowed.h]h*Write perf_event security info if allowed.}(hj!"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM hj!ubh)}(h **Return**h]j)}(hj2"h]hReturn}(hj4"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0"ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjH"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *security_uring_override_creds (C function)c.security_uring_override_credshNtauh1hhj-hhhNhNubj)}(hhh](j)}(h:int security_uring_override_creds (const struct cred *new)h]j)}(h9int security_uring_override_creds(const struct cred *new)h](j )}(hinth]hint}(hjw"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjs"hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjs"hhhj"hMubj{)}(hsecurity_uring_override_credsh]j)}(hsecurity_uring_override_credsh]hsecurity_uring_override_creds}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjs"hhhj"hMubj)}(h(const struct cred *new)h]j)}(hconst struct cred *newh](j)}(hjh]hconst}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(hj h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubh)}(hhh]j)}(hcredh]hcred}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj"modnameN classnameNj] j` )}jc ]jf )}jY j"sbc.security_uring_override_credsasbuh1hhj"ubj2)}(h h]h }(hj #hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj)}(hnewh]hnew}(hj(#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"ubah}(h]h ]h"]h$]h&]jjuh1jhjs"hhhj"hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjo"hhhj"hMubah}(h]jj"ah ](jjeh"]h$]h&]jj)jhuh1jhj"hMhjl"hhubj)}(hhh]h)}(h$Check if overriding creds is allowedh]h$Check if overriding creds is allowed}(hjR#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjO#hhubah}(h]h ]h"]h$]h&]uh1jhjl"hhhj"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjj#jjj#jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``const struct cred *new`` new credentials **Description** Check if the current task, executing an io_uring operation, is allowed to override it's credentials with **new**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjt#h]h Parameters}(hjv#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjn#ubj )}(hhh]j)}(h+``const struct cred *new`` new credentials h](j)}(h``const struct cred *new``h]j)}(hj#h]hconst struct cred *new}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhj#ubj2)}(hhh]h)}(hnew credentialsh]hnew credentials}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1j hjn#ubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjn#ubh)}(hqCheck if the current task, executing an io_uring operation, is allowed to override it's credentials with **new**.h](hkCheck if the current task, executing an io_uring operation, is allowed to override it’s credentials with }(hj#hhhNhNubj)}(h**new**h]hnew}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjn#ubh)}(h **Return**h]j)}(hj$h]hReturn}(hj $hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjn#ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMhjn#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "security_uring_sqpoll (C function)c.security_uring_sqpollhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h int security_uring_sqpoll (void)h]j)}(hint security_uring_sqpoll(void)h](j )}(hinth]hint}(hjL$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjH$hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'ubj2)}(h h]h }(hj[$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjH$hhhjZ$hM'ubj{)}(hsecurity_uring_sqpollh]j)}(hsecurity_uring_sqpollh]hsecurity_uring_sqpoll}(hjm$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjH$hhhjZ$hM'ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubah}(h]h ]h"]h$]h&]jjuh1jhjH$hhhjZ$hM'ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjD$hhhjZ$hM'ubah}(h]j?$ah ](jjeh"]h$]h&]jj)jhuh1jhjZ$hM'hjA$hhubj)}(hhh]h)}(h'Check if IORING_SETUP_SQPOLL is allowedh]h'Check if IORING_SETUP_SQPOLL is allowed}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM'hj$hhubah}(h]h ]h"]h$]h&]uh1jhjA$hhhjZ$hM'ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Check whether the current task is allowed to spawn a io_uring polling thread (IORING_SETUP_SQPOLL). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.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&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj$ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj %hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj %hKhj %ubah}(h]h ]h"]h$]h&]uh1j1hj$ubeh}(h]h ]h"]h$]h&]uh1jhj %hKhj$ubah}(h]h ]h"]h$]h&]uh1j hj$ubh)}(h**Description**h]j)}(hj/%h]h Description}(hj1%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj$ubh)}(hcCheck whether the current task is allowed to spawn a io_uring polling thread (IORING_SETUP_SQPOLL).h]hcCheck whether the current task is allowed to spawn a io_uring polling thread (IORING_SETUP_SQPOLL).}(hjE%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM(hj$ubh)}(h **Return**h]j)}(hjV%h]hReturn}(hjX%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT%ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM+hj$ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjl%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM,hj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_uring_cmd (C function)c.security_uring_cmdhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h4int security_uring_cmd (struct io_uring_cmd *ioucmd)h]j)}(h3int security_uring_cmd(struct io_uring_cmd *ioucmd)h](j )}(hinth]hint}(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%hhhj%hM4ubj{)}(hsecurity_uring_cmdh]j)}(hsecurity_uring_cmdh]hsecurity_uring_cmd}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj%hhhj%hM4ubj)}(h(struct io_uring_cmd *ioucmd)h]j)}(hstruct io_uring_cmd *ioucmdh](j)}(hj h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubh)}(hhh]j)}(h io_uring_cmdh]h io_uring_cmd}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj%modnameN classnameNj] j` )}jc ]jf )}jY j%sbc.security_uring_cmdasbuh1hhj%ubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hjh]h*}(hj$&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hioucmdh]hioucmd}(hj1&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubah}(h]h ]h"]h$]h&]jjuh1jhj%hhhj%hM4ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj%hM4ubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jhj%hM4hj%hhubj)}(hhh]h)}(h2Check if a io_uring passthrough command is allowedh]h2Check if a io_uring passthrough command is allowed}(hj[&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM4hjX&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hM4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjs&jjs&jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``struct io_uring_cmd *ioucmd`` command **Description** Check whether the file_operations uring_cmd is allowed to run. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj}&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjw&ubj )}(hhh]j)}(h(``struct io_uring_cmd *ioucmd`` command h](j)}(h``struct io_uring_cmd *ioucmd``h]j)}(hj&h]hstruct io_uring_cmd *ioucmd}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM5hj&ubj2)}(hhh]h)}(hcommandh]hcommand}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM5hj&ubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM5hj&ubah}(h]h ]h"]h$]h&]uh1j hjw&ubh)}(h**Description**h]j)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM7hjw&ubh)}(h>Check whether the file_operations uring_cmd is allowed to run.h]h>Check whether the file_operations uring_cmd is allowed to run.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM6hjw&ubh)}(h **Return**h]j)}(hj&h]hReturn}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM8hjw&ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chM9hjw&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #security_uring_allowed (C function)c.security_uring_allowedhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h!int security_uring_allowed (void)h]j)}(h int security_uring_allowed(void)h](j )}(hinth]hint}(hjC'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?'hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAubj2)}(h h]h }(hjR'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?'hhhjQ'hMAubj{)}(hsecurity_uring_allowedh]j)}(hsecurity_uring_allowedh]hsecurity_uring_allowed}(hjd'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`'ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?'hhhjQ'hMAubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|'ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjx'ubah}(h]h ]h"]h$]h&]jjuh1jhj?'hhhjQ'hMAubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;'hhhjQ'hMAubah}(h]j6'ah ](jjeh"]h$]h&]jj)jhuh1jhjQ'hMAhj8'hhubj)}(hhh]h)}(h$Check if io_uring_setup() is allowedh]h$Check if io_uring_setup() is allowed}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMAhj'hhubah}(h]h ]h"]h$]h&]uh1jhj8'hhhjQ'hMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1jhhhj-hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Check whether the current task is allowed to call io_uring_setup(). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhj'ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj'h]hvoid}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj'ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKhj(ubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhj(hKhj'ubah}(h]h ]h"]h$]h&]uh1j hj'ubh)}(h**Description**h]j)}(hj&(h]h Description}(hj((hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj'ubh)}(hCCheck whether the current task is allowed to call io_uring_setup().h]hCCheck whether the current task is allowed to call io_uring_setup().}(hj<(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMBhj'ubh)}(h **Return**h]j)}(hjM(h]hReturn}(hjO(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK(ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMDhj'ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjc(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMEhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )security_initramfs_populated (C function)c.security_initramfs_populatedhNtauh1hhj-hhhNhNubj)}(hhh](j)}(h(void security_initramfs_populated (void)h]j)}(h'void security_initramfs_populated(void)h](j )}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(hhhj(hMNubj{)}(hsecurity_initramfs_populatedh]j)}(hsecurity_initramfs_populatedh]hsecurity_initramfs_populated}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj(hMNubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubah}(h]h ]h"]h$]h&]jjuh1jhj(hhhj(hMNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj(hMNubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhj(hMNhj(hhubj)}(hhh]h)}(h*Notify LSMs that initramfs has been loadedh]h*Notify LSMs that initramfs has been loaded}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMNhj(hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jhhhj-hNhNubj)}(hy**Parameters** ``void`` no arguments **Description** Tells the LSMs the initramfs has been unpacked into the rootfs.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMRhj)ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj:)h]hvoid}(hj<)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj4)ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjS)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO)hKhjP)ubah}(h]h ]h"]h$]h&]uh1j1hj4)ubeh}(h]h ]h"]h$]h&]uh1jhjO)hKhj1)ubah}(h]h ]h"]h$]h&]uh1j hj)ubh)}(h**Description**h]j)}(hju)h]h Description}(hjw)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chKhj)ubh)}(h?Tells the LSMs the initramfs has been unpacked into the rootfs.h]h?Tells the LSMs the initramfs has been unpacked into the rootfs.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:283: ./security/security.chMOhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #securityfs_create_file (C function)c.securityfs_create_filehNtauh1hhj-hhhNhNubj)}(hhh](j)}(hstruct dentry * securityfs_create_file (const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops)h]j)}(hstruct dentry *securityfs_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops)h](j)}(hj h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)hhhj)hKubh)}(hhh]j)}(hdentryh]hdentry}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj)modnameN classnameNj] j` )}jc ]jf )}jY securityfs_create_filesbc.securityfs_create_fileasbuh1hhj)hhhj)hKubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)hhhj)hKubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj)hKubj{)}(hsecurityfs_create_fileh]j)}(hj)h]hsecurityfs_create_file}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj)hhhj)hKubj)}(hg(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops)h](j)}(hconst char *nameh](j)}(hjh]hconst}(hj4*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0*ubj2)}(h h]h }(hjA*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0*ubj )}(hcharh]hchar}(hjO*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0*ubj2)}(h h]h }(hj]*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0*ubj)}(hjh]h*}(hjk*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0*ubj)}(hnameh]hname}(hjx*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,*ubj)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]j)c.securityfs_create_fileasbuh1hhj*ubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*ubj)}(hmodeh]hmode}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,*ubj)}(hstruct dentry *parenth](j)}(hj h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*ubh)}(hhh]j)}(hdentryh]hdentry}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]j)c.securityfs_create_fileasbuh1hhj*ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*ubj)}(hjh]h*}(hj#+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hparenth]hparent}(hj0+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,*ubj)}(h void *datah](j )}(hvoidh]hvoid}(hjI+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjE+ubj2)}(h h]h }(hjW+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjE+ubj)}(hjh]h*}(hje+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE+ubj)}(hdatah]hdata}(hjr+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,*ubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hj h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubh)}(hhh]j)}(hfile_operationsh]hfile_operations}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj+modnameN classnameNj] j` )}jc ]j)c.securityfs_create_fileasbuh1hhj+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hfopsh]hfops}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,*ubeh}(h]h ]h"]h$]h&]jjuh1jhj)hhhj)hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj)hKubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1jhj)hKhj)hhubj)}(hhh]h)}(h*create a file in the securityfs filesystemh]h*create a file in the securityfs filesystem}(hj',hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj$,hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?,jj?,jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``const char *name`` a pointer to a string containing the name of the file to create. ``umode_t mode`` the permission that the file should have ``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the file will be created in the root of the securityfs filesystem. ``void *data`` a pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call. ``const struct file_operations *fops`` a pointer to a struct file_operations that should be used for this file. **Description** This function creates a file in securityfs with the given **name**. This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR). If securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h)}(h**Parameters**h]j)}(hjI,h]h Parameters}(hjK,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG,ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjC,ubj )}(hhh](j)}(hV``const char *name`` a pointer to a string containing the name of the file to create. h](j)}(h``const char *name``h]j)}(hjh,h]hconst char *name}(hjj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf,ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjb,ubj2)}(hhh]h)}(h@a pointer to a string containing the name of the file to create.h]h@a pointer to a string containing the name of the file to create.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj},hKhj~,ubah}(h]h ]h"]h$]h&]uh1j1hjb,ubeh}(h]h ]h"]h$]h&]uh1jhj},hKhj_,ubj)}(h:``umode_t mode`` the permission that the file should have h](j)}(h``umode_t mode``h]j)}(hj,h]h umode_t mode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj,ubj2)}(hhh]h)}(h(the permission that the file should haveh]h(the permission that the file should have}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKhj,ubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hKhj_,ubj)}(h``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the file will be created in the root of the securityfs filesystem. h](j)}(h``struct dentry *parent``h]j)}(hj,h]hstruct dentry *parent}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj,ubj2)}(hhh]h)}(ha pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the file will be created in the root of the securityfs filesystem.h](hoa pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is }(hj,hhhNhNubj)}(h``NULL``h]hNULL}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubhI, then the file will be created in the root of the securityfs filesystem.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj,ubah}(h]h ]h"]h$]h&]uh1j1hj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hKhj_,ubj)}(h``void *data`` a pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call. h](j)}(h``void *data``h]j)}(hj&-h]h void *data}(hj(-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$-ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj -ubj2)}(hhh]h)}(ha pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call.h]ha pointer to something that the caller will want to get to later on. The inode.i_private pointer will point to this value on the open() call.}(hj?-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj<-ubah}(h]h ]h"]h$]h&]uh1j1hj -ubeh}(h]h ]h"]h$]h&]uh1jhj;-hKhj_,ubj)}(hp``const struct file_operations *fops`` a pointer to a struct file_operations that should be used for this file. h](j)}(h&``const struct file_operations *fops``h]j)}(hj`-h]h"const struct file_operations *fops}(hjb-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^-ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjZ-ubj2)}(hhh]h)}(hHa pointer to a struct file_operations that should be used for this file.h]hHa pointer to a struct file_operations that should be used for this file.}(hjy-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjv-ubah}(h]h ]h"]h$]h&]uh1j1hjZ-ubeh}(h]h ]h"]h$]h&]uh1jhju-hKhj_,ubeh}(h]h ]h"]h$]h&]uh1j hjC,ubh)}(h**Description**h]j)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjC,ubh)}(hCThis function creates a file in securityfs with the given **name**.h](h:This function creates a file in securityfs with the given }(hj-hhhNhNubj)}(h**name**h]hname}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjC,ubh)}(hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).h]hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjC,ubh)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hj-hhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubh is returned.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjC,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "securityfs_create_dir (C function)c.securityfs_create_dirhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hOstruct dentry * securityfs_create_dir (const char *name, struct dentry *parent)h]j)}(hMstruct dentry *securityfs_create_dir(const char *name, struct dentry *parent)h](j)}(hj h]hstruct}(hj#.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj2)}(h h]h }(hj1.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.hhhj0.hKubh)}(hhh]j)}(hdentryh]hdentry}(hjB.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjD.modnameN classnameNj] j` )}jc ]jf )}jY securityfs_create_dirsbc.securityfs_create_dirasbuh1hhj.hhhj0.hKubj2)}(h h]h }(hjc.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.hhhj0.hKubj)}(hjh]h*}(hjq.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj0.hKubj{)}(hsecurityfs_create_dirh]j)}(hj`.h]hsecurityfs_create_dir}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.hhhj0.hKubj)}(h)(const char *name, struct dentry *parent)h](j)}(hconst char *nameh](j)}(hjh]hconst}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj )}(hcharh]hchar}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hnameh]hname}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(hstruct dentry *parenth](j)}(hj h]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubh)}(hhh]j)}(hdentryh]hdentry}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj/modnameN classnameNj] j` )}jc ]j^.c.securityfs_create_dirasbuh1hhj.ubj2)}(h h]h }(hj6/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hjD/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hparenth]hparent}(hjQ/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubeh}(h]h ]h"]h$]h&]jjuh1jhj.hhhj0.hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhj0.hKubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jhj0.hKhj.hhubj)}(hhh]h)}(h/create a directory in the securityfs filesystemh]h/create a directory in the securityfs filesystem}(hj{/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjx/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj0.hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1jhhhj-hNhNubj)}(hX?**Parameters** ``const char *name`` a pointer to a string containing the name of the directory to create. ``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. **Description** This function creates a directory in securityfs with the given **name**. This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR). If securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj/ubj )}(hhh](j)}(h[``const char *name`` a pointer to a string containing the name of the directory to create. h](j)}(h``const char *name``h]j)}(hj/h]hconst char *name}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj/ubj2)}(hhh]h)}(hEa pointer to a string containing the name of the directory to create.h]hEa pointer to a string containing the name of the directory to create.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj/ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hKhj/ubj)}(h``struct dentry *parent`` a pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. h](j)}(h``struct dentry *parent``h]j)}(hj/h]hstruct dentry *parent}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj/ubj2)}(hhh]h)}(ha pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem.h](hoa pointer to the parent dentry for this file. This should be a directory dentry if set. If this parameter is }(hj0hhhNhNubj)}(h``NULL``h]hNULL}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubhN, then the directory will be created in the root of the securityfs filesystem.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj 0ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj 0hKhj/ubeh}(h]h ]h"]h$]h&]uh1j hj/ubh)}(h**Description**h]j)}(hjD0h]h Description}(hjF0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB0ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj/ubh)}(hHThis function creates a directory in securityfs with the given **name**.h](h?This function creates a directory in securityfs with the given }(hjZ0hhhNhNubj)}(h**name**h]hname}(hjb0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ0ubh.}(hjZ0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj/ubh)}(hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).h]hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).}(hj{0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj/ubh)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hj0hhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh is returned.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &securityfs_create_symlink (C function)c.securityfs_create_symlinkhNtauh1hhj-hhhNhNubj)}(hhh](j)}(hstruct dentry * securityfs_create_symlink (const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h]j)}(hstruct dentry *securityfs_create_symlink(const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h](j)}(hj h]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0hhhj0hKubh)}(hhh]j)}(hdentryh]hdentry}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0modnameN classnameNj] j` )}jc ]jf )}jY securityfs_create_symlinksbc.securityfs_create_symlinkasbuh1hhj0hhhj0hKubj2)}(h h]h }(hj 1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0hhhj0hKubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj0hKubj{)}(hsecurityfs_create_symlinkh]j)}(hj1h]hsecurityfs_create_symlink}(hj*1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhhj0hKubj)}(hb(const char *name, struct dentry *parent, const char *target, const struct inode_operations *iops)h](j)}(hconst char *nameh](j)}(hjh]hconst}(hjE1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA1ubj2)}(h h]h }(hjR1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjA1ubj )}(hcharh]hchar}(hj`1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjA1ubj2)}(h h]h }(hjn1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjA1ubj)}(hjh]h*}(hj|1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA1ubj)}(hnameh]hname}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=1ubj)}(hstruct dentry *parenth](j)}(hj h]hstruct}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubh)}(hhh]j)}(hdentryh]hdentry}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj1modnameN classnameNj] j` )}jc ]j1c.securityfs_create_symlinkasbuh1hhj1ubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hparenth]hparent}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=1ubj)}(hconst char *targeth](j)}(hjh]hconst}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj )}(hcharh]hchar}(hj-2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hj;2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hjh]h*}(hjI2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(htargeth]htarget}(hjV2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=1ubj)}(h#const struct inode_operations *iopsh](j)}(hjh]hconst}(hjo2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk2ubj2)}(h h]h }(hj|2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjk2ubj)}(hj h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk2ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjk2ubh)}(hhh]j)}(hinode_operationsh]hinode_operations}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2modnameN classnameNj] j` )}jc ]j1c.securityfs_create_symlinkasbuh1hhjk2ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjk2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk2ubj)}(hiopsh]hiops}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=1ubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhj0hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhj0hKubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1jhj0hKhj0hhubj)}(hhh]h)}(h-create a symlink in the securityfs filesystemh]h-create a symlink in the securityfs filesystem}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj3hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#3jj#3jjjuh1jhhhj-hNhNubj)}(hX**Parameters** ``const char *name`` a pointer to a string containing the name of the symlink to create. ``struct dentry *parent`` a pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. ``const char *target`` a pointer to a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations. ``const struct inode_operations *iops`` a pointer to the struct inode_operations to use for the symlink. If this parameter is ``NULL``, then the default simple_symlink_inode operations will be used. **Description** This function creates a symlink in securityfs with the given **name**. This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR). If securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h)}(h**Parameters**h]j)}(hj-3h]h Parameters}(hj/3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+3ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj'3ubj )}(hhh](j)}(hY``const char *name`` a pointer to a string containing the name of the symlink to create. h](j)}(h``const char *name``h]j)}(hjL3h]hconst char *name}(hjN3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ3ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjF3ubj2)}(hhh]h)}(hCa pointer to a string containing the name of the symlink to create.h]hCa pointer to a string containing the name of the symlink to create.}(hje3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjb3ubah}(h]h ]h"]h$]h&]uh1j1hjF3ubeh}(h]h ]h"]h$]h&]uh1jhja3hKhjC3ubj)}(h``struct dentry *parent`` a pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem. h](j)}(h``struct dentry *parent``h]j)}(hj3h]hstruct dentry *parent}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj3ubj2)}(hhh]h)}(ha pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is ``NULL``, then the directory will be created in the root of the securityfs filesystem.h](hqa pointer to the parent dentry for the symlink. This should be a directory dentry if set. If this parameter is }(hj3hhhNhNubj)}(h``NULL``h]hNULL}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubhN, then the directory will be created in the root of the securityfs filesystem.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj3ubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjC3ubj)}(h``const char *target`` a pointer to a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations. h](j)}(h``const char *target``h]j)}(hj3h]hconst char *target}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj3ubj2)}(hhh]h)}(ha pointer to a string containing the name of the symlink's target. If this parameter is ``NULL``, then the **iops** parameter needs to be setup to handle .readlink and .get_link inode_operations.h](hZa pointer to a string containing the name of the symlink’s target. If this parameter is }(hj3hhhNhNubj)}(h``NULL``h]hNULL}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh , then the }(hj3hhhNhNubj)}(h**iops**h]hiops}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubhP parameter needs to be setup to handle .readlink and .get_link inode_operations.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj3ubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjC3ubj)}(h``const struct inode_operations *iops`` a pointer to the struct inode_operations to use for the symlink. If this parameter is ``NULL``, then the default simple_symlink_inode operations will be used. h](j)}(h'``const struct inode_operations *iops``h]j)}(hj04h]h#const struct inode_operations *iops}(hj24hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.4ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj*4ubj2)}(hhh]h)}(ha pointer to the struct inode_operations to use for the symlink. If this parameter is ``NULL``, then the default simple_symlink_inode operations will be used.h](hVa pointer to the struct inode_operations to use for the symlink. If this parameter is }(hjI4hhhNhNubj)}(h``NULL``h]hNULL}(hjQ4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI4ubh@, then the default simple_symlink_inode operations will be used.}(hjI4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhjF4ubah}(h]h ]h"]h$]h&]uh1j1hj*4ubeh}(h]h ]h"]h$]h&]uh1jhjE4hKhjC3ubeh}(h]h ]h"]h$]h&]uh1j hj'3ubh)}(h**Description**h]j)}(hj~4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|4ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj'3ubh)}(hFThis function creates a symlink in securityfs with the given **name**.h](h=This function creates a symlink in securityfs with the given }(hj4hhhNhNubj)}(h**name**h]hname}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj'3ubh)}(hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).h]hX=This function returns a pointer to a dentry if it succeeds. This pointer must be passed to the securityfs_remove() function when the file is to be removed (no automatic cleanup happens if your module is unloaded, you are responsible here). If an error occurs, the function will return the error value (via ERR_PTR).}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj'3ubh)}(hNIf securityfs is not enabled in the kernel, the value ``-ENODEV`` is returned.h](h6If securityfs is not enabled in the kernel, the value }(hj4hhhNhNubj)}(h ``-ENODEV``h]h-ENODEV}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh is returned.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chKhj'3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j securityfs_remove (C function)c.securityfs_removehNtauh1hhj-hhhNhNubj)}(hhh](j)}(h.void securityfs_remove (struct dentry *dentry)h]j)}(h-void securityfs_remove(struct dentry *dentry)h](j )}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhj5hMubj{)}(hsecurityfs_removeh]j)}(hsecurityfs_removeh]hsecurityfs_remove}(hj&5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhj5hMubj)}(h(struct dentry *dentry)h]j)}(hstruct dentry *dentryh](j)}(hj h]hstruct}(hjB5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>5ubj2)}(h h]h }(hjO5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>5ubh)}(hhh]j)}(hdentryh]hdentry}(hj`5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]5ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjb5modnameN classnameNj] j` )}jc ]jf )}jY j(5sbc.securityfs_removeasbuh1hhj>5ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>5ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>5ubj)}(hdentryh]hdentry}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:5ubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhj5hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhj5hMubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1jhj5hMhj4hhubj)}(hhh]h)}(h:removes a file or directory from the securityfs filesystemh]h:removes a file or directory from the securityfs filesystem}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMhj5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1jhhhj-hNhNubj)}(hX^**Parameters** ``struct dentry *dentry`` a pointer to a the dentry of the file or directory to be removed. **Description** This function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.) This function is required to be called in order for the file to be removed. No automatic cleanup of files will happen when a module is removed; you are responsible here. AV: when applied to directory it will take all children out; no need to call it for descendents if ancestor is getting killed.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM hj5ubj )}(hhh]j)}(h\``struct dentry *dentry`` a pointer to a the dentry of the file or directory to be removed. h](j)}(h``struct dentry *dentry``h]j)}(hj6h]hstruct dentry *dentry}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMhj6ubj2)}(hhh]h)}(hAa pointer to a the dentry of the file or directory to be removed.h]hAa pointer to a the dentry of the file or directory to be removed.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubah}(h]h ]h"]h$]h&]uh1j hj5ubh)}(h**Description**h]j)}(hjA6h]h Description}(hjC6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?6ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM hj5ubh)}(hThis function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.)h]hThis function removes a file or directory in securityfs that was previously created with a call to another securityfs function (like securityfs_create_file() or variants thereof.)}(hjW6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chMhj5ubh)}(hThis function is required to be called in order for the file to be removed. No automatic cleanup of files will happen when a module is removed; you are responsible here.h]hThis function is required to be called in order for the file to be removed. No automatic cleanup of files will happen when a module is removed; you are responsible here.}(hjf6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM#hj5ubh)}(h~AV: when applied to directory it will take all children out; no need to call it for descendents if ancestor is getting killed.h]h~AV: when applied to directory it will take all children out; no need to call it for descendents if ancestor is getting killed.}(hju6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:286: ./security/inode.chM'hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj-hhhNhNubeh}(h]security-frameworkah ]h"]security frameworkah$]h&]uh1hhhhhhhhMubh)}(hhh](h)}(hAudit Interfacesh]hAudit Interfaces}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hhhhhM"ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log_start (C function)c.audit_log_starthNtauh1hhj6hhhNhNubj)}(hhh](j)}(h[struct audit_buffer * audit_log_start (struct audit_context *ctx, gfp_t gfp_mask, int type)h]j)}(hYstruct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j)}(hj h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMkubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6hhhj6hMkubh)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6modnameN classnameNj] j` )}jc ]jf )}jY audit_log_startsbc.audit_log_startasbuh1hhj6hhhj6hMkubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6hhhj6hMkubj)}(hjh]h*}(hj 7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMkubj{)}(haudit_log_starth]j)}(hj6h]haudit_log_start}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6hhhj6hMkubj)}(h5(struct audit_context *ctx, gfp_t gfp_mask, int type)h](j)}(hstruct audit_context *ctxh](j)}(hj h]hstruct}(hj77hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj37ubj2)}(h h]h }(hjD7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj37ubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjU7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjW7modnameN classnameNj] j` )}jc ]j6c.audit_log_startasbuh1hhj37ubj2)}(h h]h }(hjs7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj37ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj37ubj)}(hctxh]hctx}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj37ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/7ubj)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]j6c.audit_log_startasbuh1hhj7ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hgfp_maskh]hgfp_mask}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/7ubj)}(hint typeh](j )}(hinth]hint}(hj7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(htypeh]htype}(hj 8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/7ubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhj6hMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhj6hMkubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1jhj6hMkhj6hhubj)}(hhh]h)}(hobtain an audit bufferh]hobtain an audit buffer}(hj58hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMkhj28hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjM8jjM8jjjuh1jhhhj6hNhNubj)}(hXV**Parameters** ``struct audit_context *ctx`` audit_context (may be NULL) ``gfp_t gfp_mask`` type of allocation ``int type`` audit message type **Description** Returns audit_buffer pointer on success or NULL on error. Obtain an audit buffer. This routine does locking to obtain the audit buffer, but then no locking is required for calls to audit_log_*format. If the task (ctx) is a task that is currently in a syscall, then the syscall is marked as auditable and an audit record will be written at syscall exit. If there is no associated task, then task context (ctx) should be NULL.h](h)}(h**Parameters**h]j)}(hjW8h]h Parameters}(hjY8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU8ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMohjQ8ubj )}(hhh](j)}(h:``struct audit_context *ctx`` audit_context (may be NULL) h](j)}(h``struct audit_context *ctx``h]j)}(hjv8h]hstruct audit_context *ctx}(hjx8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt8ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMlhjp8ubj2)}(hhh]h)}(haudit_context (may be NULL)h]haudit_context (may be NULL)}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMlhj8ubah}(h]h ]h"]h$]h&]uh1j1hjp8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMlhjm8ubj)}(h&``gfp_t gfp_mask`` type of allocation h](j)}(h``gfp_t gfp_mask``h]j)}(hj8h]hgfp_t gfp_mask}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMmhj8ubj2)}(hhh]h)}(htype of allocationh]htype of allocation}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMmhj8ubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMmhjm8ubj)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hj8h]hint type}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMnhj8ubj2)}(hhh]h)}(haudit message typeh]haudit message type}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMnhj8ubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMnhjm8ubeh}(h]h ]h"]h$]h&]uh1j hjQ8ubh)}(h**Description**h]j)}(hj#9h]h Description}(hj%9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!9ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMphjQ8ubh)}(h9Returns audit_buffer pointer on success or NULL on error.h]h9Returns audit_buffer pointer on success or NULL on error.}(hj99hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMohjQ8ubh)}(hXqObtain an audit buffer. This routine does locking to obtain the audit buffer, but then no locking is required for calls to audit_log_*format. If the task (ctx) is a task that is currently in a syscall, then the syscall is marked as auditable and an audit record will be written at syscall exit. If there is no associated task, then task context (ctx) should be NULL.h]hXqObtain an audit buffer. This routine does locking to obtain the audit buffer, but then no locking is required for calls to audit_log_*format. If the task (ctx) is a task that is currently in a syscall, then the syscall is marked as auditable and an audit record will be written at syscall exit. If there is no associated task, then task context (ctx) should be NULL.}(hjH9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMqhjQ8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log_format (C function)c.audit_log_formathNtauh1hhj6hhhNhNubj)}(hhh](j)}(hEvoid audit_log_format (struct audit_buffer *ab, const char *fmt, ...)h]j)}(hDvoid audit_log_format(struct audit_buffer *ab, const char *fmt, ...)h](j )}(hvoidh]hvoid}(hjw9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjs9hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjs9hhhj9hMubj{)}(haudit_log_formath]j)}(haudit_log_formath]haudit_log_format}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjs9hhhj9hMubj)}(h/(struct audit_buffer *ab, const char *fmt, ...)h](j)}(hstruct audit_buffer *abh](j)}(hj h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubh)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jf )}jY j9sbc.audit_log_formatasbuh1hhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(habh]hab}(hj :hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(hconst char *fmth](j)}(hjh]hconst}(hj&:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj":ubj2)}(h h]h }(hj3:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj":ubj )}(hcharh]hchar}(hjA:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj":ubj2)}(h h]h }(hjO:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj":ubj)}(hjh]h*}(hj]:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj":ubj)}(hfmth]hfmt}(hjj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj":ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(h...h]j)}(hjh]h...}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(h]h ]h"]h$]h&]jjuh1jhjs9hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjo9hhhj9hMubah}(h]jj9ah ](jjeh"]h$]h&]jj)jhuh1jhj9hMhjl9hhubj)}(hhh]h)}(h'format a message into the audit buffer.h]h'format a message into the audit buffer.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhjl9hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1jhhhj6hNhNubj)}(h**Parameters** ``struct audit_buffer *ab`` audit_buffer ``const char *fmt`` format string ``...`` optional parameters matching **fmt** string **Description** All the work is done in audit_log_vformat.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj:ubj )}(hhh](j)}(h)``struct audit_buffer *ab`` audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hj:h]hstruct audit_buffer *ab}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj:ubj2)}(hhh]h)}(h audit_bufferh]h audit_buffer}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj:ubj)}(h"``const char *fmt`` format string h](j)}(h``const char *fmt``h]j)}(hj&;h]hconst char *fmt}(hj(;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$;ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj ;ubj2)}(hhh]h)}(h format stringh]h format string}(hj?;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;;hMhj<;ubah}(h]h ]h"]h$]h&]uh1j1hj ;ubeh}(h]h ]h"]h$]h&]uh1jhj;;hMhj:ubj)}(h4``...`` optional parameters matching **fmt** string h](j)}(h``...``h]j)}(hj_;h]h...}(hja;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj];ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhjY;ubj2)}(hhh]h)}(h+optional parameters matching **fmt** stringh](hoptional parameters matching }(hjx;hhhNhNubj)}(h**fmt**h]hfmt}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx;ubh string}(hjx;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjt;hMhju;ubah}(h]h ]h"]h$]h&]uh1j1hjY;ubeh}(h]h ]h"]h$]h&]uh1jhjt;hMhj:ubeh}(h]h ]h"]h$]h&]uh1j hj:ubh)}(h**Description**h]j)}(hj;h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj:ubh)}(h*All the work is done in audit_log_vformat.h]h*All the work is done in audit_log_vformat.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log_subj_ctx (C function)c.audit_log_subj_ctxhNtauh1hhj6hhhNhNubj)}(hhh](j)}(hGint audit_log_subj_ctx (struct audit_buffer *ab, struct lsm_prop *prop)h]j)}(hFint audit_log_subj_ctx(struct audit_buffer *ab, struct lsm_prop *prop)h](j )}(hinth]hint}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;hhhj;hMubj{)}(haudit_log_subj_ctxh]j)}(haudit_log_subj_ctxh]haudit_log_subj_ctx}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;hhhj;hMubj)}(h0(struct audit_buffer *ab, struct lsm_prop *prop)h](j)}(hstruct audit_buffer *abh](j)}(hj h]hstruct}(hj.<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*<ubj2)}(h h]h }(hj;<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*<ubh)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hjL<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjN<modnameN classnameNj] j` )}jc ]jf )}jY j<sbc.audit_log_subj_ctxasbuh1hhj*<ubj2)}(h h]h }(hjl<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*<ubj)}(hjh]h*}(hjz<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*<ubj)}(habh]hab}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&<ubj)}(hstruct lsm_prop *proph](j)}(hj h]hstruct}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubh)}(hhh]j)}(hlsm_proph]hlsm_prop}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj<modnameN classnameNj] j` )}jc ]jh<c.audit_log_subj_ctxasbuh1hhj<ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hproph]hprop}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj&<ubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhj;hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhj;hMubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1jhj;hMhj;hhubj)}(hhh]h)}(hAdd LSM subject informationh]hAdd LSM subject information}(hj!=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9=jj9=jjjuh1jhhhj6hNhNubj)}(h**Parameters** ``struct audit_buffer *ab`` audit_buffer ``struct lsm_prop *prop`` LSM subject properties. **Description** Add a subj= field and, if necessary, a AUDIT_MAC_TASK_CONTEXTS record.h](h)}(h**Parameters**h]j)}(hjC=h]h Parameters}(hjE=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA=ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj==ubj )}(hhh](j)}(h)``struct audit_buffer *ab`` audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hjb=h]hstruct audit_buffer *ab}(hjd=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`=ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj\=ubj2)}(hhh]h)}(h audit_bufferh]h audit_buffer}(hj{=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjw=hMhjx=ubah}(h]h ]h"]h$]h&]uh1j1hj\=ubeh}(h]h ]h"]h$]h&]uh1jhjw=hMhjY=ubj)}(h2``struct lsm_prop *prop`` LSM subject properties. h](j)}(h``struct lsm_prop *prop``h]j)}(hj=h]hstruct lsm_prop *prop}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj=ubj2)}(hhh]h)}(hLSM subject properties.h]hLSM subject properties.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjY=ubeh}(h]h ]h"]h$]h&]uh1j hj==ubh)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj==ubh)}(hFAdd a subj= field and, if necessary, a AUDIT_MAC_TASK_CONTEXTS record.h]hFAdd a subj= field and, if necessary, a AUDIT_MAC_TASK_CONTEXTS record.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chMhj==ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log_end (C function)c.audit_log_endhNtauh1hhj6hhhNhNubj)}(hhh](j)}(h,void audit_log_end (struct audit_buffer *ab)h]j)}(h+void audit_log_end(struct audit_buffer *ab)h](j )}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM ubj2)}(h h]h }(hj*>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>hhhj)>hM ubj{)}(h audit_log_endh]j)}(h audit_log_endh]h audit_log_end}(hj<>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhj)>hM ubj)}(h(struct audit_buffer *ab)h]j)}(hstruct audit_buffer *abh](j)}(hj h]hstruct}(hjX>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT>ubj2)}(h h]h }(hje>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjT>ubh)}(hhh]j)}(h audit_bufferh]h audit_buffer}(hjv>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs>ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjx>modnameN classnameNj] j` )}jc ]jf )}jY j>>sbc.audit_log_endasbuh1hhjT>ubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjT>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT>ubj)}(habh]hab}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjP>ubah}(h]h ]h"]h$]h&]jjuh1jhj>hhhj)>hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj)>hM ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhj)>hM hj>hhubj)}(hhh]h)}(hend one audit recordh]hend one audit record}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj>hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj)>hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jhhhj6hNhNubj)}(hX^**Parameters** ``struct audit_buffer *ab`` the audit_buffer **Description** We can not do a netlink send inside an irq context because it blocks (last arg, flags, is not set to MSG_DONTWAIT), so the audit buffer is placed on a queue and a kthread is scheduled to remove them from the queue outside the irq context. May be called in any context.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj>ubj )}(hhh]j)}(h-``struct audit_buffer *ab`` the audit_buffer h](j)}(h``struct audit_buffer *ab``h]j)}(hj?h]hstruct audit_buffer *ab}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj?ubj2)}(hhh]h)}(hthe audit_bufferh]hthe audit_buffer}(hj5?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1?hM hj2?ubah}(h]h ]h"]h$]h&]uh1j1hj?ubeh}(h]h ]h"]h$]h&]uh1jhj1?hM hj?ubah}(h]h ]h"]h$]h&]uh1j hj>ubh)}(h**Description**h]j)}(hjW?h]h Description}(hjY?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU?ubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj>ubh)}(hX We can not do a netlink send inside an irq context because it blocks (last arg, flags, is not set to MSG_DONTWAIT), so the audit buffer is placed on a queue and a kthread is scheduled to remove them from the queue outside the irq context. May be called in any context.h]hX We can not do a netlink send inside an irq context because it blocks (last arg, flags, is not set to MSG_DONTWAIT), so the audit buffer is placed on a queue and a kthread is scheduled to remove them from the queue outside the irq context. May be called in any context.}(hjm?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_log (C function) c.audit_loghNtauh1hhj6hhhNhNubj)}(hhh](j)}(hZvoid audit_log (struct audit_context *ctx, gfp_t gfp_mask, int type, const char *fmt, ...)h]j)}(hYvoid audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type, const char *fmt, ...)h](j )}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?hhhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?hhhj?hM ubj{)}(h audit_logh]j)}(h audit_logh]h audit_log}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhj?hM ubj)}(hK(struct audit_context *ctx, gfp_t gfp_mask, int type, const char *fmt, ...)h](j)}(hstruct audit_context *ctxh](j)}(hj h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubh)}(hhh]j)}(h audit_contexth]h audit_context}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jf )}jY j?sb c.audit_logasbuh1hhj?ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(hjh]h*}(hj%@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj)}(hctxh]hctx}(hj2@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjN@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjP@modnameN classnameNj] j` )}jc ]j@ c.audit_logasbuh1hhjG@ubj2)}(h h]h }(hjl@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjG@ubj)}(hgfp_maskh]hgfp_mask}(hjz@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hint typeh](j )}(hinth]hint}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(htypeh]htype}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hconst char *fmth](j)}(hjh]hconst}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj )}(hcharh]hchar}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj)}(hfmth]hfmt}(hj AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(h...h]j)}(hjh]h...}(hj%AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Aubah}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhj?hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhj?hM ubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1jhj?hM hj?hhubj)}(hhh]h)}(hLog an audit recordh]hLog an audit record}(hjNAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjKAhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfAjjfAjjjuh1jhhhj6hNhNubj)}(hX**Parameters** ``struct audit_context *ctx`` audit context ``gfp_t gfp_mask`` type of allocation ``int type`` audit message type ``const char *fmt`` format string to use ``...`` variable parameters matching the format string **Description** This is a convenience function that calls audit_log_start, audit_log_vformat, and audit_log_end. It may be called in any context.h](h)}(h**Parameters**h]j)}(hjpAh]h Parameters}(hjrAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnAubah}(h]h ]h"]h$]h&]uh1hhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjjAubj )}(hhh](j)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hjAh]hstruct audit_context *ctx}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjAubj2)}(hhh]h)}(h audit contexth]h audit context}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM hjAubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhjAhM hjAubj)}(h&``gfp_t gfp_mask`` type of allocation h](j)}(h``gfp_t gfp_mask``h]j)}(hjAh]hgfp_t gfp_mask}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjAubj2)}(hhh]h)}(htype of allocationh]htype of allocation}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM hjAubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhjAhM hjAubj)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hjBh]hint type}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:292: ./kernel/audit.chM hjAubj2)}(hhh]h)}(haudit message typeh]haudit message type}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM hjBubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhjBhM hjAubj)}(h)``const char *fmt`` format string to use h](j)}(h``const char *fmt``h]j)}(hj:Bh]hconst char *fmt}(hjah"]h$]h&]uh1j1hjBhhhjChM.ubj{)}(h__audit_filter_oph]j)}(h__audit_filter_oph]h__audit_filter_op}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhjChM.ubj)}(hx(struct task_struct *tsk, struct audit_context *ctx, struct list_head *list, struct audit_names *name, unsigned long op)h](j)}(hstruct task_struct *tskh](j)}(hj h]hstruct}(hj0ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Cubj2)}(h h]h }(hj=ChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,Cubh)}(hhh]j)}(h task_structh]h task_struct}(hjNChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjPCmodnameN classnameNj] j` )}jc ]jf )}jY jCsbc.__audit_filter_opasbuh1hhj,Cubj2)}(h h]h }(hjnChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,Cubj)}(hjh]h*}(hj|ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Cubj)}(htskh]htsk}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(Cubj)}(hstruct audit_context *ctxh](j)}(hj h]hstruct}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]jjCc.__audit_filter_opasbuh1hhjCubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hctxh]hctx}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(Cubj)}(hstruct list_head *listh](j)}(hj h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubh)}(hhh]j)}(h list_headh]h list_head}(hj0DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Dubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2DmodnameN classnameNj] j` )}jc ]jjCc.__audit_filter_opasbuh1hhjDubj2)}(h h]h }(hjNDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hjh]h*}(hj\DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj)}(hlisth]hlist}(hjiDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(Cubj)}(hstruct audit_names *nameh](j)}(hj h]hstruct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Dubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~Dubh)}(hhh]j)}(h audit_namesh]h audit_names}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjDmodnameN classnameNj] j` )}jc ]jjCc.__audit_filter_opasbuh1hhj~Dubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~Dubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Dubj)}(hnameh]hname}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(Cubj)}(hunsigned long oph](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj )}(hlongh]hlong}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDubj)}(hoph]hop}(hj*EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(Cubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjChM.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjChM.ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jhjChM.hjBhhubj)}(hhh]h)}(h7common filter helper for operations (syscall/uring/etc)h]h7common filter helper for operations (syscall/uring/etc)}(hjTEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM.hjQEhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjChM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjlEjjlEjjjuh1jhhhj6hNhNubj)}(hXq**Parameters** ``struct task_struct *tsk`` associated task ``struct audit_context *ctx`` audit context ``struct list_head *list`` audit filter list ``struct audit_names *name`` audit_name (can be NULL) ``unsigned long op`` current syscall/uring_op **Description** Run the udit filters specified in **list** against **tsk** using **ctx**, **name**, and **op**, as necessary; the caller is responsible for ensuring that the call is made while the RCU read lock is held. The **name** parameter can be NULL, but all others must be specified. Returns 1/true if the filter finds a match, 0/false if none are found.h](h)}(h**Parameters**h]j)}(hjvEh]h Parameters}(hjxEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtEubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hjpEubj )}(hhh](j)}(h,``struct task_struct *tsk`` associated task h](j)}(h``struct task_struct *tsk``h]j)}(hjEh]hstruct task_struct *tsk}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM/hjEubj2)}(hhh]h)}(hassociated taskh]hassociated task}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM/hjEubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhjEhM/hjEubj)}(h,``struct audit_context *ctx`` audit context h](j)}(h``struct audit_context *ctx``h]j)}(hjEh]hstruct audit_context *ctx}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0hjEubj2)}(hhh]h)}(h audit contexth]h audit context}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM0hjEubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhjEhM0hjEubj)}(h-``struct list_head *list`` audit filter list h](j)}(h``struct list_head *list``h]j)}(hjFh]hstruct list_head *list}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM1hjFubj2)}(hhh]h)}(haudit filter listh]haudit filter list}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM1hjFubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjFhM1hjEubj)}(h6``struct audit_names *name`` audit_name (can be NULL) h](j)}(h``struct audit_names *name``h]j)}(hj@Fh]hstruct audit_names *name}(hjBFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Fubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2hj:Fubj2)}(hhh]h)}(haudit_name (can be NULL)h]haudit_name (can be NULL)}(hjYFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUFhM2hjVFubah}(h]h ]h"]h$]h&]uh1j1hj:Fubeh}(h]h ]h"]h$]h&]uh1jhjUFhM2hjEubj)}(h.``unsigned long op`` current syscall/uring_op h](j)}(h``unsigned long op``h]j)}(hjyFh]hunsigned long op}(hj{FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwFubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM3hjsFubj2)}(hhh]h)}(hcurrent syscall/uring_oph]hcurrent syscall/uring_op}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM3hjFubah}(h]h ]h"]h$]h&]uh1j1hjsFubeh}(h]h ]h"]h$]h&]uh1jhjFhM3hjEubeh}(h]h ]h"]h$]h&]uh1j hjpEubh)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5hjpEubh)}(hXXRun the udit filters specified in **list** against **tsk** using **ctx**, **name**, and **op**, as necessary; the caller is responsible for ensuring that the call is made while the RCU read lock is held. The **name** parameter can be NULL, but all others must be specified. Returns 1/true if the filter finds a match, 0/false if none are found.h](h"Run the udit filters specified in }(hjFhhhNhNubj)}(h**list**h]hlist}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh against }(hjFhhhNhNubj)}(h**tsk**h]htsk}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh using }(hjFhhhNhNubj)}(h**ctx**h]hctx}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh, }(hjFhhhNhNubj)}(h**name**h]hname}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh, and }(hjFhhhNhNubj)}(h**op**h]hop}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubhr, as necessary; the caller is responsible for ensuring that the call is made while the RCU read lock is held. The }(hjFhhhNhNubj)}(h**name**h]hname}(hj,GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh parameter can be NULL, but all others must be specified. Returns 1/true if the filter finds a match, 0/false if none are found.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hjpEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_filter_uring (C function)c.audit_filter_uringhNtauh1hhj6hhhNhNubj)}(hhh](j)}(hLvoid audit_filter_uring (struct task_struct *tsk, struct audit_context *ctx)h]j)}(hKvoid audit_filter_uring(struct task_struct *tsk, struct audit_context *ctx)h](j )}(hvoidh]hvoid}(hjeGhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaGhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPubj2)}(h h]h }(hjtGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaGhhhjsGhMPubj{)}(haudit_filter_uringh]j)}(haudit_filter_uringh]haudit_filter_uring}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjaGhhhjsGhMPubj)}(h4(struct task_struct *tsk, struct audit_context *ctx)h](j)}(hstruct task_struct *tskh](j)}(hj h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubh)}(hhh]j)}(h task_structh]h task_struct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGmodnameN classnameNj] j` )}jc ]jf )}jY jGsbc.audit_filter_uringasbuh1hhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(htskh]htsk}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct audit_context *ctxh](j)}(hj h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hj!HhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubh)}(hhh]j)}(h audit_contexth]h audit_context}(hj2HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Hubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4HmodnameN classnameNj] j` )}jc ]jGc.audit_filter_uringasbuh1hhjHubj2)}(h h]h }(hjPHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hj^HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hctxh]hctx}(hjkHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjaGhhhjsGhMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]GhhhjsGhMPubah}(h]jXGah ](jjeh"]h$]h&]jj)jhuh1jhjsGhMPhjZGhhubj)}(hhh]h)}(h&apply filters to an io_uring operationh]h&apply filters to an io_uring operation}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhjHhhubah}(h]h ]h"]h$]h&]uh1jhjZGhhhjsGhMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhj6hNhNubj)}(hl**Parameters** ``struct task_struct *tsk`` associated task ``struct audit_context *ctx`` audit contexth](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMThjHubj )}(hhh](j)}(h,``struct task_struct *tsk`` associated task h](j)}(h``struct task_struct *tsk``h]j)}(hjHh]hstruct task_struct *tsk}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMQhjHubj2)}(hhh]h)}(hassociated taskh]hassociated task}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMQhjHubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMQhjHubj)}(h+``struct audit_context *ctx`` audit contexth](j)}(h``struct audit_context *ctx``h]j)}(hjIh]hstruct audit_context *ctx}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Iubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMShj Iubj2)}(hhh]h)}(h audit contexth]h audit context}(hj(IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMRhj%Iubah}(h]h ]h"]h$]h&]uh1j1hj Iubeh}(h]h ]h"]h$]h&]uh1jhj$IhMShjHubeh}(h]h ]h"]h$]h&]uh1j hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  audit_reset_context (C function)c.audit_reset_contexthNtauh1hhj6hhhNhNubj)}(hhh](j)}(h4void audit_reset_context (struct audit_context *ctx)h]j)}(h3void audit_reset_context(struct audit_context *ctx)h](j )}(hvoidh]hvoid}(hjiIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjeIhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj2)}(h h]h }(hjxIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeIhhhjwIhMubj{)}(haudit_reset_contexth]j)}(haudit_reset_contexth]haudit_reset_context}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjeIhhhjwIhMubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hj h]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjImodnameN classnameNj] j` )}jc ]jf )}jY jIsbc.audit_reset_contextasbuh1hhjIubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hctxh]hctx}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubah}(h]h ]h"]h$]h&]jjuh1jhjeIhhhjwIhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjaIhhhjwIhMubah}(h]j\Iah ](jjeh"]h$]h&]jj)jhuh1jhjwIhMhj^Ihhubj)}(hhh]h)}(hreset a audit_context structureh]hreset a audit_context structure}(hj)JhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj&Jhhubah}(h]h ]h"]h$]h&]uh1jhj^IhhhjwIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAJjjAJjjjuh1jhhhj6hNhNubj)}(hX{**Parameters** ``struct audit_context *ctx`` the audit_context to reset **Description** All fields in the audit_context will be reset to an initial state, all references held by fields will be dropped, and private memory will be released. When this function returns the audit_context will be suitable for reuse, so long as the passed context is not NULL or a dummy context.h](h)}(h**Parameters**h]j)}(hjKJh]h Parameters}(hjMJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIJubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjEJubj )}(hhh]j)}(h9``struct audit_context *ctx`` the audit_context to reset h](j)}(h``struct audit_context *ctx``h]j)}(hjjJh]hstruct audit_context *ctx}(hjlJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhJubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjdJubj2)}(hhh]h)}(hthe audit_context to reseth]hthe audit_context to reset}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1j1hjdJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjaJubah}(h]h ]h"]h$]h&]uh1j hjEJubh)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjEJubh)}(hXAll fields in the audit_context will be reset to an initial state, all references held by fields will be dropped, and private memory will be released. When this function returns the audit_context will be suitable for reuse, so long as the passed context is not NULL or a dummy context.h]hXAll fields in the audit_context will be reset to an initial state, all references held by fields will be dropped, and private memory will be released. When this function returns the audit_context will be suitable for reuse, so long as the passed context is not NULL or a dummy context.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjEJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_alloc (C function) c.audit_allochNtauh1hhj6hhhNhNubj)}(hhh](j)}(h)int audit_alloc (struct task_struct *tsk)h]j)}(h(int audit_alloc(struct task_struct *tsk)h](j )}(hinth]hint}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhjJhMubj{)}(h audit_alloch]j)}(h audit_alloch]h audit_alloc}(hj KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhjJhMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hj h]hstruct}(hj'KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Kubj2)}(h h]h }(hj4KhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#Kubh)}(hhh]j)}(h task_structh]h task_struct}(hjEKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBKubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGKmodnameN classnameNj] j` )}jc ]jf )}jY j Ksb c.audit_allocasbuh1hhj#Kubj2)}(h h]h }(hjeKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#Kubj)}(hjh]h*}(hjsKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Kubj)}(htskh]htsk}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhjJhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhjJhMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jhjJhMhjJhhubj)}(hhh]h)}(h*allocate an audit context block for a taskh]h*allocate an audit context block for a task}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhj6hNhNubj)}(hX**Parameters** ``struct task_struct *tsk`` task **Description** Filter on the task information and allocate a per-task audit context if necessary. Doing so turns on system call auditing for the specified task. This is called from copy_process, so no lock is needed.h](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjKubj )}(hhh]j)}(h!``struct task_struct *tsk`` task h](j)}(h``struct task_struct *tsk``h]j)}(hjKh]hstruct task_struct *tsk}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjKubj2)}(hhh]h)}(htaskh]htask}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjKubah}(h]h ]h"]h$]h&]uh1j hjKubh)}(h**Description**h]j)}(hj&Lh]h Description}(hj(LhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Lubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjKubh)}(hFilter on the task information and allocate a per-task audit context if necessary. Doing so turns on system call auditing for the specified task. This is called from copy_process, so no lock is needed.h]hFilter on the task information and allocate a per-task audit context if necessary. Doing so turns on system call auditing for the specified task. This is called from copy_process, so no lock is needed.}(hjah"]h$]h&]uh1j1hjgLhhhjyLhMOubj{)}(haudit_log_uringh]j)}(haudit_log_uringh]haudit_log_uring}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjgLhhhjyLhMOubj)}(h(struct audit_context *ctx)h]j)}(hstruct audit_context *ctxh](j)}(hj h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLmodnameN classnameNj] j` )}jc ]jf )}jY jLsbc.audit_log_uringasbuh1hhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hctxh]hctx}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhjgLhhhjyLhMOubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjcLhhhjyLhMOubah}(h]j^Lah ](jjeh"]h$]h&]jj)jhuh1jhjyLhMOhj`Lhhubj)}(hhh]h)}(hgenerate a AUDIT_URINGOP recordh]hgenerate a AUDIT_URINGOP record}(hj+MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMOhj(Mhhubah}(h]h ]h"]h$]h&]uh1jhj`LhhhjyLhMOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCMjjCMjjjuh1jhhhj6hNhNubj)}(hA**Parameters** ``struct audit_context *ctx`` the audit contexth](h)}(h**Parameters**h]j)}(hjMMh]h Parameters}(hjOMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKMubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMShjGMubj )}(hhh]j)}(h/``struct audit_context *ctx`` the audit contexth](j)}(h``struct audit_context *ctx``h]j)}(hjlMh]hstruct audit_context *ctx}(hjnMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjMubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMUhjfMubj2)}(hhh]h)}(hthe audit contexth]hthe audit context}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMPhjMubah}(h]h ]h"]h$]h&]uh1j1hjfMubeh}(h]h ]h"]h$]h&]uh1jhjMhMUhjcMubah}(h]h ]h"]h$]h&]uh1j hjGMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_free (C function)c.__audit_freehNtauh1hhj6hhhNhNubj)}(hhh](j)}(h+void __audit_free (struct task_struct *tsk)h]j)}(h*void __audit_free(struct task_struct *tsk)h](j )}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjMhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMhhhjMhMubj{)}(h __audit_freeh]j)}(h __audit_freeh]h __audit_free}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhhjMhMubj)}(h(struct task_struct *tsk)h]j)}(hstruct task_struct *tskh](j)}(hj h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubh)}(hhh]j)}(h task_structh]h task_struct}(hj!NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#NmodnameN classnameNj] j` )}jc ]jf )}jY jMsbc.__audit_freeasbuh1hhjMubj2)}(h h]h }(hjANhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hjh]h*}(hjONhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(htskh]htsk}(hj\NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjMhhhjMhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjMhMhjMhhubj)}(hhh]h)}(hfree a per-task audit contexth]hfree a per-task audit context}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhj6hNhNubj)}(h**Parameters** ``struct task_struct *tsk`` task whose audit context block to free **Description** Called from copy_process, do_exit, and the io_uring codeh](h)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjNubj )}(hhh]j)}(hC``struct task_struct *tsk`` task whose audit context block to free h](j)}(h``struct task_struct *tsk``h]j)}(hjNh]hstruct task_struct *tsk}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjNubj2)}(hhh]h)}(h&task whose audit context block to freeh]h&task whose audit context block to free}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjNubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjNubah}(h]h ]h"]h$]h&]uh1j hjNubh)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjNubh)}(h8Called from copy_process, do_exit, and the io_uring codeh]h8Called from copy_process, do_exit, and the io_uring code}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_return_fixup (C function)c.audit_return_fixuphNtauh1hhj6hhhNhNubj)}(hhh](j)}(hKvoid audit_return_fixup (struct audit_context *ctx, int success, long code)h]j)}(hJvoid audit_return_fixup(struct audit_context *ctx, int success, long code)h](j )}(hvoidh]hvoid}(hjGOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjCOhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM0ubj2)}(h h]h }(hjVOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCOhhhjUOhM0ubj{)}(haudit_return_fixuph]j)}(haudit_return_fixuph]haudit_return_fixup}(hjhOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdOubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjCOhhhjUOhM0ubj)}(h3(struct audit_context *ctx, int success, long code)h](j)}(hstruct audit_context *ctxh](j)}(hj h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jf )}jY jjOsbc.audit_return_fixupasbuh1hhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hctxh]hctx}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|Oubj)}(h int successh](j )}(hinth]hint}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hsuccessh]hsuccess}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|Oubj)}(h long codeh](j )}(hlongh]hlong}(hj+PhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'Pubj2)}(h h]h }(hj9PhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'Pubj)}(hcodeh]hcode}(hjGPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Pubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj|Oubeh}(h]h ]h"]h$]h&]jjuh1jhjCOhhhjUOhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?OhhhjUOhM0ubah}(h]j:Oah ](jjeh"]h$]h&]jj)jhuh1jhjUOhM0hjtrue/false value to indicate if the operation succeeded or noth]h>true/false value to indicate if the operation succeeded or not}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM2hjQubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjQhM2hjPubj)}(h$``long code`` operation return code h](j)}(h ``long code``h]j)}(hj$Qh]h long code}(hj&QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Qubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM3hjQubj2)}(hhh]h)}(hoperation return codeh]hoperation return code}(hj=QhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9QhM3hj:Qubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhj9QhM3hjPubeh}(h]h ]h"]h$]h&]uh1j hjPubh)}(h**Description**h]j)}(hj_Qh]h Description}(hjaQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Qubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5hjPubh)}(hWe need to fixup the return code in the audit logs if the actual return codes are later going to be fixed by the arch specific signal handlers.h]hWe need to fixup the return code in the audit logs if the actual return codes are later going to be fixed by the arch specific signal handlers.}(hjuQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  __audit_uring_entry (C function)c.__audit_uring_entryhNtauh1hhj6hhhNhNubj)}(hhh](j)}(h void __audit_uring_entry (u8 op)h]j)}(hvoid __audit_uring_entry(u8 op)h](j )}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMLubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQhhhjQhMLubj{)}(h__audit_uring_entryh]j)}(h__audit_uring_entryh]h__audit_uring_entry}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQhhhjQhMLubj)}(h(u8 op)h]j)}(hu8 oph](h)}(hhh]j)}(hu8h]hu8}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQmodnameN classnameNj] j` )}jc ]jf )}jY jQsbc.__audit_uring_entryasbuh1hhjQubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hoph]hop}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubah}(h]h ]h"]h$]h&]jjuh1jhjQhhhjQhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjQhMLubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1jhjQhMLhjQhhubj)}(hhh]h)}(h4prepare the kernel task's audit context for io_uringh]h6prepare the kernel task’s audit context for io_uring}(hjah"]h$]h&]uh1j1hjRhhhj ShMoubj{)}(h__audit_uring_exith]j)}(h__audit_uring_exith]h__audit_uring_exit}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjRhhhj ShMoubj)}(h(int success, long code)h](j)}(h int successh](j )}(hinth]hint}(hj:ShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6Subj2)}(h h]h }(hjHShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6Subj)}(hsuccessh]hsuccess}(hjVShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Subeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2Subj)}(h long codeh](j )}(hlongh]hlong}(hjoShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjkSubj2)}(h h]h }(hj}ShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkSubj)}(hcodeh]hcode}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2Subeh}(h]h ]h"]h$]h&]jjuh1jhjRhhhj ShMoubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhj ShMoubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1jhj ShMohjRhhubj)}(hhh]h)}(h6wrap up the kernel task's audit context after io_uringh]h8wrap up the kernel task’s audit context after io_uring}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMohjShhubah}(h]h ]h"]h$]h&]uh1jhjRhhhj ShMoubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1jhhhj6hNhNubj)}(hXv**Parameters** ``int success`` true/false value to indicate if the operation succeeded or not ``long code`` operation return code **Description** This is similar to audit_syscall_exit() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_exit() as we rely on the audit context checking present in that function.h](h)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMshjSubj )}(hhh](j)}(hO``int success`` true/false value to indicate if the operation succeeded or not h](j)}(h``int success``h]j)}(hjSh]h int success}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMphjSubj2)}(hhh]h)}(h>true/false value to indicate if the operation succeeded or noth]h>true/false value to indicate if the operation succeeded or not}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ThMphj Tubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhj ThMphjSubj)}(h$``long code`` operation return code h](j)}(h ``long code``h]j)}(hj/Th]h long code}(hj1ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Tubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMqhj)Tubj2)}(hhh]h)}(hoperation return codeh]hoperation return code}(hjHThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDThMqhjETubah}(h]h ]h"]h$]h&]uh1j1hj)Tubeh}(h]h ]h"]h$]h&]uh1jhjDThMqhjSubeh}(h]h ]h"]h$]h&]uh1j hjSubh)}(h**Description**h]j)}(hjjTh]h Description}(hjlThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhTubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMshjSubh)}(hThis is similar to audit_syscall_exit() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_exit() as we rely on the audit context checking present in that function.h]hThis is similar to audit_syscall_exit() but is intended for use by io_uring operations. This function should only ever be called from audit_uring_exit() as we rely on the audit context checking present in that function.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMrhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "__audit_syscall_entry (C function)c.__audit_syscall_entryhNtauh1hhj6hhhNhNubj)}(hhh](j)}(hnvoid __audit_syscall_entry (int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h]j)}(hmvoid __audit_syscall_entry(int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h](j )}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjThhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjThhhjThMubj{)}(h__audit_syscall_entryh]j)}(h__audit_syscall_entryh]h__audit_syscall_entry}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhjThMubj)}(hS(int major, unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4)h](j)}(h int majorh](j )}(hinth]hint}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hmajorh]hmajor}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hunsigned long a1h](j )}(hunsignedh]hunsigned}(hj!UhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUubj2)}(h h]h }(hj/UhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj )}(hlongh]hlong}(hj=UhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjKUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(ha1h]ha1}(hjYUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hunsigned long a2h](j )}(hunsignedh]hunsigned}(hjrUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnUubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnUubj )}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnUubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnUubj)}(ha2h]ha2}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hunsigned long a3h](j )}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj )}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(ha3h]ha3}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubj)}(hunsigned long a4h](j )}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubj2)}(h h]h }(hj"VhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj )}(hlongh]hlong}(hj0VhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubj2)}(h h]h }(hj>VhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(ha4h]ha4}(hjLVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjThMubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjThMhjThhubj)}(hhh]h)}(h(fill in an audit record at syscall entryh]h(fill in an audit record at syscall entry}(hjvVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjsVhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjThMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1jhhhj6hNhNubj)}(hX**Parameters** ``int major`` major syscall type (function) ``unsigned long a1`` additional syscall register 1 ``unsigned long a2`` additional syscall register 2 ``unsigned long a3`` additional syscall register 3 ``unsigned long a4`` additional syscall register 4 **Description** Fill in audit context at syscall entry. This only happens if the audit context was created when the task was created and the state or filters demand the audit context be built. If the state from the per-task filter or from the per-syscall filter is AUDIT_STATE_RECORD, then the record will be written at syscall exit time (otherwise, it will only be written if another part of the kernel requests that it be written).h](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjVubj )}(hhh](j)}(h,``int major`` major syscall type (function) h](j)}(h ``int major``h]j)}(hjVh]h int major}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjVubj2)}(hhh]h)}(hmajor syscall type (function)h]hmajor syscall type (function)}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjVubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjVubj)}(h3``unsigned long a1`` additional syscall register 1 h](j)}(h``unsigned long a1``h]j)}(hjVh]hunsigned long a1}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjVubj2)}(hhh]h)}(hadditional syscall register 1h]hadditional syscall register 1}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjVubj)}(h3``unsigned long a2`` additional syscall register 2 h](j)}(h``unsigned long a2``h]j)}(hj)Wh]hunsigned long a2}(hj+WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Wubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj#Wubj2)}(hhh]h)}(hadditional syscall register 2h]hadditional syscall register 2}(hjBWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>WhMhj?Wubah}(h]h ]h"]h$]h&]uh1j1hj#Wubeh}(h]h ]h"]h$]h&]uh1jhj>WhMhjVubj)}(h3``unsigned long a3`` additional syscall register 3 h](j)}(h``unsigned long a3``h]j)}(hjbWh]hunsigned long a3}(hjdWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Wubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj\Wubj2)}(hhh]h)}(hadditional syscall register 3h]hadditional syscall register 3}(hj{WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwWhMhjxWubah}(h]h ]h"]h$]h&]uh1j1hj\Wubeh}(h]h ]h"]h$]h&]uh1jhjwWhMhjVubj)}(h3``unsigned long a4`` additional syscall register 4 h](j)}(h``unsigned long a4``h]j)}(hjWh]hunsigned long a4}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjWubj2)}(hhh]h)}(hadditional syscall register 4h]hadditional syscall register 4}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjVubeh}(h]h ]h"]h$]h&]uh1j hjVubh)}(h**Description**h]j)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjVubh)}(hXFill in audit context at syscall entry. This only happens if the audit context was created when the task was created and the state or filters demand the audit context be built. If the state from the per-task filter or from the per-syscall filter is AUDIT_STATE_RECORD, then the record will be written at syscall exit time (otherwise, it will only be written if another part of the kernel requests that it be written).h]hXFill in audit context at syscall entry. This only happens if the audit context was created when the task was created and the state or filters demand the audit context be built. If the state from the per-task filter or from the per-syscall filter is AUDIT_STATE_RECORD, then the record will be written at syscall exit time (otherwise, it will only be written if another part of the kernel requests that it be written).}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !__audit_syscall_exit (C function)c.__audit_syscall_exithNtauh1hhj6hhhNhNubj)}(hhh](j)}(h9void __audit_syscall_exit (int success, long return_code)h]j)}(h8void __audit_syscall_exit(int success, long return_code)h](j )}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj2)}(h h]h }(hj*XhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXhhhj)XhMubj{)}(h__audit_syscall_exith]j)}(h__audit_syscall_exith]h__audit_syscall_exit}(hjah"]h$]h&]uh1j1hjTXubj)}(hsuccessh]hsuccess}(hjtXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPXubj)}(hlong return_codeh](j )}(hlongh]hlong}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(h return_codeh]h return_code}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPXubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhj)XhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhj)XhMubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhj)XhMhjXhhubj)}(hhh]h)}(h,deallocate audit context after a system callh]h,deallocate audit context after a system call}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjXhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhj)XhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jhhhj6hNhNubj)}(hX**Parameters** ``int success`` success value of the syscall ``long return_code`` return value of the syscall **Description** Tear down after system call. If the audit context has been marked as auditable (either because of the AUDIT_STATE_RECORD state from filtering, or because some other part of the kernel wrote an audit message), then write out the syscall information. In call cases, free the names stored from getname().h](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjXubj )}(hhh](j)}(h-``int success`` success value of the syscall h](j)}(h``int success``h]j)}(hjYh]h int success}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjYubj2)}(hhh]h)}(hsuccess value of the syscallh]hsuccess value of the syscall}(hj-YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)YhMhj*Yubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhj)YhMhj Yubj)}(h1``long return_code`` return value of the syscall h](j)}(h``long return_code``h]j)}(hjMYh]hlong return_code}(hjOYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKYubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjGYubj2)}(hhh]h)}(hreturn value of the syscallh]hreturn value of the syscall}(hjfYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbYhMhjcYubah}(h]h ]h"]h$]h&]uh1j1hjGYubeh}(h]h ]h"]h$]h&]uh1jhjbYhMhj Yubeh}(h]h ]h"]h$]h&]uh1j hjXubh)}(h**Description**h]j)}(hjYh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjXubh)}(hX/Tear down after system call. If the audit context has been marked as auditable (either because of the AUDIT_STATE_RECORD state from filtering, or because some other part of the kernel wrote an audit message), then write out the syscall information. In call cases, free the names stored from getname().h]hX/Tear down after system call. If the audit context has been marked as auditable (either because of the AUDIT_STATE_RECORD state from filtering, or because some other part of the kernel wrote an audit message), then write out the syscall information. In call cases, free the names stored from getname().}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_getname (C function)c.__audit_getnamehNtauh1hhj6hhhNhNubj)}(hhh](j)}(h,void __audit_getname (struct filename *name)h]j)}(h+void __audit_getname(struct filename *name)h](j )}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM}ubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYhhhjYhM}ubj{)}(h__audit_getnameh]j)}(h__audit_getnameh]h__audit_getname}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYhhhjYhM}ubj)}(h(struct filename *name)h]j)}(hstruct filename *nameh](j)}(hj h]hstruct}(hj ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(hhh]j)}(hfilenameh]hfilename}(hj(ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%Zubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*ZmodnameN classnameNj] j` )}jc ]jf )}jY jYsbc.__audit_getnameasbuh1hhjZubj2)}(h h]h }(hjHZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjVZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hnameh]hname}(hjcZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubah}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhM}ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhM}ubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1jhjYhM}hjYhhubj)}(hhh]h)}(hadd a name to the listh]hadd a name to the list}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM}hjZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhj6hNhNubj)}(h**Parameters** ``struct filename *name`` name to add **Description** Add a name to the list of audit names for this context. Called from fs/namei.c:getname().h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjZubj )}(hhh]j)}(h&``struct filename *name`` name to add h](j)}(h``struct filename *name``h]j)}(hjZh]hstruct filename *name}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM~hjZubj2)}(hhh]h)}(h name to addh]h name to add}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhM~hjZubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjZhM~hjZubah}(h]h ]h"]h$]h&]uh1j hjZubh)}(h**Description**h]j)}(hj [h]h Description}(hj [hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjZubh)}(hYAdd a name to the list of audit names for this context. Called from fs/namei.c:getname().h]hYAdd a name to the list of audit names for this context. Called from fs/namei.c:getname().}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_inode (C function)c.__audit_inodehNtauh1hhj6hhhNhNubj)}(hhh](j)}(h[void __audit_inode (struct filename *name, const struct dentry *dentry, unsigned int flags)h]j)}(hZvoid __audit_inode(struct filename *name, const struct dentry *dentry, unsigned int flags)h](j )}(hvoidh]hvoid}(hjN[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJ[hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMubj2)}(h h]h }(hj][hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJ[hhhj\[hMubj{)}(h __audit_inodeh]j)}(h __audit_inodeh]h __audit_inode}(hjo[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJ[hhhj\[hMubj)}(hH(struct filename *name, const struct dentry *dentry, unsigned int flags)h](j)}(hstruct filename *nameh](j)}(hj h]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubh)}(hhh]j)}(hfilenameh]hfilename}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj[modnameN classnameNj] j` )}jc ]jf )}jY jq[sbc.__audit_inodeasbuh1hhj[ubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hnameh]hname}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hconst struct dentry *dentryh](j)}(hjh]hconst}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hj \hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hj h]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hj%\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubh)}(hhh]j)}(hdentryh]hdentry}(hj6\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3\ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj8\modnameN classnameNj] j` )}jc ]j[c.__audit_inodeasbuh1hhj[ubj2)}(h h]h }(hjT\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hjh]h*}(hjb\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hdentryh]hdentry}(hjo\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj )}(hinth]hint}(hj\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hflagsh]hflags}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhjJ[hhhj\[hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjF[hhhj\[hMubah}(h]jA[ah ](jjeh"]h$]h&]jj)jhuh1jhj\[hMhjC[hhubj)}(hhh]h)}(h(store the inode and device from a lookuph]h(store the inode and device from a lookup}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj\hhubah}(h]h ]h"]h$]h&]uh1jhjC[hhhj\[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jhhhj6hNhNubj)}(h**Parameters** ``struct filename *name`` name being audited ``const struct dentry *dentry`` dentry being audited ``unsigned int flags`` attributes for this particular entryh](h)}(h**Parameters**h]j)}(hj ]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ]ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj]ubj )}(hhh](j)}(h-``struct filename *name`` name being audited h](j)}(h``struct filename *name``h]j)}(hj+]h]hstruct filename *name}(hj-]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)]ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj%]ubj2)}(hhh]h)}(hname being auditedh]hname being audited}(hjD]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@]hMhjA]ubah}(h]h ]h"]h$]h&]uh1j1hj%]ubeh}(h]h ]h"]h$]h&]uh1jhj@]hMhj"]ubj)}(h5``const struct dentry *dentry`` dentry being audited h](j)}(h``const struct dentry *dentry``h]j)}(hjd]h]hconst struct dentry *dentry}(hjf]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb]ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj^]ubj2)}(hhh]h)}(hdentry being auditedh]hdentry being audited}(hj}]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy]hMhjz]ubah}(h]h ]h"]h$]h&]uh1j1hj^]ubeh}(h]h ]h"]h$]h&]uh1jhjy]hMhj"]ubj)}(h;``unsigned int flags`` attributes for this particular entryh](j)}(h``unsigned int flags``h]j)}(hj]h]hunsigned int flags}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj]ubj2)}(hhh]h)}(h$attributes for this particular entryh]h$attributes for this particular entry}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMhj]ubah}(h]h ]h"]h$]h&]uh1j1hj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hMhj"]ubeh}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j auditsc_get_stamp (C function)c.auditsc_get_stamphNtauh1hhj6hhhNhNubj)}(hhh](j)}(hLint auditsc_get_stamp (struct audit_context *ctx, struct audit_stamp *stamp)h]j)}(hKint auditsc_get_stamp(struct audit_context *ctx, struct audit_stamp *stamp)h](j )}(hinth]hint}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhj^hM ubj{)}(hauditsc_get_stamph]j)}(hauditsc_get_stamph]hauditsc_get_stamp}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhj^hM ubj)}(h6(struct audit_context *ctx, struct audit_stamp *stamp)h](j)}(hstruct audit_context *ctxh](j)}(hj h]hstruct}(hj4^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0^ubj2)}(h h]h }(hjA^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0^ubh)}(hhh]j)}(h audit_contexth]h audit_context}(hjR^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjT^modnameN classnameNj] j` )}jc ]jf )}jY j^sbc.auditsc_get_stampasbuh1hhj0^ubj2)}(h h]h }(hjr^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0^ubj)}(hctxh]hctx}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,^ubj)}(hstruct audit_stamp *stamph](j)}(hj h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubh)}(hhh]j)}(h audit_stamph]h audit_stamp}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]jn^c.auditsc_get_stampasbuh1hhj^ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hstamph]hstamp}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,^ubeh}(h]h ]h"]h$]h&]jjuh1jhj]hhhj^hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj^hM ubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1jhj^hM hj]hhubj)}(hhh]h)}(h(get local copies of audit_context valuesh]h(get local copies of audit_context values}(hj'_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj$_hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj^hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?_jj?_jjjuh1jhhhj6hNhNubj)}(h**Parameters** ``struct audit_context *ctx`` audit_context for the task ``struct audit_stamp *stamp`` timestamp to record **Description** Also sets the context as auditable.h](h)}(h**Parameters**h]j)}(hjI_h]h Parameters}(hjK_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG_ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjC_ubj )}(hhh](j)}(h9``struct audit_context *ctx`` audit_context for the task h](j)}(h``struct audit_context *ctx``h]j)}(hjh_h]hstruct audit_context *ctx}(hjj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf_ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjb_ubj2)}(hhh]h)}(haudit_context for the taskh]haudit_context for the task}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}_hM hj~_ubah}(h]h ]h"]h$]h&]uh1j1hjb_ubeh}(h]h ]h"]h$]h&]uh1jhj}_hM hj__ubj)}(h2``struct audit_stamp *stamp`` timestamp to record h](j)}(h``struct audit_stamp *stamp``h]j)}(hj_h]hstruct audit_stamp *stamp}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj_ubj2)}(hhh]h)}(htimestamp to recordh]htimestamp to record}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hM hj_ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hM hj__ubeh}(h]h ]h"]h$]h&]uh1j hjC_ubh)}(h**Description**h]j)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjC_ubh)}(h#Also sets the context as auditable.h]h#Also sets the context as auditable.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjC_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_mq_open (C function)c.__audit_mq_openhNtauh1hhj6hhhNhNubj)}(hhh](j)}(hDvoid __audit_mq_open (int oflag, umode_t mode, struct mq_attr *attr)h]j)}(hCvoid __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr)h](j )}(hvoidh]hvoid}(hj!`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hj0`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`hhhj/`hM ubj{)}(h__audit_mq_openh]j)}(h__audit_mq_openh]h__audit_mq_open}(hjB`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj`hhhj/`hM ubj)}(h/(int oflag, umode_t mode, struct mq_attr *attr)h](j)}(h int oflagh](j )}(hinth]hint}(hj^`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZ`ubj2)}(h h]h }(hjl`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZ`ubj)}(hoflagh]hoflag}(hjz`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV`ubj)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj`modnameN classnameNj] j` )}jc ]jf )}jY jD`sbc.__audit_mq_openasbuh1hhj`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(hmodeh]hmode}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV`ubj)}(hstruct mq_attr *attrh](j)}(hj h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubh)}(hhh]j)}(hmq_attrh]hmq_attr}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj`modnameN classnameNj] j` )}jc ]j`c.__audit_mq_openasbuh1hhj`ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(hjh]h*}(hj'ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hattrh]hattr}(hj4ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjV`ubeh}(h]h ]h"]h$]h&]jjuh1jhj`hhhj/`hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhj/`hM ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1jhj/`hM hj`hhubj)}(hhh]h)}(h%record audit data for a POSIX MQ openh]h%record audit data for a POSIX MQ open}(hj^ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj[ahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj/`hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvajjvajjjuh1jhhhj6hNhNubj)}(ht**Parameters** ``int oflag`` open flag ``umode_t mode`` mode bits ``struct mq_attr *attr`` queue attributesh](h)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~aubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjzaubj )}(hhh](j)}(h``int oflag`` open flag h](j)}(h ``int oflag``h]j)}(hjah]h int oflag}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjaubj2)}(hhh]h)}(h open flagh]h open flag}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahM hjaubj)}(h``umode_t mode`` mode bits h](j)}(h``umode_t mode``h]j)}(hjah]h umode_t mode}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjaubj2)}(hhh]h)}(h mode bitsh]h mode bits}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahM hjaubj)}(h)``struct mq_attr *attr`` queue attributesh](j)}(h``struct mq_attr *attr``h]j)}(hjbh]hstruct mq_attr *attr}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj bubj2)}(hhh]h)}(hqueue attributesh]hqueue attributes}(hj*bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj'bubah}(h]h ]h"]h$]h&]uh1j1hj bubeh}(h]h ]h"]h$]h&]uh1jhj&bhM hjaubeh}(h]h ]h"]h$]h&]uh1j hjzaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  __audit_mq_sendrecv (C function)c.__audit_mq_sendrecvhNtauh1hhj6hhhNhNubj)}(hhh](j)}(hsvoid __audit_mq_sendrecv (mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h]j)}(hrvoid __audit_mq_sendrecv(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h](j )}(hvoidh]hvoid}(hjkbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjgbhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hjzbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgbhhhjybhM ubj{)}(h__audit_mq_sendrecvh]j)}(h__audit_mq_sendrecvh]h__audit_mq_sendrecv}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjgbhhhjybhM ubj)}(hZ(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec64 *abs_timeout)h](j)}(h mqd_t mqdesh](h)}(hhh]j)}(hmqd_th]hmqd_t}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jf )}jY jbsbc.__audit_mq_sendrecvasbuh1hhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hmqdesh]hmqdes}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hsize_t msg_lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjbmodnameN classnameNj] j` )}jc ]jbc.__audit_mq_sendrecvasbuh1hhjbubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hmsg_lenh]hmsg_len}(hj!chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(hunsigned int msg_prioh](j )}(hunsignedh]hunsigned}(hj:chhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6cubj2)}(h h]h }(hjHchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6cubj )}(hinth]hint}(hjVchhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6cubj2)}(h h]h }(hjdchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6cubj)}(hmsg_prioh]hmsg_prio}(hjrchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubj)}(h$const struct timespec64 *abs_timeouth](j)}(hjh]hconst}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hj h]hstruct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubh)}(hhh]j)}(h timespec64h]h timespec64}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjcmodnameN classnameNj] j` )}jc ]jbc.__audit_mq_sendrecvasbuh1hhjcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj)}(h abs_timeouth]h abs_timeout}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjbubeh}(h]h ]h"]h$]h&]jjuh1jhjgbhhhjybhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjcbhhhjybhM ubah}(h]j^bah ](jjeh"]h$]h&]jj)jhuh1jhjybhM hj`bhhubj)}(hhh]h)}(h3record audit data for a POSIX MQ timed send/receiveh]h3record audit data for a POSIX MQ timed send/receive}(hj'dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj$dhhubah}(h]h ]h"]h$]h&]uh1jhj`bhhhjybhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?djj?djjjuh1jhhhj6hNhNubj)}(h**Parameters** ``mqd_t mqdes`` MQ descriptor ``size_t msg_len`` Message length ``unsigned int msg_prio`` Message priority ``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](h)}(h**Parameters**h]j)}(hjIdh]h Parameters}(hjKdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGdubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjCdubj )}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjhdh]h mqd_t mqdes}(hjjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfdubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjbdubj2)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}dhM hj~dubah}(h]h ]h"]h$]h&]uh1j1hjbdubeh}(h]h ]h"]h$]h&]uh1jhj}dhM hj_dubj)}(h"``size_t msg_len`` Message length h](j)}(h``size_t msg_len``h]j)}(hjdh]hsize_t msg_len}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjdubj2)}(hhh]h)}(hMessage lengthh]hMessage length}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM hjdubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjdhM hj_dubj)}(h+``unsigned int msg_prio`` Message priority h](j)}(h``unsigned int msg_prio``h]j)}(hjdh]hunsigned int msg_prio}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjdubj2)}(hhh]h)}(hMessage priorityh]hMessage priority}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM hjdubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjdhM hj_dubj)}(hI``const struct timespec64 *abs_timeout`` Message timeout in absolute timeh](j)}(h(``const struct timespec64 *abs_timeout``h]j)}(hjeh]h$const struct timespec64 *abs_timeout}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj eubj2)}(hhh]h)}(h Message timeout in absolute timeh]h Message timeout in absolute time}(hj,ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj)eubah}(h]h ]h"]h$]h&]uh1j1hj eubeh}(h]h ]h"]h$]h&]uh1jhj(ehM hj_dubeh}(h]h ]h"]h$]h&]uh1j hjCdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_mq_notify (C function)c.__audit_mq_notifyhNtauh1hhj6hhhNhNubj)}(hhh](j)}(hIvoid __audit_mq_notify (mqd_t mqdes, const struct sigevent *notification)h]j)}(hHvoid __audit_mq_notify(mqd_t mqdes, const struct sigevent *notification)h](j )}(hvoidh]hvoid}(hjmehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjiehhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hj|ehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiehhhj{ehM ubj{)}(h__audit_mq_notifyh]j)}(h__audit_mq_notifyh]h__audit_mq_notify}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjiehhhj{ehM ubj)}(h2(mqd_t mqdes, const struct sigevent *notification)h](j)}(h mqd_t mqdesh](h)}(hhh]j)}(hmqd_th]hmqd_t}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjemodnameN classnameNj] j` )}jc ]jf )}jY jesbc.__audit_mq_notifyasbuh1hhjeubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hmqdesh]hmqdes}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(h#const struct sigevent *notificationh](j)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hj h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(hhh]j)}(hsigeventh]hsigevent}(hj-fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*fubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj/fmodnameN classnameNj] j` )}jc ]jec.__audit_mq_notifyasbuh1hhjeubj2)}(h h]h }(hjKfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjYfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(h notificationh]h notification}(hjffhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhjiehhhj{ehM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjeehhhj{ehM ubah}(h]j`eah ](jjeh"]h$]h&]jj)jhuh1jhj{ehM hjbehhubj)}(hhh]h)}(h'record audit data for a POSIX MQ notifyh]h'record audit data for a POSIX MQ notify}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjfhhubah}(h]h ]h"]h$]h&]uh1jhjbehhhj{ehM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1jhhhj6hNhNubj)}(hm**Parameters** ``mqd_t mqdes`` MQ descriptor ``const struct sigevent *notification`` Notification eventh](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjfubj )}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjfh]h mqd_t mqdes}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjfubj2)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhM hjfubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjfhM hjfubj)}(h:``const struct sigevent *notification`` Notification eventh](j)}(h'``const struct sigevent *notification``h]j)}(hj gh]h#const struct sigevent *notification}(hj ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjgubj2)}(hhh]h)}(hNotification eventh]hNotification event}(hj#ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj gubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghM hjfubeh}(h]h ]h"]h$]h&]uh1j hjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "__audit_mq_getsetattr (C function)c.__audit_mq_getsetattrhNtauh1hhj6hhhNhNubj)}(hhh](j)}(h@void __audit_mq_getsetattr (mqd_t mqdes, struct mq_attr *mqstat)h]j)}(h?void __audit_mq_getsetattr(mqd_t mqdes, struct mq_attr *mqstat)h](j )}(hvoidh]hvoid}(hjdghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`ghhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hjsghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ghhhjrghM ubj{)}(h__audit_mq_getsetattrh]j)}(h__audit_mq_getsetattrh]h__audit_mq_getsetattr}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj`ghhhjrghM ubj)}(h%(mqd_t mqdes, struct mq_attr *mqstat)h](j)}(h mqd_t mqdesh](h)}(hhh]j)}(hmqd_th]hmqd_t}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgmodnameN classnameNj] j` )}jc ]jf )}jY jgsbc.__audit_mq_getsetattrasbuh1hhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hmqdesh]hmqdes}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubj)}(hstruct mq_attr *mqstath](j)}(hj h]hstruct}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubh)}(hhh]j)}(hmq_attrh]hmq_attr}(hj hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj hmodnameN classnameNj] j` )}jc ]jgc.__audit_mq_getsetattrasbuh1hhjgubj2)}(h h]h }(hj'hhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgubj)}(hjh]h*}(hj5hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hmqstath]hmqstat}(hjBhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjgubeh}(h]h ]h"]h$]h&]jjuh1jhj`ghhhjrghM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj\ghhhjrghM ubah}(h]jWgah ](jjeh"]h$]h&]jj)jhuh1jhjrghM hjYghhubj)}(hhh]h)}(h2record audit data for a POSIX MQ get/set attributeh]h2record audit data for a POSIX MQ get/set attribute}(hjlhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjihhhubah}(h]h ]h"]h$]h&]uh1jhjYghhhjrghM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhjjhjjjuh1jhhhj6hNhNubj)}(hV**Parameters** ``mqd_t mqdes`` MQ descriptor ``struct mq_attr *mqstat`` MQ flagsh](h)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjhubj )}(hhh](j)}(h``mqd_t mqdes`` MQ descriptor h](j)}(h``mqd_t mqdes``h]j)}(hjhh]h mqd_t mqdes}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjhubj2)}(hhh]h)}(h MQ descriptorh]h MQ descriptor}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM hjhubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjhubj)}(h#``struct mq_attr *mqstat`` MQ flagsh](j)}(h``struct mq_attr *mqstat``h]j)}(hjhh]hstruct mq_attr *mqstat}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjhubj2)}(hhh]h)}(hMQ flagsh]hMQ flags}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjhubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjhubeh}(h]h ]h"]h$]h&]uh1j hjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_ipc_obj (C function)c.__audit_ipc_objhNtauh1hhj6hhhNhNubj)}(hhh](j)}(h1void __audit_ipc_obj (struct kern_ipc_perm *ipcp)h]j)}(h0void __audit_ipc_obj(struct kern_ipc_perm *ipcp)h](j )}(hvoidh]hvoid}(hj@ihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjah"]h$]h&]uh1j1hjah"]h$]h&]uh1j1hjyiubh)}(hhh]j)}(h kern_ipc_permh]h kern_ipc_perm}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjimodnameN classnameNj] j` )}jc ]jf )}jY jcisbc.__audit_ipc_objasbuh1hhjyiubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyiubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyiubj)}(hipcph]hipcp}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuiubah}(h]h ]h"]h$]h&]jjuh1jhjah"]h$]h&]uh1j1hjjhhhjjhM ubj{)}(h__audit_ipc_set_permh]j)}(h__audit_ipc_set_permh]h__audit_ipc_set_perm}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhjjhM ubj)}(h:(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode)h](j)}(hunsigned long qbytesh](j )}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj )}(hlongh]hlong}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hqbytesh]hqbytes}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h uid_t uidh](h)}(hhh]j)}(huid_th]huid_t}(hj,khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)kubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj.kmodnameN classnameNj] j` )}jc ]jf )}jY jjsbc.__audit_ipc_set_permasbuh1hhj%kubj2)}(h h]h }(hjLkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%kubj)}(huidh]huid}(hjZkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%kubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h gid_t gidh](h)}(hhh]j)}(hgid_th]hgid_t}(hjvkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjskubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjxkmodnameN classnameNj] j` )}jc ]jHkc.__audit_ipc_set_permasbuh1hhjokubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjokubj)}(hgidh]hgid}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjokubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h umode_t modeh](h)}(hhh]j)}(humode_th]humode_t}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkmodnameN classnameNj] j` )}jc ]jHkc.__audit_ipc_set_permasbuh1hhjkubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkubj)}(hmodeh]hmode}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhM ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jhjjhM hjjhhubj)}(hhh]h)}(h)record audit data for new ipc permissionsh]h)record audit data for new ipc permissions}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjlhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,ljj,ljjjuh1jhhhj6hNhNubj)}(h**Parameters** ``unsigned long qbytes`` msgq bytes ``uid_t uid`` msgq user id ``gid_t gid`` msgq group id ``umode_t mode`` msgq mode (permissions) **Description** Called only after audit_ipc_obj().h](h)}(h**Parameters**h]j)}(hj6lh]h Parameters}(hj8lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4lubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj0lubj )}(hhh](j)}(h$``unsigned long qbytes`` msgq bytes h](j)}(h``unsigned long qbytes``h]j)}(hjUlh]hunsigned long qbytes}(hjWlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSlubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjOlubj2)}(hhh]h)}(h msgq bytesh]h msgq bytes}(hjnlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjlhM hjklubah}(h]h ]h"]h$]h&]uh1j1hjOlubeh}(h]h ]h"]h$]h&]uh1jhjjlhM hjLlubj)}(h``uid_t uid`` msgq user id h](j)}(h ``uid_t uid``h]j)}(hjlh]h uid_t uid}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjlubj2)}(hhh]h)}(h msgq user idh]h msgq user id}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM hjlubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhM hjLlubj)}(h``gid_t gid`` msgq group id h](j)}(h ``gid_t gid``h]j)}(hjlh]h gid_t gid}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjlubj2)}(hhh]h)}(h msgq group idh]h msgq group id}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM hjlubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjlhM hjLlubj)}(h)``umode_t mode`` msgq mode (permissions) h](j)}(h``umode_t mode``h]j)}(hjmh]h umode_t mode}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjlubj2)}(hhh]h)}(hmsgq mode (permissions)h]hmsgq mode (permissions)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhM hjmubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjmhM hjLlubeh}(h]h ]h"]h$]h&]uh1j hj0lubh)}(h**Description**h]j)}(hj;mh]h Description}(hj=mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9mubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj0lubh)}(h"Called only after audit_ipc_obj().h]h"Called only after audit_ipc_obj().}(hjQmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj0lubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_socketcall (C function)c.__audit_socketcallhNtauh1hhj6hhhNhNubj)}(hhh](j)}(h7int __audit_socketcall (int nargs, unsigned long *args)h]j)}(h6int __audit_socketcall(int nargs, unsigned long *args)h](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|mhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2 ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|mhhhjmhM2 ubj{)}(h__audit_socketcallh]j)}(h__audit_socketcallh]h__audit_socketcall}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|mhhhjmhM2 ubj)}(h (int nargs, unsigned long *args)h](j)}(h int nargsh](j )}(hinth]hint}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hnargsh]hnargs}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubj)}(hunsigned long *argsh](j )}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj )}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hj*nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hargsh]hargs}(hj7nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjmubeh}(h]h ]h"]h$]h&]jjuh1jhj|mhhhjmhM2 ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxmhhhjmhM2 ubah}(h]jsmah ](jjeh"]h$]h&]jj)jhuh1jhjmhM2 hjumhhubj)}(hhh]h)}(h$record audit data for sys_socketcallh]h$record audit data for sys_socketcall}(hjanhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM2 hj^nhhubah}(h]h ]h"]h$]h&]uh1jhjumhhhjmhM2 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjynjjynjjjuh1jhhhj6hNhNubj)}(h**Parameters** ``int nargs`` number of args, which should not be more than AUDITSC_ARGS. ``unsigned long *args`` args arrayh](h)}(h**Parameters**h]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM6 hj}nubj )}(hhh](j)}(hJ``int nargs`` number of args, which should not be more than AUDITSC_ARGS. h](j)}(h ``int nargs``h]j)}(hjnh]h int nargs}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM3 hjnubj2)}(hhh]h)}(h;number of args, which should not be more than AUDITSC_ARGS.h]h;number of args, which should not be more than AUDITSC_ARGS.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM3 hjnubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjnhM3 hjnubj)}(h"``unsigned long *args`` args arrayh](j)}(h``unsigned long *args``h]j)}(hjnh]hunsigned long *args}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM5 hjnubj2)}(hhh]h)}(h args arrayh]h args array}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM4 hjnubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjnhM5 hjnubeh}(h]h ]h"]h$]h&]uh1j hj}nubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_fd_pair (C function)c.__audit_fd_pairhNtauh1hhj6hhhNhNubj)}(hhh](j)}(h'void __audit_fd_pair (int fd1, int fd2)h]j)}(h&void __audit_fd_pair(int fd1, int fd2)h](j )}(hvoidh]hvoid}(hj5ohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1ohhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMD ubj2)}(h h]h }(hjDohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ohhhjCohMD ubj{)}(h__audit_fd_pairh]j)}(h__audit_fd_pairh]h__audit_fd_pair}(hjVohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRoubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1ohhhjCohMD ubj)}(h(int fd1, int fd2)h](j)}(hint fd1h](j )}(hinth]hint}(hjrohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnoubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnoubj)}(hfd1h]hfd1}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjoubj)}(hint fd2h](j )}(hinth]hint}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hfd2h]hfd2}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjoubeh}(h]h ]h"]h$]h&]jjuh1jhj1ohhhjCohMD ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-ohhhjCohMD ubah}(h]j(oah ](jjeh"]h$]h&]jj)jhuh1jhjCohMD hj*ohhubj)}(hhh]h)}(h)record audit data for pipe and socketpairh]h)record audit data for pipe and socketpair}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMD hjohhubah}(h]h ]h"]h$]h&]uh1jhj*ohhhjCohMD ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jhhhj6hNhNubj)}(ha**Parameters** ``int fd1`` the first file descriptor ``int fd2`` the second file descriptorh](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj pubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMH hj pubj )}(hhh](j)}(h&``int fd1`` the first file descriptor h](j)}(h ``int fd1``h]j)}(hj.ph]hint fd1}(hj0phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,pubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chME hj(pubj2)}(hhh]h)}(hthe first file descriptorh]hthe first file descriptor}(hjGphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCphME hjDpubah}(h]h ]h"]h$]h&]uh1j1hj(pubeh}(h]h ]h"]h$]h&]uh1jhjCphME hj%pubj)}(h&``int fd2`` the second file descriptorh](j)}(h ``int fd2``h]j)}(hjgph]hint fd2}(hjiphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjepubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMG hjapubj2)}(hhh]h)}(hthe second file descriptorh]hthe second file descriptor}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMF hj}pubah}(h]h ]h"]h$]h&]uh1j1hjapubeh}(h]h ]h"]h$]h&]uh1jhj|phMG hj%pubeh}(h]h ]h"]h$]h&]uh1j hj pubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_sockaddr (C function)c.__audit_sockaddrhNtauh1hhj6hhhNhNubj)}(hhh](j)}(h'int __audit_sockaddr (int len, void *a)h]j)}(h&int __audit_sockaddr(int len, void *a)h](j )}(hinth]hint}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjphhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMR ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjphhhjphMR ubj{)}(h__audit_sockaddrh]j)}(h__audit_sockaddrh]h__audit_sockaddr}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhjphMR ubj)}(h(int len, void *a)h](j)}(hint lenh](j )}(hinth]hint}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpubj2)}(h h]h }(hj qhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hlenh]hlen}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hvoid *ah](j )}(hvoidh]hvoid}(hj3qhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/qubj2)}(h h]h }(hjAqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/qubj)}(hjh]h*}(hjOqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/qubj)}(hjIh]ha}(hj\qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhjphhhjphMR ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjphMR ubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jhjphMR hjphhubj)}(hhh]h)}(h7record audit data for sys_bind, sys_connect, sys_sendtoh]h7record audit data for sys_bind, sys_connect, sys_sendto}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMR hjqhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjphMR ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1jhhhj6hNhNubj)}(h**Parameters** ``int len`` data length in user space ``void *a`` data address in kernel space **Description** Returns 0 for success or NULL context or < 0 on error.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMV hjqubj )}(hhh](j)}(h&``int len`` data length in user space h](j)}(h ``int len``h]j)}(hjqh]hint len}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMS hjqubj2)}(hhh]h)}(hdata length in user spaceh]hdata length in user space}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMS hjqubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMS hjqubj)}(h)``void *a`` data address in kernel space h](j)}(h ``void *a``h]j)}(hjqh]hvoid *a}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMT hjqubj2)}(hhh]h)}(hdata address in kernel spaceh]hdata address in kernel space}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMT hjrubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjrhMT hjqubeh}(h]h ]h"]h$]h&]uh1j hjqubh)}(h**Description**h]j)}(hj:rh]h Description}(hjah"]h$]h&]uh1j1hj{rhhhjrhMv ubj{)}(haudit_signal_info_syscallh]j)}(haudit_signal_info_syscallh]haudit_signal_info_syscall}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{rhhhjrhMv ubj)}(h(struct task_struct *t)h]j)}(hstruct task_struct *th](j)}(hj h]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubh)}(hhh]j)}(h task_structh]h task_struct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]jf )}jY jrsbc.audit_signal_info_syscallasbuh1hhjrubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hth]ht}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhj{rhhhjrhMv ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwrhhhjrhMv ubah}(h]jrrah ](jjeh"]h$]h&]jj)jhuh1jhjrhMv hjtrhhubj)}(hhh]h)}(hrecord signal info for syscallsh]hrecord signal info for syscalls}(hj?shhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMv hjah"]h$]h&]uh1j1hjshhhjthM ubj{)}(h__audit_log_bprm_fcapsh]j)}(h__audit_log_bprm_fcapsh]h__audit_log_bprm_fcaps}(hj!thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjshhhjthM ubj)}(hK(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)h](j)}(hstruct linux_binprm *bprmh](j)}(hj h]hstruct}(hj=thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9tubj2)}(h h]h }(hjJthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9tubh)}(hhh]j)}(h linux_binprmh]h linux_binprm}(hj[thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXtubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj]tmodnameN classnameNj] j` )}jc ]jf )}jY j#tsbc.__audit_log_bprm_fcapsasbuh1hhj9tubj2)}(h h]h }(hj{thhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9tubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9tubj)}(hbprmh]hbprm}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5tubj)}(hconst struct cred *newh](j)}(hjh]hconst}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj)}(hj h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubh)}(hhh]j)}(hcredh]hcred}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtmodnameN classnameNj] j` )}jc ]jwtc.__audit_log_bprm_fcapsasbuh1hhjtubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hnewh]hnew}(hj!uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5tubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hj:uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6uubj2)}(h h]h }(hjGuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6uubj)}(hj h]hstruct}(hjUuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6uubj2)}(h h]h }(hjbuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6uubh)}(hhh]j)}(hcredh]hcred}(hjsuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpuubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjuumodnameN classnameNj] j` )}jc ]jwtc.__audit_log_bprm_fcapsasbuh1hhj6uubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6uubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6uubj)}(holdh]hold}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5tubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjthM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjthM ubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1jhjthM hjshhubj)}(hhh]h)}(h9store information about a loading bprm and relevant fcapsh]h9store information about a loading bprm and relevant fcaps}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjuhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjthM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhj6hNhNubj)}(hXp**Parameters** ``struct linux_binprm *bprm`` pointer to the bprm being processed ``const struct cred *new`` the proposed new credentials ``const struct cred *old`` the old credentials **Description** Simply check if the proc already has the caps given by the file and if not store the priv escalation info for later auditing at the end of the syscall -Erich](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjuubj )}(hhh](j)}(hB``struct linux_binprm *bprm`` pointer to the bprm being processed h](j)}(h``struct linux_binprm *bprm``h]j)}(hjvh]hstruct linux_binprm *bprm}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjvubj2)}(hhh]h)}(h#pointer to the bprm being processedh]h#pointer to the bprm being processed}(hj0vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,vhM hj-vubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhj,vhM hjvubj)}(h8``const struct cred *new`` the proposed new credentials h](j)}(h``const struct cred *new``h]j)}(hjPvh]hconst struct cred *new}(hjRvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNvubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjJvubj2)}(hhh]h)}(hthe proposed new credentialsh]hthe proposed new credentials}(hjivhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjevhM hjfvubah}(h]h ]h"]h$]h&]uh1j1hjJvubeh}(h]h ]h"]h$]h&]uh1jhjevhM hjvubj)}(h/``const struct cred *old`` the old credentials h](j)}(h``const struct cred *old``h]j)}(hjvh]hconst struct cred *old}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjvubj2)}(hhh]h)}(hthe old credentialsh]hthe old credentials}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM hjvubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjvhM hjvubeh}(h]h ]h"]h$]h&]uh1j hjuubh)}(h**Description**h]j)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjuubh)}(hSimply check if the proc already has the caps given by the file and if not store the priv escalation info for later auditing at the end of the syscallh]hSimply check if the proc already has the caps given by the file and if not store the priv escalation info for later auditing at the end of the syscall}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjuubh)}(h-Erich]h-Eric}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __audit_log_capset (C function)c.__audit_log_capsethNtauh1hhj6hhhNhNubj)}(hhh](j)}(hHvoid __audit_log_capset (const struct cred *new, const struct cred *old)h]j)}(hGvoid __audit_log_capset(const struct cred *new, const struct cred *old)h](j )}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM ubj2)}(h h]h }(hj'whhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwhhhj&whM ubj{)}(h__audit_log_capseth]j)}(h__audit_log_capseth]h__audit_log_capset}(hj9whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5wubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhj&whM ubj)}(h0(const struct cred *new, const struct cred *old)h](j)}(hconst struct cred *newh](j)}(hjh]hconst}(hjUwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQwubj2)}(h h]h }(hjbwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQwubj)}(hj h]hstruct}(hjpwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQwubj2)}(h h]h }(hj}whhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQwubh)}(hhh]j)}(hcredh]hcred}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjwmodnameN classnameNj] j` )}jc ]jf )}jY j;wsbc.__audit_log_capsetasbuh1hhjQwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQwubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQwubj)}(hnewh]hnew}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMwubj)}(hconst struct cred *oldh](j)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hj h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj2)}(h h]h }(hj xhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubh)}(hhh]j)}(hcredh]hcred}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjxmodnameN classnameNj] j` )}jc ]jwc.__audit_log_capsetasbuh1hhjwubj2)}(h h]h }(hj9xhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwubj)}(hjh]h*}(hjGxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj)}(holdh]hold}(hjTxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMwubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhj&whM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhj&whM ubah}(h]j wah ](jjeh"]h$]h&]jj)jhuh1jhj&whM hj whhubj)}(hhh]h)}(h;store information about the arguments to the capset syscallh]h;store information about the arguments to the capset syscall}(hj~xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hj{xhhubah}(h]h ]h"]h$]h&]uh1jhj whhhj&whM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1jhhhj6hNhNubj)}(h**Parameters** ``const struct cred *new`` the new credentials ``const struct cred *old`` the old (current) credentials **Description** Record the arguments userspace sent to sys_capset for later printing by the audit system if applicableh](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjxubj )}(hhh](j)}(h/``const struct cred *new`` the new credentials h](j)}(h``const struct cred *new``h]j)}(hjxh]hconst struct cred *new}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjxubj2)}(hhh]h)}(hthe new credentialsh]hthe new credentials}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM hjxubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjxhM hjxubj)}(h9``const struct cred *old`` the old (current) credentials h](j)}(h``const struct cred *old``h]j)}(hjxh]hconst struct cred *old}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjxubj2)}(hhh]h)}(hthe old (current) credentialsh]hthe old (current) credentials}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj yhM hjyubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhj yhM hjxubeh}(h]h ]h"]h$]h&]uh1j hjxubh)}(h**Description**h]j)}(hj3yh]h Description}(hj5yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1yubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjxubh)}(hfRecord the arguments userspace sent to sys_capset for later printing by the audit system if applicableh]hfRecord the arguments userspace sent to sys_capset for later printing by the audit system if applicable}(hjIyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_core_dumps (C function)c.audit_core_dumpshNtauh1hhj6hhhNhNubj)}(hhh](j)}(h"void audit_core_dumps (long signr)h]j)}(h!void audit_core_dumps(long signr)h](j )}(hvoidh]hvoid}(hjxyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjtyhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM] ubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjtyhhhjyhM] ubj{)}(haudit_core_dumpsh]j)}(haudit_core_dumpsh]haudit_core_dumps}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjtyhhhjyhM] ubj)}(h (long signr)h]j)}(h long signrh](j )}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hsignrh]hsignr}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubah}(h]h ]h"]h$]h&]jjuh1jhjtyhhhjyhM] ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjpyhhhjyhM] ubah}(h]jkyah ](jjeh"]h$]h&]jj)jhuh1jhjyhM] hjmyhhubj)}(hhh]h)}(h6record information about processes that end abnormallyh]h6record information about processes that end abnormally}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM] hjyhhubah}(h]h ]h"]h$]h&]uh1jhjmyhhhjyhM] ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jhhhj6hNhNubj)}(h**Parameters** ``long signr`` signal value **Description** If a process ends with a core dump, something fishy is going on and we should record the event for investigation.h](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMa hjzubj )}(hhh]j)}(h``long signr`` signal value h](j)}(h``long signr``h]j)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:zubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM^ hj6zubj2)}(hhh]h)}(h signal valueh]h signal value}(hjUzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQzhM^ hjRzubah}(h]h ]h"]h$]h&]uh1j1hj6zubeh}(h]h ]h"]h$]h&]uh1jhjQzhM^ hj3zubah}(h]h ]h"]h$]h&]uh1j hjzubh)}(h**Description**h]j)}(hjwzh]h Description}(hjyzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuzubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM` hjzubh)}(hqIf a process ends with a core dump, something fishy is going on and we should record the event for investigation.h]hqIf a process ends with a core dump, something fishy is going on and we should record the event for investigation.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM_ hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_seccomp (C function)c.audit_seccomphNtauh1hhj6hhhNhNubj)}(hhh](j)}(h@void audit_seccomp (unsigned long syscall, long signr, int code)h]j)}(h?void audit_seccomp(unsigned long syscall, long signr, int code)h](j )}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMv ubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzhhhjzhMv ubj{)}(h audit_seccomph]j)}(h audit_seccomph]h audit_seccomp}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzhhhjzhMv ubj)}(h-(unsigned long syscall, long signr, int code)h](j)}(hunsigned long syscallh](j )}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj )}(hlongh]hlong}(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubj2)}(h h]h }(hj#{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hsyscallh]hsyscall}(hj1{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(h long signrh](j )}(hlongh]hlong}(hjJ{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjF{ubj2)}(h h]h }(hjX{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjF{ubj)}(hsignrh]hsignr}(hjf{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubj)}(hint codeh](j )}(hinth]hint}(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj{{ubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{{ubj)}(hcodeh]hcode}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjzubeh}(h]h ]h"]h$]h&]jjuh1jhjzhhhjzhMv ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjzhMv ubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1jhjzhMv hjzhhubj)}(hhh]h)}(h)record information about a seccomp actionh]h)record information about a seccomp action}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMv hj{hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMv ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1jhhhj6hNhNubj)}(hX**Parameters** ``unsigned long syscall`` syscall number ``long signr`` signal value ``int code`` the seccomp action **Description** Record the information associated with a seccomp action. Event filtering for seccomp actions that are not to be logged is done in seccomp_log(). Therefore, this function forces auditing independent of the audit_enabled and dummy context state because seccomp actions should be logged even when audit is not in use.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMz hj{ubj )}(hhh](j)}(h)``unsigned long syscall`` syscall number h](j)}(h``unsigned long syscall``h]j)}(hj|h]hunsigned long syscall}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMw hj|ubj2)}(hhh]h)}(hsyscall numberh]hsyscall number}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMw hj|ubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMw hj{ubj)}(h``long signr`` signal value h](j)}(h``long signr``h]j)}(hj?|h]h long signr}(hjA|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=|ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMx hj9|ubj2)}(hhh]h)}(h signal valueh]h signal value}(hjX|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT|hMx hjU|ubah}(h]h ]h"]h$]h&]uh1j1hj9|ubeh}(h]h ]h"]h$]h&]uh1jhjT|hMx hj{ubj)}(h ``int code`` the seccomp action h](j)}(h ``int code``h]j)}(hjx|h]hint code}(hjz|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv|ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMy hjr|ubj2)}(hhh]h)}(hthe seccomp actionh]hthe seccomp action}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMy hj|ubah}(h]h ]h"]h$]h&]uh1j1hjr|ubeh}(h]h ]h"]h$]h&]uh1jhj|hMy hj{ubeh}(h]h ]h"]h$]h&]uh1j hj{ubh)}(h**Description**h]j)}(hj|h]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chM{ hj{ubh)}(hX:Record the information associated with a seccomp action. Event filtering for seccomp actions that are not to be logged is done in seccomp_log(). Therefore, this function forces auditing independent of the audit_enabled and dummy context state because seccomp actions should be logged even when audit is not in use.h]hX:Record the information associated with a seccomp action. Event filtering for seccomp actions that are not to be logged is done in seccomp_log(). Therefore, this function forces auditing independent of the audit_enabled and dummy context state because seccomp actions should be logged even when audit is not in use.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:295: ./kernel/auditsc.chMz hj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j audit_rule_change (C function)c.audit_rule_changehNtauh1hhj6hhhNhNubj)}(hhh](j)}(hDint audit_rule_change (int type, int seq, void *data, size_t datasz)h]j)}(hCint audit_rule_change(int type, int seq, void *data, size_t datasz)h](j )}(hinth]hint}(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMeubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|hhhj}hMeubj{)}(haudit_rule_changeh]j)}(haudit_rule_changeh]haudit_rule_change}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|hhhj}hMeubj)}(h.(int type, int seq, void *data, size_t datasz)h](j)}(hint typeh](j )}(hinth]hint}(hj5}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1}ubj2)}(h h]h }(hjC}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1}ubj)}(htypeh]htype}(hjQ}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-}ubj)}(hint seqh](j )}(hinth]hint}(hjj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjf}ubj2)}(h h]h }(hjx}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjf}ubj)}(hseqh]hseq}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-}ubj)}(h void *datah](j )}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj}ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hdatah]hdata}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-}ubj)}(h size_t dataszh](h)}(hhh]j)}(hsize_th]hsize_t}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj}modnameN classnameNj] j` )}jc ]jf )}jY j}sbc.audit_rule_changeasbuh1hhj}ubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj}ubj)}(hdataszh]hdatasz}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-}ubeh}(h]h ]h"]h$]h&]jjuh1jhj|hhhj}hMeubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhj}hMeubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1jhj}hMehj|hhubj)}(hhh]h)}(h-apply all rules to the specified message typeh]h-apply all rules to the specified message type}(hj<~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMehj9~hhubah}(h]h ]h"]h$]h&]uh1jhj|hhhj}hMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjT~jjT~jjjuh1jhhhj6hNhNubj)}(h**Parameters** ``int type`` audit message type ``int seq`` netlink audit message sequence (serial) number ``void *data`` payload data ``size_t datasz`` size of payload datah](h)}(h**Parameters**h]j)}(hj^~h]h Parameters}(hj`~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\~ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMihjX~ubj )}(hhh](j)}(h ``int type`` audit message type h](j)}(h ``int type``h]j)}(hj}~h]hint type}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{~ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMfhjw~ubj2)}(hhh]h)}(haudit message typeh]haudit message type}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMfhj~ubah}(h]h ]h"]h$]h&]uh1j1hjw~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMfhjt~ubj)}(h;``int seq`` netlink audit message sequence (serial) number h](j)}(h ``int seq``h]j)}(hj~h]hint seq}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMghj~ubj2)}(hhh]h)}(h.netlink audit message sequence (serial) numberh]h.netlink audit message sequence (serial) number}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMghj~ubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMghjt~ubj)}(h``void *data`` payload data h](j)}(h``void *data``h]j)}(hj~h]h void *data}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhhj~ubj2)}(hhh]h)}(h payload datah]h payload data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjt~ubj)}(h&``size_t datasz`` size of payload datah](j)}(h``size_t datasz``h]j)}(hj(h]h size_t datasz}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMjhj"ubj2)}(hhh]h)}(hsize of payload datah]hsize of payload data}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMihj>ubah}(h]h ]h"]h$]h&]uh1j1hj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMjhjt~ubeh}(h]h ]h"]h$]h&]uh1j hjX~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "audit_list_rules_send (C function)c.audit_list_rules_sendhNtauh1hhj6hhhNhNubj)}(hhh](j)}(h@int audit_list_rules_send (struct sk_buff *request_skb, int seq)h]j)}(h?int audit_list_rules_send(struct sk_buff *request_skb, int seq)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~hhhjhMubj{)}(haudit_list_rules_sendh]j)}(haudit_list_rules_sendh]haudit_list_rules_send}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~hhhjhMubj)}(h&(struct sk_buff *request_skb, int seq)h](j)}(hstruct sk_buff *request_skbh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.audit_list_rules_sendasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h request_skbh]h request_skb}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint seqh](j )}(hinth]hint}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj)}(hseqh]hseq}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjwhhubj)}(hhh]h)}(hlist the audit rulesh]hlist the audit rules}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjthhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj6hNhNubj)}(h**Parameters** ``struct sk_buff *request_skb`` skb of request we are replying to (used to target the reply) ``int seq`` netlink audit message sequence (serial) numberh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjubj )}(hhh](j)}(h]``struct sk_buff *request_skb`` skb of request we are replying to (used to target the reply) h](j)}(h``struct sk_buff *request_skb``h]j)}(hjh]hstruct sk_buff *request_skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hjGhhhjYhMubj{)}(h parent_lenh]j)}(h parent_lenh]h parent_len}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjYhMubj)}(h(const char *path)h]j)}(hconst char *pathh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpathh]hpath}(hj́hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjGhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhjYhMhj@hhubj)}(hhh]h)}(h3find the length of the parent portion of a pathnameh]h3find the length of the parent portion of a pathname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj6hNhNubj)}(hL**Parameters** ``const char *path`` pathname of which to determine lengthh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjubj )}(hhh]j)}(h:``const char *path`` pathname of which to determine lengthh](j)}(h``const char *path``h]j)}(hj7h]hconst char *path}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhj1ubj2)}(hhh]h)}(h%pathname of which to determine lengthh]h%pathname of which to determine length}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj.ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %audit_compare_dname_path (C function)c.audit_compare_dname_pathhNtauh1hhj6hhhNhNubj)}(hhh](j)}(hXint audit_compare_dname_path (const struct qstr *dname, const char *path, int parentlen)h]j)}(hWint audit_compare_dname_path(const struct qstr *dname, const char *path, int parentlen)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(haudit_compare_dname_pathh]j)}(haudit_compare_dname_pathh]haudit_compare_dname_path}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h;(const struct qstr *dname, const char *path, int parentlen)h](j)}(hconst struct qstr *dnameh](j)}(hjh]hconst}(hj΂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʂubj2)}(h h]h }(hjۂhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjʂubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʂubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjʂubh)}(hhh]j)}(hqstrh]hqstr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.audit_compare_dname_pathasbuh1hhjʂubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjʂubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʂubj)}(hdnameh]hdname}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʂubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjƂubj)}(hconst char *pathh](j)}(hjh]hconst}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj )}(hcharh]hchar}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjƂubj)}(h int parentlenh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjƃhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h parentlenh]h parentlen}(hjԃhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjƂubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h[compare given dentry name with last component in given path. Return of 0 indicates a match.h]h[compare given dentry name with last component in given path. Return of 0 indicates a match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhj6hNhNubj)}(hX **Parameters** ``const struct qstr *dname`` dentry name that we're comparing ``const char *path`` full pathname that we're comparing ``int parentlen`` length of the parent if known. Passing in AUDIT_NAME_FULL here indicates that we must compute this value.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjubj )}(hhh](j)}(h>``const struct qstr *dname`` dentry name that we're comparing h](j)}(h``const struct qstr *dname``h]j)}(hj?h]hconst struct qstr *dname}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhj9ubj2)}(hhh]h)}(h dentry name that we're comparingh]h"dentry name that we’re comparing}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhj6ubj)}(h8``const char *path`` full pathname that we're comparing h](j)}(h``const char *path``h]j)}(hjxh]hconst char *path}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjrubj2)}(hhh]h)}(h"full pathname that we're comparingh]h$full pathname that we’re comparing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhj6ubj)}(h{``int parentlen`` length of the parent if known. Passing in AUDIT_NAME_FULL here indicates that we must compute this value.h](j)}(h``int parentlen``h]j)}(hjh]h int parentlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:298: ./kernel/auditfilter.chMhjubj2)}(hhh]h)}(hilength of the parent if known. Passing in AUDIT_NAME_FULL here indicates that we must compute this value.h]hilength of the parent if known. Passing in AUDIT_NAME_FULL here indicates that we must compute this value.}(hjʄhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƄhMhjDŽubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjƄhMhj6ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj6hhhNhNubeh}(h]audit-interfacesah ]h"]audit interfacesah$]h&]uh1hhhhhhhhM"ubh)}(hhh](h)}(hAccounting Frameworkh]hAccounting Framework}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM.ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j sys_acct (C function) c.sys_accthNtauh1hhjhhhNhNubj)}(hhh](j)}(h(long sys_acct (const char __user * name)h]j)}(h&long sys_acct(const char __user *name)h](j )}(hlongh]hlong}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj1hMubj{)}(hsys_accth]j)}(hsys_accth]hsys_acct}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj1hMubj)}(h(const char __user *name)h]j)}(hconst char __user *nameh](j)}(hjh]hconst}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj )}(hcharh]hchar}(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubh__user}(hj\hhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj1hMhjhhubj)}(hhh]h)}(h!enable/disable process accountingh]h!enable/disable process accounting}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhj݅hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``const char __user * name`` file name for accounting records or NULL to shutdown accounting **Description** sys_acct() is the only system call needed to implement process accounting. It takes the name of the file where accounting records should be written. If the filename is NULL, accounting will be shutdown. **Return** 0 for success or negative errno values for failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjubj )}(hhh]j)}(h]``const char __user * name`` file name for accounting records or NULL to shutdown accounting h](j)}(h``const char __user * name``h]j)}(hj!h]hconst char __user * name}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjubj2)}(hhh]h)}(h?file name for accounting records or NULL to shutdown accountingh]h?file name for accounting records or NULL to shutdown accounting}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjubh)}(hsys_acct() is the only system call needed to implement process accounting. It takes the name of the file where accounting records should be written. If the filename is NULL, accounting will be shutdown.h]hsys_acct() is the only system call needed to implement process accounting. It takes the name of the file where accounting records should be written. If the filename is NULL, accounting will be shutdown.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM"hjubh)}(h30 for success or negative errno values for failure.h]h30 for success or negative errno values for failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM#hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j acct_collect (C function)c.acct_collecthNtauh1hhjhhhNhNubj)}(hhh](j)}(h1void acct_collect (long exitcode, int group_dead)h]j)}(h0void acct_collect(long exitcode, int group_dead)h](j )}(hvoidh]hvoid}(hjȆhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjĆhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM)ubj2)}(h h]h }(hj׆hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjĆhhhjֆhM)ubj{)}(h acct_collecth]j)}(h acct_collecth]h acct_collect}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjĆhhhjֆhM)ubj)}(h(long exitcode, int group_dead)h](j)}(h long exitcodeh](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hexitcodeh]hexitcode}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint group_deadh](j )}(hinth]hint}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(h group_deadh]h group_dead}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjĆhhhjֆhM)ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjֆhM)ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjֆhM)hjhhubj)}(hhh]h)}(h0collect accounting information into pacct_structh]h0collect accounting information into pacct_struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM)hj}hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjֆhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h~**Parameters** ``long exitcode`` task exit code ``int group_dead`` not 0, if this thread is the last one in the process.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM-hjubj )}(hhh](j)}(h!``long exitcode`` task exit code h](j)}(h``long exitcode``h]j)}(hjh]h long exitcode}(hjÇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM*hjubj2)}(hhh]h)}(htask exit codeh]htask exit code}(hjڇhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjևhM*hjׇubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjևhM*hjubj)}(hH``int group_dead`` not 0, if this thread is the last one in the process.h](j)}(h``int group_dead``h]j)}(hjh]hint group_dead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM,hjubj2)}(hhh]h)}(h5not 0, if this thread is the last one in the process.h]h5not 0, if this thread is the last one in the process.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chM+hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j acct_process (C function)c.acct_processhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid acct_process (void)h]j)}(hvoid acct_process(void)h](j )}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMbubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPhhhjbhMbubj{)}(h acct_processh]j)}(h acct_processh]h acct_process}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhjbhMbubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhMbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhMbubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1jhjbhMbhjIhhubj)}(hhh]h)}(h.handles process accounting for an exiting taskh]h.handles process accounting for an exiting task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMbhjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjӈjjӈjjjuh1jhhhjhNhNubj)}(h'**Parameters** ``void`` no argumentsh](h)}(h**Parameters**h]j)}(hj݈h]h Parameters}(hj߈hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۈubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMfhj׈ubj )}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chMhhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:304: ./kernel/acct.chKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubah}(h]h ]h"]h$]h&]uh1j hj׈ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]accounting-frameworkah ]h"]accounting frameworkah$]h&]uh1hhhhhhhhM.ubh)}(hhh](h)}(h Block Devicesh]h Block Devices}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhhhhhM4ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_vec (C struct) c.bio_vechNtauh1hhjEhhhNhNubj)}(hhh](j)}(hbio_vech]j)}(hstruct bio_vech](j)}(hj h]hstruct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjkhhhj|hKubj{)}(hbio_vech]j)}(hjih]hbio_vec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjkhhhj|hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjghhhj|hKubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1jhj|hKhjdhhubj)}(hhh]h)}(h/a contiguous range of physical memory addressesh]h/a contiguous range of physical memory addresses}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj|hKubeh}(h]h ](jstructeh"]h$]h&]jjjjɉjjɉjjjuh1jhhhjEhNhNubj)}(hXX**Definition**:: struct bio_vec { struct page *bv_page; unsigned int bv_len; unsigned int bv_offset; }; **Members** ``bv_page`` First page associated with the address range. ``bv_len`` Number of bytes in the address range. ``bv_offset`` Start of the address range relative to the start of **bv_page**.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjՉhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjщubh:}(hjщhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKhj͉ubjH)}(hlstruct bio_vec { struct page *bv_page; unsigned int bv_len; unsigned int bv_offset; };h]hlstruct bio_vec { struct page *bv_page; unsigned int bv_len; unsigned int bv_offset; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jHhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKhj͉ubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK hj͉ubj )}(hhh](j)}(h:``bv_page`` First page associated with the address range. h](j)}(h ``bv_page``h]j)}(hjh]hbv_page}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKhjubj2)}(hhh]h)}(h-First page associated with the address range.h]h-First page associated with the address range.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj4ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjubj)}(h1``bv_len`` Number of bytes in the address range. h](j)}(h ``bv_len``h]j)}(hjWh]hbv_len}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKhjQubj2)}(hhh]h)}(h%Number of bytes in the address range.h]h%Number of bytes in the address range.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKhjmubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhKhjubj)}(hN``bv_offset`` Start of the address range relative to the start of **bv_page**.h](j)}(h ``bv_offset``h]j)}(hjh]h bv_offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKhjubj2)}(hhh]h)}(h@Start of the address range relative to the start of **bv_page**.h](h4Start of the address range relative to the start of }(hjhhhNhNubj)}(h **bv_page**h]hbv_page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hj͉ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKhjEhhubh)}(htAll pages within a bio_vec starting from **bv_page** are contiguous and can simply be iterated (see bvec_advance()).h](h)All pages within a bio_vec starting from }(hjhhhNhNubj)}(h **bv_page**h]hbv_page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh@ are contiguous and can simply be iterated (see bvec_advance()).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKhjEhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bvec_set_page (C function)c.bvec_set_pagehNtauh1hhjEhhhNhNubj)}(hhh](j)}(havoid bvec_set_page (struct bio_vec *bv, struct page *page, unsigned int len, unsigned int offset)h]j)}(h`void bvec_set_page(struct bio_vec *bv, struct page *page, unsigned int len, unsigned int offset)h](j )}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK#ubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1hhhjChK#ubj{)}(h bvec_set_pageh]j)}(h bvec_set_pageh]h bvec_set_page}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhjChK#ubj)}(hN(struct bio_vec *bv, struct page *page, unsigned int len, unsigned int offset)h](j)}(hstruct bio_vec *bvh](j)}(hj h]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubh)}(hhh]j)}(hbio_vech]hbio_vec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jXsbc.bvec_set_pageasbuh1hhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hbvh]hbv}(hjˋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hstruct page *pageh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hpageh]hpage}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.bvec_set_pageasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hpageh]hpage}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj )}(hinth]hint}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hunsigned int offseth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjόhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hoffseth]hoffset}(hj݌hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhjChK#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjChK#ubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhjChK#hj*hhubj)}(hhh]h)}(h)initialize a bvec based off a struct pageh]h)initialize a bvec based off a struct page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK#hjhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChK#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct bio_vec *bv`` bvec to initialize ``struct page *page`` page the bvec should point to ``unsigned int len`` length of the bvec ``unsigned int offset`` offset into the pageh](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK'hj#ubj )}(hhh](j)}(h*``struct bio_vec *bv`` bvec to initialize h](j)}(h``struct bio_vec *bv``h]j)}(hjHh]hstruct bio_vec *bv}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK$hjBubj2)}(hhh]h)}(hbvec to initializeh]hbvec to initialize}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hK$hj^ubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hK$hj?ubj)}(h4``struct page *page`` page the bvec should point to h](j)}(h``struct page *page``h]j)}(hjh]hstruct page *page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK%hj{ubj2)}(hhh]h)}(hpage the bvec should point toh]hpage the bvec should point to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK%hjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhK%hj?ubj)}(h(``unsigned int len`` length of the bvec h](j)}(h``unsigned int len``h]j)}(hjh]hunsigned int len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK&hjubj2)}(hhh]h)}(hlength of the bvech]hlength of the bvec}(hjӍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjύhK&hjЍubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjύhK&hj?ubj)}(h,``unsigned int offset`` offset into the pageh](j)}(h``unsigned int offset``h]j)}(hjh]hunsigned int offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK(hjubj2)}(hhh]h)}(hoffset into the pageh]hoffset into the page}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK'hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK(hj?ubeh}(h]h ]h"]h$]h&]uh1j hj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bvec_set_folio (C function)c.bvec_set_foliohNtauh1hhjEhhhNhNubj)}(hhh](j)}(hXvoid bvec_set_folio (struct bio_vec *bv, struct folio *folio, size_t len, size_t offset)h]j)}(hWvoid bvec_set_folio(struct bio_vec *bv, struct folio *folio, size_t len, size_t offset)h](j )}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK2ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIhhhj[hK2ubj{)}(hbvec_set_folioh]j)}(hbvec_set_folioh]hbvec_set_folio}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIhhhj[hK2ubj)}(hD(struct bio_vec *bv, struct folio *folio, size_t len, size_t offset)h](j)}(hstruct bio_vec *bvh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbio_vech]hbio_vec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jpsbc.bvec_set_folioasbuh1hhjubj2)}(h h]h }(hjȎhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj֎hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbvh]hbv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct folio *folioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hfolioh]hfolio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jĎc.bvec_set_folioasbuh1hhjubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfolioh]hfolio}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jĎc.bvec_set_folioasbuh1hhjhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t offseth](h)}(hhh]j)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jĎc.bvec_set_folioasbuh1hhjubj2)}(h h]h }(hjՏhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhj[hK2ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj[hK2ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jhj[hK2hjBhhubj)}(hhh]h)}(h*initialize a bvec based off a struct folioh]h*initialize a bvec based off a struct folio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK2hj hhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hK2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct bio_vec *bv`` bvec to initialize ``struct folio *folio`` folio the bvec should point to ``size_t len`` length of the bvec ``size_t offset`` offset into the folioh](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK6hj)ubj )}(hhh](j)}(h*``struct bio_vec *bv`` bvec to initialize h](j)}(h``struct bio_vec *bv``h]j)}(hjNh]hstruct bio_vec *bv}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK3hjHubj2)}(hhh]h)}(hbvec to initializeh]hbvec to initialize}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchK3hjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchK3hjEubj)}(h7``struct folio *folio`` folio the bvec should point to h](j)}(h``struct folio *folio``h]j)}(hjh]hstruct folio *folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK4hjubj2)}(hhh]h)}(hfolio the bvec should point toh]hfolio the bvec should point to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK4hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK4hjEubj)}(h"``size_t len`` length of the bvec h](j)}(h``size_t len``h]j)}(hjh]h size_t len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK5hjubj2)}(hhh]h)}(hlength of the bvech]hlength of the bvec}(hjِhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjՐhK5hj֐ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjՐhK5hjEubj)}(h'``size_t offset`` offset into the folioh](j)}(h``size_t offset``h]j)}(hjh]h size_t offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK7hjubj2)}(hhh]h)}(hoffset into the folioh]hoffset into the folio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhK6hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjEubeh}(h]h ]h"]h$]h&]uh1j hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bvec_set_virt (C function)c.bvec_set_virthNtauh1hhjEhhhNhNubj)}(hhh](j)}(hFvoid bvec_set_virt (struct bio_vec *bv, void *vaddr, unsigned int len)h]j)}(hEvoid bvec_set_virt(struct bio_vec *bv, void *vaddr, unsigned int len)h](j )}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKBubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOhhhjahKBubj{)}(h bvec_set_virth]j)}(h bvec_set_virth]h bvec_set_virt}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhjahKBubj)}(h3(struct bio_vec *bv, void *vaddr, unsigned int len)h](j)}(hstruct bio_vec *bvh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbio_vech]hbio_vec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jvsbc.bvec_set_virtasbuh1hhjubj2)}(h h]h }(hjΑhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjܑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbvh]hbv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *vaddrh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hvaddrh]hvaddr}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj )}(hinth]hint}(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@ubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hlenh]hlen}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjahKBubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjahKBhjHhhubj)}(hhh]h)}(h,initialize a bvec based on a virtual addressh]h,initialize a bvec based on a virtual address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKBhjhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjahKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct bio_vec *bv`` bvec to initialize ``void *vaddr`` virtual address to set the bvec to ``unsigned int len`` length of the bvech](h)}(h**Parameters**h]j)}(hjȒh]h Parameters}(hjʒhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƒubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKFhj’ubj )}(hhh](j)}(h*``struct bio_vec *bv`` bvec to initialize h](j)}(h``struct bio_vec *bv``h]j)}(hjh]hstruct bio_vec *bv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKChjubj2)}(hhh]h)}(hbvec to initializeh]hbvec to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjޒubj)}(h3``void *vaddr`` virtual address to set the bvec to h](j)}(h``void *vaddr``h]j)}(hj h]h void *vaddr}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKDhjubj2)}(hhh]h)}(h"virtual address to set the bvec toh]h"virtual address to set the bvec to}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKDhj6ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj5hKDhjޒubj)}(h'``unsigned int len`` length of the bvech](j)}(h``unsigned int len``h]j)}(hjYh]hunsigned int len}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKFhjSubj2)}(hhh]h)}(hlength of the bvech]hlength of the bvec}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKEhjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKFhjޒubeh}(h]h ]h"]h$]h&]uh1j hj’ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bvec_folio (C function) c.bvec_foliohNtauh1hhjEhhhNhNubj)}(hhh](j)}(h4struct folio * bvec_folio (const struct bio_vec *bv)h]j)}(h2struct folio *bvec_folio(const struct bio_vec *bv)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKNubh)}(hhh]j)}(hfolioh]hfolio}(hjғhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϓubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjԓmodnameN classnameNj] j` )}jc ]jf )}jY bvec_foliosb c.bvec_folioasbuh1hhjhhhjhKNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKNubj{)}(h bvec_folioh]j)}(hjh]h bvec_folio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKNubj)}(h(const struct bio_vec *bv)h]j)}(hconst struct bio_vec *bvh](j)}(hjh]hconst}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hj h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubh)}(hhh]j)}(hbio_vech]hbio_vec}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhmodnameN classnameNj] j` )}jc ]j c.bvec_folioasbuh1hhj)ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hbvh]hbv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKNubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKNhjhhubj)}(hhh]h)}(h.Return the first folio referenced by this bvech]h.Return the first folio referenced by this bvec}(hjɔhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKNhjƔhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKNubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``const struct bio_vec *bv`` bvec to access **Description** A bvec can contain non-folio memory, so this should only be called by the creator of the bvec; drivers have no business looking at the owner of the memory. It may not even be the right interface for the caller to use as a bvec can span multiple folios. You may be better off using something like bio_for_each_folio_all() which iterates over all folios.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKRhjubj )}(hhh]j)}(h,``const struct bio_vec *bv`` bvec to access h](j)}(h``const struct bio_vec *bv``h]j)}(hj h]hconst struct bio_vec *bv}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKOhjubj2)}(hhh]h)}(hbvec to accessh]hbvec to access}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKOhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjEh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKQhjubh)}(hXbA bvec can contain non-folio memory, so this should only be called by the creator of the bvec; drivers have no business looking at the owner of the memory. It may not even be the right interface for the caller to use as a bvec can span multiple folios. You may be better off using something like bio_for_each_folio_all() which iterates over all folios.h]hXbA bvec can contain non-folio memory, so this should only be called by the creator of the bvec; drivers have no business looking at the owner of the memory. It may not even be the right interface for the caller to use as a bvec can span multiple folios. You may be better off using something like bio_for_each_folio_all() which iterates over all folios.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhKPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bvec_kmap_local (C function)c.bvec_kmap_localhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h-void * bvec_kmap_local (struct bio_vec *bvec)h]j)}(h+void *bvec_kmap_local(struct bio_vec *bvec)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(hbvec_kmap_localh]j)}(hbvec_kmap_localh]hbvec_kmap_local}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct bio_vec *bvec)h]j)}(hstruct bio_vec *bvech](j)}(hj h]hstruct}(hjԕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЕubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjЕubh)}(hhh]j)}(hbio_vech]hbio_vec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.bvec_kmap_localasbu h1hhjЕubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjЕubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЕubj)}(hbvech]hbvec}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЕubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj̕ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h0map a bvec into the kernel virtual address spaceh]h0map a bvec into the kernel virtual address space}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct bio_vec *bvec`` bvec to map **Description** Must be called on single-page bvecs only. Call kunmap_local on the returned address to unmap.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMhjsubj )}(hhh]j)}(h%``struct bio_vec *bvec`` bvec to map h](j)}(h``struct bio_vec *bvec``h]j)}(hjh]hstruct bio_vec *bvec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMhjubj2)}(hhh]h)}(h bvec to maph]h bvec to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjsubh)}(h**Description**h]j)}(hjӖh]h Description}(hjՖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjіubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMhjsubh)}(h^Must be called on single-page bvecs only. Call kunmap_local on the returned address to unmap.h]h^Must be called on single-page bvecs only. Call kunmap_local on the returned address to unmap.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memcpy_from_bvec (C function)c.memcpy_from_bvechNtauh1hhjEhhhNhNubj)}(hhh](j)}(h6void memcpy_from_bvec (char *to, struct bio_vec *bvec)h]j)}(h5void memcpy_from_bvec(char *to, struct bio_vec *bvec)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM#ubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj&hM#ubj{)}(hmemcpy_from_bvech]j)}(hmemcpy_from_bvech]hmemcpy_from_bvec}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj&hM#ubj)}(h (char *to, struct bio_vec *bvec)h](j)}(hchar *toh](j )}(hcharh]hchar}(hjUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(htoh]hto}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hstruct bio_vec *bvech](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbio_vech]hbio_vec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j;sbc.memcpy_from_bvecasbuh1hhjubj2)}(h h]h }(hj՗hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbvech]hbvec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hM#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj&hM#ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj&hM#hj hhubj)}(hhh]h)}(hcopy data from a bvech]hcopy data from a bvec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM#hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hM#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jhhhjEhNhNubj)}(h**Parameters** ``char *to`` Kernel virtual address to copy to. ``struct bio_vec *bvec`` bvec to copy from **Description** Must be called on single-page bvecs only.h](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM'hj6ubj )}(hhh](j)}(h0``char *to`` Kernel virtual address to copy to. h](j)}(h ``char *to``h]j)}(hj[h]hchar *to}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM$hjUubj2)}(hhh]h)}(h"Kernel virtual address to copy to.h]h"Kernel virtual address to copy to.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphM$hjqubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjphM$hjRubj)}(h+``struct bio_vec *bvec`` bvec to copy from h](j)}(h``struct bio_vec *bvec``h]j)}(hjh]hstruct bio_vec *bvec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM%hjubj2)}(hhh]h)}(hbvec to copy fromh]hbvec to copy from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjRubeh}(h]h ]h"]h$]h&]uh1j hj6ubh)}(h**Description**h]j)}(hjϘh]h Description}(hjјhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͘ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM'hj6ubh)}(h)Must be called on single-page bvecs only.h]h)Must be called on single-page bvecs only.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM&hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memcpy_to_bvec (C function)c.memcpy_to_bvechNtauh1hhjEhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhj"hM/ubj{)}(hmemcpy_to_bvech]j)}(hmemcpy_to_bvech]hmemcpy_to_bvec}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj"hM/ubj)}(h((struct bio_vec *bvec, const char *from)h](j)}(hstruct bio_vec *bvech](j)}(hj h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubh)}(hhh]j)}(hbio_vech]hbio_vec}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jf )}jY j7sbc.memcpy_to_bvecasbuh1hhjMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hbvech]hbvec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hconst char *fromh](j)}(hjh]hconst}(hjÙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjЙhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjޙhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hM/ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hM/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj"hM/hj hhubj)}(hhh]h)}(hcopy data to a bvech]hcopy data to a bvec}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM/hj.hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjIjjIjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct bio_vec *bvec`` bvec to copy to ``const char *from`` Kernel virtual address to copy from. **Description** Must be called on single-page bvecs only.h](h)}(h**Parameters**h]j)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM3hjMubj )}(hhh](j)}(h)``struct bio_vec *bvec`` bvec to copy to h](j)}(h``struct bio_vec *bvec``h]j)}(hjrh]hstruct bio_vec *bvec}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM0hjlubj2)}(hhh]h)}(hbvec to copy toh]hbvec to copy to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1j1hjlubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjiubj)}(h:``const char *from`` Kernel virtual address to copy from. h](j)}(h``const char *from``h]j)}(hjh]hconst char *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM1hjubj2)}(hhh]h)}(h$Kernel virtual address to copy from.h]h$Kernel virtual address to copy from.}(hjĚhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjiubeh}(h]h ]h"]h$]h&]uh1j hjMubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM3hjMubh)}(h)Must be called on single-page bvecs only.h]h)Must be called on single-page bvecs only.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM2hjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j memzero_bvec (C function)c.memzero_bvechNtauh1hhjEhhhNhNubj)}(hhh](j)}(h(void memzero_bvec (struct bio_vec *bvec)h]j)}(h'void memzero_bvec(struct bio_vec *bvec)h](j )}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM;ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'hhhj9hM;ubj{)}(h memzero_bvech]j)}(h memzero_bvech]h memzero_bvec}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj'hhhj9hM;ubj)}(h(struct bio_vec *bvec)h]j)}(hstruct bio_vec *bvech](j)}(hj h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubh)}(hhh]j)}(hbio_vech]hbio_vec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jNsbc.memzero_bvecasbuh1hhjdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hbvech]hbvec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubah}(h]h ]h"]h$]h&]jjuh1jhj'hhhj9hM;ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hM;ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj9hM;hj hhubj)}(hhh]h)}(hzero all data in a bvech]hzero all data in a bvec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM;hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hM;ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hs**Parameters** ``struct bio_vec *bvec`` bvec to zero **Description** Must be called on single-page bvecs only.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM?hjubj )}(hhh]j)}(h&``struct bio_vec *bvec`` bvec to zero h](j)}(h``struct bio_vec *bvec``h]j)}(hj,h]hstruct bio_vec *bvec}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM<hj&ubj2)}(hhh]h)}(h bvec to zeroh]h bvec to zero}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhM<hjBubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhM<hj#ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM>hjubh)}(h)Must be called on single-page bvecs only.h]h)Must be called on single-page bvecs only.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhM=hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bvec_virt (C function) c.bvec_virthNtauh1hhjEhhhNhNubj)}(hhh](j)}(h'void * bvec_virt (struct bio_vec *bvec)h]j)}(h%void *bvec_virt(struct bio_vec *bvec)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMFubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMFubj)}(hjh]h*}(hjɜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMFubj{)}(h bvec_virth]j)}(h bvec_virth]h bvec_virt}(hjڜhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֜ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMFubj)}(h(struct bio_vec *bvec)h]j)}(hstruct bio_vec *bvech](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbio_vech]hbio_vec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jܜsb c.bvec_virtasbuh1hhjubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbvech]hbvec}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMFhjhhubj)}(hhh]h)}(h%return the virtual address for a bvech]h%return the virtual address for a bvec}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMFhjvhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct bio_vec *bvec`` bvec to return the virtual address for **Note** the caller must ensure that **bvec->bv_page** is not a highmem page.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMJhjubj )}(hhh]j)}(h@``struct bio_vec *bvec`` bvec to return the virtual address for h](j)}(h``struct bio_vec *bvec``h]j)}(hjh]hstruct bio_vec *bvec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMGhjubj2)}(hhh]h)}(h&bvec to return the virtual address forh]h&bvec to return the virtual address for}(hjӝhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjϝhMGhjНubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjϝhMGhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMIhjubh)}(hDthe caller must ensure that **bvec->bv_page** is not a highmem page.h](hthe caller must ensure that }(hj hhhNhNubj)}(h**bvec->bv_page**h]h bvec->bv_page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is not a highmem page.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bvec_phys (C function) c.bvec_physhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h2phys_addr_t bvec_phys (const struct bio_vec *bvec)h]j)}(h1phys_addr_t bvec_phys(const struct bio_vec *bvec)h](h)}(hhh]j)}(h phys_addr_th]h phys_addr_t}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQmodnameN classnameNj] j` )}jc ]jf )}jY bvec_physsb c.bvec_physasbuh1hhjHhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMRubj2)}(h h]h }(hjqhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHhhhjphMRubj{)}(h bvec_physh]j)}(hjmh]h bvec_phys}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjHhhhjphMRubj)}(h(const struct bio_vec *bvec)h]j)}(hconst struct bio_vec *bvech](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjƞhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbio_vech]hbio_vec}(hjמhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԞubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjٞmodnameN classnameNj] j` )}jc ]jk c.bvec_physasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbvech]hbvec}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjHhhhjphMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjphMRubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1jhjphMRhjAhhubj)}(hhh]h)}(h&return the physical address for a bvech]h&return the physical address for a bvec}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMRhj7hhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjphMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``const struct bio_vec *bvec`` bvec to return the physical address forh](h)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMVhjVubj )}(hhh]j)}(hF``const struct bio_vec *bvec`` bvec to return the physical address forh](j)}(h``const struct bio_vec *bvec``h]j)}(hj{h]hconst struct bio_vec *bvec}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMXhjuubj2)}(hhh]h)}(h'bvec to return the physical address forh]h'bvec to return the physical address for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:310: ./include/linux/bvec.hhMShjubah}(h]h ]h"]h$]h&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjrubah}(h]h ]h"]h$]h&]uh1j hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_advance (C function) c.bio_advancehNtauh1hhjEhhhNhNubj)}(hhh](j)}(h7void bio_advance (struct bio *bio, unsigned int nbytes)h]j)}(h6void bio_advance(struct bio *bio, unsigned int nbytes)h](j )}(hvoidh]hvoid}(hj՟hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjџhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjџhhhjhKubj{)}(h bio_advanceh]j)}(h bio_advanceh]h bio_advance}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjџhhhjhKubj)}(h&(struct bio *bio, unsigned int nbytes)h](j)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbioh]hbio}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2modnameN classnameNj] j` )}jc ]jf )}jY jsb c.bio_advanceasbuh1hhjubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned int nbytesh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnbytesh]hnbytes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhjџhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj͟hhhjhKubah}(h]jȟah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjʟhhubj)}(hhh]h)}(h0increment/complete a bio by some number of bytesh]h0increment/complete a bio by some number of bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjʟhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct bio *bio`` bio to advance ``unsigned int nbytes`` number of bytes to complete **Description** This updates bi_sector, bi_size and bi_idx; if the number of bytes to complete doesn't align with a bvec boundary, then bv_len and bv_offset will be updated on the last bvec as well. **bio** will then represent the remaining, uncompleted portion of the io.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKhjubj )}(hhh](j)}(h#``struct bio *bio`` bio to advance h](j)}(h``struct bio *bio``h]j)}(hj'h]hstruct bio *bio}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKhj!ubj2)}(hhh]h)}(hbio to advanceh]hbio to advance}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hKhj=ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhjubj)}(h4``unsigned int nbytes`` number of bytes to complete h](j)}(h``unsigned int nbytes``h]j)}(hj`h]hunsigned int nbytes}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKhjZubj2)}(hhh]h)}(hnumber of bytes to completeh]hnumber of bytes to complete}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhKhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKhjubh)}(hThis updates bi_sector, bi_size and bi_idx; if the number of bytes to complete doesn't align with a bvec boundary, then bv_len and bv_offset will be updated on the last bvec as well.h]hThis updates bi_sector, bi_size and bi_idx; if the number of bytes to complete doesn’t align with a bvec boundary, then bv_len and bv_offset will be updated on the last bvec as well.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKhjubh)}(hI**bio** will then represent the remaining, uncompleted portion of the io.h](j)}(h**bio**h]hbio}(hjġhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhB will then represent the remaining, uncompleted portion of the io.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j folio_iter (C struct) c.folio_iterhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h folio_iterh]j)}(hstruct folio_iterh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hKubj{)}(h folio_iterh]j)}(hjh]h folio_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hKhjhhubj)}(hhh]h)}(h(State for iterating all folios in a bio.h]h(State for iterating all folios in a bio.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhj<hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hKubeh}(h]h ](jstructeh"]h$]h&]jjjjWjjWjjjuh1jhhhjEhNhNubj)}(hXY**Definition**:: struct folio_iter { struct folio *folio; size_t offset; size_t length; }; **Members** ``folio`` The current folio we're iterating. NULL after the last folio. ``offset`` The byte offset within the current folio. ``length`` The number of bytes in this iteration (will not cross folio boundary).h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh:}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhj[ubjH)}(hUstruct folio_iter { struct folio *folio; size_t offset; size_t length; };h]hUstruct folio_iter { struct folio *folio; size_t offset; size_t length; };}hj|sbah}(h]h ]h"]h$]h&]jjuh1jHhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhM hj[ubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhj[ubj )}(hhh](j)}(hI``folio`` The current folio we're iterating. NULL after the last folio. h](j)}(h ``folio``h]j)}(hjh]hfolio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubj2)}(hhh]h)}(h>The current folio we're iterating. NULL after the last folio.h]h@The current folio we’re iterating. NULL after the last folio.}(hjŢhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj¢ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h5``offset`` The byte offset within the current folio. h](j)}(h ``offset``h]j)}(hjh]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjߢubj2)}(hhh]h)}(h)The byte offset within the current folio.h]h)The byte offset within the current folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjߢubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hQ``length`` The number of bytes in this iteration (will not cross folio boundary).h](j)}(h ``length``h]j)}(hjh]hlength}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubj2)}(hhh]h)}(hFThe number of bytes in this iteration (will not cross folio boundary).h]hFThe number of bytes in this iteration (will not cross folio boundary).}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubeh}(h]h ]h"]h$]h&]uh1j hj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  bio_for_each_folio_all (C macro)c.bio_for_each_folio_allhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hbio_for_each_folio_allh]j)}(hbio_for_each_folio_allh]j{)}(hbio_for_each_folio_allh]j)}(hjqh]hbio_for_each_folio_all}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjshhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhM5ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjhM5ubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jhjhM5hjlhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjlhhhjhM5ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubh)}(h$``bio_for_each_folio_all (fi, bio)``h]j)}(hjh]h bio_for_each_folio_all (fi, bio)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhM7hjEhhubj)}(h"Iterate over each folio in a bio. h]h)}(h!Iterate over each folio in a bio.h]h!Iterate over each folio in a bio.}(hjǣhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhM5hjãubah}(h]h ]h"]h$]h&]uh1jhjգhM5hjEhhubj)}(hr**Parameters** ``fi`` struct folio_iter which is updated for each folio. ``bio`` struct bio to iterate over.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhM9hjܣubj )}(hhh](j)}(h:``fi`` struct folio_iter which is updated for each folio. h](j)}(h``fi``h]j)}(hjh]hfi}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhM6hjubj2)}(hhh]h)}(h2struct folio_iter which is updated for each folio.h]h2struct folio_iter which is updated for each folio.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(h#``bio`` struct bio to iterate over.h](j)}(h``bio``h]j)}(hj:h]hbio}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhM8hj4ubj2)}(hhh]h)}(hstruct bio to iterate over.h]hstruct bio to iterate over.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhM7hjPubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM8hjubeh}(h]h ]h"]h$]h&]uh1j hjܣubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_next_split (C function)c.bio_next_splithNtauh1hhjEhhhNhNubj)}(hhh](j)}(hYstruct bio * bio_next_split (struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h]j)}(hWstruct bio *bio_next_split(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMEubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMEubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY bio_next_splitsbc.bio_next_splitasbuh1hhjhhhjhMEubj2)}(h h]h }(hjԤhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMEubj{)}(hbio_next_splith]j)}(hjѤh]hbio_next_split}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMEubj)}(h=(struct bio *bio, int sectors, gfp_t gfp, struct bio_set *bs)h](j)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(hbioh]hbio}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj.modnameN classnameNj] j` )}jc ]jϤc.bio_next_splitasbuh1hhj ubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hbioh]hbio}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int sectorsh](j )}(hinth]hint}(hj~hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hsectorsh]hsectors}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jϤc.bio_next_splitasbuh1hhjubj2)}(h h]h }(hjԥhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio_set *bsh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbio_seth]hbio_set}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jϤc.bio_next_splitasbuh1hhjubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbsh]hbs}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMEhjhhubj)}(hhh]h)}(h7get next **sectors** from a bio, splitting if necessaryh](h get next }(hj|hhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubh# from a bio, splitting if necessary}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMEhjyhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hXU**Parameters** ``struct bio *bio`` bio to split ``int sectors`` number of sectors to split from the front of **bio** ``gfp_t gfp`` gfp mask ``struct bio_set *bs`` bio set to allocate from **Return** a bio representing the next **sectors** of **bio** - if the bio is smaller than **sectors**, returns the original bio unchanged.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMIhjubj )}(hhh](j)}(h!``struct bio *bio`` bio to split h](j)}(h``struct bio *bio``h]j)}(hjϦh]hstruct bio *bio}(hjѦhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjͦubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMFhjɦubj2)}(hhh]h)}(h bio to splith]h bio to split}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1j1hjɦubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjƦubj)}(hE``int sectors`` number of sectors to split from the front of **bio** h](j)}(h``int sectors``h]j)}(hjh]h int sectors}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMGhjubj2)}(hhh]h)}(h4number of sectors to split from the front of **bio**h](h-number of sectors to split from the front of }(hj!hhhNhNubj)}(h**bio**h]hbio}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjƦubj)}(h``gfp_t gfp`` gfp mask h](j)}(h ``gfp_t gfp``h]j)}(hjOh]h gfp_t gfp}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMHhjIubj2)}(hhh]h)}(hgfp maskh]hgfp mask}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMHhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMHhjƦubj)}(h0``struct bio_set *bs`` bio set to allocate from h](j)}(h``struct bio_set *bs``h]j)}(hjh]hstruct bio_set *bs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMIhjubj2)}(hhh]h)}(hbio set to allocate fromh]hbio set to allocate from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMIhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjƦubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hjçh]hReturn}(hjŧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMKhjubh)}(ha bio representing the next **sectors** of **bio** - if the bio is smaller than **sectors**, returns the original bio unchanged.h](ha bio representing the next }(hj٧hhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٧ubh of }(hj٧hhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٧ubh - if the bio is smaller than }(hj٧hhhNhNubj)}(h **sectors**h]hsectors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٧ubh%, returns the original bio unchanged.}(hj٧hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_in_atomic (C function)c.bio_in_atomichNtauh1hhjEhhhNhNubj)}(hhh](j)}(hbool bio_in_atomic (void)h]j)}(hbool bio_in_atomic(void)h](j )}(hj8h]hbool}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMtubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:hhhjKhMtubj{)}(h bio_in_atomich]j)}(h bio_in_atomich]h bio_in_atomic}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhhjKhMtubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhj:hhhjKhMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjKhMtubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhjKhMthj3hhubj)}(hhh]h)}(h9check if the current context is unsafe for bio completionh]h9check if the current context is unsafe for bio completion}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMthjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjKhMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``void`` no arguments **Return** ``true`` in atomic contexts (e.g. hard/soft IRQ, preempt-disabled); ``false`` when a bio can be safely completed in the current context.h](h)}(h**Parameters**h]j)}(hjƨh]h Parameters}(hjȨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjĨubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMxhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKhjߨubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjߨubeh}(h]h ]h"]h$]h&]uh1jhjhKhjܨubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hj h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhKhjubh)}(h``true`` in atomic contexts (e.g. hard/soft IRQ, preempt-disabled); ``false`` when a bio can be safely completed in the current context.h](j)}(h``true``h]htrue}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh< in atomic contexts (e.g. hard/soft IRQ, preempt-disabled); }(hj6hhhNhNubj)}(h ``false``h]hfalse}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh; when a bio can be safely completed in the current context.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMvhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !bio_complete_in_task (C function)c.bio_complete_in_taskhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h+bool bio_complete_in_task (struct bio *bio)h]j)}(h*bool bio_complete_in_task(struct bio *bio)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hbio_complete_in_taskh]j)}(hbio_complete_in_taskh]hbio_complete_in_task}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjΩhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbioh]hbio}(hjߩhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܩubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.bio_complete_in_taskasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjzhhubj)}(hhh]h)}(h5ensure a bio is completed in preemptible task contexth]h5ensure a bio is completed in preemptible task context}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjAhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct bio *bio`` bio to complete **Description** If called from non-task context, offload the bio completion to a worker thread and return ``true``. Else return ``false`` and do nothing. Uses BIO_COMPLETE_IN_TASK as a sentinel: if set, the bio was already deferred and we are running in the worker — return ``false`` so the callback proceeds instead of re-deferring.h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhj`ubj )}(hhh]j)}(h$``struct bio *bio`` bio to complete h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubj2)}(hhh]h)}(hbio to completeh]hbio to complete}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj|ubah}(h]h ]h"]h$]h&]uh1j hj`ubh)}(h**Description**h]j)}(hjh]h Description}(hjªhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhj`ubh)}(hIf called from non-task context, offload the bio completion to a worker thread and return ``true``. Else return ``false`` and do nothing.h](hZIf called from non-task context, offload the bio completion to a worker thread and return }(hj֪hhhNhNubj)}(h``true``h]htrue}(hjުhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֪ubh. Else return }(hj֪hhhNhNubj)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֪ubh and do nothing.}(hj֪hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhj`ubh)}(hUses BIO_COMPLETE_IN_TASK as a sentinel: if set, the bio was already deferred and we are running in the worker — return ``false`` so the callback proceeds instead of re-deferring.h](hzUses BIO_COMPLETE_IN_TASK as a sentinel: if set, the bio was already deferred and we are running in the worker — return }(hj hhhNhNubj)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh2 so the callback proceeds instead of re-deferring.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_endio_status (C function)c.bio_endio_statushNtauh1hhjEhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjFhhhjXhMubj{)}(hbio_endio_statush]j)}(hbio_endio_statush]hbio_endio_status}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjXhMubj)}(h&(struct bio *bio, blk_status_t status)h](j)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jmsbc.bio_endio_statusasbuh1hhjubj2)}(h h]h }(hjūhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjӫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hblk_status_t statush](h)}(hhh]j)}(h blk_status_th]h blk_status_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.bio_endio_statusasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hstatush]hstatus}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjFhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjXhMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1jhjXhMhj?hhubj)}(hhh]h)}(h'end I/O on a bio with a specific statush]h'end I/O on a bio with a specific status}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjOhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct bio *bio`` bio ``blk_status_t status`` status to set **Description** Set **bio->bi_status** to **status** and call bio_endio().h](h)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjnubj )}(hhh](j)}(h``struct bio *bio`` bio h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubj2)}(hhh]h)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``blk_status_t status`` status to set h](j)}(h``blk_status_t status``h]j)}(hj̬h]hblk_status_t status}(hjάhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʬubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjƬubj2)}(hhh]h)}(h status to seth]h status to set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjƬubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjnubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjnubh)}(h:Set **bio->bi_status** to **status** and call bio_endio().h](hSet }(hjhhhNhNubj)}(h**bio->bi_status**h]hbio->bi_status}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to }(hjhhhNhNubj)}(h **status**h]hstatus}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and call bio_endio().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #bio_iov_bounce_nr_vecs (C function)c.bio_iov_bounce_nr_vecshNtauh1hhjEhhhNhNubj)}(hhh](j)}(hKunsigned short bio_iov_bounce_nr_vecs (struct iov_iter *iter, blk_opf_t op)h]j)}(hJunsigned short bio_iov_bounce_nr_vecs(struct iov_iter *iter, blk_opf_t op)h](j )}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhj~hMubj )}(hshorth]hshort}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhj~hMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhj~hMubj{)}(hbio_iov_bounce_nr_vecsh]j)}(hbio_iov_bounce_nr_vecsh]hbio_iov_bounce_nr_vecs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhj~hMubj)}(h%(struct iov_iter *iter, blk_opf_t op)h](j)}(hstruct iov_iter *iterh](j)}(hj h]hstruct}(hjɭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŭubj2)}(h h]h }(hj֭hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjŭubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.bio_iov_bounce_nr_vecsasbuh1hhjŭubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjŭubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŭubj)}(hiterh]hiter}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŭubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h blk_opf_t oph](h)}(hhh]j)}(h blk_opf_th]h blk_opf_t}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@modnameN classnameNj] j` )}jc ]jc.bio_iov_bounce_nr_vecsasbuh1hhj7ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hoph]hop}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjlhhhj~hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhj~hMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhj~hMhjehhubj)}(hhh]h)}(h*calculate number of bvecs for a bounce bioh]h*calculate number of bvecs for a bounce bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct iov_iter *iter`` iter to bounce from ``blk_opf_t op`` REQ_OP_* for the bio **Description** Calculates how many bvecs are needed for the next bio to bounce from/to **iter**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubj )}(hhh](j)}(h.``struct iov_iter *iter`` iter to bounce from h](j)}(h``struct iov_iter *iter``h]j)}(hjծh]hstruct iov_iter *iter}(hj׮hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӮubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjϮubj2)}(hhh]h)}(hiter to bounce fromh]hiter to bounce from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjϮubeh}(h]h ]h"]h$]h&]uh1jhjhMhj̮ubj)}(h&``blk_opf_t op`` REQ_OP_* for the bio h](j)}(h``blk_opf_t op``h]j)}(hjh]h blk_opf_t op}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubj2)}(hhh]h)}(hREQ_OP_* for the bioh]hREQ_OP_* for the bio}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj̮ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubh)}(hQCalculates how many bvecs are needed for the next bio to bounce from/to **iter**.h](hHCalculates how many bvecs are needed for the next bio to bounce from/to }(hj_hhhNhNubj)}(h**iter**h]hiter}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_add_max_vecs (C function)c.bio_add_max_vecshNtauh1hhjEhhhNhNubj)}(hhh](j)}(h=unsigned int bio_add_max_vecs (void *kaddr, unsigned int len)h]j)}(hah"]h$]h&]uh1j1hjhhhjhMubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhMubj2)}(h h]h }(hj˯hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hbio_add_max_vecsh]j)}(hbio_add_max_vecsh]hbio_add_max_vecs}(hjݯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٯubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(void *kaddr, unsigned int len)h](j)}(h void *kaddrh](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hkaddrh]hkaddr}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj )}(hinth]hint}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7ubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7ubj)}(hlenh]hlen}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h.number of bio_vecs needed to add data to a bioh]h.number of bio_vecs needed to add data to a bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``void *kaddr`` kernel virtual address to add ``unsigned int len`` length in bytes to add **Description** Calculate how many bio_vecs need to be allocated to add the kernel virtual address range in [**kaddr**:**len**] in the worse case.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubj )}(hhh](j)}(h.``void *kaddr`` kernel virtual address to add h](j)}(h``void *kaddr``h]j)}(hjްh]h void *kaddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܰubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjذubj2)}(hhh]h)}(hkernel virtual address to addh]hkernel virtual address to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjذubeh}(h]h ]h"]h$]h&]uh1jhjhMhjհubj)}(h,``unsigned int len`` length in bytes to add h](j)}(h``unsigned int len``h]j)}(hjh]hunsigned int len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubj2)}(hhh]h)}(hlength in bytes to addh]hlength in bytes to add}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjհubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubh)}(hCalculate how many bio_vecs need to be allocated to add the kernel virtual address range in [**kaddr**:**len**] in the worse case.h](h]Calculate how many bio_vecs need to be allocated to add the kernel virtual address range in [}(hjhhhhNhNubj)}(h **kaddr**h]hkaddr}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh:}(hjhhhhNhNubj)}(h**len**h]hlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh] in the worse case.}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_is_zone_append (C function)c.bio_is_zone_appendhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h)bool bio_is_zone_append (struct bio *bio)h]j)}(h(bool bio_is_zone_append(struct bio *bio)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMubj2)}(h h]h }(hjɱhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjȱhMubj{)}(hbio_is_zone_appendh]j)}(hbio_is_zone_appendh]hbio_is_zone_append}(hj۱hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjױubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjȱhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jݱsbc.bio_is_zone_appendasbuh1hhjubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjȱhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjȱhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjȱhMhjhhubj)}(hhh]h)}(his this a zone append bio?h]his this a zone append bio?}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjwhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjȱhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hXD**Parameters** ``struct bio *bio`` bio to check **Description** Check if **bio** is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the block layer can rewrite REQ_OP_ZONE_APPEND to REQ_OP_WRITE if it is not natively supported.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubj )}(hhh]j)}(h!``struct bio *bio`` bio to check h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubj2)}(hhh]h)}(h bio to checkh]h bio to check}(hjԲhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjвhMhjѲubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjвhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubh)}(hCheck if **bio** is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the block layer can rewrite REQ_OP_ZONE_APPEND to REQ_OP_WRITE if it is not natively supported.h](h Check if }(hj hhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the block layer can rewrite REQ_OP_ZONE_APPEND to REQ_OP_WRITE if it is not natively supported.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:311: ./include/linux/bio.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_queue_flag_set (C function)c.blk_queue_flag_sethNtauh1hhjEhhhNhNubj)}(hhh](j)}(hDvoid blk_queue_flag_set (unsigned int flag, struct request_queue *q)h]j)}(hCvoid blk_queue_flag_set(unsigned int flag, struct request_queue *q)h](j )}(hvoidh]hvoid}(hjMhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKMubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIhhhj[hKMubj{)}(hblk_queue_flag_seth]j)}(hblk_queue_flag_seth]hblk_queue_flag_set}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIhhhj[hKMubj)}(h,(unsigned int flag, struct request_queue *q)h](j)}(hunsigned int flagh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagh]hflag}(hj³hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hj۳hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׳ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj׳ubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jpsbc.blk_queue_flag_setasbuh1hhj׳ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj׳ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׳ubj)}(hj(lh]hq}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׳ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhj[hKMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhj[hKMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jhj[hKMhjBhhubj)}(hhh]h)}(hatomically set a queue flagh]hatomically set a queue flag}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKMhjZhhubah}(h]h ]h"]h$]h&]uh1jhjBhhhj[hKMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhjEhNhNubj)}(hc**Parameters** ``unsigned int flag`` flag to be set ``struct request_queue *q`` request queueh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKQhjyubj )}(hhh](j)}(h%``unsigned int flag`` flag to be set h](j)}(h``unsigned int flag``h]j)}(hjh]hunsigned int flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKNhjubj2)}(hhh]h)}(hflag to be seth]hflag to be set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjubj)}(h)``struct request_queue *q`` request queueh](j)}(h``struct request_queue *q``h]j)}(hj״h]hstruct request_queue *q}(hjٴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjմubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKPhjѴubj2)}(hhh]h)}(h request queueh]h request queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKOhjubah}(h]h ]h"]h$]h&]uh1j1hjѴubeh}(h]h ]h"]h$]h&]uh1jhjhKPhjubeh}(h]h ]h"]h$]h&]uh1j hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !blk_queue_flag_clear (C function)c.blk_queue_flag_clearhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hFvoid blk_queue_flag_clear (unsigned int flag, struct request_queue *q)h]j)}(hEvoid blk_queue_flag_clear(unsigned int flag, struct request_queue *q)h](j )}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKXubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-hhhj?hKXubj{)}(hblk_queue_flag_clearh]j)}(hblk_queue_flag_clearh]hblk_queue_flag_clear}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj?hKXubj)}(h,(unsigned int flag, struct request_queue *q)h](j)}(hunsigned int flagh](j )}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hflagh]hflag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj̵hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjݵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڵubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjߵmodnameN classnameNj] j` )}jc ]jf )}jY jTsbc.blk_queue_flag_clearasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj(lh]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhj-hhhj?hKXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj?hKXubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1jhj?hKXhj&hhubj)}(hhh]h)}(hatomically clear a queue flagh]hatomically clear a queue flag}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKXhj>hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj?hKXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYjjYjjjuh1jhhhjEhNhNubj)}(hg**Parameters** ``unsigned int flag`` flag to be cleared ``struct request_queue *q`` request queueh](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chK\hj]ubj )}(hhh](j)}(h)``unsigned int flag`` flag to be cleared h](j)}(h``unsigned int flag``h]j)}(hjh]hunsigned int flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKYhj|ubj2)}(hhh]h)}(hflag to be clearedh]hflag to be cleared}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKYhjubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKYhjyubj)}(h)``struct request_queue *q`` request queueh](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chK[hjubj2)}(hhh]h)}(h request queueh]h request queue}(hjԶhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKZhjѶubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjжhK[hjyubeh}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_op_str (C function) c.blk_op_strhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h(const char * blk_op_str (enum req_op op)h]j)}(h&const char *blk_op_str(enum req_op op)h](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKvubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj"hKvubj )}(hcharh]hchar}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhj"hKvubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj"hKvubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hKvubj{)}(h blk_op_strh]j)}(h blk_op_strh]h blk_op_str}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj"hKvubj)}(h(enum req_op op)h]j)}(henum req_op oph](j)}(hj;@h]henum}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubh)}(hhh]j)}(hreq_oph]hreq_op}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j`sb c.blk_op_strasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hoph]hop}(hjƷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hKvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hKvubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj"hKvhj hhubj)}(hhh]h)}(h6Return the string "name" for an operation REQ_OP_name.h]h:Return the string “name” for an operation REQ_OP_name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKvhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hKvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``enum req_op op`` a request operation. **Description** Convert a request operation REQ_OP_name into the string "name". Useful for debugging and tracing BIOs and requests. For an invalid request operation code, the string "UNKNOWN" is returned.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKzhj ubj )}(hhh]j)}(h(``enum req_op op`` a request operation. h](j)}(h``enum req_op op``h]j)}(hj1h]henum req_op op}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKwhj+ubj2)}(hhh]h)}(ha request operation.h]ha request operation.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhKwhjGubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhKwhj(ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKyhj ubh)}(hConvert a request operation REQ_OP_name into the string "name". Useful for debugging and tracing BIOs and requests. For an invalid request operation code, the string "UNKNOWN" is returned.h]hConvert a request operation REQ_OP_name into the string “name”. Useful for debugging and tracing BIOs and requests. For an invalid request operation code, the string “UNKNOWN” is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKxhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_sync_queue (C function)c.blk_sync_queuehNtauh1hhjEhhhNhNubj)}(hhh](j)}(h-void blk_sync_queue (struct request_queue *q)h]j)}(h,void blk_sync_queue(struct request_queue *q)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hblk_sync_queueh]j)}(hblk_sync_queueh]hblk_sync_queue}(hjҸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjθubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h request_queueh]h request_queue}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jԸsbc.blk_sync_queueasbuh1hhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj(lh]hq}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h'cancel any pending callbacks on a queueh]h'cancel any pending callbacks on a queue}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKhjmhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct request_queue *q`` the queue **Description** The block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function. This function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKhjubj )}(hhh]j)}(h&``struct request_queue *q`` the queue h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKhjubj2)}(hhh]h)}(h the queueh]h the queue}(hjʹhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƹhKhjǹubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjƹhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKhjubj)}(hXTThe block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function. This function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.h](h)}(hXThe block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function.h]hXThe block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk_sync_queue to ensure that any such activity is cancelled, thus allowing it to release resources that the callbacks might use. The caller must already have made sure that its ->submit_bio will not re-add plugging prior to calling this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chKhjubh)}(hThis function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.h]hThis function does not cancel any asynchronous activity arising out of elevator or throttling code. That would require elevator_exit() and blkcg_exit_queue() to be called with queue lock initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_set_pm_only (C function)c.blk_set_pm_onlyhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h.void blk_set_pm_only (struct request_queue *q)h]j)}(h-void blk_set_pm_only(struct request_queue *q)h](j )}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFhhhjXhMubj{)}(hblk_set_pm_onlyh]j)}(hblk_set_pm_onlyh]hblk_set_pm_only}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjXhMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jmsbc.blk_set_pm_onlyasbuh1hhjubj2)}(h h]h }(hjźhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjӺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj(lh]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjFhhhjXhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjXhMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1jhjXhMhj?hhubj)}(hhh]h)}(hincrement pm_only counterh]hincrement pm_only counter}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jhhhjEhNhNubj)}(hC**Parameters** ``struct request_queue *q`` request queue pointerh](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhj%ubj )}(hhh]j)}(h1``struct request_queue *q`` request queue pointerh](j)}(h``struct request_queue *q``h]j)}(hjJh]hstruct request_queue *q}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjDubj2)}(hhh]h)}(hrequest queue pointerh]hrequest queue pointer}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhj`ubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubah}(h]h ]h"]h$]h&]uh1j hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_put_queue (C function)c.blk_put_queuehNtauh1hhjEhhhNhNubj)}(hhh](j)}(h,void blk_put_queue (struct request_queue *q)h]j)}(h+void blk_put_queue(struct request_queue *q)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM9ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM9ubj{)}(h blk_put_queueh]j)}(h blk_put_queueh]h blk_put_queue}(hjŻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM9ubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݻubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjݻubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jǻsbc.blk_put_queueasbuh1hhjݻubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjݻubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݻubj)}(hj(lh]hq}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݻubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjٻubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM9ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM9hjhhubj)}(hhh]h)}(h$decrement the request_queue refcounth]h$decrement the request_queue refcount}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM9hj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct request_queue *q`` the request_queue structure to decrement the refcount for **Description** Decrements the refcount of the request_queue and free it when the refcount reaches 0.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM=hjubj )}(hhh]j)}(hV``struct request_queue *q`` the request_queue structure to decrement the refcount for h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM:hjubj2)}(hhh]h)}(h9the request_queue structure to decrement the refcount forh]h9the request_queue structure to decrement the refcount for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj߼h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݼubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM<hjubh)}(hUDecrements the refcount of the request_queue and free it when the refcount reaches 0.h]hUDecrements the refcount of the request_queue and free it when the refcount reaches 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_get_queue (C function)c.blk_get_queuehNtauh1hhjEhhhNhNubj)}(hhh](j)}(h,bool blk_get_queue (struct request_queue *q)h]j)}(h+bool blk_get_queue(struct request_queue *q)h](j )}(hj8h]hbool}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj1hM ubj{)}(h blk_get_queueh]j)}(h blk_get_queueh]h blk_get_queue}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj1hM ubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubh)}(hhh]j)}(h request_queueh]h request_queue}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jFsbc.blk_get_queueasbuh1hhj\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hj(lh]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj1hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj1hM hjhhubj)}(hhh]h)}(h$increment the request_queue refcounth]h$increment the request_queue refcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM hj߽hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct request_queue *q`` the request_queue structure to increment the refcount for **Description** Increment the refcount of the request_queue kobject. **Context** Any context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubj )}(hhh]j)}(hV``struct request_queue *q`` the request_queue structure to increment the refcount for h](j)}(h``struct request_queue *q``h]j)}(hj#h]hstruct request_queue *q}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM hjubj2)}(hhh]h)}(h9the request_queue structure to increment the refcount forh]h9the request_queue structure to increment the refcount for}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hM hj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hM hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj^h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubh)}(h4Increment the refcount of the request_queue kobject.h]h4Increment the refcount of the request_queue kobject.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM hjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubh)}(h Any context.h]h Any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j submit_bio_noacct (C function)c.submit_bio_noaccthNtauh1hhjEhhhNhNubj)}(hhh](j)}(h(void submit_bio_noacct (struct bio *bio)h]j)}(h'void submit_bio_noacct(struct bio *bio)h](j )}(hvoidh]hvoid}(hjʾhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjƾhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM)ubj2)}(h h]h }(hjپhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjƾhhhjؾhM)ubj{)}(hsubmit_bio_noaccth]j)}(hsubmit_bio_noaccth]hsubmit_bio_noacct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjƾhhhjؾhM)ubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbioh]hbio}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj'modnameN classnameNj] j` )}jc ]jf )}jY jsbc.submit_bio_noacctasbuh1hhjubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjƾhhhjؾhM)ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj¾hhhjؾhM)ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjؾhM)hjhhubj)}(hhh]h)}(h1re-submit a bio to the block device layer for I/Oh]h1re-submit a bio to the block device layer for I/O}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM)hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjؾhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX^**Parameters** ``struct bio *bio`` The bio describing the location in memory and on the device. **Description** This is a version of submit_bio() that shall only be used for I/O that is resubmitted to lower level drivers by stacking block drivers. All file systems and other upper level users of the block layer should use submit_bio() instead.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM-hjubj )}(hhh]j)}(hQ``struct bio *bio`` The bio describing the location in memory and on the device. h](j)}(h``struct bio *bio``h]j)}(hj˿h]hstruct bio *bio}(hjͿhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɿubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM*hjſubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hjGhhhjYhMubj{)}(h submit_bioh]j)}(h submit_bioh]h submit_bio}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjYhMubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jnsb c.submit_bioasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjGhhhjYhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjChhhjYhMubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhjYhMhj@hhubj)}(hhh]h)}(h.submit a bio to the block device layer for I/Oh]h.submit a bio to the block device layer for I/O}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1jhhhjEhNhNubj)}(hXD**Parameters** ``struct bio *bio`` The :c:type:`struct bio ` which describes the I/O **Description** submit_bio() is used to submit I/O requests to block devices. It is passed a fully set up :c:type:`struct bio ` that describes the I/O that needs to be done. The bio will be sent to the device described by the bi_bdev field. The success/failure status of the request, along with notification of completion, is delivered asynchronously through the ->bi_end_io() callback in **bio**. The bio must NOT be touched by the caller until ->bi_end_io() has been called.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhj'ubj )}(hhh]j)}(hK``struct bio *bio`` The :c:type:`struct bio ` which describes the I/O h](j)}(h``struct bio *bio``h]j)}(hjLh]hstruct bio *bio}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjFubj2)}(hhh]h)}(h6The :c:type:`struct bio ` which describes the I/Oh](hThe }(hjehhhNhNubh)}(h:c:type:`struct bio `h]j)}(hjoh]h struct bio}(hjqhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjbiouh1hhjahMhjeubh which describes the I/O}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjahMhjCubah}(h]h ]h"]h$]h&]uh1j hj'ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhj'ubh)}(hsubmit_bio() is used to submit I/O requests to block devices. It is passed a fully set up :c:type:`struct bio ` that describes the I/O that needs to be done. The bio will be sent to the device described by the bi_bdev field.h](h[submit_bio() is used to submit I/O requests to block devices. It is passed a fully set up }(hjhhhNhNubh)}(h:c:type:`struct bio `h]j)}(hjh]h struct bio}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjbiouh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubhr that describes the I/O that needs to be done. The bio will be sent to the device described by the bi_bdev field.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj'ubh)}(hThe success/failure status of the request, along with notification of completion, is delivered asynchronously through the ->bi_end_io() callback in **bio**. The bio must NOT be touched by the caller until ->bi_end_io() has been called.h](hThe success/failure status of the request, along with notification of completion, is delivered asynchronously through the ->bi_end_io() callback in }(hjhhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ. The bio must NOT be touched by the caller until ->bi_end_io() has been called.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEKhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_poll (C function) c.bio_pollhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hMint bio_poll (struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h]j)}(hLint bio_poll(struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h](j )}(hinth]hint}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/hhhjAhMubj{)}(hbio_pollh]j)}(hbio_pollh]hbio_poll}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhjAhMubj)}(h@(struct bio *bio, struct io_comp_batch *iob, unsigned int flags)h](j)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jVsb c.bio_pollasbuh1hhjlubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(hstruct io_comp_batch *iobh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h io_comp_batchh]h io_comp_batch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.bio_pollasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hiobh]hiob}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(hunsigned int flagsh](j )}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj )}(hinth]hint}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhj/hhhjAhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1jhjAhMhj(hhubj)}(hhh]h)}(hpoll for BIO completionsh]hpoll for BIO completions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct bio *bio`` bio to poll for ``struct io_comp_batch *iob`` batches of IO ``unsigned int flags`` BLK_POLL_* flags that control the behavior **Description** Poll for completions on queue associated with the bio. Returns number of completed entries found. **Note** the caller must either be the context that submitted **bio**, or be in a RCU critical section to prevent freeing of **bio**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubj )}(hhh](j)}(h$``struct bio *bio`` bio to poll for h](j)}(h``struct bio *bio``h]j)}(hjh]hstruct bio *bio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubj2)}(hhh]h)}(hbio to poll forh]hbio to poll for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h,``struct io_comp_batch *iob`` batches of IO h](j)}(h``struct io_comp_batch *iob``h]j)}(hj.h]hstruct io_comp_batch *iob}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhj(ubj2)}(hhh]h)}(h batches of IOh]h batches of IO}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1j1hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjubj)}(hB``unsigned int flags`` BLK_POLL_* flags that control the behavior h](j)}(h``unsigned int flags``h]j)}(hjgh]hunsigned int flags}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjaubj2)}(hhh]h)}(h*BLK_POLL_* flags that control the behaviorh]h*BLK_POLL_* flags that control the behavior}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubh)}(haPoll for completions on queue associated with the bio. Returns number of completed entries found.h]haPoll for completions on queue associated with the bio. Returns number of completed entries found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubh)}(h|the caller must either be the context that submitted **bio**, or be in a RCU critical section to prevent freeing of **bio**.h](h5the caller must either be the context that submitted }(hjhhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8, or be in a RCU critical section to prevent freeing of }(hjhhhNhNubj)}(h**bio**h]hbio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bio_start_io_acct (C function)c.bio_start_io_accthNtauh1hhjEhhhNhNubj)}(hhh](j)}(h1unsigned long bio_start_io_acct (struct bio *bio)h]j)}(h0unsigned long bio_start_io_acct(struct bio *bio)h](j )}(hunsignedh]hunsigned}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.hhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMEubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.hhhj@hMEubj )}(hlongh]hlong}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.hhhj@hMEubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.hhhj@hMEubj{)}(hbio_start_io_accth]j)}(hbio_start_io_accth]hbio_start_io_acct}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.hhhj@hMEubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jqsbc.bio_start_io_acctasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj.hhhj@hMEubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj*hhhj@hMEubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jhj@hMEhj'hhubj)}(hhh]h)}(h*start I/O accounting for bio based driversh]h*start I/O accounting for bio based drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMEhj hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct bio *bio`` bio to start account for **Description** Returns the start time that should be passed back to bio_end_io_acct().h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMIhj*ubj )}(hhh]j)}(h-``struct bio *bio`` bio to start account for h](j)}(h``struct bio *bio``h]j)}(hjOh]hstruct bio *bio}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMFhjIubj2)}(hhh]h)}(hbio to start account forh]hbio to start account for}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMFhjeubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMFhjFubah}(h]h ]h"]h$]h&]uh1j hj*ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMHhj*ubh)}(hGReturns the start time that should be passed back to bio_end_io_acct().h]hGReturns the start time that should be passed back to bio_end_io_acct().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMGhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_lld_busy (C function)c.blk_lld_busyhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h*int blk_lld_busy (struct request_queue *q)h]j)}(h)int blk_lld_busy(struct request_queue *q)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMiubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMiubj{)}(h blk_lld_busyh]j)}(h blk_lld_busyh]h blk_lld_busy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMiubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h request_queueh]h request_queue}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,modnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_lld_busyasbuh1hhjubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj(lh]hq}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMiubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMiubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMihjhhubj)}(hhh]h)}(h:Check if underlying low-level drivers of a device are busyh]h:Check if underlying low-level drivers of a device are busy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMihjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMiubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct request_queue *q`` the queue of the device being checked **Description** Check if underlying low-level drivers of a device are busy. If the drivers want to export their busy state, they must set own exporting function using blk_queue_lld_busy() first. Basically, this function is used only by request stacking drivers to stop dispatching requests to underlying devices when underlying devices are busy. This behavior helps more I/O merging on the queue of the request stacking driver and prevents I/O throughput regression on burst I/O load. **Return** 0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMmhjubj )}(hhh]j)}(hB``struct request_queue *q`` the queue of the device being checked h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMjhjubj2)}(hhh]h)}(h%the queue of the device being checkedh]h%the queue of the device being checked}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMjhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMlhjubj)}(hXCheck if underlying low-level drivers of a device are busy. If the drivers want to export their busy state, they must set own exporting function using blk_queue_lld_busy() first. Basically, this function is used only by request stacking drivers to stop dispatching requests to underlying devices when underlying devices are busy. This behavior helps more I/O merging on the queue of the request stacking driver and prevents I/O throughput regression on burst I/O load. h](h)}(hCheck if underlying low-level drivers of a device are busy. If the drivers want to export their busy state, they must set own exporting function using blk_queue_lld_busy() first.h]hCheck if underlying low-level drivers of a device are busy. If the drivers want to export their busy state, they must set own exporting function using blk_queue_lld_busy() first.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMlhj ubh)}(hX"Basically, this function is used only by request stacking drivers to stop dispatching requests to underlying devices when underlying devices are busy. This behavior helps more I/O merging on the queue of the request stacking driver and prevents I/O throughput regression on burst I/O load.h]hX"Basically, this function is used only by request stacking drivers to stop dispatching requests to underlying devices when underlying devices are busy. This behavior helps more I/O merging on the queue of the request stacking driver and prevents I/O throughput regression on burst I/O load.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMphj ubeh}(h]h ]h"]h$]h&]uh1jhj2hMlhjubh)}(h **Return**h]j)}(hjJh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMvhjubh)}(h0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)h]h0 - Not busy (The request stacking driver should dispatch request) 1 - Busy (The request stacking driver should stop dispatching request)}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMwhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_start_plug (C function)c.blk_start_plughNtauh1hhjEhhhNhNubj)}(hhh](j)}(h+void blk_start_plug (struct blk_plug *plug)h]j)}(h*void blk_start_plug(struct blk_plug *plug)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_start_plugh]j)}(hblk_start_plugh]hblk_start_plug}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hblk_plugh]hblk_plug}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_start_plugasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hplugh]hplug}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h7initialize blk_plug and track it inside the task_structh]h7initialize blk_plug and track it inside the task_struct}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct blk_plug *plug`` The :c:type:`struct blk_plug ` that needs to be initialized **Description** blk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds ``BLK_MAX_REQUEST_COUNT``, or if the size of the I/O is larger than ``BLK_PLUG_FLUSH_SIZE``. The queued I/Os may also be submitted early if the task schedules (see below). Tracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don't deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjkubj )}(hhh]j)}(h```struct blk_plug *plug`` The :c:type:`struct blk_plug ` that needs to be initialized h](j)}(h``struct blk_plug *plug``h]j)}(hjh]hstruct blk_plug *plug}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubj2)}(hhh]h)}(hEThe :c:type:`struct blk_plug ` that needs to be initializedh](hThe }(hjhhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hjh]hstruct blk_plug}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjblk_pluguh1hhjhMhjubh that needs to be initialized}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjkubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjkubj)}(hX'blk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds ``BLK_MAX_REQUEST_COUNT``, or if the size of the I/O is larger than ``BLK_PLUG_FLUSH_SIZE``. The queued I/Os may also be submitted early if the task schedules (see below). Tracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don't deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.h](h)}(hX blk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds ``BLK_MAX_REQUEST_COUNT``, or if the size of the I/O is larger than ``BLK_PLUG_FLUSH_SIZE``. The queued I/Os may also be submitted early if the task schedules (see below).h](hXablk_start_plug() indicates to the block layer an intent by the caller to submit multiple I/O requests in a batch. The block layer may use this hint to defer submitting I/Os from the caller until blk_finish_plug() is called. However, the block layer may choose to submit requests before a call to blk_finish_plug() if the number of queued I/Os exceeds }(hjhhhNhNubj)}(h``BLK_MAX_REQUEST_COUNT``h]hBLK_MAX_REQUEST_COUNT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+, or if the size of the I/O is larger than }(hjhhhNhNubj)}(h``BLK_PLUG_FLUSH_SIZE``h]hBLK_PLUG_FLUSH_SIZE}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhQ. The queued I/Os may also be submitted early if the task schedules (see below).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubh)}(hXTracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don't deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.h]hXTracking blk_plug inside the task_struct will help with auto-flushing the pending I/O should the task end up blocking between blk_start_plug() and blk_finish_plug(). This is important from a performance perspective, but also ensures that we don’t deadlock. For instance, if the task is blocking for a memory allocation, memory reclaim could end up wanting to free a page belonging to that request that is currently residing in our private plug. By flushing the pending I/O when the process goes to sleep, we avoid this kind of deadlock.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_finish_plug (C function)c.blk_finish_plughNtauh1hhjEhhhNhNubj)}(hhh](j)}(h,void blk_finish_plug (struct blk_plug *plug)h]j)}(h+void blk_finish_plug(struct blk_plug *plug)h](j )}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhj~hMubj{)}(hblk_finish_plugh]j)}(hblk_finish_plugh]hblk_finish_plug}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhj~hMubj)}(h(struct blk_plug *plug)h]j)}(hstruct blk_plug *plugh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hblk_plugh]hblk_plug}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_finish_plugasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hplugh]hplug}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjlhhhj~hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhj~hMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhj~hMhjehhubj)}(hhh]h)}(h(mark the end of a batch of submitted I/Oh]h(mark the end of a batch of submitted I/O}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct blk_plug *plug`` The :c:type:`struct blk_plug ` passed to blk_start_plug() **Description** Indicate that a batch of I/O submissions is complete. This function must be paired with an initial call to blk_start_plug(). The intent is to allow the block layer to optimize I/O submission. See the documentation for blk_start_plug() for more information.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chM hjLubj )}(hhh]j)}(h^``struct blk_plug *plug`` The :c:type:`struct blk_plug ` passed to blk_start_plug() h](j)}(h``struct blk_plug *plug``h]j)}(hjqh]hstruct blk_plug *plug}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjkubj2)}(hhh]h)}(hCThe :c:type:`struct blk_plug ` passed to blk_start_plug()h](hThe }(hjhhhNhNubh)}(h$:c:type:`struct blk_plug `h]j)}(hjh]hstruct blk_plug}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjblk_pluguh1hhjhMhjubh passed to blk_start_plug()}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhubah}(h]h ]h"]h$]h&]uh1j hjLubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjLubh)}(hXIndicate that a batch of I/O submissions is complete. This function must be paired with an initial call to blk_start_plug(). The intent is to allow the block layer to optimize I/O submission. See the documentation for blk_start_plug() for more information.h]hXIndicate that a batch of I/O submissions is complete. This function must be paired with an initial call to blk_start_plug(). The intent is to allow the block layer to optimize I/O submission. See the documentation for blk_start_plug() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:312: ./block/blk-core.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_queue_enter (C function)c.blk_queue_enterhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hGint blk_queue_enter (struct request_queue *q, blk_mq_req_flags_t flags)h]j)}(hFint blk_queue_enter(struct request_queue *q, blk_mq_req_flags_t flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMWubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj"hMWubj{)}(hblk_queue_enterh]j)}(hblk_queue_enterh]hblk_queue_enter}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj"hMWubj)}(h3(struct request_queue *q, blk_mq_req_flags_t flags)h](j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubh)}(hhh]j)}(h request_queueh]h request_queue}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jf )}jY j7sbc.blk_queue_enterasbuh1hhjMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hj(lh]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hblk_mq_req_flags_t flagsh](h)}(hhh]j)}(hblk_mq_req_flags_th]hblk_mq_req_flags_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.blk_queue_enterasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hMWubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj"hMWhj hhubj)}(hhh]h)}(h"try to increase q->q_usage_counterh]h"try to increase q->q_usage_counter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct request_queue *q`` request queue pointer ``blk_mq_req_flags_t flags`` BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chM[hj7ubj )}(hhh](j)}(h2``struct request_queue *q`` request queue pointer h](j)}(h``struct request_queue *q``h]j)}(hj\h]hstruct request_queue *q}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMXhjVubj2)}(hhh]h)}(hrequest queue pointerh]hrequest queue pointer}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMXhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMXhjSubj)}(hC``blk_mq_req_flags_t flags`` BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh](j)}(h``blk_mq_req_flags_t flags``h]j)}(hjh]hblk_mq_req_flags_t flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMZhjubj2)}(hhh]h)}(h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PMh]h&BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:315: ./block/blk-core.chMYhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjSubeh}(h]h ]h"]h$]h&]uh1j hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  blk_rq_map_user_iov (C function)c.blk_rq_map_user_iovhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hint blk_rq_map_user_iov (struct request_queue *q, struct request *rq, struct rq_map_data *map_data, const struct iov_iter *iter, gfp_t gfp_mask)h]j)}(hint blk_rq_map_user_iov(struct request_queue *q, struct request *rq, struct rq_map_data *map_data, const struct iov_iter *iter, gfp_t gfp_mask)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_rq_map_user_iovh]j)}(hblk_rq_map_user_iovh]hblk_rq_map_user_iov}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hx(struct request_queue *q, struct request *rq, struct rq_map_data *map_data, const struct iov_iter *iter, gfp_t gfp_mask)h](j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubh)}(hhh]j)}(h request_queueh]h request_queue}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_rq_map_user_iovasbuh1hhj(ubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj)}(hj(lh]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct request *rqh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jfc.blk_rq_map_user_iovasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct rq_map_data *map_datah](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(h rq_map_datah]h rq_map_data}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-modnameN classnameNj] j` )}jc ]jfc.blk_rq_map_user_iovasbuh1hhj ubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hmap_datah]hmap_data}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hconst struct iov_iter *iterh](j)}(hjh]hconst}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubh)}(hhh]j)}(hiov_iterh]hiov_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jfc.blk_rq_map_user_iovasbuh1hhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jfc.blk_rq_map_user_iovasbuh1hhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfp_maskh]hgfp_mask}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h4map user data to a request, for passthrough requestsh]h4map user data to a request, for passthrough requests}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhj^hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1jhhhjEhNhNubj)}(hX0**Parameters** ``struct request_queue *q`` request queue where request should be inserted ``struct request *rq`` request to map data to ``struct rq_map_data *map_data`` pointer to the rq_map_data holding pages (if necessary) ``const struct iov_iter *iter`` iovec iterator ``gfp_t gfp_mask`` memory allocation flags **Description** Data will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used. A matching blk_rq_unmap_user() must be issued at the end of I/O, while still in process context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhj}ubj )}(hhh](j)}(hK``struct request_queue *q`` request queue where request should be inserted h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjubj2)}(hhh]h)}(h.request queue where request should be insertedh]h.request queue where request should be inserted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``struct request *rq`` request to map data to h](j)}(h``struct request *rq``h]j)}(hjh]hstruct request *rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjubj2)}(hhh]h)}(hrequest to map data toh]hrequest to map data to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hY``struct rq_map_data *map_data`` pointer to the rq_map_data holding pages (if necessary) h](j)}(h ``struct rq_map_data *map_data``h]j)}(hjh]hstruct rq_map_data *map_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjubj2)}(hhh]h)}(h7pointer to the rq_map_data holding pages (if necessary)h]h7pointer to the rq_map_data holding pages (if necessary)}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjubj)}(h/``const struct iov_iter *iter`` iovec iterator h](j)}(h``const struct iov_iter *iter``h]j)}(hjMh]hconst struct iov_iter *iter}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjGubj2)}(hhh]h)}(hiovec iteratorh]hiovec iterator}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjubj)}(h+``gfp_t gfp_mask`` memory allocation flags h](j)}(h``gfp_t gfp_mask``h]j)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjubj2)}(hhh]h)}(hmemory allocation flagsh]hmemory allocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hj}ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhj}ubj)}(hData will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used. A matching blk_rq_unmap_user() must be issued at the end of I/O, while still in process context.h](h)}(hfData will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used.h]hfData will be mapped directly for zero copy I/O, if possible. Otherwise a kernel bounce buffer is used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjubh)}(h`A matching blk_rq_unmap_user() must be issued at the end of I/O, while still in process context.h]h`A matching blk_rq_unmap_user() must be issued at the end of I/O, while still in process context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_rq_unmap_user (C function)c.blk_rq_unmap_userhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h'int blk_rq_unmap_user (struct bio *bio)h]j)}(h&int blk_rq_unmap_user(struct bio *bio)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chM^ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj-hM^ubj{)}(hblk_rq_unmap_userh]j)}(hblk_rq_unmap_userh]hblk_rq_unmap_user}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj-hM^ubj)}(h(struct bio *bio)h]j)}(hstruct bio *bioh](j)}(hj h]hstruct}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubh)}(hhh]j)}(hbioh]hbio}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|modnameN classnameNj] j` )}jc ]jf )}jY jBsbc.blk_rq_unmap_userasbuh1hhjXubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjTubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj-hM^ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj-hM^ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj-hM^hjhhubj)}(hhh]h)}(hunmap a request with user datah]hunmap a request with user data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chM^hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj-hM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct bio *bio`` start of bio list **Description** Unmap a rq previously mapped by blk_rq_map_user(). The caller must supply the original rq->bio from the blk_rq_map_user() return, since the I/O completion may have changed rq->bio.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMbhjubj )}(hhh]j)}(h&``struct bio *bio`` start of bio list h](j)}(h``struct bio *bio``h]j)}(hj h]hstruct bio *bio}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chM_hjubj2)}(hhh]h)}(hstart of bio listh]hstart of bio list}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM_hj6ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj5hM_hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMahjubj)}(hUnmap a rq previously mapped by blk_rq_map_user(). The caller must supply the original rq->bio from the blk_rq_map_user() return, since the I/O completion may have changed rq->bio.h]h)}(hUnmap a rq previously mapped by blk_rq_map_user(). The caller must supply the original rq->bio from the blk_rq_map_user() return, since the I/O completion may have changed rq->bio.h]hUnmap a rq previously mapped by blk_rq_map_user(). The caller must supply the original rq->bio from the blk_rq_map_user() return, since the I/O completion may have changed rq->bio.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMahjqubah}(h]h ]h"]h$]h&]uh1jhjhMahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_rq_map_kern (C function)c.blk_rq_map_kernhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hVint blk_rq_map_kern (struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h]j)}(hUint blk_rq_map_kern(struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_rq_map_kernh]j)}(hblk_rq_map_kernh]hblk_rq_map_kern}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hB(struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)h](j)}(hstruct request *rqh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_rq_map_kernasbuh1hhjubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrqh]hrq}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *kbufh](j )}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hkbufh]hkbuf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int lenh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlenh]hlen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j!c.blk_rq_map_kernasbuh1hhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h6map kernel data to a request, for passthrough requestsh]h6map kernel data to a request, for passthrough requests}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjBhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jhhhjEhNhNubj)}(hXW**Parameters** ``struct request *rq`` request to fill ``void *kbuf`` the kernel buffer ``unsigned int len`` length of user data ``gfp_t gfp_mask`` memory allocation flags **Description** Data will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjaubj )}(hhh](j)}(h'``struct request *rq`` request to fill h](j)}(h``struct request *rq``h]j)}(hjh]hstruct request *rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjubj2)}(hhh]h)}(hrequest to fillh]hrequest to fill}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(h!``void *kbuf`` the kernel buffer h](j)}(h``void *kbuf``h]j)}(hjh]h void *kbuf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjubj2)}(hhh]h)}(hthe kernel bufferh]hthe kernel buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj}ubj)}(h)``unsigned int len`` length of user data h](j)}(h``unsigned int len``h]j)}(hjh]hunsigned int len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjubj2)}(hhh]h)}(hlength of user datah]hlength of user data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhj}ubj)}(h+``gfp_t gfp_mask`` memory allocation flags h](j)}(h``gfp_t gfp_mask``h]j)}(hj1h]hgfp_t gfp_mask}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhj+ubj2)}(hhh]h)}(hmemory allocation flagsh]hmemory allocation flags}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj}ubeh}(h]h ]h"]h$]h&]uh1j hjaubh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjaubj)}(hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h]h)}(hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.h]hData will be mapped directly if possible. Otherwise a bounce buffer is used. Can be called multiple times to append multiple buffers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:318: ./block/blk-map.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_register_queue (C function)c.blk_register_queuehNtauh1hhjEhhhNhNubj)}(hhh](j)}(h-int blk_register_queue (struct gendisk *disk)h]j)}(h,int blk_register_queue(struct gendisk *disk)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_register_queueh]j)}(hblk_register_queueh]hblk_register_queue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_register_queueasbuh1hhjubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdiskh]hdisk}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h'register a block layer queue with sysfsh]h'register a block layer queue with sysfs}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hk**Parameters** ``struct gendisk *disk`` Disk of which the request queue should be registered with sysfs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chMhjubj )}(hhh]j)}(hY``struct gendisk *disk`` Disk of which the request queue should be registered with sysfs.h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chMhjubj2)}(hhh]h)}(h@Disk of which the request queue should be registered with sysfs.h]h@Disk of which the request queue should be registered with sysfs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !blk_unregister_queue (C function)c.blk_unregister_queuehNtauh1hhjEhhhNhNubj)}(hhh](j)}(h0void blk_unregister_queue (struct gendisk *disk)h]j)}(h/void blk_unregister_queue(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chMubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj$hMubj{)}(hblk_unregister_queueh]j)}(hblk_unregister_queueh]hblk_unregister_queue}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj$hMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubh)}(hhh]j)}(hgendiskh]hgendisk}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsmodnameN classnameNj] j` )}jc ]jf )}jY j9sbc.blk_unregister_queueasbuh1hhjOubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj$hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj$hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj$hMhj hhubj)}(hhh]h)}(h#counterpart of blk_register_queue()h]h#counterpart of blk_register_queue()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj$hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct gendisk *disk`` Disk of which the request queue should be unregistered from sysfs. **Note** the caller is responsible for guaranteeing that this function is called after blk_register_queue() has finished.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chM hjubj )}(hhh]j)}(h\``struct gendisk *disk`` Disk of which the request queue should be unregistered from sysfs. h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chMhjubj2)}(hhh]h)}(hBDisk of which the request queue should be unregistered from sysfs.h]hBDisk of which the request queue should be unregistered from sysfs.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hjRh]hNote}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chM hjubh)}(hpthe caller is responsible for guaranteeing that this function is called after blk_register_queue() has finished.h]hpthe caller is responsible for guaranteeing that this function is called after blk_register_queue() has finished.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:321: ./block/blk-sysfs.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $blk_set_stacking_limits (C function)c.blk_set_stacking_limitshNtauh1hhjEhhhNhNubj)}(hhh](j)}(h7void blk_set_stacking_limits (struct queue_limits *lim)h]j)}(h6void blk_set_stacking_limits(struct queue_limits *lim)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hblk_set_stacking_limitsh]j)}(hblk_set_stacking_limitsh]hblk_set_stacking_limits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct queue_limits *lim)h]j)}(hstruct queue_limits *limh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_set_stacking_limitsasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlimh]hlim}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h'set default limits for stacking devicesh]h'set default limits for stacking devices}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chKhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct queue_limits *lim`` the queue_limits structure to reset **Description** Prepare queue limits for applying limits from underlying devices using blk_stack_limits().h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chK#hjsubj )}(hhh]j)}(hA``struct queue_limits *lim`` the queue_limits structure to reset h](j)}(h``struct queue_limits *lim``h]j)}(hjh]hstruct queue_limits *lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chK hjubj2)}(hhh]h)}(h#the queue_limits structure to reseth]h#the queue_limits structure to reset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK hjubah}(h]h ]h"]h$]h&]uh1j hjsubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chK"hjsubh)}(hZPrepare queue limits for applying limits from underlying devices using blk_stack_limits().h]hZPrepare queue limits for applying limits from underlying devices using blk_stack_limits().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chK!hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'queue_limits_commit_update (C function)c.queue_limits_commit_updatehNtauh1hhjEhhhNhNubj)}(hhh](j)}(hRint queue_limits_commit_update (struct request_queue *q, struct queue_limits *lim)h]j)}(hQint queue_limits_commit_update(struct request_queue *q, struct queue_limits *lim)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj&hMubj{)}(hqueue_limits_commit_updateh]j)}(hqueue_limits_commit_updateh]hqueue_limits_commit_update}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj&hMubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubh)}(hhh]j)}(h request_queueh]h request_queue}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjumodnameN classnameNj] j` )}jc ]jf )}jY j;sbc.queue_limits_commit_updateasbuh1hhjQubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hj(lh]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hstruct queue_limits *limh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.queue_limits_commit_updateasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj&hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj&hMhj hhubj)}(hhh]h)}(h'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct request_queue *q`` queue to update ``struct queue_limits *lim`` limits to apply **Description** Apply the limits in **lim** that were obtained from queue_limits_start_update() and updated by the caller to **q**. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means. Returns 0 if successful, else a negative error code.h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjcubj )}(hhh](j)}(h,``struct request_queue *q`` queue to update h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj2)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``struct queue_limits *lim`` limits to apply h](j)}(h``struct queue_limits *lim``h]j)}(hjh]hstruct queue_limits *lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj2)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjcubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjcubh)}(hApply the limits in **lim** that were obtained from queue_limits_start_update() and updated by the caller to **q**. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means.h](hApply the limits in }(hjhhhNhNubj)}(h**lim**h]hlim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhR that were obtained from queue_limits_start_update() and updated by the caller to }(hjhhhNhNubj)}(h**q**h]hq}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhe. The caller must have frozen the queue or ensure that there are no outstanding I/Os by other means.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjcubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .queue_limits_commit_update_frozen (C function)#c.queue_limits_commit_update_frozenhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hYint queue_limits_commit_update_frozen (struct request_queue *q, struct queue_limits *lim)h]j)}(hXint queue_limits_commit_update_frozen(struct request_queue *q, struct queue_limits *lim)h](j )}(hinth]hint}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjphhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chM>ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjphhhjhM>ubj{)}(h!queue_limits_commit_update_frozenh]j)}(h!queue_limits_commit_update_frozenh]h!queue_limits_commit_update_frozen}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhjhM>ubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb#c.queue_limits_commit_update_frozenasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj(lh]hq}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *limh](j)}(hj h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjBmodnameN classnameNj] j` )}jc ]j#c.queue_limits_commit_update_frozenasbuh1hhjubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlimh]hlim}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjphhhjhM>ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjhM>ubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1jhjhM>hjihhubj)}(hhh]h)}(h'commit an atomic update of queue limitsh]h'commit an atomic update of queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chM>hjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hXz**Parameters** ``struct request_queue *q`` queue to update ``struct queue_limits *lim`` limits to apply **Description** Apply the limits in **lim** that were obtained from queue_limits_start_update() and updated with the new values by the caller to **q**. Freezes the queue before the update and unfreezes it after. Returns 0 if successful, else a negative error code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMBhjubj )}(hhh](j)}(h,``struct request_queue *q`` queue to update h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chM?hjubj2)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjubj)}(h-``struct queue_limits *lim`` limits to apply h](j)}(h``struct queue_limits *lim``h]j)}(hjh]hstruct queue_limits *lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chM@hjubj2)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM@hj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hM@hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMBhjubh)}(hApply the limits in **lim** that were obtained from queue_limits_start_update() and updated with the new values by the caller to **q**. Freezes the queue before the update and unfreezes it after.h](hApply the limits in }(hjnhhhNhNubj)}(h**lim**h]hlim}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubhf that were obtained from queue_limits_start_update() and updated with the new values by the caller to }(hjnhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh>. Freezes the queue before the update and unfreezes it after.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMAhjubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMEhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j queue_limits_set (C function)c.queue_limits_sethNtauh1hhjEhhhNhNubj)}(hhh](j)}(hHint queue_limits_set (struct request_queue *q, struct queue_limits *lim)h]j)}(hGint queue_limits_set(struct request_queue *q, struct queue_limits *lim)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMWubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMWubj{)}(hqueue_limits_seth]j)}(hqueue_limits_seth]hqueue_limits_set}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMWubj)}(h3(struct request_queue *q, struct queue_limits *lim)h](j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubh)}(hhh]j)}(h request_queueh]h request_queue}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-modnameN classnameNj] j` )}jc ]jf )}jY jsbc.queue_limits_setasbuh1hhj ubj2)}(h h]h }(hjKhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hj(lh]hq}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct queue_limits *limh](j)}(hj h]hstruct}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jGc.queue_limits_setasbuh1hhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hlimh]hlim}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMWubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMWubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMWhjhhubj)}(hhh]h)}(happly queue limits to queueh]happly queue limits to queue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMWubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX]**Parameters** ``struct request_queue *q`` queue to update ``struct queue_limits *lim`` limits to apply **Description** Apply the limits in **lim** that were freshly initialized to **q**. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead. Returns 0 if successful, else a negative error code.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chM[hjubj )}(hhh](j)}(h,``struct request_queue *q`` queue to update h](j)}(h``struct request_queue *q``h]j)}(hj@h]hstruct request_queue *q}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMXhj:ubj2)}(hhh]h)}(hqueue to updateh]hqueue to update}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMXhjVubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMXhj7ubj)}(h-``struct queue_limits *lim`` limits to apply h](j)}(h``struct queue_limits *lim``h]j)}(hjyh]hstruct queue_limits *lim}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMYhjsubj2)}(hhh]h)}(hlimits to applyh]hlimits to apply}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMYhjubah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhjhMYhj7ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chM[hjubh)}(hApply the limits in **lim** that were freshly initialized to **q**. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead.h](hApply the limits in }(hjhhhNhNubj)}(h**lim**h]hlim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" that were freshly initialized to }(hjhhhNhNubj)}(h**q**h]hq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhe. To update existing limits use queue_limits_start_update() and queue_limits_commit_update() instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMZhjubh)}(h4Returns 0 if successful, else a negative error code.h]h4Returns 0 if successful, else a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chM^hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_stack_limits (C function)c.blk_stack_limitshNtauh1hhjEhhhNhNubj)}(hhh](j)}(hUint blk_stack_limits (struct queue_limits *t, struct queue_limits *b, sector_t start)h]j)}(hTint blk_stack_limits(struct queue_limits *t, struct queue_limits *b, sector_t start)h](j )}(hinth]hint}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(hhhj:hMubj{)}(hblk_stack_limitsh]j)}(hblk_stack_limitsh]hblk_stack_limits}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj:hMubj)}(h@(struct queue_limits *t, struct queue_limits *b, sector_t start)h](j)}(hstruct queue_limits *th](j)}(hj h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jOsbc.blk_stack_limitsasbuh1hhjeubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hjsh]ht}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hstruct queue_limits *bh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.blk_stack_limitsasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hb}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hsector_t starth](h)}(hhh]j)}(hsector_th]hsector_t}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjNmodnameN classnameNj] j` )}jc ]jc.blk_stack_limitsasbuh1hhjEubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hstarth]hstart}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj:hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj:hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj:hMhj!hhubj)}(hhh]h)}(h'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct queue_limits *t`` the stacking driver limits (top device) ``struct queue_limits *b`` the underlying queue limits (bottom, component device) ``sector_t start`` first data sector within component device **Description** This function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment. Returns 0 if the top and bottom queue_limits are compatible. The top device's block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj )}(hhh](j)}(hC``struct queue_limits *t`` the stacking driver limits (top device) h](j)}(h``struct queue_limits *t``h]j)}(hjh]hstruct queue_limits *t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj2)}(hhh]h)}(h'the stacking driver limits (top device)h]h'the stacking driver limits (top device)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hR``struct queue_limits *b`` the underlying queue limits (bottom, component device) h](j)}(h``struct queue_limits *b``h]j)}(hjh]hstruct queue_limits *b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj2)}(hhh]h)}(h6the underlying queue limits (bottom, component device)h]h6the underlying queue limits (bottom, component device)}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(h=``sector_t start`` first data sector within component device h](j)}(h``sector_t start``h]j)}(hjUh]hsector_t start}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjOubj2)}(hhh]h)}(h)first data sector within component deviceh]h)first data sector within component device}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj)}(hXThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment. Returns 0 if the top and bottom queue_limits are compatible. The top device's block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.h](h)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubh)}(hXaReturns 0 if the top and bottom queue_limits are compatible. The top device's block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.h]hXcReturns 0 if the top and bottom queue_limits are compatible. The top device’s block sizes and alignment offsets may be adjusted to ensure alignment with the bottom device. If no compatible sizes and alignments exist, -1 is returned and the resulting top queue_limits will have the misaligned flag set to indicate that the alignment_offset is undefined.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $queue_limits_stack_bdev (C function)c.queue_limits_stack_bdevhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hrvoid queue_limits_stack_bdev (struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h]j)}(hqvoid queue_limits_stack_bdev(struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hqueue_limits_stack_bdevh]j)}(hqueue_limits_stack_bdevh]hqueue_limits_stack_bdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(hU(struct queue_limits *t, struct block_device *bdev, sector_t offset, const char *pfx)h](j)}(hstruct queue_limits *th](j)}(hj h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjKmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.queue_limits_stack_bdevasbuh1hhj'ubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hjsh]ht}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jec.queue_limits_stack_bdevasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hsector_t offseth](h)}(hhh]j)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jec.queue_limits_stack_bdevasbuh1hhjubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hoffseth]hoffset}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hconst char *pfxh](j)}(hjh]hconst}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj )}(hcharh]hchar}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hpfxh]hpfx}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h'adjust queue_limits for stacked devicesh]h'adjust queue_limits for stacked devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct queue_limits *t`` the stacking driver limits (top device) ``struct block_device *bdev`` the underlying block device (bottom) ``sector_t offset`` offset to beginning of data within component device ``const char *pfx`` prefix to use for warnings logged **Description** This function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj )}(hhh](j)}(hC``struct queue_limits *t`` the stacking driver limits (top device) h](j)}(h``struct queue_limits *t``h]j)}(hjh]hstruct queue_limits *t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj2)}(hhh]h)}(h'the stacking driver limits (top device)h]h'the stacking driver limits (top device)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hC``struct block_device *bdev`` the underlying block device (bottom) h](j)}(h``struct block_device *bdev``h]j)}(hj<h]hstruct block_device *bdev}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhj6ubj2)}(hhh]h)}(h$the underlying block device (bottom)h]h$the underlying block device (bottom)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubj)}(hH``sector_t offset`` offset to beginning of data within component device h](j)}(h``sector_t offset``h]j)}(hjuh]hsector_t offset}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjoubj2)}(hhh]h)}(h3offset to beginning of data within component deviceh]h3offset to beginning of data within component device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``const char *pfx`` prefix to use for warnings logged h](j)}(h``const char *pfx``h]j)}(hjh]hconst char *pfx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj2)}(hhh]h)}(h!prefix to use for warnings loggedh]h!prefix to use for warnings logged}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]h)}(hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.h]hXrThis function is used by stacking drivers like MD and DM to ensure that all component devices have compatible block sizes and alignments. The stacking driver must provide a queue_limits struct (top) and then iteratively call the stacking function for all component (bottom) devices. The stacking function will attempt to combine the values and ensure proper alignment.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )queue_limits_stack_integrity (C function)c.queue_limits_stack_integrityhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hRbool queue_limits_stack_integrity (struct queue_limits *t, struct queue_limits *b)h]j)}(hQbool queue_limits_stack_integrity(struct queue_limits *t, struct queue_limits *b)h](j )}(hj8h]hbool}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4hhhjEhMubj{)}(hqueue_limits_stack_integrityh]j)}(hqueue_limits_stack_integrityh]hqueue_limits_stack_integrity}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj4hhhjEhMubj)}(h0(struct queue_limits *t, struct queue_limits *b)h](j)}(hstruct queue_limits *th](j)}(hj h]hstruct}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jZsbc.queue_limits_stack_integrityasbuh1hhjpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hjsh]ht}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubj)}(hstruct queue_limits *bh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h queue_limitsh]h queue_limits}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.queue_limits_stack_integrityasbuh1hhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hb}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubeh}(h]h ]h"]h$]h&]jjuh1jhj4hhhjEhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj0hhhjEhMubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1jhjEhMhj-hhubj)}(hhh]h)}(hstack integrity profileh]hstack integrity profile}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjbhhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct queue_limits *t`` target queue limits ``struct queue_limits *b`` base queue limits **Description** Check if the integrity profile in the **b** can be stacked into the target **t**. Stacking is possible if either: a) does not have any integrity information stacked into it yet b) the integrity profile in **b** is identical to the one in **t** If **b** can be stacked into **t**, return ``true``. Else return ``false`` and clear the integrity information in **t**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj )}(hhh](j)}(h/``struct queue_limits *t`` target queue limits h](j)}(h``struct queue_limits *t``h]j)}(hjh]hstruct queue_limits *t}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj2)}(hhh]h)}(htarget queue limitsh]htarget queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``struct queue_limits *b`` base queue limits h](j)}(h``struct queue_limits *b``h]j)}(hjh]hstruct queue_limits *b}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj2)}(hhh]h)}(hbase queue limitsh]hbase queue limits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubh)}(hrCheck if the integrity profile in the **b** can be stacked into the target **t**. Stacking is possible if either:h](h&Check if the integrity profile in the }(hj0hhhNhNubj)}(h**b**h]hb}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh can be stacked into the target }(hj0hhhNhNubj)}(h**t**h]ht}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh". Stacking is possible if either:}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj)}(ha) does not have any integrity information stacked into it yet b) the integrity profile in **b** is identical to the one in **t** h]jM)}(hhh](j)}(h;does not have any integrity information stacked into it yeth]h)}(hjlh]h;does not have any integrity information stacked into it yet}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjjubah}(h]h ]h"]h$]h&]uh1jhjgubj)}(h@the integrity profile in **b** is identical to the one in **t** h]h)}(h?the integrity profile in **b** is identical to the one in **t**h](hthe integrity profile in }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is identical to the one in }(hjhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]jMjjMhjMj?uh1jMhjcubah}(h]h ]h"]h$]h&]uh1jhj{hMhjubh)}(hyIf **b** can be stacked into **t**, return ``true``. Else return ``false`` and clear the integrity information in **t**.h](hIf }(hjhhhNhNubj)}(h**b**h]hb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh can be stacked into }(hjhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh , return }(hjhhhNhNubj)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. Else return }(hjhhhNhNubj)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh( and clear the integrity information in }(hjhhhNhNubj)}(h**t**h]ht}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  blk_set_queue_depth (C function)c.blk_set_queue_depthhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hFvoid blk_set_queue_depth (struct request_queue *q, unsigned int depth)h]j)}(hEvoid blk_set_queue_depth(struct request_queue *q, unsigned int depth)h](j )}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLhhhj^hMubj{)}(hblk_set_queue_depthh]j)}(hblk_set_queue_depthh]hblk_set_queue_depth}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjLhhhj^hMubj)}(h-(struct request_queue *q, unsigned int depth)h](j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h request_queueh]h request_queue}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jssbc.blk_set_queue_depthasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj(lh]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int depthh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hdepthh]hdepth}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjLhhhj^hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjHhhhj^hMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1jhj^hMhjEhhubj)}(hhh]h)}(h1tell the block layer about the device queue depthh]h1tell the block layer about the device queue depth}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhj]hhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1jhhhjEhNhNubj)}(ht**Parameters** ``struct request_queue *q`` the request queue for the device ``unsigned int depth`` queue depthh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhj|ubj )}(hhh](j)}(h=``struct request_queue *q`` the request queue for the device h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj2)}(hhh]h)}(h the request queue for the deviceh]h the request queue for the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h"``unsigned int depth`` queue depthh](j)}(h``unsigned int depth``h]j)}(hjh]hunsigned int depth}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubj2)}(hhh]h)}(h queue depthh]h queue depth}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:324: ./block/blk-settings.chMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blkdev_issue_flush (C function)c.blkdev_issue_flushhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h2int blkdev_issue_flush (struct block_device *bdev)h]j)}(h1int blkdev_issue_flush(struct block_device *bdev)h](j )}(hinth]hint}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-flush.chMubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0hhhjBhMubj{)}(hblkdev_issue_flushh]j)}(hblkdev_issue_flushh]hblkdev_issue_flush}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhhjBhMubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubh)}(hhh]j)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jWsbc.blkdev_issue_flushasbuh1hhjmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjiubah}(h]h ]h"]h$]h&]jjuh1jhj0hhhjBhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjBhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1jhjBhMhj)hhubj)}(hhh]h)}(h queue a flushh]h queue a flush}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-flush.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct block_device *bdev`` blockdev to issue flush for **Description** Issue a flush for the block device in question.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-flush.chMhjubj )}(hhh]j)}(h:``struct block_device *bdev`` blockdev to issue flush for h](j)}(h``struct block_device *bdev``h]j)}(hj5h]hstruct block_device *bdev}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-flush.chMhj/ubj2)}(hhh]h)}(hblockdev to issue flush forh]hblockdev to issue flush for}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-flush.chMhjubj)}(h/Issue a flush for the block device in question.h]h)}(hjh]h/Issue a flush for the block device in question.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:327: ./block/blk-flush.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !blkdev_issue_discard (C function)c.blkdev_issue_discardhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hhint blkdev_issue_discard (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h]j)}(hgint blkdev_issue_discard(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKKubj{)}(hblkdev_issue_discardh]j)}(hblkdev_issue_discardh]hblkdev_issue_discard}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKKubj)}(hO(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)h](j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blkdev_issue_discardasbuh1hhjubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbdevh]hbdev}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t sectorh](h)}(hhh]j)}(hsector_th]hsector_t}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]j5c.blkdev_issue_discardasbuh1hhjiubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(hsectorh]hsector}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t nr_sectsh](h)}(hhh]j)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j5c.blkdev_issue_discardasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j5c.blkdev_issue_discardasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfp_maskh]hgfp_mask}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKKhjhhubj)}(hhh]h)}(hqueue a discardh]hqueue a discard}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKKhjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1jhhhjEhNhNubj)}(hX/**Parameters** ``struct block_device *bdev`` blockdev to issue discard for ``sector_t sector`` start sector ``sector_t nr_sects`` number of sectors to discard ``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) **Description** Issue a discard request for the sectors in question.h](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKOhjrubj )}(hhh](j)}(h<``struct block_device *bdev`` blockdev to issue discard for h](j)}(h``struct block_device *bdev``h]j)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKLhjubj2)}(hhh]h)}(hblockdev to issue discard forh]hblockdev to issue discard for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKLhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKLhjubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hjh]hsector_t sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKMhjubj2)}(hhh]h)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(h3``sector_t nr_sects`` number of sectors to discard h](j)}(h``sector_t nr_sects``h]j)}(hj h]hsector_t nr_sects}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKNhjubj2)}(hhh]h)}(hnumber of sectors to discardh]hnumber of sectors to discard}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjubj)}(h;``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) h](j)}(h``gfp_t gfp_mask``h]j)}(hjBh]hgfp_t gfp_mask}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKOhj<ubj2)}(hhh]h)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhKOhjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKOhjubeh}(h]h ]h"]h$]h&]uh1j hjrubh)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKQhjrubj)}(h4Issue a discard request for the sectors in question.h]h)}(hjh]h4Issue a discard request for the sectors in question.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKQhjubah}(h]h ]h"]h$]h&]uh1jhjhKQhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #__blkdev_issue_zeroout (C function)c.__blkdev_issue_zeroouthNtauh1hhjEhhhNhNubj)}(hhh](j)}(hint __blkdev_issue_zeroout (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct bio **biop, unsigned flags)h]j)}(hint __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct bio **biop, unsigned flags)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h__blkdev_issue_zeroouth]j)}(h__blkdev_issue_zeroouth]h__blkdev_issue_zeroout}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(hr(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct bio **biop, unsigned flags)h](j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h block_deviceh]h block_device}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj(modnameN classnameNj] j` )}jc ]jf )}jY jsbc.__blkdev_issue_zerooutasbuh1hhjubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbdevh]hbdev}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t sectorh](h)}(hhh]j)}(hsector_th]hsector_t}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jBc.__blkdev_issue_zerooutasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hsectorh]hsector}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hsector_t nr_sectsh](h)}(hhh]j)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jBc.__blkdev_issue_zerooutasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnr_sectsh]hnr_sects}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jBc.__blkdev_issue_zerooutasbuh1hhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hgfp_maskh]hgfp_mask}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct bio **bioph](j)}(hj h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubh)}(hhh]j)}(hbioh]hbio}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]jBc.__blkdev_issue_zerooutasbuh1hhjNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hbioph]hbiop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h(generate number of zero filed write biosh]h(generate number of zero filed write bios}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct block_device *bdev`` blockdev to issue ``sector_t sector`` start sector ``sector_t nr_sects`` number of sectors to write ``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) ``struct bio **biop`` pointer to anchor bio ``unsigned flags`` controls detailed behavior **Description** Zero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. If a device is using logical block provisioning, the underlying space will not be released if ``flags`` contains BLKDEV_ZERO_NOUNMAP. If ``flags`` contains BLKDEV_ZERO_NOFALLBACK, the function will return -EOPNOTSUPP if no explicit hardware offload for zeroing is provided.h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhj1ubj )}(hhh](j)}(h0``struct block_device *bdev`` blockdev to issue h](j)}(h``struct block_device *bdev``h]j)}(hjVh]hstruct block_device *bdev}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhjPubj2)}(hhh]h)}(hblockdev to issueh]hblockdev to issue}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjlubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjMubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hjh]hsector_t sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhjubj2)}(hhh]h)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjMubj)}(h1``sector_t nr_sects`` number of sectors to write h](j)}(h``sector_t nr_sects``h]j)}(hjh]hsector_t nr_sects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhjubj2)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjMubj)}(h;``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) h](j)}(h``gfp_t gfp_mask``h]j)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhjubj2)}(hhh]h)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjMubj)}(h,``struct bio **biop`` pointer to anchor bio h](j)}(h``struct bio **biop``h]j)}(hj:h]hstruct bio **biop}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhj4ubj2)}(hhh]h)}(hpointer to anchor bioh]hpointer to anchor bio}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhKhjPubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhKhjMubj)}(h.``unsigned flags`` controls detailed behavior h](j)}(h``unsigned flags``h]j)}(hjsh]hunsigned flags}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhjmubj2)}(hhh]h)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhKhjMubeh}(h]h ]h"]h$]h&]uh1j hj1ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhj1ubj)}(hXyZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. If a device is using logical block provisioning, the underlying space will not be released if ``flags`` contains BLKDEV_ZERO_NOUNMAP. If ``flags`` contains BLKDEV_ZERO_NOFALLBACK, the function will return -EOPNOTSUPP if no explicit hardware offload for zeroing is provided.h](h)}(heZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device.h]heZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhjubh)}(hIf a device is using logical block provisioning, the underlying space will not be released if ``flags`` contains BLKDEV_ZERO_NOUNMAP.h](h^If a device is using logical block provisioning, the underlying space will not be released if }(hjhhhNhNubj)}(h ``flags``h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh contains BLKDEV_ZERO_NOUNMAP.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chKhjubh)}(hIf ``flags`` contains BLKDEV_ZERO_NOFALLBACK, the function will return -EOPNOTSUPP if no explicit hardware offload for zeroing is provided.h](hIf }(hjhhhNhNubj)}(h ``flags``h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh contains BLKDEV_ZERO_NOFALLBACK, the function will return -EOPNOTSUPP if no explicit hardware offload for zeroing is provided.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chMhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !blkdev_issue_zeroout (C function)c.blkdev_issue_zeroouthNtauh1hhjEhhhNhNubj)}(hhh](j)}(hxint blkdev_issue_zeroout (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)h]j)}(hwint blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)h](j )}(hinth]hint}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;hhhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chMubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;hhhjMhMubj{)}(hblkdev_issue_zeroouth]j)}(hblkdev_issue_zeroouth]hblkdev_issue_zeroout}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;hhhjMhMubj)}(h_(struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned flags)h](j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubh)}(hhh]j)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jbsbc.blkdev_issue_zerooutasbuh1hhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hsector_t sectorh](h)}(hhh]j)}(hsector_th]hsector_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.blkdev_issue_zerooutasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsectorh]hsector}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hsector_t nr_sectsh](h)}(hhh]j)}(hsector_th]hsector_t}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj;modnameN classnameNj] j` )}jc ]jc.blkdev_issue_zerooutasbuh1hhj2ubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hnr_sectsh]hnr_sects}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hgfp_t gfp_maskh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.blkdev_issue_zerooutasbuh1hhjzubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hgfp_maskh]hgfp_mask}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubj)}(hunsigned flagsh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjtubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhjMhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhjMhMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jhjMhMhj4hhubj)}(hhh]h)}(hzero-fill a block rangeh]hzero-fill a block range}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjMhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj$jj$jjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct block_device *bdev`` blockdev to write ``sector_t sector`` start sector ``sector_t nr_sects`` number of sectors to write ``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) ``unsigned flags`` controls detailed behavior **Description** Zero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h](h)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chMhj(ubj )}(hhh](j)}(h0``struct block_device *bdev`` blockdev to write h](j)}(h``struct block_device *bdev``h]j)}(hjMh]hstruct block_device *bdev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chMhjGubj2)}(hhh]h)}(hblockdev to writeh]hblockdev to write}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubj)}(h!``sector_t sector`` start sector h](j)}(h``sector_t sector``h]j)}(hjh]hsector_t sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chMhjubj2)}(hhh]h)}(h start sectorh]h start sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubj)}(h1``sector_t nr_sects`` number of sectors to write h](j)}(h``sector_t nr_sects``h]j)}(hjh]hsector_t nr_sects}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chMhjubj2)}(hhh]h)}(hnumber of sectors to writeh]hnumber of sectors to write}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjDubj)}(h;``gfp_t gfp_mask`` memory allocation flags (for bio_alloc) h](j)}(h``gfp_t gfp_mask``h]j)}(hjh]hgfp_t gfp_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chMhjubj2)}(hhh]h)}(h'memory allocation flags (for bio_alloc)h]h'memory allocation flags (for bio_alloc)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjDubj)}(h.``unsigned flags`` controls detailed behavior h](j)}(h``unsigned flags``h]j)}(hj1h]hunsigned flags}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chM hj+ubj2)}(hhh]h)}(hcontrols detailed behaviorh]hcontrols detailed behavior}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjGubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhM hjDubeh}(h]h ]h"]h$]h&]uh1j hj(ubh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chM"hj(ubj)}(hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h]h)}(hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for ``flags``.h](hZero-fill a block range, either using hardware offload or by explicitly writing zeroes to the device. See __blkdev_issue_zeroout() for the valid values for }(hjhhhNhNubj)}(h ``flags``h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:330: ./block/blk-lib.chM"hjubah}(h]h ]h"]h$]h&]uh1jhjhM"hj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_trace_ioctl (C function)c.blk_trace_ioctlhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hOint blk_trace_ioctl (struct block_device *bdev, unsigned cmd, char __user *arg)h]j)}(hNint blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_trace_ioctlh]j)}(hblk_trace_ioctlh]hblk_trace_ioctl}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h;(struct block_device *bdev, unsigned cmd, char __user *arg)h](j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h block_deviceh]h block_device}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_trace_ioctlasbuh1hhjubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbdevh]hbdev}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h unsigned cmdh](j )}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hcmdh]hcmd}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hchar __user *argh](j )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh__user}(hjhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hargh]harg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h)handle the ioctls associated with tracingh]h)handle the ioctls associated with tracing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct block_device *bdev`` the block device ``unsigned cmd`` the ioctl cmd ``char __user *arg`` the argument data, if anyh](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhj2ubj )}(hhh](j)}(h/``struct block_device *bdev`` the block device h](j)}(h``struct block_device *bdev``h]j)}(hjWh]hstruct block_device *bdev}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjQubj2)}(hhh]h)}(hthe block deviceh]hthe block device}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjNubj)}(h``unsigned cmd`` the ioctl cmd h](j)}(h``unsigned cmd``h]j)}(hjh]h unsigned cmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(h the ioctl cmdh]h the ioctl cmd}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubj)}(h.``char __user *arg`` the argument data, if anyh](j)}(h``char __user *arg``h]j)}(hjh]hchar __user *arg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(hthe argument data, if anyh]hthe argument data, if any}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjNubeh}(h]h ]h"]h$]h&]uh1j hj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_trace_shutdown (C function)c.blk_trace_shutdownhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h1void blk_trace_shutdown (struct request_queue *q)h]j)}(h0void blk_trace_shutdown(struct request_queue *q)h](j )}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj1hMubj{)}(hblk_trace_shutdownh]j)}(hblk_trace_shutdownh]hblk_trace_shutdown}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj1hMubj)}(h(struct request_queue *q)h]j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubh)}(hhh]j)}(h request_queueh]h request_queue}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jFsbc.blk_trace_shutdownasbuh1hhj\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hj(lh]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj1hMhjhhubj)}(hhh]h)}(h!stop and cleanup trace structuresh]h!stop and cleanup trace structures}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hZ**Parameters** ``struct request_queue *q`` the request queue associated with the deviceh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj )}(hhh]j)}(hH``struct request_queue *q`` the request queue associated with the deviceh](j)}(h``struct request_queue *q``h]j)}(hj#h]hstruct request_queue *q}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(h,the request queue associated with the deviceh]h,the request queue associated with the device}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_add_trace_rq (C function)c.blk_add_trace_rqhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hivoid blk_add_trace_rq (struct request *rq, blk_status_t error, unsigned int nr_bytes, u64 what, u64 cgid)h]j)}(hhvoid blk_add_trace_rq(struct request *rq, blk_status_t error, unsigned int nr_bytes, u64 what, u64 cgid)h](j )}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhjhMubj{)}(hblk_add_trace_rqh]j)}(hblk_add_trace_rqh]hblk_add_trace_rq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhjhMubj)}(hS(struct request *rq, blk_status_t error, unsigned int nr_bytes, u64 what, u64 cgid)h](j)}(hstruct request *rqh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_add_trace_rqasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hblk_status_t errorh](h)}(hhh]j)}(h blk_status_th]h blk_status_t}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj1modnameN classnameNj] j` )}jc ]jc.blk_add_trace_rqasbuh1hhj(ubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(ubj)}(herrorh]herror}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int nr_bytesh](j )}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hnr_bytesh]hnr_bytes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 whath](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.blk_add_trace_rqasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hwhath]hwhat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 cgidh](h)}(hhh]j)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.blk_add_trace_rqasbuh1hhj ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hcgidh]hcgid}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjrhhubj)}(hhh]h)}(h)Add a trace for a request oriented actionh]h)Add a trace for a request oriented action}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhjEhNhNubj)}(hX7**Parameters** ``struct request *rq`` the source request ``blk_status_t error`` return status to log ``unsigned int nr_bytes`` number of completed bytes ``u64 what`` the action ``u64 cgid`` the cgroup info **Description** Records an action against a request. Will log the bio offset + size.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj )}(hhh](j)}(h*``struct request *rq`` the source request h](j)}(h``struct request *rq``h]j)}(hjh]hstruct request *rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(hthe source requesth]hthe source request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h,``blk_status_t error`` return status to log h](j)}(h``blk_status_t error``h]j)}(hjh]hblk_status_t error}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(hreturn status to logh]hreturn status to log}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``unsigned int nr_bytes`` number of completed bytes h](j)}(h``unsigned int nr_bytes``h]j)}(hjh]hunsigned int nr_bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(hnumber of completed bytesh]hnumber of completed bytes}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(h``u64 what`` the action h](j)}(h ``u64 what``h]j)}(hjRh]hu64 what}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjLubj2)}(hhh]h)}(h the actionh]h the action}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1j1hjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjubj)}(h``u64 cgid`` the cgroup info h](j)}(h ``u64 cgid``h]j)}(hjh]hu64 cgid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(hthe cgroup infoh]hthe cgroup info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj)}(hDRecords an action against a request. Will log the bio offset + size.h]h)}(hjh]hDRecords an action against a request. Will log the bio offset + size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_add_trace_bio (C function)c.blk_add_trace_biohNtauh1hhjEhhhNhNubj)}(hhh](j)}(hVvoid blk_add_trace_bio (struct request_queue *q, struct bio *bio, u64 what, int error)h]j)}(hUvoid blk_add_trace_bio(struct request_queue *q, struct bio *bio, u64 what, int error)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMCubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj"hMCubj{)}(hblk_add_trace_bioh]j)}(hblk_add_trace_bioh]hblk_add_trace_bio}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj"hMCubj)}(h?(struct request_queue *q, struct bio *bio, u64 what, int error)h](j)}(hstruct request_queue *qh](j)}(hj h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubh)}(hhh]j)}(h request_queueh]h request_queue}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jf )}jY j7sbc.blk_add_trace_bioasbuh1hhjMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hj(lh]hq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.blk_add_trace_bioasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hu64 whath](h)}(hhh]j)}(hu64h]hu64}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7modnameN classnameNj] j` )}jc ]jc.blk_add_trace_bioasbuh1hhj.ubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hwhath]hwhat}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(h int errorh](j )}(hinth]hint}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(herrorh]herror}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hMCubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj"hMChj hhubj)}(hhh]h)}(h%Add a trace for a bio oriented actionh]h%Add a trace for a bio oriented action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMChjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct request_queue *q`` queue the io is for ``struct bio *bio`` the source bio ``u64 what`` the action ``int error`` error, if any **Description** Records an action against a bio. Will log the bio offset + size.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMGhjubj )}(hhh](j)}(h0``struct request_queue *q`` queue the io is for h](j)}(h``struct request_queue *q``h]j)}(hjh]hstruct request_queue *q}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMDhjubj2)}(hhh]h)}(hqueue the io is forh]hqueue the io is for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubj)}(h#``struct bio *bio`` the source bio h](j)}(h``struct bio *bio``h]j)}(hj:h]hstruct bio *bio}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMEhj4ubj2)}(hhh]h)}(hthe source bioh]hthe source bio}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMEhjPubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMEhjubj)}(h``u64 what`` the action h](j)}(h ``u64 what``h]j)}(hjsh]hu64 what}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMFhjmubj2)}(hhh]h)}(h the actionh]h the action}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjubj)}(h``int error`` error, if any h](j)}(h ``int error``h]j)}(hjh]h int error}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMGhjubj2)}(hhh]h)}(h error, if anyh]h error, if any}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMIhjubj)}(h@Records an action against a bio. Will log the bio offset + size.h]h)}(hjh]h@Records an action against a bio. Will log the bio offset + size.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMIhjubah}(h]h ]h"]h$]h&]uh1jhjhMIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $blk_add_trace_bio_remap (C function)c.blk_add_trace_bio_remaphNtauh1hhjEhhhNhNubj)}(hhh](j)}(hVvoid blk_add_trace_bio_remap (void *ignore, struct bio *bio, dev_t dev, sector_t from)h]j)}(hUvoid blk_add_trace_bio_remap(void *ignore, struct bio *bio, dev_t dev, sector_t from)h](j )}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1hhhjChMubj{)}(hblk_add_trace_bio_remaph]j)}(hblk_add_trace_bio_remaph]hblk_add_trace_bio_remap}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhjChMubj)}(h9(void *ignore, struct bio *bio, dev_t dev, sector_t from)h](j)}(h void *ignoreh](j )}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hignoreh]hignore}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(hstruct bio *bioh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hbioh]hbio}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jXsbc.blk_add_trace_bio_remapasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hbioh]hbio}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h dev_t devh](h)}(hhh]j)}(hdev_th]hdev_t}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj+modnameN classnameNj] j` )}jc ]jc.blk_add_trace_bio_remapasbuh1hhj"ubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj"ubj)}(hdevh]hdev}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubj)}(h sector_t fromh](h)}(hhh]j)}(hsector_th]hsector_t}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsmodnameN classnameNj] j` )}jc ]jc.blk_add_trace_bio_remapasbuh1hhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhjChMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj-hhhjChMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhjChMhj*hhubj)}(hhh]h)}(h%Add a trace for a bio-remap operationh]h%Add a trace for a bio-remap operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj*hhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX **Parameters** ``void *ignore`` trace callback data parameter (not used) ``struct bio *bio`` the source bio ``dev_t dev`` source device ``sector_t from`` source sector **Description** Called after a bio is remapped to a different device and/or sector.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj )}(hhh](j)}(h:``void *ignore`` trace callback data parameter (not used) h](j)}(h``void *ignore``h]j)}(hjh]h void *ignore}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``struct bio *bio`` the source bio h](j)}(h``struct bio *bio``h]j)}(hjAh]hstruct bio *bio}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhj;ubj2)}(hhh]h)}(hthe source bioh]hthe source bio}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubj)}(h``dev_t dev`` source device h](j)}(h ``dev_t dev``h]j)}(hjzh]h dev_t dev}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjtubj2)}(hhh]h)}(h source deviceh]h source device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hjh]h sector_t from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj2)}(hhh]h)}(h source sectorh]h source sector}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubh)}(hCCalled after a bio is remapped to a different device and/or sector.h]hCCalled after a bio is remapped to a different device and/or sector.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #blk_add_trace_rq_remap (C function)c.blk_add_trace_rq_remaphNtauh1hhjEhhhNhNubj)}(hhh](j)}(hXvoid blk_add_trace_rq_remap (void *ignore, struct request *rq, dev_t dev, sector_t from)h]j)}(hWvoid blk_add_trace_rq_remap(void *ignore, struct request *rq, dev_t dev, sector_t from)h](j )}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/hhhjAhMubj{)}(hblk_add_trace_rq_remaph]j)}(hblk_add_trace_rq_remaph]hblk_add_trace_rq_remap}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/hhhjAhMubj)}(h<(void *ignore, struct request *rq, dev_t dev, sector_t from)h](j)}(h void *ignoreh](j )}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hignoreh]hignore}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(hstruct request *rqh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrequesth]hrequest}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jVsbc.blk_add_trace_rq_remapasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrqh]hrq}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(h dev_t devh](h)}(hhh]j)}(hdev_th]hdev_t}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj)modnameN classnameNj] j` )}jc ]jc.blk_add_trace_rq_remapasbuh1hhj ubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hdevh]hdev}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(h sector_t fromh](h)}(hhh]j)}(hsector_th]hsector_t}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jc.blk_add_trace_rq_remapasbuh1hhjhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhj/hhhjAhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1jhjAhMhj(hhubj)}(hhh]h)}(h)Add a trace for a request-remap operationh]h)Add a trace for a request-remap operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX **Parameters** ``void *ignore`` trace callback data parameter (not used) ``struct request *rq`` the source request ``dev_t dev`` target device ``sector_t from`` source sector **Description** Device mapper remaps request to other devices. Add a trace for that action.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj )}(hhh](j)}(h:``void *ignore`` trace callback data parameter (not used) h](j)}(h``void *ignore``h]j)}(hj h]h void *ignore}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhj ubj2)}(hhh]h)}(h(trace callback data parameter (not used)h]h(trace callback data parameter (not used)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h*``struct request *rq`` the source request h](j)}(h``struct request *rq``h]j)}(hj? h]hstruct request *rq}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj= ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhj9 ubj2)}(hhh]h)}(hthe source requesth]hthe source request}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT hMhjU ubah}(h]h ]h"]h$]h&]uh1j1hj9 ubeh}(h]h ]h"]h$]h&]uh1jhjT hMhjubj)}(h``dev_t dev`` target device h](j)}(h ``dev_t dev``h]j)}(hjx h]h dev_t dev}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjr ubj2)}(hhh]h)}(h target deviceh]h target device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjr ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h ``sector_t from`` source sector h](j)}(h``sector_t from``h]j)}(hj h]h sector_t from}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhj ubj2)}(hhh]h)}(h source sectorh]h source sector}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhjubj)}(hKDevice mapper remaps request to other devices. Add a trace for that action.h]h)}(hKDevice mapper remaps request to other devices. Add a trace for that action.h]hKDevice mapper remaps request to other devices. Add a trace for that action.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:336: ./kernel/trace/blktrace.chMhj ubah}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j disk_release (C function)c.disk_releasehNtauh1hhjEhhhNhNubj)}(hhh](j)}(h&void disk_release (struct device *dev)h]j)}(h%void disk_release(struct device *dev)h](j )}(hvoidh]hvoid}(hj; hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7 hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./block/genhd.chMubj2)}(h h]h }(hjJ hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7 hhhjI hMubj{)}(h disk_releaseh]j)}(h disk_releaseh]h disk_release}(hj\ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7 hhhjI hMubj)}(h(struct device *dev)h]j)}(hstruct device *devh](j)}(hj h]hstruct}(hjx hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjt ubh)}(hhh]j)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY j^ sbc.disk_releaseasbuh1hhjt ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjt ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt ubj)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjp ubah}(h]h ]h"]h$]h&]jjuh1jhj7 hhhjI hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3 hhhjI hMubah}(h]j. ah ](jjeh"]h$]h&]jj)jhuh1jhjI hMhj0 hhubj)}(hhh]h)}(h/releases all allocated resources of the gendiskh]h/releases all allocated resources of the gendisk}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./block/genhd.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj0 hhhjI hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct device *dev`` the device representing this disk **Description** This function releases all allocated resources of the gendisk. Drivers which used device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk. **Context** can sleeph](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./block/genhd.chMhj ubj )}(hhh]j)}(h9``struct device *dev`` the device representing this disk h](j)}(h``struct device *dev``h]j)}(hj< h]hstruct device *dev}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj: ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./block/genhd.chMhj6 ubj2)}(hhh]h)}(h!the device representing this diskh]h!the device representing this disk}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ hMhjR ubah}(h]h ]h"]h$]h&]uh1j1hj6 ubeh}(h]h ]h"]h$]h&]uh1jhjQ hMhj3 ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjw h]h Description}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./block/genhd.chMhj ubh)}(h>This function releases all allocated resources of the gendisk.h]h>This function releases all allocated resources of the gendisk.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./block/genhd.chMhj ubh)}(hX@Drivers which used device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk.h]hX@Drivers which used device_add_disk() have a gendisk with a request_queue assigned. Since the request_queue sits on top of the gendisk for these drivers we also call blk_put_queue() for them, and we expect the request_queue refcount to reach 0 at this point, and so the request_queue will also be freed prior to the disk.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./block/genhd.chMhj ubh)}(h **Context**h]j)}(hj h]hContext}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./block/genhd.chMhj ubh)}(h can sleeph]h can sleep}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:339: ./block/genhd.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  bdev_count_inflight (C function)c.bdev_count_inflighthNtauh1hhjEhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hj hhhj hKubj )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhj hKubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hKubj{)}(hbdev_count_inflighth]j)}(hbdev_count_inflighth]hbdev_count_inflight}(hj/ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hKubj)}(h(struct block_device *part)h]j)}(hstruct block_device *parth](j)}(hj h]hstruct}(hjK hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG ubj2)}(h h]h }(hjX hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjG ubh)}(hhh]j)}(h block_deviceh]h block_device}(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjk modnameN classnameNj] j` )}jc ]jf )}jY j1 sbc.bdev_count_inflightasbuh1hhjG ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjG ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG ubj)}(hparth]hpart}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjC ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hKhj hhubj)}(hhh]h)}(h2get the number of inflight IOs for a block device.h]h2get the number of inflight IOs for a block device.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct block_device *part`` the block device. **Description** Inflight here means started IO accounting, from bdev_start_io_acct() for bio-based block device, and from blk_account_io_start() for rq-based block device.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKhj ubj )}(hhh]j)}(h0``struct block_device *part`` the block device. h](j)}(h``struct block_device *part``h]j)}(hj h]hstruct block_device *part}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKhj ubj2)}(hhh]h)}(hthe block device.h]hthe block device.}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$ hKhj% ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj$ hKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjJ h]h Description}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKhj ubh)}(hInflight here means started IO accounting, from bdev_start_io_acct() for bio-based block device, and from blk_account_io_start() for rq-based block device.h]hInflight here means started IO accounting, from bdev_start_io_acct() for bio-based block device, and from blk_account_io_start() for rq-based block device.}(hj` hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __register_blkdev (C function)c.__register_blkdevhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hWint __register_blkdev (unsigned int major, const char *name, void (*probe)(dev_t devt))h]j)}(hVint __register_blkdev(unsigned int major, const char *name, void (*probe)(dev_t devt))h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hKubj{)}(h__register_blkdevh]j)}(h__register_blkdevh]h__register_blkdev}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hKubj)}(hA(unsigned int major, const char *name, void (*probe)(dev_t devt))h](j)}(hunsigned int majorh](j )}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hmajorh]hmajor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hconst char *nameh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnameh]hname}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hvoid (*probe)(dev_t devt)h](j )}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjj?h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hprobeh]hprobe}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hj?h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hjj?h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j sbc.__register_blkdevasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hdevth]hdevt}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hj?h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hKhj hhubj)}(hhh]h)}(hregister a new block deviceh]hregister a new block device}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKhj=hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jhhhjEhNhNubj)}(hXR**Parameters** ``unsigned int major`` the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number. ``const char *name`` the name of the new block device as a zero terminated string ``void (*probe)(dev_t devt)`` pre-devtmpfs / pre-udev callback used to create disks when their pre-created device node is accessed. When a probe call uses add_disk() and it fails the driver must cleanup resources. This interface may soon be removed. **Description** The **name** must be unique within the system. The return value depends on the **major** input parameter: - if a major device number was requested in range [1..BLKDEV_MAJOR_MAX-1] then the function returns zero on success, or a negative error code - if any unused major number was requested with **major** = 0 parameter then the return value is the allocated major number in range [1..BLKDEV_MAJOR_MAX-1] or a negative error code otherwise See Documentation/admin-guide/devices.txt for the list of allocated major numbers. Use register_blkdev instead for any new code.h](h)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKhj\ubj )}(hhh](j)}(h``unsigned int major`` the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number. h](j)}(h``unsigned int major``h]j)}(hjh]hunsigned int major}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKhj{ubj2)}(hhh]h)}(huthe requested major device number [1..BLKDEV_MAJOR_MAX-1]. If **major** = 0, try to allocate any unused major number.h](h>the requested major device number [1..BLKDEV_MAJOR_MAX-1]. If }(hjhhhNhNubj)}(h **major**h]hmajor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. = 0, try to allocate any unused major number.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKhjubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjxubj)}(hR``const char *name`` the name of the new block device as a zero terminated string h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chKhjubj2)}(hhh]h)}(hhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+hhhj=hMCubj{)}(hadd_disk_fwnodeh]j)}(hadd_disk_fwnodeh]hadd_disk_fwnode}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+hhhj=hMCubj)}(hr(struct device *parent, struct gendisk *disk, const struct attribute_group **groups, struct fwnode_handle *fwnode)h](j)}(hstruct device *parenth](j)}(hj h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jRsbc.add_disk_fwnodeasbuh1hhjhubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hstruct gendisk *diskh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.add_disk_fwnodeasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdiskh]hdisk}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(h%const struct attribute_group **groupsh](j)}(hjh]hconst}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hj h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.add_disk_fwnodeasbuh1hhjJubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubj)}(hstruct fwnode_handle *fwnodeh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.add_disk_fwnodeasbuh1hhjubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hfwnodeh]hfwnode}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubeh}(h]h ]h"]h$]h&]jjuh1jhj+hhhj=hMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj=hMCubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jhj=hMChj$hhubj)}(hhh]h)}(h/add disk information to kernel list with fwnodeh]h/add disk information to kernel list with fwnode}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMChjdhhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj=hMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct device *parent`` parent device for the disk ``struct gendisk *disk`` per-device partitioning information ``const struct attribute_group **groups`` Additional per-device sysfs groups ``struct fwnode_handle *fwnode`` attached disk fwnode **Description** This function registers the partitioning information in **disk** with the kernel. Also attach a fwnode to the disk device.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMGhjubj )}(hhh](j)}(h5``struct device *parent`` parent device for the disk h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMDhjubj2)}(hhh]h)}(hparent device for the diskh]hparent device for the disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubj)}(h=``struct gendisk *disk`` per-device partitioning information h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMEhjubj2)}(hhh]h)}(h#per-device partitioning informationh]h#per-device partitioning information}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjubj)}(hM``const struct attribute_group **groups`` Additional per-device sysfs groups h](j)}(h)``const struct attribute_group **groups``h]j)}(hjh]h%const struct attribute_group **groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMFhjubj2)}(hhh]h)}(h"Additional per-device sysfs groupsh]h"Additional per-device sysfs groups}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMFhj0ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj/hMFhjubj)}(h6``struct fwnode_handle *fwnode`` attached disk fwnode h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjSh]hstruct fwnode_handle *fwnode}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMGhjMubj2)}(hhh]h)}(hattached disk fwnodeh]hattached disk fwnode}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMGhjiubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMGhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMIhjubh)}(hzThis function registers the partitioning information in **disk** with the kernel. Also attach a fwnode to the disk device.h](h8This function registers the partitioning information in }(hjhhhNhNubj)}(h**disk**h]hdisk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh: with the kernel. Also attach a fwnode to the disk device.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMHhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j device_add_disk (C function)c.device_add_diskhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hhint device_add_disk (struct device *parent, struct gendisk *disk, const struct attribute_group **groups)h]j)}(hgint device_add_disk(struct device *parent, struct gendisk *disk, const struct attribute_group **groups)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMkubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMkubj{)}(hdevice_add_diskh]j)}(hdevice_add_diskh]hdevice_add_disk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMkubj)}(hT(struct device *parent, struct gendisk *disk, const struct attribute_group **groups)h](j)}(hstruct device *parenth](j)}(hj h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjBmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.device_add_diskasbuh1hhjubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hparenth]hparent}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gendisk *diskh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j\c.device_add_diskasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h%const struct attribute_group **groupsh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]j\c.device_add_diskasbuh1hhjubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMkubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMkubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMkhjhhubj)}(hhh]h)}(h#add disk information to kernel listh]h#add disk information to kernel list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMkhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMkubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX:**Parameters** ``struct device *parent`` parent device for the disk ``struct gendisk *disk`` per-device partitioning information ``const struct attribute_group **groups`` Additional per-device sysfs groups **Description** This function registers the partitioning information in **disk** with the kernel.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMohjubj )}(hhh](j)}(h5``struct device *parent`` parent device for the disk h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMlhjubj2)}(hhh]h)}(hparent device for the diskh]hparent device for the disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMlhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMlhjubj)}(h=``struct gendisk *disk`` per-device partitioning information h](j)}(h``struct gendisk *disk``h]j)}(hj'h]hstruct gendisk *disk}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMmhj!ubj2)}(hhh]h)}(h#per-device partitioning informationh]h#per-device partitioning information}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hMmhj=ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMmhjubj)}(hM``const struct attribute_group **groups`` Additional per-device sysfs groups h](j)}(h)``const struct attribute_group **groups``h]j)}(hj`h]h%const struct attribute_group **groups}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMnhjZubj2)}(hhh]h)}(h"Additional per-device sysfs groupsh]h"Additional per-device sysfs groups}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMnhjvubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMnhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMphjubh)}(hQThis function registers the partitioning information in **disk** with the kernel.h](h8This function registers the partitioning information in }(hjhhhNhNubj)}(h**disk**h]hdisk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh with the kernel.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j blk_mark_disk_dead (C function)c.blk_mark_disk_deadhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h.void blk_mark_disk_dead (struct gendisk *disk)h]j)}(h-void blk_mark_disk_dead(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hblk_mark_disk_deadh]j)}(hblk_mark_disk_deadh]hblk_mark_disk_dead}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubh)}(hhh]j)}(hgendiskh]hgendisk}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.blk_mark_disk_deadasbuh1hhj+ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hmark a disk as deadh]hmark a disk as dead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct gendisk *disk`` disk to mark as dead **Description** Mark as disk as dead (e.g. surprise removed) and don't accept any new I/O to this disk.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjubj )}(hhh]j)}(h.``struct gendisk *disk`` disk to mark as dead h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjubj2)}(hhh]h)}(hdisk to mark as deadh]hdisk to mark as dead}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjubh)}(hWMark as disk as dead (e.g. surprise removed) and don't accept any new I/O to this disk.h]hYMark as disk as dead (e.g. surprise removed) and don’t accept any new I/O to this disk.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j del_gendisk (C function) c.del_gendiskhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h'void del_gendisk (struct gendisk *disk)h]j)}(h&void del_gendisk(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhjhMubj{)}(h del_gendiskh]j)}(h del_gendiskh]h del_gendisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.del_gendiskasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdiskh]hdisk}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhhubj)}(hhh]h)}(hremove the gendiskh]hremove the gendisk}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhjEhNhNubj)}(hX^**Parameters** ``struct gendisk *disk`` the struct gendisk to remove **Description** Removes the gendisk and all its associated resources. This deletes the partitions associated with the gendisk, and unregisters the associated request_queue. This is the counter to the respective device_add_disk() call. The final removal of the struct gendisk happens when its refcount reaches 0 with put_disk(), which should be called after del_gendisk(), if device_add_disk() was used. Drivers exist which depend on the release of the gendisk to be synchronous, it should not be deferred. **Context** can sleeph](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjOubj )}(hhh]j)}(h6``struct gendisk *disk`` the struct gendisk to remove h](j)}(h``struct gendisk *disk``h]j)}(hjth]hstruct gendisk *disk}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjnubj2)}(hhh]h)}(hthe struct gendisk to removeh]hthe struct gendisk to remove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubah}(h]h ]h"]h$]h&]uh1j hjOubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjOubh)}(hRemoves the gendisk and all its associated resources. This deletes the partitions associated with the gendisk, and unregisters the associated request_queue.h]hRemoves the gendisk and all its associated resources. This deletes the partitions associated with the gendisk, and unregisters the associated request_queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjOubh)}(h=This is the counter to the respective device_add_disk() call.h]h=This is the counter to the respective device_add_disk() call.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM!hjOubh)}(hThe final removal of the struct gendisk happens when its refcount reaches 0 with put_disk(), which should be called after del_gendisk(), if device_add_disk() was used.h]hThe final removal of the struct gendisk happens when its refcount reaches 0 with put_disk(), which should be called after del_gendisk(), if device_add_disk() was used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM#hjOubh)}(hfDrivers exist which depend on the release of the gendisk to be synchronous, it should not be deferred.h]hfDrivers exist which depend on the release of the gendisk to be synchronous, it should not be deferred.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM'hjOubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM*hjOubh)}(h can sleeph]h can sleep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM+hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j invalidate_disk (C function)c.invalidate_diskhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h+void invalidate_disk (struct gendisk *disk)h]j)}(h*void invalidate_disk(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMCubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDhhhjVhMCubj{)}(hinvalidate_diskh]j)}(hinvalidate_diskh]hinvalidate_disk}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjDhhhjVhMCubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jksbc.invalidate_diskasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubah}(h]h ]h"]h$]h&]jjuh1jhjDhhhjVhMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhjVhMCubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1jhjVhMChj=hhubj)}(hhh]h)}(hinvalidate the diskh]hinvalidate the disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMChjhhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct gendisk *disk`` the struct gendisk to invalidate **Description** A helper to invalidates the disk. It will clean the disk's associated buffer/page caches and reset its internal states so that the disk can be reused by the drivers. **Context** can sleeph](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMGhj$ubj )}(hhh]j)}(h:``struct gendisk *disk`` the struct gendisk to invalidate h](j)}(h``struct gendisk *disk``h]j)}(hjIh]hstruct gendisk *disk}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMDhjCubj2)}(hhh]h)}(h the struct gendisk to invalidateh]h the struct gendisk to invalidate}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMDhj_ubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMDhj@ubah}(h]h ]h"]h$]h&]uh1j hj$ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMFhj$ubh)}(hA helper to invalidates the disk. It will clean the disk's associated buffer/page caches and reset its internal states so that the disk can be reused by the drivers.h]hA helper to invalidates the disk. It will clean the disk’s associated buffer/page caches and reset its internal states so that the disk can be reused by the drivers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMEhj$ubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMIhj$ubh)}(h can sleeph]h can sleep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMJhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j put_disk (C function) c.put_diskhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h$void put_disk (struct gendisk *disk)h]j)}(h#void put_disk(struct gendisk *disk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hput_diskh]j)}(hput_diskh]hput_disk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct gendisk *disk)h]j)}(hstruct gendisk *diskh](j)}(hj h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubh)}(hhh]j)}(hgendiskh]hgendisk}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.put_diskasbuh1hhj)ubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hdiskh]hdisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hdecrements the gendisk refcounth]hdecrements the gendisk refcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct gendisk *disk`` the struct gendisk to decrement the refcount for **Description** This decrements the refcount for the struct gendisk. When this reaches 0 we'll have disk_release() called. **Note** for blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called). **Context** Any context, but the last reference must not be dropped from atomic context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM hjubj )}(hhh]j)}(hJ``struct gendisk *disk`` the struct gendisk to decrement the refcount for h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjubj2)}(hhh]h)}(h0the struct gendisk to decrement the refcount forh]h0the struct gendisk to decrement the refcount for}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM hjubh)}(hjThis decrements the refcount for the struct gendisk. When this reaches 0 we'll have disk_release() called.h]hlThis decrements the refcount for the struct gendisk. When this reaches 0 we’ll have disk_release() called.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjubh)}(h**Note**h]j)}(hjSh]hNote}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM hjubh)}(hfor blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called).h]hfor blk-mq disk put_disk must be called before freeing the tag_set when handling probe errors (that is before add_disk() is called).}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM hjubh)}(h **Context**h]j)}(hjzh]hContext}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjubh)}(hLAny context, but the last reference must not be dropped from atomic context.h]hLAny context, but the last reference must not be dropped from atomic context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j set_disk_ro (C function) c.set_disk_rohNtauh1hhjEhhhNhNubj)}(hhh](j)}(h7void set_disk_ro (struct gendisk *disk, bool read_only)h]j)}(h6void set_disk_ro(struct gendisk *disk, bool read_only)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM$ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM$ubj{)}(h set_disk_roh]j)}(h set_disk_roh]h set_disk_ro}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM$ubj)}(h&(struct gendisk *disk, bool read_only)h](j)}(hstruct gendisk *diskh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hgendiskh]hgendisk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.set_disk_roasbuh1hhjubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdiskh]hdisk}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hbool read_onlyh](j )}(hj8h]hbool}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(h read_onlyh]h read_only}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM$ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM$hjhhubj)}(hhh]h)}(hset a gendisk read-onlyh]hset a gendisk read-only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM$hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct gendisk *disk`` gendisk to operate on ``bool read_only`` ``true`` to set the disk read-only, ``false`` set the disk read/write **Description** This function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM(hjubj )}(hhh](j)}(h/``struct gendisk *disk`` gendisk to operate on h](j)}(h``struct gendisk *disk``h]j)}(hjh]hstruct gendisk *disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM%hjubj2)}(hhh]h)}(hgendisk to operate onh]hgendisk to operate on}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM%hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hM%hjubj)}(hY``bool read_only`` ``true`` to set the disk read-only, ``false`` set the disk read/write h](j)}(h``bool read_only``h]j)}(hj- h]hbool read_only}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM&hj' ubj2)}(hhh]h)}(hE``true`` to set the disk read-only, ``false`` set the disk read/writeh](j)}(h``true``h]htrue}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF ubh to set the disk read-only, }(hjF hhhNhNubj)}(h ``false``h]hfalse}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF ubh set the disk read/write}(hjF hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjB hM&hjC ubah}(h]h ]h"]h$]h&]uh1j1hj' ubeh}(h]h ]h"]h$]h&]uh1jhjB hM&hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM(hjubh)}(hThis function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.h]hThis function is used to indicate whether a given disk device should have its read-only flag set. set_disk_ro() is typically used by device drivers to indicate whether the underlying physical device is write-protected.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:342: ./block/genhd.chM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $bdev_validate_blocksize (C function)c.bdev_validate_blocksizehNtauh1hhjEhhhNhNubj)}(hhh](j)}(hGint bdev_validate_blocksize (struct block_device *bdev, int block_size)h]j)}(hFint bdev_validate_blocksize(struct block_device *bdev, int block_size)h](j )}(hinth]hint}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chKubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hKubj{)}(hbdev_validate_blocksizeh]j)}(hbdev_validate_blocksizeh]hbdev_validate_blocksize}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hKubj)}(h+(struct block_device *bdev, int block_size)h](j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hj !hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj(!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%!ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*!modnameN classnameNj] j` )}jc ]jf )}jY j sbc.bdev_validate_blocksizeasbuh1hhj!ubj2)}(h h]h }(hjH!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hjV!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(hbdevh]hbdev}(hjc!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubj)}(hint block_sizeh](j )}(hinth]hint}(hj|!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjx!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjx!ubj)}(h block_sizeh]h block_size}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hKhj hhubj)}(hhh]h)}(h(check that this block size is acceptableh]h(check that this block size is acceptable}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chKhj!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jhhhjEhNhNubj)}(hXZ**Parameters** ``struct block_device *bdev`` blockdevice to check ``int block_size`` block size to check **Description** For block device users that do not use buffer heads or the block device page cache, make sure that this block size can be used with the device. **Return** On success zero is returned, negative error code on failure.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chKhj!ubj )}(hhh](j)}(h3``struct block_device *bdev`` blockdevice to check h](j)}(h``struct block_device *bdev``h]j)}(hj"h]hstruct block_device *bdev}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chKhj!ubj2)}(hhh]h)}(hblockdevice to checkh]hblockdevice to check}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKhj"ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj"hKhj!ubj)}(h'``int block_size`` block size to check h](j)}(h``int block_size``h]j)}(hj<"h]hint block_size}(hj>"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:"ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chKhj6"ubj2)}(hhh]h)}(hblock size to checkh]hblock size to check}(hjU"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ"hKhjR"ubah}(h]h ]h"]h$]h&]uh1j1hj6"ubeh}(h]h ]h"]h$]h&]uh1jhjQ"hKhj!ubeh}(h]h ]h"]h$]h&]uh1j hj!ubh)}(h**Description**h]j)}(hjw"h]h Description}(hjy"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju"ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chKhj!ubh)}(hFor block device users that do not use buffer heads or the block device page cache, make sure that this block size can be used with the device.h]hFor block device users that do not use buffer heads or the block device page cache, make sure that this block size can be used with the device.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chKhj!ubh)}(h **Return**h]j)}(hj"h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chKhj!ubh)}(hah"]h$]h&]uh1j1hj"hhhj"hMubj{)}(h bdev_freezeh]j)}(h bdev_freezeh]h bdev_freeze}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj"hhhj"hMubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hj #hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj2)}(h h]h }(hj-#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj>#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@#modnameN classnameNj] j` )}jc ]jf )}jY j#sb c.bdev_freezeasbuh1hhj#ubj2)}(h h]h }(hj^#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#ubj)}(hjh]h*}(hjl#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj)}(hbdevh]hbdev}(hjy#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubah}(h]h ]h"]h$]h&]jjuh1jhj"hhhj"hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj"hMubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jhj"hMhj"hhubj)}(hhh]h)}(h6lock a filesystem and force it into a consistent stateh]h6lock a filesystem and force it into a consistent state}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj#hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1jhhhjEhNhNubj)}(hX]**Parameters** ``struct block_device *bdev`` blockdevice to lock **Description** If a superblock is found on this device, we take the s_umount semaphore on it to make sure nobody unmounts until the snapshot creation is done. The reference counter (bd_fsfreeze_count) guarantees that only the last unfreeze process can unfreeze the frozen filesystem actually when multiple freeze requests arrive simultaneously. It counts up in bdev_freeze() and count down in bdev_thaw(). When it becomes 0, thaw_bdev() will unfreeze actually. **Return** On success zero is returned, negative error code on failure.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chM#hj#ubj )}(hhh]j)}(h2``struct block_device *bdev`` blockdevice to lock h](j)}(h``struct block_device *bdev``h]j)}(hj#h]hstruct block_device *bdev}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chM hj#ubj2)}(hhh]h)}(hblockdevice to lockh]hblockdevice to lock}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1j hj#ubh)}(h**Description**h]j)}(hj$h]h Description}(hj!$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chM"hj#ubh)}(hXIf a superblock is found on this device, we take the s_umount semaphore on it to make sure nobody unmounts until the snapshot creation is done. The reference counter (bd_fsfreeze_count) guarantees that only the last unfreeze process can unfreeze the frozen filesystem actually when multiple freeze requests arrive simultaneously. It counts up in bdev_freeze() and count down in bdev_thaw(). When it becomes 0, thaw_bdev() will unfreeze actually.h]hXIf a superblock is found on this device, we take the s_umount semaphore on it to make sure nobody unmounts until the snapshot creation is done. The reference counter (bd_fsfreeze_count) guarantees that only the last unfreeze process can unfreeze the frozen filesystem actually when multiple freeze requests arrive simultaneously. It counts up in bdev_freeze() and count down in bdev_thaw(). When it becomes 0, thaw_bdev() will unfreeze actually.}(hj5$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chM!hj#ubh)}(h **Return**h]j)}(hjF$h]hReturn}(hjH$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD$ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chM)hj#ubh)}(hah"]h$]h&]uh1j1hj$hhhj$hMNubj{)}(h bdev_thawh]j)}(h bdev_thawh]h bdev_thaw}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj$hhhj$hMNubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$modnameN classnameNj] j` )}jc ]jf )}jY j$sb c.bdev_thawasbuh1hhj$ubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hbdevh]hbdev}(hj!%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubah}(h]h ]h"]h$]h&]jjuh1jhj$hhhj$hMNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj$hMNubah}(h]j~$ah ](jjeh"]h$]h&]jj)jhuh1jhj$hMNhj$hhubj)}(hhh]h)}(hunlock filesystemh]hunlock filesystem}(hjK%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMNhjH%hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjjc%jjc%jjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct block_device *bdev`` blockdevice to unlock **Description** Unlocks the filesystem and marks it writeable again after bdev_freeze(). **Return** On success zero is returned, negative error code on failure.h](h)}(h**Parameters**h]j)}(hjm%h]h Parameters}(hjo%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk%ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMRhjg%ubj )}(hhh]j)}(h4``struct block_device *bdev`` blockdevice to unlock h](j)}(h``struct block_device *bdev``h]j)}(hj%h]hstruct block_device *bdev}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMOhj%ubj2)}(hhh]h)}(hblockdevice to unlockh]hblockdevice to unlock}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMOhj%ubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMOhj%ubah}(h]h ]h"]h$]h&]uh1j hjg%ubh)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMQhjg%ubh)}(hHUnlocks the filesystem and marks it writeable again after bdev_freeze().h]hHUnlocks the filesystem and marks it writeable again after bdev_freeze().}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMPhjg%ubh)}(h **Return**h]j)}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMRhjg%ubh)}(hah"]h$]h&]uh1j1hj/&hhhjA&hMxubj{)}(hbdev_deny_freezeh]j)}(hbdev_deny_freezeh]hbdev_deny_freeze}(hjT&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/&hhhjA&hMxubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hjp&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl&ubj2)}(h h]h }(hj}&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl&ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj&modnameN classnameNj] j` )}jc ]jf )}jY jV&sbc.bdev_deny_freezeasbuh1hhjl&ubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl&ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl&ubj)}(hbdevh]hbdev}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjh&ubah}(h]h ]h"]h$]h&]jjuh1jhj/&hhhjA&hMxubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+&hhhjA&hMxubah}(h]j&&ah ](jjeh"]h$]h&]jj)jhuh1jhjA&hMxhj(&hhubj)}(hhh]h)}(hmake a block device unfreezableh]hmake a block device unfreezable}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMxhj&hhubah}(h]h ]h"]h$]h&]uh1jhj(&hhhjA&hMxubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 'jj 'jjjuh1jhhhjEhNhNubj)}(hXB**Parameters** ``struct block_device *bdev`` block device **Description** Reserve **bdev** against bdev_freeze() the way deny_write_access() reserves a file against writers. bd_fsfreeze_count is sign-encoded: > 0 counts active freezes, < 0 counts deniers, so a deny succeeds only while no freeze is in progress. While held, bdev_freeze() returns -EBUSY. Pair with bdev_allow_freeze(). A filesystem removing, adding or replacing a member device denies freezes on it for the duration, so a claim a freeze walk might act on is never torn down behind the freezer's back. The deny is device-scoped, not (device, superblock)-scoped: a device shared by several superblocks is refused for all of them. No in-tree filesystem removes a shared claim from a live superblock. **Return** 0, or -EBUSY if the device is currently frozen.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chM|hj'ubj )}(hhh]j)}(h+``struct block_device *bdev`` block device h](j)}(h``struct block_device *bdev``h]j)}(hj4'h]hstruct block_device *bdev}(hj6'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2'ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMyhj.'ubj2)}(hhh]h)}(h block deviceh]h block device}(hjM'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI'hMyhjJ'ubah}(h]h ]h"]h$]h&]uh1j1hj.'ubeh}(h]h ]h"]h$]h&]uh1jhjI'hMyhj+'ubah}(h]h ]h"]h$]h&]uh1j hj'ubh)}(h**Description**h]j)}(hjo'h]h Description}(hjq'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm'ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chM{hj'ubh)}(hX9Reserve **bdev** against bdev_freeze() the way deny_write_access() reserves a file against writers. bd_fsfreeze_count is sign-encoded: > 0 counts active freezes, < 0 counts deniers, so a deny succeeds only while no freeze is in progress. While held, bdev_freeze() returns -EBUSY. Pair with bdev_allow_freeze().h](hReserve }(hj'hhhNhNubj)}(h**bdev**h]hbdev}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubhX) against bdev_freeze() the way deny_write_access() reserves a file against writers. bd_fsfreeze_count is sign-encoded: > 0 counts active freezes, < 0 counts deniers, so a deny succeeds only while no freeze is in progress. While held, bdev_freeze() returns -EBUSY. Pair with bdev_allow_freeze().}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMzhj'ubh)}(hX{A filesystem removing, adding or replacing a member device denies freezes on it for the duration, so a claim a freeze walk might act on is never torn down behind the freezer's back. The deny is device-scoped, not (device, superblock)-scoped: a device shared by several superblocks is refused for all of them. No in-tree filesystem removes a shared claim from a live superblock.h]hX}A filesystem removing, adding or replacing a member device denies freezes on it for the duration, so a claim a freeze walk might act on is never torn down behind the freezer’s back. The deny is device-scoped, not (device, superblock)-scoped: a device shared by several superblocks is refused for all of them. No in-tree filesystem removes a shared claim from a live superblock.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj'ubh)}(h **Return**h]j)}(hj'h]hReturn}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj'ubh)}(h/0, or -EBUSY if the device is currently frozen.h]h/0, or -EBUSY if the device is currently frozen.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bdev_allow_freeze (C function)c.bdev_allow_freezehNtauh1hhjEhhhNhNubj)}(hhh](j)}(h2void bdev_allow_freeze (struct block_device *bdev)h]j)}(h1void bdev_allow_freeze(struct block_device *bdev)h](j )}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMubj2)}(h h]h }(hj (hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'hhhj (hMubj{)}(hbdev_allow_freezeh]j)}(hbdev_allow_freezeh]hbdev_allow_freeze}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj'hhhj (hMubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hj9(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5(ubj2)}(h h]h }(hjF(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5(ubh)}(hhh]j)}(h block_deviceh]h block_device}(hjW(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT(ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjY(modnameN classnameNj] j` )}jc ]jf )}jY j(sbc.bdev_allow_freezeasbuh1hhj5(ubj2)}(h h]h }(hjw(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5(ubj)}(hbdevh]hbdev}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1(ubah}(h]h ]h"]h$]h&]jjuh1jhj'hhhj (hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj (hMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1jhj (hMhj'hhubj)}(hhh]h)}(h#allow freezing a block device againh]h#allow freezing a block device again}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj (hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj(jj(jjjuh1jhhhjEhNhNubj)}(hk**Parameters** ``struct block_device *bdev`` block device **Description** Undo one bdev_deny_freeze().h](h)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj(ubj )}(hhh]j)}(h+``struct block_device *bdev`` block device h](j)}(h``struct block_device *bdev``h]j)}(hj(h]hstruct block_device *bdev}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj(ubj2)}(hhh]h)}(h block deviceh]h block device}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1j1hj(ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj(ubah}(h]h ]h"]h$]h&]uh1j hj(ubh)}(h**Description**h]j)}(hj8)h]h Description}(hj:)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6)ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj(ubh)}(hUndo one bdev_deny_freeze().h]hUndo one bdev_deny_freeze().}(hjN)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  bd_prepare_to_claim (C function)c.bd_prepare_to_claimhNtauh1hhjEhhhNhNubj)}(hhh](j)}(hdint bd_prepare_to_claim (struct block_device *bdev, void *holder, const struct blk_holder_ops *hops)h]j)}(hcint bd_prepare_to_claim(struct block_device *bdev, void *holder, const struct blk_holder_ops *hops)h](j )}(hinth]hint}(hj})hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjy)hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMgubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjy)hhhj)hMgubj{)}(hbd_prepare_to_claimh]j)}(hbd_prepare_to_claimh]hbd_prepare_to_claim}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjy)hhhj)hMgubj)}(hL(struct block_device *bdev, void *holder, const struct blk_holder_ops *hops)h](j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj)modnameN classnameNj] j` )}jc ]jf )}jY j)sbc.bd_prepare_to_claimasbuh1hhj)ubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hbdevh]hbdev}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(h void *holderh](j )}(hvoidh]hvoid}(hj,*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(*ubj2)}(h h]h }(hj:*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(*ubj)}(hjh]h*}(hjH*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(*ubj)}(hholderh]hholder}(hjU*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubj)}(h!const struct blk_holder_ops *hopsh](j)}(hjh]hconst}(hjn*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj*ubj2)}(h h]h }(hj{*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjj*ubj)}(hj h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj*ubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjj*ubh)}(hhh]j)}(hblk_holder_opsh]hblk_holder_ops}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj*modnameN classnameNj] j` )}jc ]j)c.bd_prepare_to_claimasbuh1hhjj*ubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjj*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj*ubj)}(hhopsh]hhops}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj)ubeh}(h]h ]h"]h$]h&]jjuh1jhjy)hhhj)hMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhju)hhhj)hMgubah}(h]jp)ah ](jjeh"]h$]h&]jj)jhuh1jhj)hMghjr)hhubj)}(hhh]h)}(hclaim a block deviceh]hclaim a block device}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMghj+hhubah}(h]h ]h"]h$]h&]uh1jhjr)hhhj)hMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"+jj"+jjjuh1jhhhjEhNhNubj)}(hX**Parameters** ``struct block_device *bdev`` block device of interest ``void *holder`` holder trying to claim **bdev** ``const struct blk_holder_ops *hops`` holder ops. **Description** Claim **bdev**. This function fails if **bdev** is already claimed by another holder and waits if another claiming is in progress. return, the caller has ownership of bd_claiming and bd_holder[s]. **Return** 0 if **bdev** can be claimed, -EBUSY otherwise.h](h)}(h**Parameters**h]j)}(hj,+h]h Parameters}(hj.+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*+ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMkhj&+ubj )}(hhh](j)}(h7``struct block_device *bdev`` block device of interest h](j)}(h``struct block_device *bdev``h]j)}(hjK+h]hstruct block_device *bdev}(hjM+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI+ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhhjE+ubj2)}(hhh]h)}(hblock device of interesth]hblock device of interest}(hjd+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`+hMhhja+ubah}(h]h ]h"]h$]h&]uh1j1hjE+ubeh}(h]h ]h"]h$]h&]uh1jhj`+hMhhjB+ubj)}(h1``void *holder`` holder trying to claim **bdev** h](j)}(h``void *holder``h]j)}(hj+h]h void *holder}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMihj~+ubj2)}(hhh]h)}(hholder trying to claim **bdev**h](hholder trying to claim }(hj+hhhNhNubj)}(h**bdev**h]hbdev}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1hhj+hMihj+ubah}(h]h ]h"]h$]h&]uh1j1hj~+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMihjB+ubj)}(h2``const struct blk_holder_ops *hops`` holder ops. h](j)}(h%``const struct blk_holder_ops *hops``h]j)}(hj+h]h!const struct blk_holder_ops *hops}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMjhj+ubj2)}(hhh]h)}(h holder ops.h]h holder ops.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMjhj+ubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMjhjB+ubeh}(h]h ]h"]h$]h&]uh1j hj&+ubh)}(h**Description**h]j)}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMlhj&+ubh)}(hClaim **bdev**. This function fails if **bdev** is already claimed by another holder and waits if another claiming is in progress. return, the caller has ownership of bd_claiming and bd_holder[s].h](hClaim }(hj,hhhNhNubj)}(h**bdev**h]hbdev}(hj$,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh. This function fails if }(hj,hhhNhNubj)}(h**bdev**h]hbdev}(hj6,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh is already claimed by another holder and waits if another claiming is in progress. return, the caller has ownership of bd_claiming and bd_holder[s].}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMkhj&+ubh)}(h **Return**h]j)}(hjQ,h]hReturn}(hjS,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO,ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMohj&+ubh)}(h/0 if **bdev** can be claimed, -EBUSY otherwise.h](h0 if }(hjg,hhhNhNubj)}(h**bdev**h]hbdev}(hjo,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg,ubh" can be claimed, -EBUSY otherwise.}(hjg,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMphj&+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bd_abort_claiming (C function)c.bd_abort_claiminghNtauh1hhjEhhhNhNubj)}(hhh](j)}(h@void bd_abort_claiming (struct block_device *bdev, void *holder)h]j)}(h?void bd_abort_claiming(struct block_device *bdev, void *holder)h](j )}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,hhhj,hMubj{)}(hbd_abort_claimingh]j)}(hbd_abort_claimingh]hbd_abort_claiming}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj,hMubj)}(h)(struct block_device *bdev, void *holder)h](j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-modnameN classnameNj] j` )}jc ]jf )}jY j,sbc.bd_abort_claimingasbuh1hhj,ubj2)}(h h]h }(hj#-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,ubj)}(hjh]h*}(hj1-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hbdevh]hbdev}(hj>-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(h void *holderh](j )}(hvoidh]hvoid}(hjW-hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjS-ubj2)}(h h]h }(hje-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjS-ubj)}(hjh]h*}(hjs-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS-ubj)}(hholderh]hholder}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj,hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj,hMubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1jhj,hMhj,hhubj)}(hhh]h)}(h abort claiming of a block deviceh]h abort claiming of a block device}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1jhhhjEhNhNubj)}(hXS**Parameters** ``struct block_device *bdev`` block device of interest ``void *holder`` holder that has claimed **bdev** **Description** Abort claiming of a block device when the exclusive open failed. This can be also used when exclusive open is not actually desired and we just needed to block other exclusive openers for a while.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj-ubj )}(hhh](j)}(h7``struct block_device *bdev`` block device of interest h](j)}(h``struct block_device *bdev``h]j)}(hj-h]hstruct block_device *bdev}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj-ubj2)}(hhh]h)}(hblock device of interesth]hblock device of interest}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj-ubj)}(h2``void *holder`` holder that has claimed **bdev** h](j)}(h``void *holder``h]j)}(hj$.h]h void *holder}(hj&.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj".ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj.ubj2)}(hhh]h)}(h holder that has claimed **bdev**h](hholder that has claimed }(hj=.hhhNhNubj)}(h**bdev**h]hbdev}(hjE.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=.ubeh}(h]h ]h"]h$]h&]uh1hhj9.hMhj:.ubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhj9.hMhj-ubeh}(h]h ]h"]h$]h&]uh1j hj-ubh)}(h**Description**h]j)}(hjm.h]h Description}(hjo.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk.ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj-ubh)}(hAbort claiming of a block device when the exclusive open failed. This can be also used when exclusive open is not actually desired and we just needed to block other exclusive openers for a while.h]hAbort claiming of a block device when the exclusive open failed. This can be also used when exclusive open is not actually desired and we just needed to block other exclusive openers for a while.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bdev_yield_claim (C function)c.bdev_yield_claimhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h.void bdev_yield_claim (struct file *bdev_file)h]j)}(h-void bdev_yield_claim(struct file *bdev_file)h](j )}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.hhhj.hMubj{)}(hbdev_yield_claimh]j)}(hbdev_yield_claimh]hbdev_yield_claim}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.hhhj.hMubj)}(h(struct file *bdev_file)h]j)}(hstruct file *bdev_fileh](j)}(hj h]hstruct}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubh)}(hhh]j)}(hfileh]hfile}(hj /hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj /ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj/modnameN classnameNj] j` )}jc ]jf )}jY j.sbc.bdev_yield_claimasbuh1hhj.ubj2)}(h h]h }(hj-/hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hj;/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(h bdev_fileh]h bdev_file}(hjH/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubah}(h]h ]h"]h$]h&]jjuh1jhj.hhhj.hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhj.hMubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jhj.hMhj.hhubj)}(hhh]h)}(h0give up the holder claim on an open block deviceh]h0give up the holder claim on an open block device}(hjr/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhjo/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1jhhhjEhNhNubj)}(hX?**Parameters** ``struct file *bdev_file`` open block device **Description** Yield the holder and any write access for **bdev_file** without closing it, so the caller can still act on the device - e.g. bdev_allow_freeze() it - before the final bdev_fput(). bdev_fput() yields too, so calling it afterwards is safe.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj/ubj )}(hhh]j)}(h-``struct file *bdev_file`` open block device h](j)}(h``struct file *bdev_file``h]j)}(hj/h]hstruct file *bdev_file}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj/ubj2)}(hhh]h)}(hopen block deviceh]hopen block device}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1j hj/ubh)}(h**Description**h]j)}(hj/h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj/ubh)}(hYield the holder and any write access for **bdev_file** without closing it, so the caller can still act on the device - e.g. bdev_allow_freeze() it - before the final bdev_fput(). bdev_fput() yields too, so calling it afterwards is safe.h](h*Yield the holder and any write access for }(hj0hhhNhNubj)}(h **bdev_file**h]h bdev_file}(hj 0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh without closing it, so the caller can still act on the device - e.g. bdev_allow_freeze() it - before the final bdev_fput(). bdev_fput() yields too, so calling it afterwards is safe.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bdev_fput (C function) c.bdev_fputhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h'void bdev_fput (struct file *bdev_file)h]j)}(h&void bdev_fput(struct file *bdev_file)h](j )}(hvoidh]hvoid}(hjE0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjA0hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMubj2)}(h h]h }(hjT0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjA0hhhjS0hMubj{)}(h bdev_fputh]j)}(h bdev_fputh]h bdev_fput}(hjf0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjA0hhhjS0hMubj)}(h(struct file *bdev_file)h]j)}(hstruct file *bdev_fileh](j)}(hj h]hstruct}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~0ubh)}(hhh]j)}(hfileh]hfile}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj0modnameN classnameNj] j` )}jc ]jf )}jY jh0sb c.bdev_fputasbuh1hhj~0ubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~0ubj)}(h bdev_fileh]h bdev_file}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz0ubah}(h]h ]h"]h$]h&]jjuh1jhjA0hhhjS0hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=0hhhjS0hMubah}(h]j80ah ](jjeh"]h$]h&]jj)jhuh1jhjS0hMhj:0hhubj)}(hhh]h)}(h0yield claim to the block device and put the fileh]h0yield claim to the block device and put the file}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jhj:0hhhjS0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhjEhNhNubj)}(h**Parameters** ``struct file *bdev_file`` open block device **Description** Yield claim on the block device and put the file. Ensure that the block device can be reclaimed before the file is closed which is a deferred operation.h](h)}(h**Parameters**h]j)}(hj'1h]h Parameters}(hj)1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%1ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj!1ubj )}(hhh]j)}(h-``struct file *bdev_file`` open block device h](j)}(h``struct file *bdev_file``h]j)}(hjF1h]hstruct file *bdev_file}(hjH1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD1ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj@1ubj2)}(hhh]h)}(hopen block deviceh]hopen block device}(hj_1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[1hMhj\1ubah}(h]h ]h"]h$]h&]uh1j1hj@1ubeh}(h]h ]h"]h$]h&]uh1jhj[1hMhj=1ubah}(h]h ]h"]h$]h&]uh1j hj!1ubh)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj!1ubh)}(hYield claim on the block device and put the file. Ensure that the block device can be reclaimed before the file is closed which is a deferred operation.h]hYield claim on the block device and put the file. Ensure that the block device can be reclaimed before the file is closed which is a deferred operation.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj!1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j lookup_bdev (C function) c.lookup_bdevhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h2int lookup_bdev (const char *pathname, dev_t *dev)h]j)}(h1int lookup_bdev(const char *pathname, dev_t *dev)h](j )}(hinth]hint}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1hhhj1hMubj{)}(h lookup_bdevh]j)}(h lookup_bdevh]h lookup_bdev}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhj1hMubj)}(h"(const char *pathname, dev_t *dev)h](j)}(hconst char *pathnameh](j)}(hjh]hconst}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj )}(hcharh]hchar}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1ubj2)}(h h]h }(hj,2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1ubj)}(hjh]h*}(hj:2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj)}(hpathnameh]hpathname}(hjG2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubj)}(h dev_t *devh](h)}(hhh]j)}(hdev_th]hdev_t}(hjc2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`2ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetje2modnameN classnameNj] j` )}jc ]jf )}jY j1sb c.lookup_bdevasbuh1hhj\2ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\2ubj)}(hdevh]hdev}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubeh}(h]h ]h"]h$]h&]jjuh1jhj1hhhj1hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj1hMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhj1hMhj1hhubj)}(hhh]h)}(h&Look up a struct block_device by name.h]h&Look up a struct block_device by name.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1jhhhjEhNhNubj)}(hXh**Parameters** ``const char *pathname`` Name of the block device in the filesystem. ``dev_t *dev`` Pointer to the block device's dev_t, if found. **Description** Lookup the block device's dev_t at **pathname** in the current namespace if possible and return it in **dev**. **Context** May sleep. **Return** 0 if succeeded, negative errno otherwise.h](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj2ubj )}(hhh](j)}(hE``const char *pathname`` Name of the block device in the filesystem. h](j)}(h``const char *pathname``h]j)}(hj 3h]hconst char *pathname}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj3ubj2)}(hhh]h)}(h+Name of the block device in the filesystem.h]h+Name of the block device in the filesystem.}(hj"3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1j1hj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubj)}(h>``dev_t *dev`` Pointer to the block device's dev_t, if found. h](j)}(h``dev_t *dev``h]j)}(hjB3h]h dev_t *dev}(hjD3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@3ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj<3ubj2)}(hhh]h)}(h.Pointer to the block device's dev_t, if found.h]h0Pointer to the block device’s dev_t, if found.}(hj[3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW3hMhjX3ubah}(h]h ]h"]h$]h&]uh1j1hj<3ubeh}(h]h ]h"]h$]h&]uh1jhjW3hMhj3ubeh}(h]h ]h"]h$]h&]uh1j hj2ubh)}(h**Description**h]j)}(hj}3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{3ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj2ubh)}(hnLookup the block device's dev_t at **pathname** in the current namespace if possible and return it in **dev**.h](h%Lookup the block device’s dev_t at }(hj3hhhNhNubj)}(h **pathname**h]hpathname}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh7 in the current namespace if possible and return it in }(hj3hhhNhNubj)}(h**dev**h]hdev}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj2ubh)}(h **Context**h]j)}(hj3h]hContext}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj2ubh)}(h May sleep.h]h May sleep.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj2ubh)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj2ubh)}(h)0 if succeeded, negative errno otherwise.h]h)0 if succeeded, negative errno otherwise.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j bdev_mark_dead (C function)c.bdev_mark_deadhNtauh1hhjEhhhNhNubj)}(hhh](j)}(h>void bdev_mark_dead (struct block_device *bdev, bool surprise)h]j)}(h=void bdev_mark_dead(struct block_device *bdev, bool surprise)h](j )}(hvoidh]hvoid}(hj44hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj04hhhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMubj2)}(h h]h }(hjC4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj04hhhjB4hMubj{)}(hbdev_mark_deadh]j)}(hbdev_mark_deadh]hbdev_mark_dead}(hjU4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQ4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj04hhhjB4hMubj)}(h*(struct block_device *bdev, bool surprise)h](j)}(hstruct block_device *bdevh](j)}(hj h]hstruct}(hjq4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm4ubj2)}(h h]h }(hj~4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjm4ubh)}(hhh]j)}(h block_deviceh]h block_device}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jf )}jY jW4sbc.bdev_mark_deadasbuh1hhjm4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjm4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm4ubj)}(hbdevh]hbdev}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhji4ubj)}(h bool surpriseh](j )}(hj8h]hbool}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj4ubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj4ubj)}(hsurpriseh]hsurprise}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhji4ubeh}(h]h ]h"]h$]h&]jjuh1jhj04hhhjB4hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,4hhhjB4hMubah}(h]j'4ah ](jjeh"]h$]h&]jj)jhuh1jhjB4hMhj)4hhubj)}(hhh]h)}(hmark a block device as deadh]hmark a block device as dead}(hj(5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj%5hhubah}(h]h ]h"]h$]h&]uh1jhj)4hhhjB4hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@5jj@5jjjuh1jhhhjEhNhNubj)}(hX&**Parameters** ``struct block_device *bdev`` block device to operate on ``bool surprise`` indicate a surprise removal **Description** Tell the file system that this devices or media is dead. If **surprise** is set to ``true`` the device or media is already gone, if not we are preparing for an orderly removal. This calls into the file system, which then typicall syncs out all dirty data and writes back inodes and then invalidates any cached data in the inodes on the file system. In addition we also invalidate the block device mapping.h](h)}(h**Parameters**h]j)}(hjJ5h]h Parameters}(hjL5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH5ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhjD5ubj )}(hhh](j)}(h9``struct block_device *bdev`` block device to operate on h](j)}(h``struct block_device *bdev``h]j)}(hji5h]hstruct block_device *bdev}(hjk5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg5ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhjc5ubj2)}(hhh]h)}(hblock device to operate onh]hblock device to operate on}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~5hMhj5ubah}(h]h ]h"]h$]h&]uh1j1hjc5ubeh}(h]h ]h"]h$]h&]uh1jhj~5hMhj`5ubj)}(h.``bool surprise`` indicate a surprise removal h](j)}(h``bool surprise``h]j)}(hj5h]h bool surprise}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhj5ubj2)}(hhh]h)}(hindicate a surprise removalh]hindicate a surprise removal}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj`5ubeh}(h]h ]h"]h$]h&]uh1j hjD5ubh)}(h**Description**h]j)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhjD5ubh)}(hTell the file system that this devices or media is dead. If **surprise** is set to ``true`` the device or media is already gone, if not we are preparing for an orderly removal.h](h=Tell the file system that this devices or media is dead. If }(hj5hhhNhNubj)}(h **surprise**h]hsurprise}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh is set to }(hj5hhhNhNubj)}(h``true``h]htrue}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhU the device or media is already gone, if not we are preparing for an orderly removal.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhjD5ubh)}(hThis calls into the file system, which then typicall syncs out all dirty data and writes back inodes and then invalidates any cached data in the inodes on the file system. In addition we also invalidate the block device mapping.h]hThis calls into the file system, which then typicall syncs out all dirty data and writes back inodes and then invalidates any cached data in the inodes on the file system. In addition we also invalidate the block device mapping.}(hj&6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:345: ./block/bdev.chMhjD5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjEhhhNhNubeh}(h] block-devicesah ]h"] block devicesah$]h&]uh1hhhhhhhhM4ubh)}(hhh](h)}(h Char devicesh]h Char devices}(hjG6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD6hhhhhM]ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #register_chrdev_region (C function)c.register_chrdev_regionhNtauh1hhjD6hhhNhNubj)}(hhh](j)}(hIint register_chrdev_region (dev_t from, unsigned count, const char *name)h]j)}(hHint register_chrdev_region(dev_t from, unsigned count, const char *name)h](j )}(hinth]hint}(hjn6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjj6hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKubj2)}(h h]h }(hj}6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjj6hhhj|6hKubj{)}(hregister_chrdev_regionh]j)}(hregister_chrdev_regionh]hregister_chrdev_region}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjj6hhhj|6hKubj)}(h.(dev_t from, unsigned count, const char *name)h](j)}(h dev_t fromh](h)}(hhh]j)}(hdev_th]hdev_t}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6modnameN classnameNj] j` )}jc ]jf )}jY j6sbc.register_chrdev_regionasbuh1hhj6ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hfromh]hfrom}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hcounth]hcount}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubj)}(hconst char *nameh](j)}(hjh]hconst}(hj*7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&7ubj2)}(h h]h }(hj77hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&7ubj )}(hcharh]hchar}(hjE7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&7ubj2)}(h h]h }(hjS7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&7ubj)}(hjh]h*}(hja7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&7ubj)}(hnameh]hname}(hjn7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubeh}(h]h ]h"]h$]h&]jjuh1jhjj6hhhj|6hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjf6hhhj|6hKubah}(h]ja6ah ](jjeh"]h$]h&]jj)jhuh1jhj|6hKhjc6hhubj)}(hhh]h)}(h"register a range of device numbersh]h"register a range of device numbers}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj7hhubah}(h]h ]h"]h$]h&]uh1jhjc6hhhj|6hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1jhhhjD6hNhNubj)}(hXJ**Parameters** ``dev_t from`` the first in the desired range of device numbers; must include the major number. ``unsigned count`` the number of consecutive device numbers required ``const char *name`` the name of the device or driver. **Description** Return value is zero on success, a negative error code on failure.h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj7ubj )}(hhh](j)}(h```dev_t from`` the first in the desired range of device numbers; must include the major number. h](j)}(h``dev_t from``h]j)}(hj7h]h dev_t from}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj7ubj2)}(hhh]h)}(hPthe first in the desired range of device numbers; must include the major number.h]hPthe first in the desired range of device numbers; must include the major number.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj7ubah}(h]h ]h"]h$]h&]uh1j1hj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj7ubj)}(hE``unsigned count`` the number of consecutive device numbers required h](j)}(h``unsigned count``h]j)}(hj8h]hunsigned count}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj 8ubj2)}(hhh]h)}(h1the number of consecutive device numbers requiredh]h1the number of consecutive device numbers required}(hj,8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(8hKhj)8ubah}(h]h ]h"]h$]h&]uh1j1hj 8ubeh}(h]h ]h"]h$]h&]uh1jhj(8hKhj7ubj)}(h7``const char *name`` the name of the device or driver. h](j)}(h``const char *name``h]j)}(hjL8h]hconst char *name}(hjN8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ8ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhjF8ubj2)}(hhh]h)}(h!the name of the device or driver.h]h!the name of the device or driver.}(hje8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja8hKhjb8ubah}(h]h ]h"]h$]h&]uh1j1hjF8ubeh}(h]h ]h"]h$]h&]uh1jhja8hKhj7ubeh}(h]h ]h"]h$]h&]uh1j hj7ubh)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj7ubh)}(hBReturn value is zero on success, a negative error code on failure.h]hBReturn value is zero on success, a negative error code on failure.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjD6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  alloc_chrdev_region (C function)c.alloc_chrdev_regionhNtauh1hhjD6hhhNhNubj)}(hhh](j)}(hZint alloc_chrdev_region (dev_t *dev, unsigned baseminor, unsigned count, const char *name)h]j)}(hYint alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, const char *name)h](j )}(hinth]hint}(hj8hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj8hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8hhhj8hKubj{)}(halloc_chrdev_regionh]j)}(halloc_chrdev_regionh]halloc_chrdev_region}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhhj8hKubj)}(hB(dev_t *dev, unsigned baseminor, unsigned count, const char *name)h](j)}(h dev_t *devh](h)}(hhh]j)}(hdev_th]hdev_t}(hj 9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jf )}jY j8sbc.alloc_chrdev_regionasbuh1hhj9ubj2)}(h h]h }(hj,9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hj:9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hdevh]hdev}(hjG9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(hunsigned baseminorh](j )}(hunsignedh]hunsigned}(hj`9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj\9ubj2)}(h h]h }(hjn9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\9ubj)}(h baseminorh]h baseminor}(hj|9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hcounth]hcount}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(hconst char *nameh](j)}(hjh]hconst}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj )}(hcharh]hchar}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hnameh]hname}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhj8hKubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1jhj8hKhj8hhubj)}(hhh]h)}(h'register a range of char device numbersh]h'register a range of char device numbers}(hj8:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj5:hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjP:jjP:jjjuh1jhhhjD6hNhNubj)}(hX**Parameters** ``dev_t *dev`` output parameter for first assigned number ``unsigned baseminor`` first of the requested range of minor numbers ``unsigned count`` the number of minor numbers required ``const char *name`` the name of the associated device or driver **Description** Allocates a range of char device numbers. The major number will be chosen dynamically, and returned (along with the first minor number) in **dev**. Returns zero or a negative error code.h](h)}(h**Parameters**h]j)}(hjZ:h]h Parameters}(hj\:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX:ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhjT:ubj )}(hhh](j)}(h:``dev_t *dev`` output parameter for first assigned number h](j)}(h``dev_t *dev``h]j)}(hjy:h]h dev_t *dev}(hj{:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw:ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhjs:ubj2)}(hhh]h)}(h*output parameter for first assigned numberh]h*output parameter for first assigned number}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj:ubah}(h]h ]h"]h$]h&]uh1j1hjs:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjp:ubj)}(hE``unsigned baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned baseminor``h]j)}(hj:h]hunsigned baseminor}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj:ubj2)}(hhh]h)}(h-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj:ubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjp:ubj)}(h8``unsigned count`` the number of minor numbers required h](j)}(h``unsigned count``h]j)}(hj:h]hunsigned count}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj:ubj2)}(hhh]h)}(h$the number of minor numbers requiredh]h$the number of minor numbers required}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hKhj;ubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhj;hKhjp:ubj)}(hA``const char *name`` the name of the associated device or driver h](j)}(h``const char *name``h]j)}(hj$;h]hconst char *name}(hj&;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj";ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj;ubj2)}(hhh]h)}(h+the name of the associated device or driverh]h+the name of the associated device or driver}(hj=;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9;hKhj:;ubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhj9;hKhjp:ubeh}(h]h ]h"]h$]h&]uh1j hjT:ubh)}(h**Description**h]j)}(hj_;h]h Description}(hja;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj];ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhjT:ubh)}(hAllocates a range of char device numbers. The major number will be chosen dynamically, and returned (along with the first minor number) in **dev**. Returns zero or a negative error code.h](hAllocates a range of char device numbers. The major number will be chosen dynamically, and returned (along with the first minor number) in }(hju;hhhNhNubj)}(h**dev**h]hdev}(hj};hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju;ubh). Returns zero or a negative error code.}(hju;hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhjT:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjD6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j __register_chrdev (C function)c.__register_chrdevhNtauh1hhjD6hhhNhNubj)}(hhh](j)}(hint __register_chrdev (unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)h]j)}(hint __register_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)h](j )}(hinth]hint}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;hhhj;hKubj{)}(h__register_chrdevh]j)}(h__register_chrdevh]h__register_chrdev}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj;hhhj;hKubj)}(hv(unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const struct file_operations *fops)h](j)}(hunsigned int majorh](j )}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj )}(hinth]hint}(hj<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(hmajorh]hmajor}(hj+<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hunsigned int baseminorh](j )}(hunsignedh]hunsigned}(hjD<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@<ubj2)}(h h]h }(hjR<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@<ubj )}(hinth]hint}(hj`<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@<ubj2)}(h h]h }(hjn<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@<ubj)}(h baseminorh]h baseminor}(hj|<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hj<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj )}(hinth]hint}(hj<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hcounth]hcount}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hconst char *nameh](j)}(hjh]hconst}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj )}(hcharh]hchar}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hnameh]hname}(hj*=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hjC=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?=ubj2)}(h h]h }(hjP=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?=ubj)}(hj h]hstruct}(hj^=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?=ubj2)}(h h]h }(hjk=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?=ubh)}(hhh]j)}(hfile_operationsh]hfile_operations}(hj|=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy=ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj~=modnameN classnameNj] j` )}jc ]jf )}jY j;sbc.__register_chrdevasbuh1hhj?=ubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?=ubj)}(hfopsh]hfops}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhj;hhhj;hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj;hhhj;hKubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1jhj;hKhj;hhubj)}(hhh]h)}(h6create and register a cdev occupying a range of minorsh]h6create and register a cdev occupying a range of minors}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj=hhubah}(h]h ]h"]h$]h&]uh1jhj;hhhj;hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1jhhhjD6hNhNubj)}(hXm**Parameters** ``unsigned int major`` major device number or 0 for dynamic allocation ``unsigned int baseminor`` first of the requested range of minor numbers ``unsigned int count`` the number of minor numbers required ``const char *name`` name of this range of devices ``const struct file_operations *fops`` file operations associated with this devices **Description** If **major** == 0 this functions will dynamically allocate a major and return its number. If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success. Returns a -ve errno on failure. The name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj=ubj )}(hhh](j)}(hG``unsigned int major`` major device number or 0 for dynamic allocation h](j)}(h``unsigned int major``h]j)}(hj">h]hunsigned int major}(hj$>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj >ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj>ubj2)}(hhh]h)}(h/major device number or 0 for dynamic allocationh]h/major device number or 0 for dynamic allocation}(hj;>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7>hKhj8>ubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhj7>hKhj>ubj)}(hI``unsigned int baseminor`` first of the requested range of minor numbers h](j)}(h``unsigned int baseminor``h]j)}(hj[>h]hunsigned int baseminor}(hj]>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY>ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhjU>ubj2)}(hhh]h)}(h-first of the requested range of minor numbersh]h-first of the requested range of minor numbers}(hjt>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp>hKhjq>ubah}(h]h ]h"]h$]h&]uh1j1hjU>ubeh}(h]h ]h"]h$]h&]uh1jhjp>hKhj>ubj)}(h<``unsigned int count`` the number of minor numbers required h](j)}(h``unsigned int count``h]j)}(hj>h]hunsigned int count}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj>ubj2)}(hhh]h)}(h$the number of minor numbers requiredh]h$the number of minor numbers required}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKhj>ubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj>ubj)}(h3``const char *name`` name of this range of devices h](j)}(h``const char *name``h]j)}(hj>h]hconst char *name}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj>ubj2)}(hhh]h)}(hname of this range of devicesh]hname of this range of devices}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKhj>ubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj>ubj)}(hT``const struct file_operations *fops`` file operations associated with this devices h](j)}(h&``const struct file_operations *fops``h]j)}(hj?h]h"const struct file_operations *fops}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj?ubj2)}(hhh]h)}(h,file operations associated with this devicesh]h,file operations associated with this devices}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKhj?ubah}(h]h ]h"]h$]h&]uh1j1hj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhj>ubeh}(h]h ]h"]h$]h&]uh1j hj=ubh)}(h**Description**h]j)}(hjA?h]h Description}(hjC?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj??ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj=ubh)}(hYIf **major** == 0 this functions will dynamically allocate a major and return its number.h](hIf }(hjW?hhhNhNubj)}(h **major**h]hmajor}(hj_?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW?ubhM == 0 this functions will dynamically allocate a major and return its number.}(hjW?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj=ubh)}(h|If **major** > 0 this function will attempt to reserve a device with the given major number and will return zero on success.h](hIf }(hjx?hhhNhNubj)}(h **major**h]hmajor}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx?ubhp > 0 this function will attempt to reserve a device with the given major number and will return zero on success.}(hjx?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chKhj=ubh)}(hReturns a -ve errno on failure.h]hReturns a -ve errno on failure.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhj=ubh)}(hThe name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it's ok to use e.g. the name of the module here.h]hThe name of this device has nothing to do with the name of the device in /dev. It only helps to keep track of the different owners of devices. If your module name has only one type of devices it’s ok to use e.g. the name of the module here.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjD6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %unregister_chrdev_region (C function)c.unregister_chrdev_regionhNtauh1hhjD6hhhNhNubj)}(hhh](j)}(h:void unregister_chrdev_region (dev_t from, unsigned count)h]j)}(h9void unregister_chrdev_region(dev_t from, unsigned count)h](j )}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?hhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM,ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?hhhj?hM,ubj{)}(hunregister_chrdev_regionh]j)}(hunregister_chrdev_regionh]hunregister_chrdev_region}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj?hhhj?hM,ubj)}(h(dev_t from, unsigned count)h](j)}(h dev_t fromh](h)}(hhh]j)}(hdev_th]hdev_t}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@modnameN classnameNj] j` )}jc ]jf )}jY j?sbc.unregister_chrdev_regionasbuh1hhj@ubj2)}(h h]h }(hj7@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@ubj)}(hfromh]hfrom}(hjE@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj @ubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hj^@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZ@ubj2)}(h h]h }(hjl@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZ@ubj)}(hcounth]hcount}(hjz@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj @ubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhj?hM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj?hhhj?hM,ubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1jhj?hM,hj?hhubj)}(hhh]h)}(h$unregister a range of device numbersh]h$unregister a range of device numbers}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM,hj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1jhhhjD6hNhNubj)}(hXW**Parameters** ``dev_t from`` the first in the range of numbers to unregister ``unsigned count`` the number of device numbers to unregister **Description** This function will unregister a range of **count** device numbers, starting with **from**. The caller should normally be the one who allocated those numbers in the first place...h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM0hj@ubj )}(hhh](j)}(h?``dev_t from`` the first in the range of numbers to unregister h](j)}(h``dev_t from``h]j)}(hj@h]h dev_t from}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM-hj@ubj2)}(hhh]h)}(h/the first in the range of numbers to unregisterh]h/the first in the range of numbers to unregister}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM-hj@ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hM-hj@ubj)}(h>``unsigned count`` the number of device numbers to unregister h](j)}(h``unsigned count``h]j)}(hjAh]hunsigned count}(hj AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM.hjAubj2)}(hhh]h)}(h*the number of device numbers to unregisterh]h*the number of device numbers to unregister}(hj7AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3AhM.hj4Aubah}(h]h ]h"]h$]h&]uh1j1hjAubeh}(h]h ]h"]h$]h&]uh1jhj3AhM.hj@ubeh}(h]h ]h"]h$]h&]uh1j hj@ubh)}(h**Description**h]j)}(hjYAh]h Description}(hj[AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWAubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM0hj@ubh)}(hThis function will unregister a range of **count** device numbers, starting with **from**. The caller should normally be the one who allocated those numbers in the first place...h](h)This function will unregister a range of }(hjoAhhhNhNubj)}(h **count**h]hcount}(hjwAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoAubh device numbers, starting with }(hjoAhhhNhNubj)}(h**from**h]hfrom}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoAubhZ. The caller should normally be the one who allocated those numbers in the first place...}(hjoAhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM/hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjD6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  __unregister_chrdev (C function)c.__unregister_chrdevhNtauh1hhjD6hhhNhNubj)}(hhh](j)}(hkvoid __unregister_chrdev (unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h]j)}(hjvoid __unregister_chrdev(unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h](j )}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMBubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAhhhjAhMBubj{)}(h__unregister_chrdevh]j)}(h__unregister_chrdevh]h__unregister_chrdev}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjAhhhjAhMBubj)}(hR(unsigned int major, unsigned int baseminor, unsigned int count, const char *name)h](j)}(hunsigned int majorh](j )}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAubj2)}(h h]h }(hj BhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj )}(hinth]hint}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjAubj2)}(h h]h }(hj)BhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjAubj)}(hmajorh]hmajor}(hj7BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hunsigned int baseminorh](j )}(hunsignedh]hunsigned}(hjPBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLBubj2)}(h h]h }(hj^BhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLBubj )}(hinth]hint}(hjlBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjLBubj2)}(h h]h }(hjzBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLBubj)}(h baseminorh]h baseminor}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hunsigned int counth](j )}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj )}(hinth]hint}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hcounth]hcount}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hconst char *nameh](j)}(hjh]hconst}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjBhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj )}(hcharh]hchar}(hj ChhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hj)ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hnameh]hname}(hj6ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhjAhMBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjAhMBubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jhjAhMBhjAhhubj)}(hhh]h)}(hunregister and destroy a cdevh]hunregister and destroy a cdev}(hj`ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMBhj]Chhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjAhMBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxCjjxCjjjuh1jhhhjD6hNhNubj)}(hX**Parameters** ``unsigned int major`` major device number ``unsigned int baseminor`` first of the range of minor numbers ``unsigned int count`` the number of minor numbers this cdev is occupying ``const char *name`` name of this range of devices **Description** Unregister and destroy the cdev occupying the region described by **major**, **baseminor** and **count**. This function undoes what __register_chrdev() did.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMFhj|Cubj )}(hhh](j)}(h+``unsigned int major`` major device number h](j)}(h``unsigned int major``h]j)}(hjCh]hunsigned int major}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMChjCubj2)}(hhh]h)}(hmajor device numberh]hmajor device number}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMChjCubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhjChMChjCubj)}(h?``unsigned int baseminor`` first of the range of minor numbers h](j)}(h``unsigned int baseminor``h]j)}(hjCh]hunsigned int baseminor}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMDhjCubj2)}(hhh]h)}(h#first of the range of minor numbersh]h#first of the range of minor numbers}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMDhjCubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhjChMDhjCubj)}(hJ``unsigned int count`` the number of minor numbers this cdev is occupying h](j)}(h``unsigned int count``h]j)}(hjDh]hunsigned int count}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMEhj Dubj2)}(hhh]h)}(h2the number of minor numbers this cdev is occupyingh]h2the number of minor numbers this cdev is occupying}(hj,DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(DhMEhj)Dubah}(h]h ]h"]h$]h&]uh1j1hj Dubeh}(h]h ]h"]h$]h&]uh1jhj(DhMEhjCubj)}(h3``const char *name`` name of this range of devices h](j)}(h``const char *name``h]j)}(hjLDh]hconst char *name}(hjNDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJDubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMFhjFDubj2)}(hhh]h)}(hname of this range of devicesh]hname of this range of devices}(hjeDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaDhMFhjbDubah}(h]h ]h"]h$]h&]uh1j1hjFDubeh}(h]h ]h"]h$]h&]uh1jhjaDhMFhjCubeh}(h]h ]h"]h$]h&]uh1j hj|Cubh)}(h**Description**h]j)}(hjDh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMHhj|Cubh)}(hUnregister and destroy the cdev occupying the region described by **major**, **baseminor** and **count**. This function undoes what __register_chrdev() did.h](hBUnregister and destroy the cdev occupying the region described by }(hjDhhhNhNubj)}(h **major**h]hmajor}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh, }(hjDhhhNhNubj)}(h **baseminor**h]h baseminor}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh and }(hjDhhhNhNubj)}(h **count**h]hcount}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh5. This function undoes what __register_chrdev() did.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMGhj|Cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjD6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_add (C function) c.cdev_addhNtauh1hhjD6hhhNhNubj)}(hhh](j)}(h8int cdev_add (struct cdev *p, dev_t dev, unsigned count)h]j)}(h7int cdev_add(struct cdev *p, dev_t dev, unsigned count)h](j )}(hinth]hint}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjDhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjDhhhjEhMubj{)}(hcdev_addh]j)}(hcdev_addh]hcdev_add}(hj#EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjDhhhjEhMubj)}(h+(struct cdev *p, dev_t dev, unsigned count)h](j)}(hstruct cdev *ph](j)}(hj h]hstruct}(hj?EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Eubj2)}(h h]h }(hjLEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;Eubh)}(hhh]j)}(hcdevh]hcdev}(hj]EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZEubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_EmodnameN classnameNj] j` )}jc ]jf )}jY j%Esb c.cdev_addasbuh1hhj;Eubj2)}(h h]h }(hj}EhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;Eubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Eubj)}(hjh]hp}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Eubj)}(h dev_t devh](h)}(hhh]j)}(hdev_th]hdev_t}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jyE c.cdev_addasbuh1hhjEubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hdevh]hdev}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Eubj)}(hunsigned counth](j )}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEubj)}(hcounth]hcount}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7Eubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhjEhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjDhhhjEhMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1jhjEhMhjDhhubj)}(hhh]h)}(hadd a char device to the systemh]hadd a char device to the system}(hj>FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhj;Fhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVFjjVFjjjuh1jhhhjD6hNhNubj)}(hX**Parameters** ``struct cdev *p`` the cdev structure for the device ``dev_t dev`` the first device number for which this device is responsible ``unsigned count`` the number of consecutive minor numbers corresponding to this device **Description** cdev_add() adds the device represented by **p** to the system, making it live immediately. A negative error code is returned on failure.h](h)}(h**Parameters**h]j)}(hj`Fh]h Parameters}(hjbFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Fubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjZFubj )}(hhh](j)}(h5``struct cdev *p`` the cdev structure for the device h](j)}(h``struct cdev *p``h]j)}(hjFh]hstruct cdev *p}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Fubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjyFubj2)}(hhh]h)}(h!the cdev structure for the deviceh]h!the cdev structure for the device}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjFubah}(h]h ]h"]h$]h&]uh1j1hjyFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjvFubj)}(hK``dev_t dev`` the first device number for which this device is responsible h](j)}(h ``dev_t dev``h]j)}(hjFh]h dev_t dev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjFubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hjGhhhjGhMubj{)}(hcdev_set_parenth]j)}(hcdev_set_parenth]hcdev_set_parent}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGhhhjGhMubj)}(h&(struct cdev *p, struct kobject *kobj)h](j)}(hstruct cdev *ph](j)}(hj h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubh)}(hhh]j)}(hcdevh]hcdev}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGmodnameN classnameNj] j` )}jc ]jf )}jY jGsbc.cdev_set_parentasbuh1hhjGubj2)}(h h]h }(hjGhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGubj)}(hjh]h*}(hj HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hjh]hp}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct kobject *kobjh](j)}(hj h]hstruct}(hj2HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Hubj2)}(h h]h }(hj?HhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.Hubh)}(hhh]j)}(hkobjecth]hkobject}(hjPHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRHmodnameN classnameNj] j` )}jc ]jGc.cdev_set_parentasbuh1hhj.Hubj2)}(h h]h }(hjnHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.Hubj)}(hjh]h*}(hj|HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Hubj)}(hkobjh]hkobj}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.Hubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhjGhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|GhhhjGhMubah}(h]jwGah ](jjeh"]h$]h&]jj)jhuh1jhjGhMhjyGhhubj)}(hhh]h)}(h(set the parent kobject for a char deviceh]h(set the parent kobject for a char device}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjyGhhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1jhhhjD6hNhNubj)}(hX***Parameters** ``struct cdev *p`` the cdev structure ``struct kobject *kobj`` the kobject to take a reference to **Description** cdev_set_parent() sets a parent kobject which will be referenced appropriately so the parent is not freed before the cdev. This should be called before cdev_add.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjHubj )}(hhh](j)}(h&``struct cdev *p`` the cdev structure h](j)}(h``struct cdev *p``h]j)}(hjHh]hstruct cdev *p}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjHubj2)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(hj IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj IhMhj Iubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhj IhMhjHubj)}(h<``struct kobject *kobj`` the kobject to take a reference to h](j)}(h``struct kobject *kobj``h]j)}(hj-Ih]hstruct kobject *kobj}(hj/IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Iubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhj'Iubj2)}(hhh]h)}(h"the kobject to take a reference toh]h"the kobject to take a reference to}(hjFIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBIhMhjCIubah}(h]h ]h"]h$]h&]uh1j1hj'Iubeh}(h]h ]h"]h$]h&]uh1jhjBIhMhjHubeh}(h]h ]h"]h$]h&]uh1j hjHubh)}(h**Description**h]j)}(hjhIh]h Description}(hjjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfIubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjHubh)}(hcdev_set_parent() sets a parent kobject which will be referenced appropriately so the parent is not freed before the cdev. This should be called before cdev_add.h]hcdev_set_parent() sets a parent kobject which will be referenced appropriately so the parent is not freed before the cdev. This should be called before cdev_add.}(hj~IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjD6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_device_add (C function)c.cdev_device_addhNtauh1hhjD6hhhNhNubj)}(hhh](j)}(h;int cdev_device_add (struct cdev *cdev, struct device *dev)h]j)}(h:int cdev_device_add(struct cdev *cdev, struct device *dev)h](j )}(hinth]hint}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjIhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIhhhjIhMubj{)}(hcdev_device_addh]j)}(hcdev_device_addh]hcdev_device_add}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjIhhhjIhMubj)}(h'(struct cdev *cdev, struct device *dev)h](j)}(hstruct cdev *cdevh](j)}(hj h]hstruct}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubh)}(hhh]j)}(hcdevh]hcdev}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj JmodnameN classnameNj] j` )}jc ]jf )}jY jIsbc.cdev_device_addasbuh1hhjIubj2)}(h h]h }(hj(JhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjIubj)}(hjh]h*}(hj6JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj)}(hcdevh]hcdev}(hjCJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(hstruct device *devh](j)}(hj h]hstruct}(hj\JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXJubj2)}(h h]h }(hjiJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXJubh)}(hhh]j)}(hdeviceh]hdevice}(hjzJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|JmodnameN classnameNj] j` )}jc ]j$Jc.cdev_device_addasbuh1hhjXJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjXJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXJubj)}(hdevh]hdev}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubeh}(h]h ]h"]h$]h&]jjuh1jhjIhhhjIhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjIhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1jhjIhMhjIhhubj)}(hhh]h)}(h?add a char device and it's corresponding struct device, linkinkh]hAadd a char device and it’s corresponding struct device, linkink}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjJhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjIhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhjD6hNhNubj)}(hX**Parameters** ``struct cdev *cdev`` the cdev structure ``struct device *dev`` the device structure **Description** cdev_device_add() adds the char device represented by **cdev** to the system, just as cdev_add does. It then adds **dev** to the system using device_add The dev_t for the char device will be taken from the struct device which needs to be initialized first. This helper function correctly takes a reference to the parent device so the parent will not get released until all references to the cdev are released. This helper uses dev->devt for the device number. If it is not set it will not add the cdev and it will be equivalent to device_add. This function should be used whenever the struct cdev and the struct device are members of the same structure whose lifetime is managed by the struct device. **NOTE** Callers must assume that userspace was able to open the cdev and can call cdev fops callbacks at any time, even if this function fails.h](h)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM hjJubj )}(hhh](j)}(h)``struct cdev *cdev`` the cdev structure h](j)}(h``struct cdev *cdev``h]j)}(hjKh]hstruct cdev *cdev}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM hjKubj2)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(hj7KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3KhM hj4Kubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhj3KhM hjKubj)}(h,``struct device *dev`` the device structure h](j)}(h``struct device *dev``h]j)}(hjWKh]hstruct device *dev}(hjYKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUKubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM hjQKubj2)}(hhh]h)}(hthe device structureh]hthe device structure}(hjpKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlKhM hjmKubah}(h]h ]h"]h$]h&]uh1j1hjQKubeh}(h]h ]h"]h$]h&]uh1jhjlKhM hjKubeh}(h]h ]h"]h$]h&]uh1j hjJubh)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM hjJubh)}(hXcdev_device_add() adds the char device represented by **cdev** to the system, just as cdev_add does. It then adds **dev** to the system using device_add The dev_t for the char device will be taken from the struct device which needs to be initialized first. This helper function correctly takes a reference to the parent device so the parent will not get released until all references to the cdev are released.h](h6cdev_device_add() adds the char device represented by }(hjKhhhNhNubj)}(h**cdev**h]hcdev}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubh4 to the system, just as cdev_add does. It then adds }(hjKhhhNhNubj)}(h**dev**h]hdev}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubhX  to the system using device_add The dev_t for the char device will be taken from the struct device which needs to be initialized first. This helper function correctly takes a reference to the parent device so the parent will not get released until all references to the cdev are released.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM hjJubh)}(hThis helper uses dev->devt for the device number. If it is not set it will not add the cdev and it will be equivalent to device_add.h]hThis helper uses dev->devt for the device number. If it is not set it will not add the cdev and it will be equivalent to device_add.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjJubh)}(hThis function should be used whenever the struct cdev and the struct device are members of the same structure whose lifetime is managed by the struct device.h]hThis function should be used whenever the struct cdev and the struct device are members of the same structure whose lifetime is managed by the struct device.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjJubh)}(h**NOTE**h]j)}(hjKh]hNOTE}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjJubh)}(hCallers must assume that userspace was able to open the cdev and can call cdev fops callbacks at any time, even if this function fails.h]hCallers must assume that userspace was able to open the cdev and can call cdev fops callbacks at any time, even if this function fails.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjD6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_device_del (C function)c.cdev_device_delhNtauh1hhjD6hhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjah"]h$]h&]uh1j1hjyLubh)}(hhh]j)}(hcdevh]hcdev}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLmodnameN classnameNj] j` )}jc ]jf )}jY jcLsbc.cdev_device_delasbuh1hhjyLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyLubj)}(hcdevh]hcdev}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuLubj)}(hstruct device *devh](j)}(hj h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(hdeviceh]hdevice}(hj MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Mubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jLc.cdev_device_delasbuh1hhjLubj2)}(h h]h }(hj+MhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hj9MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hdevh]hdev}(hjFMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuLubeh}(h]h ]h"]h$]h&]jjuh1jhjdevt is not set it will not remove the cdev and will be equivalent to device_del. **NOTE** This guarantees that associated sysfs callbacks are not running or runnable, however any cdevs already open will remain and their fops will still be callable even after this function returns.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM5hjMubj )}(hhh](j)}(h)``struct cdev *cdev`` the cdev structure h](j)}(h``struct cdev *cdev``h]j)}(hjMh]hstruct cdev *cdev}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM2hjMubj2)}(hhh]h)}(hthe cdev structureh]hthe cdev structure}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM2hjMubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjMhM2hjMubj)}(h,``struct device *dev`` the device structure h](j)}(h``struct device *dev``h]j)}(hjMh]hstruct device *dev}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM3hjMubj2)}(hhh]h)}(hthe device structureh]hthe device structure}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM3hjNubah}(h]h ]h"]h$]h&]uh1j1hjMubeh}(h]h ]h"]h$]h&]uh1jhjMhM3hjMubeh}(h]h ]h"]h$]h&]uh1j hjMubh)}(h**Description**h]j)}(hj%Nh]h Description}(hj'NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Nubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM5hjMubh)}(h{cdev_device_del() is a helper function to call cdev_del and device_del. It should be used whenever cdev_device_add is used.h]h{cdev_device_del() is a helper function to call cdev_del and device_del. It should be used whenever cdev_device_add is used.}(hj;NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM4hjMubh)}(hYIf dev->devt is not set it will not remove the cdev and will be equivalent to device_del.h]hYIf dev->devt is not set it will not remove the cdev and will be equivalent to device_del.}(hjJNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM7hjMubh)}(h**NOTE**h]j)}(hj[Nh]hNOTE}(hj]NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM:hjMubh)}(hThis guarantees that associated sysfs callbacks are not running or runnable, however any cdevs already open will remain and their fops will still be callable even after this function returns.h]hThis guarantees that associated sysfs callbacks are not running or runnable, however any cdevs already open will remain and their fops will still be callable even after this function returns.}(hjqNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM;hjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjD6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_del (C function) c.cdev_delhNtauh1hhjD6hhhNhNubj)}(hhh](j)}(hvoid cdev_del (struct cdev *p)h]j)}(hvoid cdev_del(struct cdev *p)h](j )}(hvoidh]hvoid}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMLubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNhhhjNhMLubj{)}(hcdev_delh]j)}(hcdev_delh]hcdev_del}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNhhhjNhMLubj)}(h(struct cdev *p)h]j)}(hstruct cdev *ph](j)}(hj h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubh)}(hhh]j)}(hcdevh]hcdev}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjNmodnameN classnameNj] j` )}jc ]jf )}jY jNsb c.cdev_delasbuh1hhjNubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]h*}(hj)OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hjh]hp}(hj6OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubah}(h]h ]h"]h$]h&]jjuh1jhjNhhhjNhMLubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjNhMLubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jhjNhMLhjNhhubj)}(hhh]h)}(hremove a cdev from the systemh]hremove a cdev from the system}(hj_OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMLhj\Ohhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMLubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwOjjwOjjjuh1jhhhjD6hNhNubj)}(hXg**Parameters** ``struct cdev *p`` the cdev structure to be removed **Description** cdev_del() removes **p** from the system, possibly freeing the structure itself. **NOTE** This guarantees that cdev device will no longer be able to be opened, however any cdevs already open will remain and their fops will still be callable even after cdev_del returns.h](h)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMPhj{Oubj )}(hhh]j)}(h4``struct cdev *p`` the cdev structure to be removed h](j)}(h``struct cdev *p``h]j)}(hjOh]hstruct cdev *p}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMMhjOubj2)}(hhh]h)}(h the cdev structure to be removedh]h the cdev structure to be removed}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMMhjOubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMMhjOubah}(h]h ]h"]h$]h&]uh1j hj{Oubh)}(h**Description**h]j)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMOhj{Oubh)}(hPcdev_del() removes **p** from the system, possibly freeing the structure itself.h](hcdev_del() removes }(hjOhhhNhNubj)}(h**p**h]hp}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh8 from the system, possibly freeing the structure itself.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMNhj{Oubh)}(h**NOTE**h]j)}(hjPh]hNOTE}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMQhj{Oubh)}(hThis guarantees that cdev device will no longer be able to be opened, however any cdevs already open will remain and their fops will still be callable even after cdev_del returns.h]hThis guarantees that cdev device will no longer be able to be opened, however any cdevs already open will remain and their fops will still be callable even after cdev_del returns.}(hj*PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMRhj{Oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjD6hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j cdev_alloc (C function) c.cdev_allochNtauh1hhjD6hhhNhNubj)}(hhh](j)}(hstruct cdev * cdev_alloc (void)h]j)}(hstruct cdev *cdev_alloc(void)h](j)}(hj h]hstruct}(hjYPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUPhhhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMyubj2)}(h h]h }(hjgPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUPhhhjfPhMyubh)}(hhh]j)}(hcdevh]hcdev}(hjxPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuPubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjzPmodnameN classnameNj] j` )}jc ]jf )}jY cdev_allocsb c.cdev_allocasbuh1hhjUPhhhjfPhMyubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUPhhhjfPhMyubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUPhhhjfPhMyubj{)}(h cdev_alloch]j)}(hjPh]h cdev_alloc}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjUPhhhjfPhMyubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjUPhhhjfPhMyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQPhhhjfPhMyubah}(h]jLPah ](jjeh"]h$]h&]jj)jhuh1jhjfPhMyhjNPhhubj)}(hhh]h)}(hallocate a cdev structureh]hallocate a cdev structure}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMyhjPhhubah}(h]h ]h"]h$]h&]uh1jhjNPhhhjfPhMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1jhhhjD6hNhNubj)}(hu**Parameters** ``void`` no arguments **Description** Allocates and returns a cdev structure, or NULL on failure.h](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hj!QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chM}hjQubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj>Qh]hvoid}(hj@QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjah"]h$]h&]uh1j1hjQhhhjQhMubj{)}(h cdev_inith]j)}(h cdev_inith]h cdev_init}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjQhhhjQhMubj)}(h7(struct cdev *cdev, const struct file_operations *fops)h](j)}(hstruct cdev *cdevh](j)}(hj h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubh)}(hhh]j)}(hcdevh]hcdev}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRmodnameN classnameNj] j` )}jc ]jf )}jY jQsb c.cdev_initasbuh1hhjQubj2)}(h h]h }(hj9RhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hjh]h*}(hjGRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj)}(hcdevh]hcdev}(hjTRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(h"const struct file_operations *fopsh](j)}(hjh]hconst}(hjmRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiRubj2)}(h h]h }(hjzRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiRubj)}(hj h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiRubh)}(hhh]j)}(hfile_operationsh]hfile_operations}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRmodnameN classnameNj] j` )}jc ]j5R c.cdev_initasbuh1hhjiRubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiRubj)}(hfopsh]hfops}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjQhhhjQhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQhhhjQhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1jhjQhMhjQhhubj)}(hhh]h)}(hinitialize a cdev structureh]hinitialize a cdev structure}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!Sjj!Sjjjuh1jhhhjD6hNhNubj)}(hX**Parameters** ``struct cdev *cdev`` the structure to initialize ``const struct file_operations *fops`` the file_operations for this device **Description** Initializes **cdev**, remembering **fops**, making it ready to add to the system with cdev_add().h](h)}(h**Parameters**h]j)}(hj+Sh]h Parameters}(hj-ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Subah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhj%Subj )}(hhh](j)}(h2``struct cdev *cdev`` the structure to initialize h](j)}(h``struct cdev *cdev``h]j)}(hjJSh]hstruct cdev *cdev}(hjLShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHSubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhjDSubj2)}(hhh]h)}(hthe structure to initializeh]hthe structure to initialize}(hjcShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ShMhj`Subah}(h]h ]h"]h$]h&]uh1j1hjDSubeh}(h]h ]h"]h$]h&]uh1jhj_ShMhjASubj)}(hK``const struct file_operations *fops`` the file_operations for this device h](j)}(h&``const struct file_operations *fops``h]j)}(hjSh]h"const struct file_operations *fops}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhj}Subj2)}(hhh]h)}(h#the file_operations for this deviceh]h#the file_operations for this device}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjSubah}(h]h ]h"]h$]h&]uh1j1hj}Subeh}(h]h ]h"]h$]h&]uh1jhjShMhjASubeh}(h]h ]h"]h$]h&]uh1j hj%Subh)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhj%Subh)}(haInitializes **cdev**, remembering **fops**, making it ready to add to the system with cdev_add().h](h Initializes }(hjShhhNhNubj)}(h**cdev**h]hcdev}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh, remembering }(hjShhhNhNubj)}(h**fops**h]hfops}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh7, making it ready to add to the system with cdev_add().}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hhR/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:351: ./fs/char_dev.chMhj%Subeh}(h]h ] kernelindentah"]h$]h&]uh1jhjD6hhhNhNubeh}(h] char-devicesah ]h"] char devicesah$]h&]uh1hhhhhhhhM]ubh)}(hhh](h)}(hClock Frameworkh]hClock Framework}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThhhhhMcubh)}(hXgThe clock framework defines programming interfaces to support software management of the system clock tree. This framework is widely used with System-On-Chip (SOC) platforms to support power management and various devices which may need custom clock rates. Note that these "clocks" don't relate to timekeeping or real time clocks (RTCs), each of which have separate frameworks. These :c:type:`struct clk ` instances may be used to manage for example a 96 MHz signal that is used to shift bits into and out of peripherals or busses, or otherwise trigger synchronous state machine transitions in system hardware.h](hXThe clock framework defines programming interfaces to support software management of the system clock tree. This framework is widely used with System-On-Chip (SOC) platforms to support power management and various devices which may need custom clock rates. Note that these “clocks” don’t relate to timekeeping or real time clocks (RTCs), each of which have separate frameworks. These }(hj'ThhhNhNubh)}(h:c:type:`struct clk `h]j)}(hj1Th]h struct clk}(hj3ThhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj/Tubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjclkuh1hhhhMehj'Tubh instances may be used to manage for example a 96 MHz signal that is used to shift bits into and out of peripherals or busses, or otherwise trigger synchronous state machine transitions in system hardware.}(hj'ThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMehjThhubh)}(hX_Power management is supported by explicit software clock gating: unused clocks are disabled, so the system doesn't waste power changing the state of transistors that aren't in active use. On some systems this may be backed by hardware clock gating, where clocks are gated without being disabled in software. Sections of chips that are powered but not clocked may be able to retain their last state. This low power state is often called a *retention mode*. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.h](hXPower management is supported by explicit software clock gating: unused clocks are disabled, so the system doesn’t waste power changing the state of transistors that aren’t in active use. On some systems this may be backed by hardware clock gating, where clocks are gated without being disabled in software. Sections of chips that are powered but not clocked may be able to retain their last state. This low power state is often called a }(hjXThhhNhNubjp)}(h*retention mode*h]hretention mode}(hj`ThhhNhNubah}(h]h ]h"]h$]h&]uh1johjXTubh. This mode still incurs leakage currents, especially with finer circuit geometries, but for CMOS circuits power is mostly used by clocked state changes.}(hjXThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMohjThhubh)}(hXPower-aware drivers only enable their clocks when the device they manage is in active use. Also, system sleep states often differ according to which clock domains are active: while a "standby" state may allow wakeup from several active domains, a "mem" (suspend-to-RAM) state may require a more wholesale shutdown of clocks derived from higher speed PLLs and oscillators, limiting the number of possible wakeup event sources. A driver's suspend method may need to be aware of system-specific clock constraints on the target sleep state.h]hX"Power-aware drivers only enable their clocks when the device they manage is in active use. Also, system sleep states often differ according to which clock domains are active: while a “standby” state may allow wakeup from several active domains, a “mem” (suspend-to-RAM) state may require a more wholesale shutdown of clocks derived from higher speed PLLs and oscillators, limiting the number of possible wakeup event sources. A driver’s suspend method may need to be aware of system-specific clock constraints on the target sleep state.}(hjxThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMyhjThhubh)}(hSome platforms support programmable clock generators. These can be used by external chips of various kinds, such as other CPUs, multimedia codecs, and devices with strict requirements for interface clocking.h]hSome platforms support programmable clock generators. These can be used by external chips of various kinds, such as other CPUs, multimedia codecs, and devices with strict requirements for interface clocking.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjThhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_notifier (C struct)c.clk_notifierhNtauh1hhjThhhNhNubj)}(hhh](j)}(h clk_notifierh]j)}(hstruct clk_notifierh](j)}(hj h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjThhhjThKubj{)}(h clk_notifierh]j)}(hjTh]h clk_notifier}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjThhhjThKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjThKubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1jhjThKhjThhubj)}(hhh]h)}(hassociate a clk with a notifierh]hassociate a clk with a notifier}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK,hjThhubah}(h]h ]h"]h$]h&]uh1jhjThhhjThKubeh}(h]h ](jstructeh"]h$]h&]jjjjUjjUjjjuh1jhhhjThNhNubj)}(hX[**Definition**:: struct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; }; **Members** ``clk`` struct clk * to associate the notifier with ``notifier_head`` a blocking_notifier_head for this clk ``node`` linked list pointersh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubh:}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK0hj UubjH)}(hstruct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; };h]hstruct clk_notifier { struct clk *clk; struct srcu_notifier_head notifier_head; struct list_head node; };}hj,Usbah}(h]h ]h"]h$]h&]jjuh1jHhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK2hj Uubh)}(h **Members**h]j)}(hj=Uh]hMembers}(hj?UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;Uubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK8hj Uubj )}(hhh](j)}(h4``clk`` struct clk * to associate the notifier with h](j)}(h``clk``h]j)}(hj\Uh]hclk}(hj^UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK.hjVUubj2)}(hhh]h)}(h+struct clk * to associate the notifier withh]h+struct clk * to associate the notifier with}(hjuUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqUhK.hjrUubah}(h]h ]h"]h$]h&]uh1j1hjVUubeh}(h]h ]h"]h$]h&]uh1jhjqUhK.hjSUubj)}(h8``notifier_head`` a blocking_notifier_head for this clk h](j)}(h``notifier_head``h]j)}(hjUh]h notifier_head}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK/hjUubj2)}(hhh]h)}(h%a blocking_notifier_head for this clkh]h%a blocking_notifier_head for this clk}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhK/hjUubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhK/hjSUubj)}(h``node`` linked list pointersh](j)}(h``node``h]j)}(hjUh]hnode}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK/hjUubj2)}(hhh]h)}(hlinked list pointersh]hlinked list pointers}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK0hjUubah}(h]h ]h"]h$]h&]uh1j1hjUubeh}(h]h ]h"]h$]h&]uh1jhjUhK/hjSUubeh}(h]h ]h"]h$]h&]uh1j hj Uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK3hjThhubh)}(hA list of struct clk_notifier is maintained by the notifier code. An entry is created whenever code registers the first notifier on a particular **clk**. Future notifiers on that **clk** are added to the **notifier_head**.h](hA list of struct clk_notifier is maintained by the notifier code. An entry is created whenever code registers the first notifier on a particular }(hj'VhhhNhNubj)}(h**clk**h]hclk}(hj/VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Vubh. Future notifiers on that }(hj'VhhhNhNubj)}(h**clk**h]hclk}(hjAVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Vubh are added to the }(hj'VhhhNhNubj)}(h**notifier_head**h]h notifier_head}(hjSVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Vubh.}(hj'VhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK0hjThhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_notifier_data (C struct)c.clk_notifier_datahNtauh1hhjThhhNhNubj)}(hhh](j)}(hclk_notifier_datah]j)}(hstruct clk_notifier_datah](j)}(hj h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK8ubj2)}(h h]h }(hjVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVhhhjVhK8ubj{)}(hclk_notifier_datah]j)}(hjVh]hclk_notifier_data}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjVhK8ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}VhhhjVhK8ubah}(h]jxVah ](jjeh"]h$]h&]jj)jhuh1jhjVhK8hjzVhhubj)}(hhh]h)}(h*rate data to pass to the notifier callbackh]h*rate data to pass to the notifier callback}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK=hjVhhubah}(h]h ]h"]h$]h&]uh1jhjzVhhhjVhK8ubeh}(h]h ](jstructeh"]h$]h&]jjjjVjjVjjjuh1jhhhjThNhNubj)}(hX)**Definition**:: struct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; }; **Members** ``clk`` struct clk * being changed ``old_rate`` previous rate of this clk ``new_rate`` new rate of this clkh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh:}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKAhjVubjH)}(hstruct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; };h]hstruct clk_notifier_data { struct clk *clk; unsigned long old_rate; unsigned long new_rate; };}hjWsbah}(h]h ]h"]h$]h&]jjuh1jHhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKChjVubh)}(h **Members**h]j)}(hjWh]hMembers}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKIhjVubj )}(hhh](j)}(h#``clk`` struct clk * being changed h](j)}(h``clk``h]j)}(hj4Wh]hclk}(hj6WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Wubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK?hj.Wubj2)}(hhh]h)}(hstruct clk * being changedh]hstruct clk * being changed}(hjMWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIWhK?hjJWubah}(h]h ]h"]h$]h&]uh1j1hj.Wubeh}(h]h ]h"]h$]h&]uh1jhjIWhK?hj+Wubj)}(h'``old_rate`` previous rate of this clk h](j)}(h ``old_rate``h]j)}(hjmWh]hold_rate}(hjoWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK@hjgWubj2)}(hhh]h)}(hprevious rate of this clkh]hprevious rate of this clk}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhK@hjWubah}(h]h ]h"]h$]h&]uh1j1hjgWubeh}(h]h ]h"]h$]h&]uh1jhjWhK@hj+Wubj)}(h!``new_rate`` new rate of this clkh](j)}(h ``new_rate``h]j)}(hjWh]hnew_rate}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK@hjWubj2)}(hhh]h)}(hnew rate of this clkh]hnew rate of this clk}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKAhjWubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhK@hj+Wubeh}(h]h ]h"]h$]h&]uh1j hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(h**Description**h]j)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKDhjThhubh)}(hFor a pre-notifier, old_rate is the clk's rate before this rate change, and new_rate is what the rate will be in the future. For a post-notifier, old_rate and new_rate are both set to the clk's current rate (this was done to optimize the implementation).h]hXFor a pre-notifier, old_rate is the clk’s rate before this rate change, and new_rate is what the rate will be in the future. For a post-notifier, old_rate and new_rate are both set to the clk’s current rate (this was done to optimize the implementation).}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKAhjThhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_data (C struct)c.clk_bulk_datahNtauh1hhjThhhNhNubj)}(hhh](j)}(h clk_bulk_datah]j)}(hstruct clk_bulk_datah](j)}(hj h]hstruct}(hj'XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#XhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKIubj2)}(h h]h }(hj5XhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#Xhhhj4XhKIubj{)}(h clk_bulk_datah]j)}(hj!Xh]h clk_bulk_data}(hjGXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCXubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#Xhhhj4XhKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjXhhhj4XhKIubah}(h]jXah ](jjeh"]h$]h&]jj)jhuh1jhj4XhKIhjXhhubj)}(hhh]h)}(h"Data used for bulk clk operations.h]h"Data used for bulk clk operations.}(hjiXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKNhjfXhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhj4XhKIubeh}(h]h ](jstructeh"]h$]h&]jjjjXjjXjjjuh1jhhhjThNhNubj)}(h**Definition**:: struct clk_bulk_data { const char *id; struct clk *clk; }; **Members** ``id`` clock consumer ID ``clk`` struct clk * to store the associated clockh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh:}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKRhjXubjH)}(h\struct clk_bulk_data { const char *id; struct clk *clk; };h]h\struct clk_bulk_data { const char *id; struct clk *clk; };}hjXsbah}(h]h ]h"]h$]h&]jjuh1jHhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKThjXubh)}(h **Members**h]j)}(hjXh]hMembers}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKYhjXubj )}(hhh](j)}(h``id`` clock consumer ID h](j)}(h``id``h]j)}(hjXh]hid}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKQhjXubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhKQhjXubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjXhKQhjXubj)}(h2``clk`` struct clk * to store the associated clockh](j)}(h``clk``h]j)}(hjYh]hclk}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Yubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKQhj Yubj2)}(hhh]h)}(h*struct clk * to store the associated clockh]h*struct clk * to store the associated clock}(hj(YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKRhj%Yubah}(h]h ]h"]h$]h&]uh1j1hj Yubeh}(h]h ]h"]h$]h&]uh1jhj$YhKQhjXubeh}(h]h ]h"]h$]h&]uh1j hjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(h**Description**h]j)}(hjRYh]h Description}(hjTYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKUhjThhubh)}(hThe CLK APIs provide a series of clk_bulk_() API calls as a convenience to consumers which require multiple clks. This structure is used to manage data for these calls.h]hThe CLK APIs provide a series of clk_bulk_() API calls as a convenience to consumers which require multiple clks. This structure is used to manage data for these calls.}(hjhYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKRhjThhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "clk_notifier_register (C function)c.clk_notifier_registerhNtauh1hhjThhhNhNubj)}(hhh](j)}(hFint clk_notifier_register (struct clk *clk, struct notifier_block *nb)h]j)}(hEint clk_notifier_register(struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjYhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK_ubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYhhhjYhK_ubj{)}(hclk_notifier_registerh]j)}(hclk_notifier_registerh]hclk_notifier_register}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYhhhjYhK_ubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubh)}(hhh]j)}(hclkh]hclk}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]jf )}jY jYsbc.clk_notifier_registerasbuh1hhjYubj2)}(h h]h }(hj ZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjYubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hclkh]hclk}(hj&ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubj)}(hstruct notifier_block *nbh](j)}(hj h]hstruct}(hj?ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Zubj2)}(h h]h }(hjLZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;Zubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hj]ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_ZmodnameN classnameNj] j` )}jc ]jZc.clk_notifier_registerasbuh1hhj;Zubj2)}(h h]h }(hj{ZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;Zubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Zubj)}(hnbh]hnb}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;Zubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjYubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhK_ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhK_ubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1jhjYhK_hjYhhubj)}(hhh]h)}(h.register a clock rate-change notifier callbackh]h.register a clock rate-change notifier callback}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK_hjZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhK_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhjThNhNubj)}(hXF**Parameters** ``struct clk *clk`` clock whose rate we are interested in ``struct notifier_block *nb`` notifier block with callback function pointer **Description** ProTip: debugging across notifier chains can be frustrating. Make sure that your notifier callback function prints a nice big warning in case of failure.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKchjZubj )}(hhh](j)}(h:``struct clk *clk`` clock whose rate we are interested in h](j)}(h``struct clk *clk``h]j)}(hj[h]hstruct clk *clk}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK`hjZubj2)}(hhh]h)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hK`hj[ubah}(h]h ]h"]h$]h&]uh1j1hjZubeh}(h]h ]h"]h$]h&]uh1jhj[hK`hjZubj)}(hL``struct notifier_block *nb`` notifier block with callback function pointer h](j)}(h``struct notifier_block *nb``h]j)}(hj:[h]hstruct notifier_block *nb}(hj<[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8[ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKahj4[ubj2)}(hhh]h)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hjS[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO[hKahjP[ubah}(h]h ]h"]h$]h&]uh1j1hj4[ubeh}(h]h ]h"]h$]h&]uh1jhjO[hKahjZubeh}(h]h ]h"]h$]h&]uh1j hjZubh)}(h**Description**h]j)}(hju[h]h Description}(hjw[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs[ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKchjZubh)}(hProTip: debugging across notifier chains can be frustrating. Make sure that your notifier callback function prints a nice big warning in case of failure.h]hProTip: debugging across notifier chains can be frustrating. Make sure that your notifier callback function prints a nice big warning in case of failure.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKbhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $clk_notifier_unregister (C function)c.clk_notifier_unregisterhNtauh1hhjThhhNhNubj)}(hhh](j)}(hHint clk_notifier_unregister (struct clk *clk, struct notifier_block *nb)h]j)}(hGint clk_notifier_unregister(struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(hj[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKjubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[hhhj[hKjubj{)}(hclk_notifier_unregisterh]j)}(hclk_notifier_unregisterh]hclk_notifier_unregister}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[hhhj[hKjubj)}(h,(struct clk *clk, struct notifier_block *nb)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubh)}(hhh]j)}(hclkh]hclk}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj\modnameN classnameNj] j` )}jc ]jf )}jY j[sbc.clk_notifier_unregisterasbuh1hhj[ubj2)}(h h]h }(hj5\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[ubj)}(hjh]h*}(hjC\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hclkh]hclk}(hjP\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubj)}(hstruct notifier_block *nbh](j)}(hj h]hstruct}(hji\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje\ubj2)}(h h]h }(hjv\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hje\ubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj\modnameN classnameNj] j` )}jc ]j1\c.clk_notifier_unregisterasbuh1hhje\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hje\ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje\ubj)}(hnbh]hnb}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj[ubeh}(h]h ]h"]h$]h&]jjuh1jhj[hhhj[hKjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhj[hKjubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jhj[hKjhj[hhubj)}(hhh]h)}(h0unregister a clock rate-change notifier callbackh]h0unregister a clock rate-change notifier callback}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKjhj\hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj[hKjubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock whose rate we are no longer interested in ``struct notifier_block *nb`` notifier block which will be unregisteredh](h)}(h**Parameters**h]j)}(hj ]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKnhj]ubj )}(hhh](j)}(hD``struct clk *clk`` clock whose rate we are no longer interested in h](j)}(h``struct clk *clk``h]j)}(hj+]h]hstruct clk *clk}(hj-]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)]ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKkhj%]ubj2)}(hhh]h)}(h/clock whose rate we are no longer interested inh]h/clock whose rate we are no longer interested in}(hjD]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@]hKkhjA]ubah}(h]h ]h"]h$]h&]uh1j1hj%]ubeh}(h]h ]h"]h$]h&]uh1jhj@]hKkhj"]ubj)}(hG``struct notifier_block *nb`` notifier block which will be unregisteredh](j)}(h``struct notifier_block *nb``h]j)}(hjd]h]hstruct notifier_block *nb}(hjf]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb]ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKmhj^]ubj2)}(hhh]h)}(h)notifier block which will be unregisteredh]h)notifier block which will be unregistered}(hj}]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKlhjz]ubah}(h]h ]h"]h$]h&]uh1j1hj^]ubeh}(h]h ]h"]h$]h&]uh1jhjy]hKmhj"]ubeh}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'devm_clk_notifier_register (C function)c.devm_clk_notifier_registerhNtauh1hhjThhhNhNubj)}(hhh](j)}(h_int devm_clk_notifier_register (struct device *dev, struct clk *clk, struct notifier_block *nb)h]j)}(h^int devm_clk_notifier_register(struct device *dev, struct clk *clk, struct notifier_block *nb)h](j )}(hinth]hint}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKqubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhj]hKqubj{)}(hdevm_clk_notifier_registerh]j)}(hdevm_clk_notifier_registerh]hdevm_clk_notifier_register}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhj]hKqubj)}(h@(struct device *dev, struct clk *clk, struct notifier_block *nb)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubh)}(hhh]j)}(hdeviceh]hdevice}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]jf )}jY j]sbc.devm_clk_notifier_registerasbuh1hhj]ubj2)}(h h]h }(hj9^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]ubj)}(hjh]h*}(hjG^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hdevh]hdev}(hjT^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjm^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji^ubj2)}(h h]h }(hjz^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hji^ubh)}(hhh]j)}(hclkh]hclk}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]j5^c.devm_clk_notifier_registerasbuh1hhji^ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hji^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji^ubj)}(hclkh]hclk}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubj)}(hstruct notifier_block *nbh](j)}(hj h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]j5^c.devm_clk_notifier_registerasbuh1hhj^ubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^ubj)}(hjh]h*}(hj'_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hnbh]hnb}(hj4_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubeh}(h]h ]h"]h$]h&]jjuh1jhj]hhhj]hKqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj]hKqubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1jhj]hKqhj]hhubj)}(hhh]h)}(h0register a managed rate-change notifier callbackh]h0register a managed rate-change notifier callback}(hj^_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKqhj[_hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hKqubeh}(h]h ](jfunctioneh"]h$]h&]jjjjv_jjv_jjjuh1jhhhjThNhNubj)}(hX **Parameters** ``struct device *dev`` device for clock "consumer" ``struct clk *clk`` clock whose rate we are interested in ``struct notifier_block *nb`` notifier block with callback function pointer **Description** Returns 0 on success, -EERROR otherwiseh](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~_ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKuhjz_ubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj_h]hstruct device *dev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKrhj_ubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKrhj_ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hKrhj_ubj)}(h:``struct clk *clk`` clock whose rate we are interested in h](j)}(h``struct clk *clk``h]j)}(hj_h]hstruct clk *clk}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKshj_ubj2)}(hhh]h)}(h%clock whose rate we are interested inh]h%clock whose rate we are interested in}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKshj_ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hKshj_ubj)}(hL``struct notifier_block *nb`` notifier block with callback function pointer h](j)}(h``struct notifier_block *nb``h]j)}(hj`h]hstruct notifier_block *nb}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKthj `ubj2)}(hhh]h)}(h-notifier block with callback function pointerh]h-notifier block with callback function pointer}(hj*`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&`hKthj'`ubah}(h]h ]h"]h$]h&]uh1j1hj `ubeh}(h]h ]h"]h$]h&]uh1jhj&`hKthj_ubeh}(h]h ]h"]h$]h&]uh1j hjz_ubh)}(h**Description**h]j)}(hjL`h]h Description}(hjN`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ`ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKvhjz_ubh)}(h'Returns 0 on success, -EERROR otherwiseh]h'Returns 0 on success, -EERROR otherwise}(hjb`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKuhjz_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_accuracy (C function)c.clk_get_accuracyhNtauh1hhjThhhNhNubj)}(hhh](j)}(h'long clk_get_accuracy (struct clk *clk)h]j)}(h&long clk_get_accuracy(struct clk *clk)h](j )}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj`hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK|ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`hhhj`hK|ubj{)}(hclk_get_accuracyh]j)}(hclk_get_accuracyh]hclk_get_accuracy}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj`hhhj`hK|ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubh)}(hhh]j)}(hclkh]hclk}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj`modnameN classnameNj] j` )}jc ]jf )}jY j`sbc.clk_get_accuracyasbuh1hhj`ubj2)}(h h]h }(hj ahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj`ubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj)}(hclkh]hclk}(hj'ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubah}(h]h ]h"]h$]h&]jjuh1jhj`hhhj`hK|ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`hhhj`hK|ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1jhj`hK|hj`hhubj)}(hhh]h)}(hHobtain the clock accuracy in ppb (parts per billion) for a clock source.h]hHobtain the clock accuracy in ppb (parts per billion) for a clock source.}(hjQahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK|hjNahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hK|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjiajjiajjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** This gets the clock source accuracy expressed in ppb. A perfect clock returns 0.h](h)}(h**Parameters**h]j)}(hjsah]h Parameters}(hjuahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmaubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjah]hstruct clk *clk}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhK~hjaubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahK~hjaubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhjahK~hjaubah}(h]h ]h"]h$]h&]uh1j hjmaubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmaubh)}(hPThis gets the clock source accuracy expressed in ppb. A perfect clock returns 0.h]hPThis gets the clock source accuracy expressed in ppb. A perfect clock returns 0.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_phase (C function)c.clk_set_phasehNtauh1hhjThhhNhNubj)}(hhh](j)}(h0int clk_set_phase (struct clk *clk, int degrees)h]j)}(h/int clk_set_phase(struct clk *clk, int degrees)h](j )}(hinth]hint}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKubj2)}(h h]h }(hj!bhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbhhhj bhKubj{)}(h clk_set_phaseh]j)}(h clk_set_phaseh]h clk_set_phase}(hj3bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/bubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjbhhhj bhKubj)}(h(struct clk *clk, int degrees)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjObhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKbubj2)}(h h]h }(hj\bhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKbubh)}(hhh]j)}(hclkh]hclk}(hjmbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjobmodnameN classnameNj] j` )}jc ]jf )}jY j5bsbc.clk_set_phaseasbuh1hhjKbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKbubj)}(hclkh]hclk}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGbubj)}(h int degreesh](j )}(hinth]hint}(hjbhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjbhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hdegreesh]hdegrees}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGbubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhj bhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj bhhhj bhKubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1jhj bhKhjbhhubj)}(hhh]h)}(h(adjust the phase shift of a clock signalh]h(adjust the phase shift of a clock signal}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj bhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock signal source ``int degrees`` number of degrees the signal is shifted **Description** Shifts the phase of a clock signal by the specified degrees. Returns 0 on success, -EERROR otherwise.h](h)}(h**Parameters**h]j)}(hj)ch]h Parameters}(hj+chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'cubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj#cubj )}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hjHch]hstruct clk *clk}(hjJchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjBcubj2)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hjachhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]chKhj^cubah}(h]h ]h"]h$]h&]uh1j1hjBcubeh}(h]h ]h"]h$]h&]uh1jhj]chKhj?cubj)}(h8``int degrees`` number of degrees the signal is shifted h](j)}(h``int degrees``h]j)}(hjch]h int degrees}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj{cubj2)}(hhh]h)}(h'number of degrees the signal is shiftedh]h'number of degrees the signal is shifted}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKhjcubah}(h]h ]h"]h$]h&]uh1j1hj{cubeh}(h]h ]h"]h$]h&]uh1jhjchKhj?cubeh}(h]h ]h"]h$]h&]uh1j hj#cubh)}(h**Description**h]j)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj#cubh)}(heShifts the phase of a clock signal by the specified degrees. Returns 0 on success, -EERROR otherwise.h]heShifts the phase of a clock signal by the specified degrees. Returns 0 on success, -EERROR otherwise.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj#cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_phase (C function)c.clk_get_phasehNtauh1hhjThhhNhNubj)}(hhh](j)}(h#int clk_get_phase (struct clk *clk)h]j)}(h"int clk_get_phase(struct clk *clk)h](j )}(hinth]hint}(hjdhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjchhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjchhhjdhKubj{)}(h clk_get_phaseh]j)}(h clk_get_phaseh]h clk_get_phase}(hj"dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjchhhjdhKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj>dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:dubj2)}(h h]h }(hjKdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:dubh)}(hhh]j)}(hclkh]hclk}(hj\dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYdubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^dmodnameN classnameNj] j` )}jc ]jf )}jY j$dsbc.clk_get_phaseasbuh1hhj:dubj2)}(h h]h }(hj|dhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:dubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:dubj)}(hclkh]hclk}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:dubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6dubah}(h]h ]h"]h$]h&]jjuh1jhjchhhjdhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjchhhjdhKubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhjdhKhjchhubj)}(hhh]h)}(h(return the phase shift of a clock signalh]h(return the phase shift of a clock signal}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjdhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjdhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock signal source **Description** Returns the phase shift of a clock node in degrees, otherwise returns -EERROR.h](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjdubj )}(hhh]j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hjeh]hstruct clk *clk}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjdubj2)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehKhjeubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjehKhjdubah}(h]h ]h"]h$]h&]uh1j hjdubh)}(h**Description**h]j)}(hj=eh]h Description}(hj?ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;eubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjdubh)}(hNReturns the phase shift of a clock node in degrees, otherwise returns -EERROR.h]hNReturns the phase shift of a clock node in degrees, otherwise returns -EERROR.}(hjSehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_duty_cycle (C function)c.clk_set_duty_cyclehNtauh1hhjThhhNhNubj)}(hhh](j)}(hLint clk_set_duty_cycle (struct clk *clk, unsigned int num, unsigned int den)h]j)}(hKint clk_set_duty_cycle(struct clk *clk, unsigned int num, unsigned int den)h](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~ehhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~ehhhjehKubj{)}(hclk_set_duty_cycleh]j)}(hclk_set_duty_cycleh]hclk_set_duty_cycle}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~ehhhjehKubj)}(h5(struct clk *clk, unsigned int num, unsigned int den)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(hhh]j)}(hclkh]hclk}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjemodnameN classnameNj] j` )}jc ]jf )}jY jesbc.clk_set_duty_cycleasbuh1hhjeubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hj fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hclkh]hclk}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hunsigned int numh](j )}(hunsignedh]hunsigned}(hj1fhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-fubj2)}(h h]h }(hj?fhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-fubj )}(hinth]hint}(hjMfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-fubj2)}(h h]h }(hj[fhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-fubj)}(hnumh]hnum}(hjifhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hunsigned int denh](j )}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~fubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~fubj )}(hinth]hint}(hjfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~fubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~fubj)}(hdenh]hden}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~fubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhj~ehhhjehKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzehhhjehKubah}(h]jueah ](jjeh"]h$]h&]jj)jhuh1jhjehKhjwehhubj)}(hhh]h)}(h-adjust the duty cycle ratio of a clock signalh]h-adjust the duty cycle ratio of a clock signal}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjfhhubah}(h]h ]h"]h$]h&]uh1jhjwehhhjehKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1jhhhjThNhNubj)}(hXF**Parameters** ``struct clk *clk`` clock signal source ``unsigned int num`` numerator of the duty cycle ratio to be applied ``unsigned int den`` denominator of the duty cycle ratio to be applied **Description** Adjust the duty cycle of a clock signal by the specified ratio. Returns 0 on success, -EERROR otherwise.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjgubj )}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hj%gh]hstruct clk *clk}(hj'ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#gubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjgubj2)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hj>ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ghKhj;gubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhj:ghKhjgubj)}(hE``unsigned int num`` numerator of the duty cycle ratio to be applied h](j)}(h``unsigned int num``h]j)}(hj^gh]hunsigned int num}(hj`ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\gubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjXgubj2)}(hhh]h)}(h/numerator of the duty cycle ratio to be appliedh]h/numerator of the duty cycle ratio to be applied}(hjwghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsghKhjtgubah}(h]h ]h"]h$]h&]uh1j1hjXgubeh}(h]h ]h"]h$]h&]uh1jhjsghKhjgubj)}(hG``unsigned int den`` denominator of the duty cycle ratio to be applied h](j)}(h``unsigned int den``h]j)}(hjgh]hunsigned int den}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjgubj2)}(hhh]h)}(h1denominator of the duty cycle ratio to be appliedh]h1denominator of the duty cycle ratio to be applied}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghKhjgubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghKhjgubeh}(h]h ]h"]h$]h&]uh1j hjgubh)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjgubh)}(hhAdjust the duty cycle of a clock signal by the specified ratio. Returns 0 on success, -EERROR otherwise.h]hhAdjust the duty cycle of a clock signal by the specified ratio. Returns 0 on success, -EERROR otherwise.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &clk_get_scaled_duty_cycle (C function)c.clk_get_scaled_duty_cyclehNtauh1hhjThhhNhNubj)}(hhh](j)}(hCint clk_get_scaled_duty_cycle (struct clk *clk, unsigned int scale)h]j)}(hBint clk_get_scaled_duty_cycle(struct clk *clk, unsigned int scale)h](j )}(hinth]hint}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKubj2)}(h h]h }(hj&hhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhhj%hhKubj{)}(hclk_get_scaled_duty_cycleh]j)}(hclk_get_scaled_duty_cycleh]hclk_get_scaled_duty_cycle}(hj8hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhhj%hhKubj)}(h%(struct clk *clk, unsigned int scale)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjThhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhubj2)}(h h]h }(hjahhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPhubh)}(hhh]j)}(hclkh]hclk}(hjrhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjthmodnameN classnameNj] j` )}jc ]jf )}jY j:hsbc.clk_get_scaled_duty_cycleasbuh1hhjPhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhubj)}(hclkh]hclk}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLhubj)}(hunsigned int scaleh](j )}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj )}(hinth]hint}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhubj)}(hscaleh]hscale}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLhubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhhj%hhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhj%hhKubah}(h]j hah ](jjeh"]h$]h&]jj)jhuh1jhj%hhKhj hhhubj)}(hhh]h)}(h-return the duty cycle ratio of a clock signalh]h-return the duty cycle ratio of a clock signal}(hj(ihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj%ihhubah}(h]h ]h"]h$]h&]uh1jhj hhhhj%hhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@ijj@ijjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct clk *clk`` clock signal source ``unsigned int scale`` scaling factor to be applied to represent the ratio as an integer **Description** Returns the duty cycle ratio multiplied by the scale provided, otherwise returns -EERROR.h](h)}(h**Parameters**h]j)}(hjJih]h Parameters}(hjLihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjDiubj )}(hhh](j)}(h(``struct clk *clk`` clock signal source h](j)}(h``struct clk *clk``h]j)}(hjiih]hstruct clk *clk}(hjkihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjciubj2)}(hhh]h)}(hclock signal sourceh]hclock signal source}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ihKhjiubah}(h]h ]h"]h$]h&]uh1j1hjciubeh}(h]h ]h"]h$]h&]uh1jhj~ihKhj`iubj)}(hY``unsigned int scale`` scaling factor to be applied to represent the ratio as an integer h](j)}(h``unsigned int scale``h]j)}(hjih]hunsigned int scale}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjiubj2)}(hhh]h)}(hAscaling factor to be applied to represent the ratio as an integerh]hAscaling factor to be applied to represent the ratio as an integer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjiubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjihKhj`iubeh}(h]h ]h"]h$]h&]uh1j hjDiubh)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjDiubh)}(hYReturns the duty cycle ratio multiplied by the scale provided, otherwise returns -EERROR.h]hYReturns the duty cycle ratio multiplied by the scale provided, otherwise returns -EERROR.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjDiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_is_match (C function)c.clk_is_matchhNtauh1hhjThhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjjhhhj/jhKubj{)}(h clk_is_matchh]j)}(h clk_is_matchh]h clk_is_match}(hjBjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>jubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhj/jhKubj)}(h*(const struct clk *p, const struct clk *q)h](j)}(hconst struct clk *ph](j)}(hjh]hconst}(hj^jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZjubj2)}(h h]h }(hjkjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZjubj)}(hj h]hstruct}(hjyjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZjubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZjubh)}(hhh]j)}(hclkh]hclk}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]jf )}jY jDjsbc.clk_is_matchasbuh1hhjZjubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZjubj)}(hjh]hp}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVjubj)}(hconst struct clk *qh](j)}(hjh]hconst}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hj h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubh)}(hhh]j)}(hclkh]hclk}(hj#khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj%kmodnameN classnameNj] j` )}jc ]jjc.clk_is_matchasbuh1hhjjubj2)}(h h]h }(hjAkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hjh]h*}(hjOkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hj(lh]hq}(hj\khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhj/jhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhj/jhKubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1jhj/jhKhjjhhubj)}(hhh]h)}(h3check if two clk's point to the same hardware clockh]h5check if two clk’s point to the same hardware clock}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhj/jhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``const struct clk *p`` clk compared against q ``const struct clk *q`` clk compared against p **Description** Returns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if **p** and **q** share the same :c:type:`struct clk_core ` object. Returns false otherwise. Note that two NULL clks are treated as matching.h](h)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjkubj )}(hhh](j)}(h/``const struct clk *p`` clk compared against q h](j)}(h``const struct clk *p``h]j)}(hjkh]hconst struct clk *p}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjkubj2)}(hhh]h)}(hclk compared against qh]hclk compared against q}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhKhjkubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjkhKhjkubj)}(h/``const struct clk *q`` clk compared against p h](j)}(h``const struct clk *q``h]j)}(hjkh]hconst struct clk *q}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjkubj2)}(hhh]h)}(hclk compared against ph]hclk compared against p}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhKhjlubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjlhKhjkubeh}(h]h ]h"]h$]h&]uh1j hjkubh)}(h**Description**h]j)}(hj:lh]h Description}(hj` object.h](hyReturns true if the two struct clk pointers both point to the same hardware clock node. Put differently, returns true if }(hjPlhhhNhNubj)}(h**p**h]hp}(hjXlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPlubh and }(hjPlhhhNhNubj)}(h**q**h]hq}(hjjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPlubh share the same }(hjPlhhhNhNubh)}(h$:c:type:`struct clk_core `h]j)}(hj~lh]hstruct clk_core}(hjlhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|lubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjclk_coreuh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjPlubh object.}(hjPlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhKhjkubh)}(hIReturns false otherwise. Note that two NULL clks are treated as matching.h]hIReturns false otherwise. Note that two NULL clks are treated as matching.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #clk_rate_exclusive_get (C function)c.clk_rate_exclusive_gethNtauh1hhjThhhNhNubj)}(hhh](j)}(h,int clk_rate_exclusive_get (struct clk *clk)h]j)}(h+int clk_rate_exclusive_get(struct clk *clk)h](j )}(hinth]hint}(hjlhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhjlhKubj{)}(hclk_rate_exclusive_geth]j)}(hclk_rate_exclusive_geth]hclk_rate_exclusive_get}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhjlhKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubh)}(hhh]j)}(hclkh]hclk}(hj0mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-mubah<}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj2mmodnameN classnameNj] j` )}jc ]jf )}jY jlsbc.clk_rate_exclusive_getasbuh1hhjmubj2)}(h h]h }(hjPmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjmubj)}(hjh]h*}(hj^mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hclkh]hclk}(hjkmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj mubah}(h]h ]h"]h$]h&]jjuh1jhjlhhhjlhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjlhKubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1jhjlhKhjlhhubj)}(hhh]h)}(h3get exclusivity over the rate control of a producerh]h3get exclusivity over the rate control of a producer}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source **Description** This function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitches If exlusivity is claimed more than once on clock, even by the same driver, the rate effectively gets locked as exclusivity can't be preempted. Must not be called from within atomic context. Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjmh]hstruct clk *clk}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKhjmubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjmhKhjmubah}(h]h ]h"]h$]h&]uh1j hjmubh)}(h**Description**h]j)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmubh)}(hThis function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitchesh]hThis function allows drivers to get exclusive control over the rate of a provider. It prevents any other consumer to execute, even indirectly, opereation which could alter the rate of the provider or cause glitches}(hj'nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmubh)}(hIf exlusivity is claimed more than once on clock, even by the same driver, the rate effectively gets locked as exclusivity can't be preempted.h]hIf exlusivity is claimed more than once on clock, even by the same driver, the rate effectively gets locked as exclusivity can’t be preempted.}(hj6nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjEnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjTnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (devm_clk_rate_exclusive_get (C function)c.devm_clk_rate_exclusive_gethNtauh1hhjThhhNhNubj)}(hhh](j)}(hEint devm_clk_rate_exclusive_get (struct device *dev, struct clk *clk)h]j)}(hDint devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk)h](j )}(hinth]hint}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjnhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnhhhjnhKubj{)}(hdevm_clk_rate_exclusive_geth]j)}(hdevm_clk_rate_exclusive_geth]hdevm_clk_rate_exclusive_get}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjnhhhjnhKubj)}(h%(struct device *dev, struct clk *clk)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubh)}(hhh]j)}(hdeviceh]hdevice}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnmodnameN classnameNj] j` )}jc ]jf )}jY jnsbc.devm_clk_rate_exclusive_getasbuh1hhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hj ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hdevh]hdev}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj2ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.oubj2)}(h h]h }(hj?ohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.oubh)}(hhh]j)}(hclkh]hclk}(hjPohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMoubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRomodnameN classnameNj] j` )}jc ]jnc.devm_clk_rate_exclusive_getasbuh1hhj.oubj2)}(h h]h }(hjnohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.oubj)}(hjh]h*}(hj|ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.oubj)}(hclkh]hclk}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjnhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{nhhhjnhKubah}(h]jvnah ](jjeh"]h$]h&]jj)jhuh1jhjnhKhjxnhhubj)}(hhh]h)}(h&devm variant of clk_rate_exclusive_geth]h&devm variant of clk_rate_exclusive_get}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjohhubah}(h]h ]h"]h$]h&]uh1jhjxnhhhjnhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1jhhhjThNhNubj)}(hX-**Parameters** ``struct device *dev`` device the exclusivity is bound to ``struct clk *clk`` clock source **Description** Calls clk_rate_exclusive_get() on **clk** and registers a devm cleanup handler on **dev** to call clk_rate_exclusive_put(). Must not be called from within atomic context.h](h)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjoubj )}(hhh](j)}(h:``struct device *dev`` device the exclusivity is bound to h](j)}(h``struct device *dev``h]j)}(hjoh]hstruct device *dev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjoubj2)}(hhh]h)}(h"device the exclusivity is bound toh]h"device the exclusivity is bound to}(hj phhhNhNubah}(h]h ]h"]h$]h&]uh1hhj phKhj pubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhj phKhjoubj)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj-ph]hstruct clk *clk}(hj/phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+pubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj'pubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjFphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBphKhjCpubah}(h]h ]h"]h$]h&]uh1j1hj'pubeh}(h]h ]h"]h$]h&]uh1jhjBphKhjoubeh}(h]h ]h"]h$]h&]uh1j hjoubh)}(h**Description**h]j)}(hjhph]h Description}(hjjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfpubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjoubh)}(h{Calls clk_rate_exclusive_get() on **clk** and registers a devm cleanup handler on **dev** to call clk_rate_exclusive_put().h](h"Calls clk_rate_exclusive_get() on }(hj~phhhNhNubj)}(h**clk**h]hclk}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~pubh) and registers a devm cleanup handler on }(hj~phhhNhNubj)}(h**dev**h]hdev}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~pubh" to call clk_rate_exclusive_put().}(hj~phhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjoubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #clk_rate_exclusive_put (C function)c.clk_rate_exclusive_puthNtauh1hhjThhhNhNubj)}(hhh](j)}(h-void clk_rate_exclusive_put (struct clk *clk)h]j)}(h,void clk_rate_exclusive_put(struct clk *clk)h](j )}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjphhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjphhhjphKubj{)}(hclk_rate_exclusive_puth]j)}(hclk_rate_exclusive_puth]hclk_rate_exclusive_put}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjphhhjphKubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hj*qhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubh)}(hhh]j)}(hclkh]hclk}(hj;qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8qubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj=qmodnameN classnameNj] j` )}jc ]jf )}jY jqsbc.clk_rate_exclusive_putasbuh1hhjqubj2)}(h h]h }(hj[qhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hjiqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hclkh]hclk}(hjvqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjqubah}(h]h ]h"]h$]h&]jjuh1jhjphhhjphKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjphhhjphKubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jhjphKhjphhubj)}(hhh]h)}(h7release exclusivity over the rate control of a producerh]h7release exclusivity over the rate control of a producer}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjqhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjphKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1jhhhjThNhNubj)}(hX@**Parameters** ``struct clk *clk`` clock source **Description** This function allows drivers to release the exclusivity it previously got from clk_rate_exclusive_get() The caller must balance the number of clk_rate_exclusive_get() and clk_rate_exclusive_put() calls. Must not be called from within atomic context.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjqubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjqh]hstruct clk *clk}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjqubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhKhjqubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjqubah}(h]h ]h"]h$]h&]uh1j hjqubh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjqubh)}(hgThis function allows drivers to release the exclusivity it previously got from clk_rate_exclusive_get()h]hgThis function allows drivers to release the exclusivity it previously got from clk_rate_exclusive_get()}(hj2rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjqubh)}(hbThe caller must balance the number of clk_rate_exclusive_get() and clk_rate_exclusive_put() calls.h]hbThe caller must balance the number of clk_rate_exclusive_get() and clk_rate_exclusive_put() calls.}(hjArhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjqubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjPrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_save_context (C function)c.clk_save_contexthNtauh1hhjThhhNhNubj)}(hhh](j)}(hint clk_save_context (void)h]j)}(hint clk_save_context(void)h](j )}(hinth]hint}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj{rhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{rhhhjrhKubj{)}(hclk_save_contexth]j)}(hclk_save_contexth]hclk_save_context}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{rhhhjrhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhj{rhhhjrhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwrhhhjrhKubah}(h]jrrah ](jjeh"]h$]h&]jj)jhuh1jhjrhKhjtrhhubj)}(hhh]h)}(hsave clock context for poweroffh]hsave clock context for poweroff}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjrhhubah}(h]h ]h"]h$]h&]uh1jhjtrhhhjrhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jhhhjThNhNubj)}(h**Parameters** ``void`` no arguments **Description** Saves the context of the clock register for powerstates in which the contents of the registers will be lost. Occurs deep within the suspend code so locking is not necessary.h](h)}(h**Parameters**h]j)}(hjsh]h Parameters}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjsubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj'sh]hvoid}(hj)shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%subah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj!subj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj@shhhNhNubah}(h]h ]h"]h$]h&]uh1hhjah"]h$]h&]uh1j1hjshhhjshKubj{)}(hclk_restore_contexth]j)}(hclk_restore_contexth]hclk_restore_context}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjshhhjshKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhjshhhjshKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjshKubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1jhjshKhjshhubj)}(hhh]h)}(h$restore clock context after poweroffh]h$restore clock context after poweroff}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj thhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&tjj&tjjjuh1jhhhjThNhNubj)}(h**Parameters** ``void`` no arguments **Description** This occurs with all clocks enabled. Occurs deep within the resume code so locking is not necessary.h](h)}(h**Parameters**h]j)}(hj0th]h Parameters}(hj2thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.tubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj*tubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjOth]hvoid}(hjQthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMtubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhjItubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdthKhjetubah}(h]h ]h"]h$]h&]uh1j1hjItubeh}(h]h ]h"]h$]h&]uh1jhjdthKhjFtubah}(h]h ]h"]h$]h&]uh1j hj*tubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj*tubh)}(hdThis occurs with all clocks enabled. Occurs deep within the resume code so locking is not necessary.h]hdThis occurs with all clocks enabled. Occurs deep within the resume code so locking is not necessary.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhKhj*tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_prepare (C function) c.clk_preparehNtauh1hhjThhhNhNubj)}(hhh](j)}(h!int clk_prepare (struct clk *clk)h]j)}(h int clk_prepare(struct clk *clk)h](j )}(hinth]hint}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjthhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMDubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjthhhjthMDubj{)}(h clk_prepareh]j)}(h clk_prepareh]h clk_prepare}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjthhhjthMDubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubh)}(hhh]j)}(hclkh]hclk}(hj*uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'uubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,umodnameN classnameNj] j` )}jc ]jf )}jY jtsb c.clk_prepareasbuh1hhjuubj2)}(h h]h }(hjJuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj)}(hjh]h*}(hjXuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hclkh]hclk}(hjeuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubah}(h]h ]h"]h$]h&]jjuh1jhjthhhjthMDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjthMDubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjthMDhjthhubj)}(hhh]h)}(hprepare a clock sourceh]hprepare a clock source}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMDhjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthMDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** This prepares the clock source for use. Must not be called from within atomic context.h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMHhjuubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjuh]hstruct clk *clk}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMEhjuubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMEhjuubah}(h]h ]h"]h$]h&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMEhjuubah}(h]h ]h"]h$]h&]uh1j hjuubh)}(h**Description**h]j)}(hj vh]h Description}(hj vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj vubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMGhjuubh)}(h'This prepares the clock source for use.h]h'This prepares the clock source for use.}(hj!vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMFhjuubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hj0vhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMHhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_unprepare (C function)c.clk_unpreparehNtauh1hhjThhhNhNubj)}(hhh](j)}(h$void clk_unprepare (struct clk *clk)h]j)}(h#void clk_unprepare(struct clk *clk)h](j )}(hvoidh]hvoid}(hj_vhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[vhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMNubj2)}(h h]h }(hjnvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[vhhhjmvhMNubj{)}(h clk_unprepareh]j)}(h clk_unprepareh]h clk_unprepare}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|vubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[vhhhjmvhMNubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubh)}(hhh]j)}(hclkh]hclk}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjvmodnameN classnameNj] j` )}jc ]jf )}jY jvsbc.clk_unprepareasbuh1hhjvubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hclkh]hclk}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhj[vhhhjmvhMNubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWvhhhjmvhMNubah}(h]jRvah ](jjeh"]h$]h&]jj)jhuh1jhjmvhMNhjTvhhubj)}(hhh]h)}(h"undo preparation of a clock sourceh]h"undo preparation of a clock source}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMNhjwhhubah}(h]h ]h"]h$]h&]uh1jhjTvhhhjmvhMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7wjj7wjjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** This undoes a previously prepared clock. The caller must balance the number of prepare and unprepare calls. Must not be called from within atomic context.h](h)}(h**Parameters**h]j)}(hjAwh]h Parameters}(hjCwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?wubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMRhj;wubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj`wh]hstruct clk *clk}(hjbwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^wubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMOhjZwubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjywhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuwhMOhjvwubah}(h]h ]h"]h$]h&]uh1j1hjZwubeh}(h]h ]h"]h$]h&]uh1jhjuwhMOhjWwubah}(h]h ]h"]h$]h&]uh1j hj;wubh)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMQhj;wubh)}(hlThis undoes a previously prepared clock. The caller must balance the number of prepare and unprepare calls.h]hlThis undoes a previously prepared clock. The caller must balance the number of prepare and unprepare calls.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMPhj;wubh)}(h.Must not be called from within atomic context.h]h.Must not be called from within atomic context.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMShj;wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )clk_is_enabled_when_prepared (C function)c.clk_is_enabled_when_preparedhNtauh1hhjThhhNhNubj)}(hhh](j)}(h3bool clk_is_enabled_when_prepared (struct clk *clk)h]j)}(h2bool clk_is_enabled_when_prepared(struct clk *clk)h](j )}(hj8h]hbool}(hjwhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM]ubj2)}(h h]h }(hjwhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwhhhjwhM]ubj{)}(hclk_is_enabled_when_preparedh]j)}(hclk_is_enabled_when_preparedh]hclk_is_enabled_when_prepared}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj xubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhjwhM]ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj+xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'xubj2)}(h h]h }(hj8xhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'xubh)}(hhh]j)}(hclkh]hclk}(hjIxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFxubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjKxmodnameN classnameNj] j` )}jc ]jf )}jY jxsbc.clk_is_enabled_when_preparedasbuh1hhj'xubj2)}(h h]h }(hjixhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'xubj)}(hjh]h*}(hjwxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'xubj)}(hclkh]hclk}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'xubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#xubah}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhM]ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjwhM]ubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jhjwhM]hjwhhubj)}(hhh]h)}(h.indicate if preparing a clock also enables it.h]h.indicate if preparing a clock also enables it.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM]hjxhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhM]ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source **Description** Returns true if clk_prepare() implicitly enables the clock, effectively making clk_enable()/clk_disable() no-ops, false otherwise. This is of interest mainly to the power management code where actually disabling the clock also requires unpreparing it to have any material effect. Regardless of the value returned here, the caller must always invoke clk_enable() or clk_prepare_enable() and counterparts for usage counts to be right.h](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMahjxubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjxh]hstruct clk *clk}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM^hjxubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhM^hjyubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjyhM^hjxubah}(h]h ]h"]h$]h&]uh1j hjxubh)}(h**Description**h]j)}(hj*yh]h Description}(hj,yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(yubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM`hjxubh)}(hReturns true if clk_prepare() implicitly enables the clock, effectively making clk_enable()/clk_disable() no-ops, false otherwise.h]hReturns true if clk_prepare() implicitly enables the clock, effectively making clk_enable()/clk_disable() no-ops, false otherwise.}(hj@yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM_hjxubh)}(hThis is of interest mainly to the power management code where actually disabling the clock also requires unpreparing it to have any material effect.h]hThis is of interest mainly to the power management code where actually disabling the clock also requires unpreparing it to have any material effect.}(hjOyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMbhjxubh)}(hRegardless of the value returned here, the caller must always invoke clk_enable() or clk_prepare_enable() and counterparts for usage counts to be right.h]hRegardless of the value returned here, the caller must always invoke clk_enable() or clk_prepare_enable() and counterparts for usage counts to be right.}(hj^yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMfhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get (C function) c.clk_gethNtauh1hhjThhhNhNubj)}(hhh](j)}(h9struct clk * clk_get (struct device *dev, const char *id)h]j)}(h7struct clk *clk_get(struct device *dev, const char *id)h](j)}(hj h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhjyhMubh)}(hhh]j)}(hclkh]hclk}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjymodnameN classnameNj] j` )}jc ]jf )}jY clk_getsb c.clk_getasbuh1hhjyhhhjyhMubj2)}(h h]h }(hjyhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhjyhMubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjyhMubj{)}(hclk_geth]j)}(hjyh]hclk_get}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhjyhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubh)}(hhh]j)}(hdeviceh]hdevice}(hj%zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"zubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj'zmodnameN classnameNj] j` )}jc ]jy c.clk_getasbuh1hhjzubj2)}(h h]h }(hjCzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzubj)}(hjh]h*}(hjQzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj)}(hdevh]hdev}(hj^zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hconst char *idh](j)}(hjh]hconst}(hjwzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjszubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjszubj )}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjszubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjszubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjszubj)}(hidh]hid}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjszubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjyhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjyhhhjyhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1jhjyhMhjyhhubj)}(hhh]h)}(h2lookup and obtain a reference to a clock producer.h]h2lookup and obtain a reference to a clock producer.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjzhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1jhhhjThNhNubj)}(hX;**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Description** Returns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.) Drivers must assume that the clock source is not enabled. clk_get should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj {hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj{ubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj&{h]hstruct device *dev}(hj({hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj${ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj {ubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj?{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;{hMhj<{ubah}(h]h ]h"]h$]h&]uh1j1hj {ubeh}(h]h ]h"]h$]h&]uh1jhj;{hMhj{ubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hj_{h]hconst char *id}(hja{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjY{ubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjx{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt{hMhju{ubah}(h]h ]h"]h$]h&]uh1j1hjY{ubeh}(h]h ]h"]h$]h&]uh1jhjt{hMhj{ubeh}(h]h ]h"]h$]h&]uh1j hj{ubh)}(h**Description**h]j)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj{ubh)}(hXDReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.)h](hReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hj{hhhNhNubj)}(h**dev**h]hdev}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh and }(hj{hhhNhNubj)}(h**id**h]hid}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hj{hhhNhNubj)}(h**id**h]hid}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubhY may be identical strings, but clk_get may return different clock producers depending on }(hj{hhhNhNubj)}(h**dev**h]hdev}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubh.)}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj{ubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj{ubh)}(h;clk_get should not be called from within interrupt context.h]h;clk_get should not be called from within interrupt context.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_get (C function)c.clk_bulk_gethNtauh1hhjThhhNhNubj)}(hhh](j)}(hOint clk_bulk_get (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hNint clk_bulk_get(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjE|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjA|hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjT|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjA|hhhjS|hMubj{)}(h clk_bulk_geth]j)}(h clk_bulk_geth]h clk_bulk_get}(hjf|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb|ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjA|hhhjS|hMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~|ubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~|ubh)}(hhh]j)}(hdeviceh]hdevice}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj|modnameN classnameNj] j` )}jc ]jf )}jY jh|sbc.clk_bulk_getasbuh1hhj~|ubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~|ubj)}(hdevh]hdev}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz|ubj)}(h int num_clksh](j )}(hinth]hint}(hj|hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|ubj)}(hnum_clksh]hnum_clks}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz|ubj)}(hstruct clk_bulk_data *clksh](j)}(hj h]hstruct}(hj)}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%}ubj2)}(h h]h }(hj6}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%}ubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjG}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD}ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjI}modnameN classnameNj] j` )}jc ]j|c.clk_bulk_getasbuh1hhj%}ubj2)}(h h]h }(hje}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%}ubj)}(hjh]h*}(hjs}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%}ubj)}(hclksh]hclks}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjz|ubeh}(h]h ]h"]h$]h&]jjuh1jhjA|hhhjS|hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=|hhhjS|hMubah}(h]j8|ah ](jjeh"]h$]h&]jj)jhuh1jhjS|hMhj:|hhubj)}(hhh]h)}(h;lookup and obtain a number of references to clock producer.h]h;lookup and obtain a number of references to clock producer.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj}hhubah}(h]h ]h"]h$]h&]uh1jhj:|hhhjS|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1jhhhjThNhNubj)}(hXO**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** This helper function allows drivers to get several clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller. Returns 0 if all clocks specified in clk_bulk_data table are obtained successfully, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **clk_bulk_data.id** to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each **clk_bulk_data.clk** field. Drivers must assume that the clock source is not enabled. clk_bulk_get should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj}ubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj}h]hstruct device *dev}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj}ubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhj~ubah}(h]h ]h"]h$]h&]uh1j1hj}ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj}ubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hj$~h]h int num_clks}(hj&~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj~ubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj=~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9~hMhj:~ubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhj9~hMhj}ubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hj]~h]hstruct clk_bulk_data *clks}(hj_~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[~ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjW~ubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjv~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr~hMhjs~ubah}(h]h ]h"]h$]h&]uh1j1hjW~ubeh}(h]h ]h"]h$]h&]uh1jhjr~hMhj}ubeh}(h]h ]h"]h$]h&]uh1j hj}ubh)}(h**Description**h]j)}(hj~h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj}ubh)}(hThis helper function allows drivers to get several clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller.h]hThis helper function allows drivers to get several clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj}ubh)}(hX=Returns 0 if all clocks specified in clk_bulk_data table are obtained successfully, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **clk_bulk_data.id** to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each **clk_bulk_data.clk** field.h](hReturns 0 if all clocks specified in clk_bulk_data table are obtained successfully, or valid IS_ERR() condition containing errno. The implementation uses }(hj~hhhNhNubj)}(h**dev**h]hdev}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh and }(hj~hhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hj~hhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh field.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj}ubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj}ubh)}(h@clk_bulk_get should not be called from within interrupt context.h]h@clk_bulk_get should not be called from within interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_get_all (C function)c.clk_bulk_get_allhNtauh1hhjThhhNhNubj)}(hhh](j)}(hFint clk_bulk_get_all (struct device *dev, struct clk_bulk_data **clks)h]j)}(hEint clk_bulk_get_all(struct device *dev, struct clk_bulk_data **clks)h](j )}(hinth]hint}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<hhhjNhMubj{)}(hclk_bulk_get_allh]j)}(hclk_bulk_get_allh]hclk_bulk_get_all}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhhjNhMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jcsbc.clk_bulk_get_allasbuh1hhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hstruct clk_bulk_data **clksh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.clk_bulk_get_allasbuh1hhjubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhj<hhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjNhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhjNhMhj5hhubj)}(hhh]h)}(h=lookup and obtain all available references to clock producer.h]h=lookup and obtain all available references to clock producer.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjzhhubah}(h]h ]h"]h$]h&]uh1jhj5hhhjNhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer **Description** This helper function allows drivers to get all clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller. Returns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed. Drivers must assume that the clock source is not enabled. clk_bulk_get should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj׀hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӀhMhjԀubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjӀhMhjubj)}(hO``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data **clks``h]j)}(hjh]hstruct clk_bulk_data **clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hThis helper function allows drivers to get all clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller.h]hThis helper function allows drivers to get all clk consumers in one operation. If any of the clk cannot be acquired then any clks that were obtained will be freed before returning to the caller.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hReturns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed.h](hReturns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in }(hjWhhhNhNubj)}(h**clks**h]hclks}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h@clk_bulk_get should not be called from within interrupt context.h]h@clk_bulk_get should not be called from within interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "clk_bulk_get_optional (C function)c.clk_bulk_get_optionalhNtauh1hhjThhhNhNubj)}(hhh](j)}(hXint clk_bulk_get_optional (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hWint clk_bulk_get_optional(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjŁhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjāhMubj{)}(hclk_bulk_get_optionalh]j)}(hclk_bulk_get_optionalh]hclk_bulk_get_optional}(hjׁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӁubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjāhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jفsbc.clk_bulk_get_optionalasbuh1hhjubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int num_clksh](j )}(hinth]hint}(hjehhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk_bulk_data *clksh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j-c.clk_bulk_get_optionalasbuh1hhjubj2)}(h h]h }(hjւhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjāhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjāhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjāhMhjhhubj)}(hhh]h)}(h:lookup and obtain a number of references to clock producerh]h:lookup and obtain a number of references to clock producer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjāhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** Behaves the same as clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns 0 and NULL for a clk for which a clock producer could not be determined.h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj7ubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hj\h]hstruct device *dev}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjVubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjSubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjSubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hj΃h]hstruct clk_bulk_data *clks}(hjЃhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̃ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjȃubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjȃubeh}(h]h ]h"]h$]h&]uh1jhjhMhjSubeh}(h]h ]h"]h$]h&]uh1j hj7ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj7ubh)}(hBehaves the same as clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns 0 and NULL for a clk for which a clock producer could not be determined.h]hBehaves the same as clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns 0 and NULL for a clk for which a clock producer could not be determined.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j devm_clk_bulk_get (C function)c.devm_clk_bulk_gethNtauh1hhjThhhNhNubj)}(hhh](j)}(hTint devm_clk_bulk_get (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hSint devm_clk_bulk_get(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjJhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJhhhj\hMubj{)}(hdevm_clk_bulk_geth]j)}(hdevm_clk_bulk_geth]hdevm_clk_bulk_get}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhhj\hMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jqsbc.devm_clk_bulk_getasbuh1hhjubj2)}(h h]h }(hjɄhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjׄhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int num_clksh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk_bulk_data *clksh](j)}(hj h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRmodnameN classnameNj] j` )}jc ]jńc.devm_clk_bulk_getasbuh1hhj.ubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjJhhhj\hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhj\hMubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jhj\hMhjChhubj)}(hhh]h)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj˅jj˅jjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** Return 0 on success, an errno on failure. This helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.h](h)}(h**Parameters**h]j)}(hjՅh]h Parameters}(hjׅhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӅubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjυubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hj-h]h int num_clks}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj'ubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjfh]hstruct clk_bulk_data *clks}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj`ubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1j1hj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjubeh}(h]h ]h"]h$]h&]uh1j hjυubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjυubh)}(h)Return 0 on success, an errno on failure.h]h)Return 0 on success, an errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjυubh)}(hThis helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.h]hThis helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.}(hjƆhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjυubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'devm_clk_bulk_get_optional (C function)c.devm_clk_bulk_get_optionalhNtauh1hhjThhhNhNubj)}(hhh](j)}(h]int devm_clk_bulk_get_optional (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(h\int devm_clk_bulk_get_optional(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hdevm_clk_bulk_get_optionalh]j)}(hdevm_clk_bulk_get_optionalh]hdevm_clk_bulk_get_optional}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubh)}(hhh]j)}(hdeviceh]hdevice}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.devm_clk_bulk_get_optionalasbuh1hhj.ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(h int num_clksh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct clk_bulk_data *clksh](j)}(hj h]hstruct}(hjهhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՇubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjՇubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jlc.devm_clk_bulk_get_optionalasbuh1hhjՇubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjՇubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՇubj)}(hclksh]hclks}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՇubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h-managed get multiple optional consumer clocksh]h-managed get multiple optional consumer clocks}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjWhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` pointer to the clk_bulk_data table of consumer **Description** Behaves the same as devm_clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL for given clk. It is assumed all clocks in clk_bulk_data are optional. Returns 0 if all clocks specified in clk_bulk_data table are obtained successfully or for any clk there was no clk provider available, otherwise returns valid IS_ERR() condition containing errno. The implementation uses **dev** and **clk_bulk_data.id** to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each **clk_bulk_data.clk** field. Drivers must assume that the clock source is not enabled. clk_bulk_get should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjvubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjԈh]h int num_clks}(hjֈhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj҈ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjΈubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjΈubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hN``struct clk_bulk_data *clks`` pointer to the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hj h]hstruct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubeh}(h]h ]h"]h$]h&]uh1j hjvubh)}(h**Description**h]j)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjvubh)}(hBehaves the same as devm_clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL for given clk. It is assumed all clocks in clk_bulk_data are optional.h]hBehaves the same as devm_clk_bulk_get() except where there is no clock producer. In this case, instead of returning -ENOENT, the function returns NULL for given clk. It is assumed all clocks in clk_bulk_data are optional.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjvubh)}(hXReturns 0 if all clocks specified in clk_bulk_data table are obtained successfully or for any clk there was no clk provider available, otherwise returns valid IS_ERR() condition containing errno. The implementation uses **dev** and **clk_bulk_data.id** to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each **clk_bulk_data.clk** field.h](hReturns 0 if all clocks specified in clk_bulk_data table are obtained successfully or for any clk there was no clk provider available, otherwise returns valid IS_ERR() condition containing errno. The implementation uses }(hjmhhhNhNubj)}(h**dev**h]hdev}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh and }(hjmhhhNhNubj)}(h**clk_bulk_data.id**h]hclk_bulk_data.id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubhg to determine the clock consumer, and thereby the clock producer. The clock returned is stored in each }(hjmhhhNhNubj)}(h**clk_bulk_data.clk**h]hclk_bulk_data.clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh field.}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjvubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjvubh)}(h@clk_bulk_get should not be called from within interrupt context.h]h@clk_bulk_get should not be called from within interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %devm_clk_bulk_get_enable (C function)c.devm_clk_bulk_get_enablehNtauh1hhjThhhNhNubj)}(hhh](j)}(h[int devm_clk_bulk_get_enable (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hZint devm_clk_bulk_get_enable(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hdevm_clk_bulk_get_enableh]j)}(hdevm_clk_bulk_get_enableh]hdevm_clk_bulk_get_enable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubh)}(hhh]j)}(hdeviceh]hdevice}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjMmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.devm_clk_bulk_get_enableasbuh1hhj)ubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(h int num_clksh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubj)}(hstruct clk_bulk_data *clksh](j)}(hj h]hstruct}(hjԊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЊubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjЊubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jgc.devm_clk_bulk_get_enableasbuh1hhjЊubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjЊubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЊubj)}(hclksh]hclks}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЊubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h$Get and enable bulk clocks (managed)h]h$Get and enable bulk clocks (managed)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhjThNhNubj)}(hXF**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` pointer to the clk_bulk_data table of consumer **Description** Behaves the same as devm_clk_bulk_get() but also prepares and enables the clocks in one operation with management. The clks will automatically be disabled, unprepared and freed when the device is unbound. **Return** 0 if all clocks specified in clk_bulk_data table are obtained and enabled successfully. Otherwise returns valid IS_ERR() condition containing errno.h](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjqubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjϋh]h int num_clks}(hjыhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj͋ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjɋubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjɋubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hN``struct clk_bulk_data *clks`` pointer to the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjh]hstruct clk_bulk_data *clks}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjqubh)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjqubh)}(hBehaves the same as devm_clk_bulk_get() but also prepares and enables the clocks in one operation with management. The clks will automatically be disabled, unprepared and freed when the device is unbound.h]hBehaves the same as devm_clk_bulk_get() but also prepares and enables the clocks in one operation with management. The clks will automatically be disabled, unprepared and freed when the device is unbound.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjqubh)}(h **Return**h]j)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjqubh)}(h0 if all clocks specified in clk_bulk_data table are obtained and enabled successfully. Otherwise returns valid IS_ERR() condition containing errno.h]h0 if all clocks specified in clk_bulk_data table are obtained and enabled successfully. Otherwise returns valid IS_ERR() condition containing errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .devm_clk_bulk_get_optional_enable (C function)#c.devm_clk_bulk_get_optional_enablehNtauh1hhjThhhNhNubj)}(hhh](j)}(hdint devm_clk_bulk_get_optional_enable (struct device *dev, int num_clks, struct clk_bulk_data *clks)h]j)}(hcint devm_clk_bulk_get_optional_enable(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(h!devm_clk_bulk_get_optional_enableh]j)}(h!devm_clk_bulk_get_optional_enableh]h!devm_clk_bulk_get_optional_enable}(hjЌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhǰubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h>(struct device *dev, int num_clks, struct clk_bulk_data *clks)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jҌsb#c.devm_clk_bulk_get_optional_enableasbuh1hhjubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int num_clksh](j )}(hinth]hint}(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hnum_clksh]hnum_clks}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk_bulk_data *clksh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j&#c.devm_clk_bulk_get_optional_enableasbuh1hhjubj2)}(h h]h }(hjύhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjݍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(h-Get and enable optional bulk clocks (managed)h]h-Get and enable optional bulk clocks (managed)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` pointer to the clk_bulk_data table of consumer **Description** Behaves the same as devm_clk_bulk_get_optional() but also prepares and enables the clocks in one operation with management. The clks will automatically be disabled, unprepared and freed when the device is unbound. **Return** 0 if all clocks specified in clk_bulk_data table are obtained and enabled successfully, or for any clk there was no clk provider available. Otherwise returns valid IS_ERR() condition containing errno.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj0ubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjUh]hstruct device *dev}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM hjOubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhM hjkubah}(h]h ]h"]h$]h&]uh1j1hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhM hjLubj)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM hjubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjLubj)}(hN``struct clk_bulk_data *clks`` pointer to the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjǎh]hstruct clk_bulk_data *clks}(hjɎhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŎubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM hjubj2)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj܎hM hjݎubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj܎hM hjLubeh}(h]h ]h"]h$]h&]uh1j hj0ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj0ubh)}(hBehaves the same as devm_clk_bulk_get_optional() but also prepares and enables the clocks in one operation with management. The clks will automatically be disabled, unprepared and freed when the device is unbound.h]hBehaves the same as devm_clk_bulk_get_optional() but also prepares and enables the clocks in one operation with management. The clks will automatically be disabled, unprepared and freed when the device is unbound.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj0ubh)}(h **Return**h]j)}(hj)h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj0ubh)}(h0 if all clocks specified in clk_bulk_data table are obtained and enabled successfully, or for any clk there was no clk provider available. Otherwise returns valid IS_ERR() condition containing errno.h]h0 if all clocks specified in clk_bulk_data table are obtained and enabled successfully, or for any clk there was no clk provider available. Otherwise returns valid IS_ERR() condition containing errno.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "devm_clk_bulk_get_all (C function)c.devm_clk_bulk_get_allhNtauh1hhjThhhNhNubj)}(hhh](j)}(hKint devm_clk_bulk_get_all (struct device *dev, struct clk_bulk_data **clks)h]j)}(hJint devm_clk_bulk_get_all(struct device *dev, struct clk_bulk_data **clks)h](j )}(hinth]hint}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjhhhj|hMubj{)}(hdevm_clk_bulk_get_allh]j)}(hdevm_clk_bulk_get_allh]hdevm_clk_bulk_get_all}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhj|hMubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hjɏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƏubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjˏmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.devm_clk_bulk_get_allasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk_bulk_data **clksh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj=modnameN classnameNj] j` )}jc ]jc.devm_clk_bulk_get_allasbuh1hhjubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjjhhhj|hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj|hMubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1jhj|hMhjchhubj)}(hhh]h)}(h"managed get multiple clk consumersh]h"managed get multiple clk consumers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjÐjjÐjjjuh1jhhhjThNhNubj)}(hX!**Parameters** ``struct device *dev`` device for clock "consumer" ``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer **Description** Returns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed. This helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.h](h)}(h**Parameters**h]j)}(hj͐h]h Parameters}(hjϐhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjːubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjǐubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hO``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data **clks``h]j)}(hj%h]hstruct clk_bulk_data **clks}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubeh}(h]h ]h"]h$]h&]uh1j hjǐubh)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjǐubh)}(hReturns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed.h](hReturns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in }(hjvhhhNhNubj)}(h**clks**h]hclks}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjǐubh)}(hThis helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.h]hThis helper function allows drivers to get several clk consumers in one operation with management, the clks will automatically be freed when the device is unbound.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM!hjǐubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *devm_clk_bulk_get_all_enabled (C function)c.devm_clk_bulk_get_all_enabledhNtauh1hhjThhhNhNubj)}(hhh](j)}(hSint devm_clk_bulk_get_all_enabled (struct device *dev, struct clk_bulk_data **clks)h]j)}(hRint devm_clk_bulk_get_all_enabled(struct device *dev, struct clk_bulk_data **clks)h](j )}(hinth]hint}(hjƑhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj‘hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM+ubj2)}(h h]h }(hjՑhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj‘hhhjԑhM+ubj{)}(hdevm_clk_bulk_get_all_enabledh]j)}(hdevm_clk_bulk_get_all_enabledh]hdevm_clk_bulk_get_all_enabled}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj‘hhhjԑhM+ubj)}(h1(struct device *dev, struct clk_bulk_data **clks)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj#modnameN classnameNj] j` )}jc ]jf )}jY jsbc.devm_clk_bulk_get_all_enabledasbuh1hhjubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk_bulk_data **clksh](j)}(hj h]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j=c.devm_clk_bulk_get_all_enabledasbuh1hhjqubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hjh]h*}(hj̒hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hclksh]hclks}(hjْhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj‘hhhjԑhM+ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjԑhM+ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjԑhM+hjhhubj)}(hhh]h)}(h3Get and enable all clocks of the consumer (managed)h]h3Get and enable all clocks of the consumer (managed)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM+hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԑhM+ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hXD**Parameters** ``struct device *dev`` device for clock "consumer" ``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer **Description** Returns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed. This helper function allows drivers to get all clocks of the consumer and enables them in one operation with management. The clks will automatically be disabled and freed when the device is unbound.h](h)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM/hjubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjDh]hstruct device *dev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM,hj>ubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM,hjZubah}(h]h ]h"]h$]h&]uh1j1hj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM,hj;ubj)}(hO``struct clk_bulk_data **clks`` pointer to the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data **clks``h]j)}(hj}h]hstruct clk_bulk_data **clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM-hjwubj2)}(hhh]h)}(h.pointer to the clk_bulk_data table of consumerh]h.pointer to the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1j1hjwubeh}(h]h ]h"]h$]h&]uh1jhjhM-hj;ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM/hjubh)}(hReturns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in **clks** field. Returns 0 if there're none and a negative value if something failed.h](hReturns a positive value for the number of clocks obtained while the clock references are stored in the clk_bulk_data table in }(hjΓhhhNhNubj)}(h**clks**h]hclks}(hj֓hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΓubhN field. Returns 0 if there’re none and a negative value if something failed.}(hjΓhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM.hjubh)}(hThis helper function allows drivers to get all clocks of the consumer and enables them in one operation with management. The clks will automatically be disabled and freed when the device is unbound.h]hThis helper function allows drivers to get all clocks of the consumer and enables them in one operation with management. The clks will automatically be disabled and freed when the device is unbound.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j devm_clk_get (C function)c.devm_clk_gethNtauh1hhjThhhNhNubj)}(hhh](j)}(h>struct clk * devm_clk_get (struct device *dev, const char *id)h]j)}(hah"]h$]h&]uh1j1hjhhhj+hM=ubh)}(hhh]j)}(hclkh]hclk}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj?modnameN classnameNj] j` )}jc ]jf )}jY devm_clk_getsbc.devm_clk_getasbuh1hhjhhhj+hM=ubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj+hM=ubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj+hM=ubj{)}(h devm_clk_geth]j)}(hj[h]h devm_clk_get}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj+hM=ubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jYc.devm_clk_getasbuh1hhjubj2)}(h h]h }(hjԔhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj+hM=ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj+hM=ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj+hM=hjhhubj)}(hhh]h)}(h:lookup and obtain a managed reference to a clock producer.h]h:lookup and obtain a managed reference to a clock producer.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM=hjshhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hM=ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hX|**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.) **Description** Drivers must assume that the clock source is neither prepared nor enabled. The clock will automatically be freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMAhjubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM>hjubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjЕhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̕hM>hj͕ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj̕hM>hjubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM?hjubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Context**h]j)}(hj+h]hContext}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMAhjubh)}(h May sleep.h]h May sleep.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMAhjubh)}(h **Return**h]j)}(hjRh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMChjubh)}(hX<a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.)h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjhhhhNhNubj)}(h**dev**h]hdev}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh and }(hjhhhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjhhhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubhY may be identical strings, but clk_get may return different clock producers depending on }(hjhhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh.)}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMChjubh)}(h**Description**h]j)}(hjh]h Description}(hjÖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMIhjubh)}(hJDrivers must assume that the clock source is neither prepared nor enabled.h]hJDrivers must assume that the clock source is neither prepared nor enabled.}(hjזhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMHhjubh)}(hNThe clock will automatically be freed when the device is unbound from the bus.h]hNThe clock will automatically be freed when the device is unbound from the bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "devm_clk_get_prepared (C function)c.devm_clk_get_preparedhNtauh1hhjThhhNhNubj)}(hhh](j)}(hGstruct clk * devm_clk_get_prepared (struct device *dev, const char *id)h]j)}(hEstruct clk *devm_clk_get_prepared(struct device *dev, const char *id)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMRubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj"hMRubh)}(hhh]j)}(hclkh]hclk}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6modnameN classnameNj] j` )}jc ]jf )}jY devm_clk_get_preparedsbc.devm_clk_get_preparedasbuh1hhjhhhj"hMRubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj"hMRubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hMRubj{)}(hdevm_clk_get_preparedh]j)}(hjRh]hdevm_clk_get_prepared}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj"hMRubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jPc.devm_clk_get_preparedasbuh1hhjubj2)}(h h]h }(hj˗hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjٗhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hMRubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hMRubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj"hMRhj hhubj)}(hhh]h)}(hdevm_clk_get() + clk_prepare()h]hdevm_clk_get() + clk_prepare()}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMRhjjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.) **Description** The returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled. The clock will automatically be unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMVhjubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMShjubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjǘhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjØhMShjĘubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjØhMShjubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMThjubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMThjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Context**h]j)}(hj"h]hContext}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMVhjubh)}(h May sleep.h]h May sleep.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMVhjubh)}(h **Return**h]j)}(hjIh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMXhjubh)}(hX<a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.)h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hj_hhhNhNubj)}(h**dev**h]hdev}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh and }(hj_hhhNhNubj)}(h**id**h]hid}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hj_hhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubhY may be identical strings, but clk_get may return different clock producers depending on }(hj_hhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh.)}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMXhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM^hjubh)}(hcThe returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled.h]hcThe returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled.}(hjΙhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM]hjubh)}(h]The clock will automatically be unprepared and freed when the device is unbound from the bus.h]h]The clock will automatically be unprepared and freed when the device is unbound from the bus.}(hjݙhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM`hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !devm_clk_get_enabled (C function)c.devm_clk_get_enabledhNtauh1hhjThhhNhNubj)}(hhh](j)}(hFstruct clk * devm_clk_get_enabled (struct device *dev, const char *id)h]j)}(hDstruct clk *devm_clk_get_enabled(struct device *dev, const char *id)h](j)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMgubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMgubh)}(hhh]j)}(hclkh]hclk}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj-modnameN classnameNj] j` )}jc ]jf )}jY devm_clk_get_enabledsbc.devm_clk_get_enabledasbuh1hhjhhhjhMgubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMgubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMgubj{)}(hdevm_clk_get_enabledh]j)}(hjIh]hdevm_clk_get_enabled}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMgubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jGc.devm_clk_get_enabledasbuh1hhjubj2)}(h h]h }(hjšhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjКhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjݚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hconst char *idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMgubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMghjhhubj)}(hhh]h)}(h%devm_clk_get() + clk_prepare_enable()h]h%devm_clk_get() + clk_prepare_enable()}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMghjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.) **Description** The returned clk (if valid) is prepared and enabled. The clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMkhjubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhhjubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjޛh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܛubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMihj؛ubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMihjubah}(h]h ]h"]h$]h&]uh1j1hj؛ubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMkhjubh)}(h May sleep.h]h May sleep.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMkhjubh)}(h **Return**h]j)}(hj@h]hReturn}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMmhjubh)}(hX<a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. (IOW, **id** may be identical strings, but clk_get may return different clock producers depending on **dev**.)h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjVhhhNhNubj)}(h**dev**h]hdev}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh and }(hjVhhhNhNubj)}(h**id**h]hid}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhI to determine the clock consumer, and thereby the clock producer. (IOW, }(hjVhhhNhNubj)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubhY may be identical strings, but clk_get may return different clock producers depending on }(hjVhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh.)}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMmhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMshjubh)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hjŜhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMrhjubh)}(hgThe clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h]hgThe clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.}(hjԜhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMthjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "devm_clk_get_optional (C function)c.devm_clk_get_optionalhNtauh1hhjThhhNhNubj)}(hhh](j)}(hGstruct clk * devm_clk_get_optional (struct device *dev, const char *id)h]j)}(hEstruct clk *devm_clk_get_optional(struct device *dev, const char *id)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM{ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM{ubh)}(hhh]j)}(hclkh]hclk}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj$modnameN classnameNj] j` )}jc ]jf )}jY devm_clk_get_optionalsbc.devm_clk_get_optionalasbuh1hhjhhhjhM{ubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM{ubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM{ubj{)}(hdevm_clk_get_optionalh]j)}(hj@h]hdevm_clk_get_optional}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM{ubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j>c.devm_clk_get_optionalasbuh1hhjyubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyubj)}(hjh]h*}(hjǝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hdevh]hdev}(hjԝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubj)}(hconst char *idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM{ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM{ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM{hjhhubj)}(hhh]h)}(hDlookup and obtain a managed reference to an optional clock producer.h]hDlookup and obtain a managed reference to an optional clock producer.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM{hjXhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM{ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjsjjsjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get(). **Description** Drivers must assume that the clock source is neither prepared nor enabled. The clock will automatically be freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjwubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM}hjubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hj՞h]hconst char *id}(hjמhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӞubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM~hjϞubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM~hjubah}(h]h ]h"]h$]h&]uh1j1hjϞubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjubeh}(h]h ]h"]h$]h&]uh1j hjwubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjwubh)}(h May sleep.h]h May sleep.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjwubh)}(h **Return**h]j)}(hj7h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjwubh)}(hXKa struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get().h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjMhhhNhNubj)}(h**dev**h]hdev}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh and }(hjMhhhNhNubj)}(h**id**h]hid}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That’s the only difference compared to devm_clk_get().}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjwubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjwubh)}(hJDrivers must assume that the clock source is neither prepared nor enabled.h]hJDrivers must assume that the clock source is neither prepared nor enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjwubh)}(hNThe clock will automatically be freed when the device is unbound from the bus.h]hNThe clock will automatically be freed when the device is unbound from the bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +devm_clk_get_optional_prepared (C function) c.devm_clk_get_optional_preparedhNtauh1hhjThhhNhNubj)}(hhh](j)}(hPstruct clk * devm_clk_get_optional_prepared (struct device *dev, const char *id)h]j)}(hNstruct clk *devm_clk_get_optional_prepared(struct device *dev, const char *id)h](j)}(hj h]hstruct}(hj֟hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҟhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjҟhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY devm_clk_get_optional_preparedsb c.devm_clk_get_optional_preparedasbuh1hhjҟhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjҟhhhjhMubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҟhhhjhMubj{)}(hdevm_clk_get_optional_preparedh]j)}(hjh]hdevm_clk_get_optional_prepared}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjҟhhhjhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(hdeviceh]hdevice}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]j c.devm_clk_get_optional_preparedasbuh1hhjLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubj)}(hconst char *idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj͠hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj۠hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubeh}(h]h ]h"]h$]h&]jjuh1jhjҟhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjΟhhhjhMubah}(h]jɟah ](jjeh"]h$]h&]jj)jhuh1jhjhMhj˟hhubj)}(hhh]h)}(h'devm_clk_get_optional() + clk_prepare()h]h'devm_clk_get_optional() + clk_prepare()}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1jhj˟hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjFjjFjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_prepared(). **Description** The returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled. The clock will automatically be unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjJubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjoh]hstruct device *dev}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjiubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjfubeh}(h]h ]h"]h$]h&]uh1j hjJubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjJubh)}(h May sleep.h]h May sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjJubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjJubh)}(hXTa struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_prepared().h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hj hhhNhNubj)}(h**dev**h]hdev}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh and }(hj hhhNhNubj)}(h**id**h]hid}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That’s the only difference compared to devm_clk_get_prepared().}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjJubh)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjJubh)}(hcThe returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled.h]hcThe returned clk (if valid) is prepared. Drivers must however assume that the clock is not enabled.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjJubh)}(h]The clock will automatically be unprepared and freed when the device is unbound from the bus.h]h]The clock will automatically be unprepared and freed when the device is unbound from the bus.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *devm_clk_get_optional_enabled (C function)c.devm_clk_get_optional_enabledhNtauh1hhjThhhNhNubj)}(hhh](j)}(hOstruct clk * devm_clk_get_optional_enabled (struct device *dev, const char *id)h]j)}(hMstruct clk *devm_clk_get_optional_enabled(struct device *dev, const char *id)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjȢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŢubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjʢmodnameN classnameNj] j` )}jc ]jf )}jY devm_clk_get_optional_enabledsbc.devm_clk_get_optional_enabledasbuh1hhjhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(hdevm_clk_get_optional_enabledh]j)}(hjh]hdevm_clk_get_optional_enabled}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjCmodnameN classnameNj] j` )}jc ]jc.devm_clk_get_optional_enabledasbuh1hhjubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjʣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjףhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h.devm_clk_get_optional() + clk_prepare_enable()h]h.devm_clk_get_optional() + clk_prepare_enable()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled(). **Description** The returned clk (if valid) is prepared and enabled. The clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjBh]hstruct device *dev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj<ubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjXubah}(h]h ]h"]h$]h&]uh1j1hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhj9ubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hj{h]hconst char *id}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjuubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhj9ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h May sleep.h]h May sleep.}(hj̤hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h **Return**h]j)}(hjݤh]hReturn}(hjߤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۤubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hXSa struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled().h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**id**h]hid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That’s the only difference compared to devm_clk_get_enabled().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h**Description**h]j)}(hj(h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h4The returned clk (if valid) is prepared and enabled.h]h4The returned clk (if valid) is prepared and enabled.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hgThe clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h]hgThe clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 4devm_clk_get_optional_enabled_with_rate (C function))c.devm_clk_get_optional_enabled_with_ratehNtauh1hhjThhhNhNubj)}(hhh](j)}(hmstruct clk * devm_clk_get_optional_enabled_with_rate (struct device *dev, const char *id, unsigned long rate)h]j)}(hkstruct clk *devm_clk_get_optional_enabled_with_rate(struct device *dev, const char *id, unsigned long rate)h](j)}(hj h]hstruct}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY 'devm_clk_get_optional_enabled_with_ratesb)c.devm_clk_get_optional_enabled_with_rateasbuh1hhjxhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhjhMubj)}(hjh]h*}(hjʥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhMubj{)}(h'devm_clk_get_optional_enabled_with_rateh]j)}(hjh]h'devm_clk_get_optional_enabled_with_rate}(hjۥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjץubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhjhMubj)}(h8(struct device *dev, const char *id, unsigned long rate)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j)c.devm_clk_get_optional_enabled_with_rateasbuh1hhjubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *idh](j)}(hjh]hconst}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjæhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjѦhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjߦhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjhMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjqhhubj)}(hhh]h)}(h?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()h]h?devm_clk_get_optional() + clk_set_rate() + clk_prepare_enable()}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj"hhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``const char *id`` clock consumer ID ``unsigned long rate`` new clock rate **Context** May sleep. **Return** a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled(). **Description** The returned clk (if valid) is prepared and enabled and rate was set. The clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjAubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjfh]hstruct device *dev}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj`ubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1j1hj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhj]ubj)}(h%``const char *id`` clock consumer ID h](j)}(h``const char *id``h]j)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj]ubj)}(h&``unsigned long rate`` new clock rate h](j)}(h``unsigned long rate``h]j)}(hjاh]hunsigned long rate}(hjڧhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֧ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjҧubj2)}(hhh]h)}(hnew clock rateh]hnew clock rate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjҧubeh}(h]h ]h"]h$]h&]uh1jhjhMhj]ubeh}(h]h ]h"]h$]h&]uh1j hjAubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjAubh)}(h May sleep.h]h May sleep.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjAubh)}(h **Return**h]j)}(hj:h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjAubh)}(hXSa struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev** and **id** to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That's the only difference compared to devm_clk_get_enabled().h](hya struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjPhhhNhNubj)}(h**dev**h]hdev}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh and }(hjPhhhNhNubj)}(h**id**h]hid}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh to determine the clock consumer, and thereby the clock producer. If no such clk is found, it returns NULL which serves as a dummy clk. That’s the only difference compared to devm_clk_get_enabled().}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjAubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjAubh)}(hEThe returned clk (if valid) is prepared and enabled and rate was set.h]hEThe returned clk (if valid) is prepared and enabled and rate was set.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjAubh)}(hgThe clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.h]hgThe clock will automatically be disabled, unprepared and freed when the device is unbound from the bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $devm_get_clk_from_child (C function)c.devm_get_clk_from_childhNtauh1hhjThhhNhNubj)}(hhh](j)}(hestruct clk * devm_get_clk_from_child (struct device *dev, struct device_node *np, const char *con_id)h]j)}(hcstruct clk *devm_get_clk_from_child(struct device *dev, struct device_node *np, const char *con_id)h](j)}(hj h]hstruct}(hj٨hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjըhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjըhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY devm_get_clk_from_childsbc.devm_get_clk_from_childasbuh1hhjըhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjըhhhjhMubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjըhhhjhMubj{)}(hdevm_get_clk_from_childh]j)}(hjh]hdevm_get_clk_from_child}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjըhhhjhMubj)}(h@(struct device *dev, struct device_node *np, const char *con_id)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubh)}(hhh]j)}(hdeviceh]hdevice}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsmodnameN classnameNj] j` )}jc ]jc.devm_get_clk_from_childasbuh1hhjOubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hstruct device_node *nph](j)}(hj h]hstruct}(hjéhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjЩhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h device_nodeh]h device_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjީubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.devm_get_clk_from_childasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnph]hnp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubj)}(hconst char *con_idh](j)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj )}(hcharh]hchar}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/ubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj)}(hcon_idh]hcon_id}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKubeh}(h]h ]h"]h$]h&]jjuh1jhjըhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjѨhhhjhMubah}(h]j̨ah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjΨhhubj)}(hhh]h)}(hJlookup and obtain a managed reference to a clock producer from child node.h]hJlookup and obtain a managed reference to a clock producer from child node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjΨhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct device *dev`` device for clock "consumer" ``struct device_node *np`` pointer to clock consumer node ``const char *con_id`` clock consumer ID **Description** This function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using **np** and **con_id** The clock will automatically be freed when the device is unbound from the bus.h](h)}(h**Parameters**h]j)}(hjêh]#h Parameters}(hjŪhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h3``struct device *dev`` device for clock "consumer" h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjܪubj2)}(hhh]h)}(hdevice for clock "consumer"h]hdevice for clock “consumer”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjܪubeh}(h]h ]h"]h$]h&]uh1jhjhMhj٪ubj)}(h:``struct device_node *np`` pointer to clock consumer node h](j)}(h``struct device_node *np``h]j)}(hjh]hstruct device_node *np}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hpointer to clock consumer nodeh]hpointer to clock consumer node}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj٪ubj)}(h)``const char *con_id`` clock consumer ID h](j)}(h``const char *con_id``h]j)}(hjTh]hconst char *con_id}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjNubj2)}(hhh]h)}(hclock consumer IDh]hclock consumer ID}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhj٪ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hThis function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using **np** and **con_id**h](h~This function parses the clocks, and uses them to look up the struct clk from the registered list of clock providers by using }(hjhhhNhNubj)}(h**np**h]hnp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hNThe clock will automatically be freed when the device is unbound from the bus.h]hNThe clock will automatically be freed when the device is unbound from the bus.}(hjԫhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_enable (C function) c.clk_enablehNtauh1hhjThhhNhNubj)}(hhh](j)}(h int clk_enable (struct clk *clk)h]j)}(hint clk_enable(struct clk *clk)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(h clk_enableh]j)}(h clk_enableh]h clk_enable}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubh)}(hhh]j)}(hclkh]hclk}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj`modnameN classnameNj] j` )}jc ]jf )}jY j&sb c.clk_enableasbuh1hhj<ubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h:inform the system when the clock source should be running.h]h:inform the system when the clock source should be running.}(hjìhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj۬jj۬jjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** If the clock can not be enabled/disabled, this should return success. May be called from atomic contexts. Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj߬ubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hj߬ubh)}(h**Description**h]j)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj߬ubh)}(hEIf the clock can not be enabled/disabled, this should return success.h]hEIf the clock can not be enabled/disabled, this should return success.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj߬ubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj߬ubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj߬ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_enable (C function)c.clk_bulk_enablehNtauh1hhjThhhNhNubj)}(hhh](j)}(hDint clk_bulk_enable (int num_clks, const struct clk_bulk_data *clks)h]j)}(hCint clk_bulk_enable(int num_clks, const struct clk_bulk_data *clks)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hclk_bulk_enableh]j)}(hclk_bulk_enableh]hclk_bulk_enable}(hjíhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h0(int num_clks, const struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hj߭hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjۭubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjۭubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۭubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj׭ubj)}(h const struct clk_bulk_data *clksh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jf )}jY jŭsbc.clk_bulk_enableasbuh1hhjubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj׭ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h9inform the system when the set of clks should be running.h]h9inform the system when the set of clks should be running.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjʮjjʮjjjuh1jhhhjThNhNubj)}(h**Parameters** ``int num_clks`` the number of clk_bulk_data ``const struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** May be called from atomic contexts. Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjԮh]h Parameters}(hj֮hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҮubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjήubj )}(hhh](j)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hI``const struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h$``const struct clk_bulk_data *clks``h]j)}(hj,h]h const struct clk_bulk_data *clks}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj&ubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjubeh}(h]h ]h"]h$]h&]uh1j hjήubh)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjήubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjήubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjήubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_disable (C function) c.clk_disablehNtauh1hhjThhhNhNubj)}(hhh](j)}(h"void clk_disable (struct clk *clk)h]j)}(h!void clk_disable(struct clk *clk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjʯhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjɯhMubj{)}(h clk_disableh]j)}(h clk_disableh]h clk_disable}(hjܯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjدubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjɯhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jޯsb c.clk_disableasbuh1hhjubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjɯhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjɯhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjɯhMhjhhubj)}(hhh]h)}(h>inform the system when the clock source is no longer required.h]h>inform the system when the clock source is no longer required.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjɯhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source **Description** Inform the system that a clock source is no longer required by a driver and may be shut down. May be called from atomic contexts. Implementation detail: if the clock source is shared between multiple drivers, clk_enable() calls must be balanced by the same number of clk_disable() calls for the clock source to be disabled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjհhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѰhMhjҰubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjѰhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h]Inform the system that a clock source is no longer required by a driver and may be shut down.h]h]Inform the system that a clock source is no longer required by a driver and may be shut down.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hImplementation detail: if the clock source is shared between multiple drivers, clk_enable() calls must be balanced by the same number of clk_disable() calls for the clock source to be disabled.h]hImplementation detail: if the clock source is shared between multiple drivers, clk_enable() calls must be balanced by the same number of clk_disable() calls for the clock source to be disabled.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_disable (C function)c.clk_bulk_disablehNtauh1hhjThhhNhNubj)}(hhh](j)}(hFvoid clk_bulk_disable (int num_clks, const struct clk_bulk_data *clks)h]j)}(hEvoid clk_bulk_disable(int num_clks, const struct clk_bulk_data *clks)h](j )}(hvoidh]hvoid}(hjZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVhhhjhhMubj{)}(hclk_bulk_disableh]j)}(hclk_bulk_disableh]hclk_bulk_disable}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjVhhhjhhMubj)}(h0(int num_clks, const struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h const struct clk_bulk_data *clksh](j)}(hjh]hconst}(hj̱hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȱubj2)}(h h]h }(hjٱhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjȱubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȱubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjȱubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j}sbc.clk_bulk_disableasbuh1hhjȱubj2)}(h h]h }(hj%hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjȱubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȱubj)}(hclksh]hclks}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȱubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjRhhhjhhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1jhjhhMhjOhhubj)}(hhh]h)}(h=inform the system when the set of clks is no longer required.h]h=inform the system when the set of clks is no longer required.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjghhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``int num_clks`` the number of clk_bulk_data ``const struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Description** Inform the system that a set of clks is no longer required by a driver and may be shut down. May be called from atomic contexts. Implementation detail: if the set of clks is shared between multiple drivers, clk_bulk_enable() calls must be balanced by the same number of clk_bulk_disable() calls for the clock source to be disabled.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjIJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hI``const struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h$``const struct clk_bulk_data *clks``h]j)}(hjh]h const struct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj޲ubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj޲ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h\Inform the system that a set of clks is no longer required by a driver and may be shut down.h]h\Inform the system that a set of clks is no longer required by a driver and may be shut down.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h#May be called from atomic contexts.h]h#May be called from atomic contexts.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hImplementation detail: if the set of clks is shared between multiple drivers, clk_bulk_enable() calls must be balanced by the same number of clk_bulk_disable() calls for the clock source to be disabled.h]hImplementation detail: if the set of clks is shared between multiple drivers, clk_bulk_enable() calls must be balanced by the same number of clk_bulk_disable() calls for the clock source to be disabled.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_rate (C function)c.clk_get_ratehNtauh1hhjThhhNhNubj)}(hhh](j)}(h,unsigned long clk_get_rate (struct clk *clk)h]j)}(h+unsigned long clk_get_rate(struct clk *clk)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM#ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~hhhjhM#ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~hhhjhM#ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj~hhhjhM#ubj{)}(h clk_get_rateh]j)}(h clk_get_rateh]h clk_get_rate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~hhhjhM#ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj۳hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׳ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj׳ubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_get_rateasbuh1hhj׳ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj׳ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׳ubj)}(hclkh]hclk}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׳ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjӳubah}(h]h ]h"]h$]h&]jjuh1jhj~hhhjhM#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjzhhhjhM#ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1jhjhM#hjwhhubj)}(hhh]h)}(htobtain the current clock rate (in Hz) for a clock source. This is only valid once the clock source has been enabled.h]htobtain the current clock rate (in Hz) for a clock source. This is only valid once the clock source has been enabled.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM#hj[hhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhM#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jhhhjThNhNubj)}(h2**Parameters** ``struct clk *clk`` clock sourceh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM'hjzubj )}(hhh]j)}(h ``struct clk *clk`` clock sourceh](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM)hjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM%hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjubah}(h]h ]h"]h$]h&]uh1j hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_put (C function) c.clk_puthNtauh1hhjThhhNhNubj)}(hhh](j)}(hvoid clk_put (struct clk *clk)h]j)}(hvoid clk_put(struct clk *clk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM*ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM*ubj{)}(hclk_puth]j)}(hclk_puth]hclk_put}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM*ubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubh)}(hhh]j)}(hclkh]hclk}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.clk_putasbuh1hhj2ubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM*ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM*ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM*hjhhubj)}(hhh]h)}(h"free" the clock sourceh]h“free” the clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM*hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjѵjjѵjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source **Note** drivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function. clk_put should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hj۵h]h Parameters}(hjݵhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٵubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM.hjյubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM+hjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubah}(h]h ]h"]h$]h&]uh1j hjյubh)}(h**Note**h]j)}(hj5h]hNote}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM-hjյubh)}(hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM-hjյubh)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM1hjյubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_put (C function)c.clk_bulk_puthNtauh1hhjThhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhjhM6ubj{)}(h clk_bulk_puth]j)}(h clk_bulk_puth]h clk_bulk_put}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM6ubj)}(h*(int num_clks, struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjƶhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj¶ubj2)}(h h]h }(hjԶhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj¶ubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¶ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk_bulk_data *clksh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_bulk_putasbuh1hhjubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM6ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM6ubah}(h]j|ah ](jjeh"]h$]h&]jj)jhuh1jhjhM6hj~hhubj)}(hhh]h)}(h"free" the clock sourceh]h“free” the clock source}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM6hj{hhubah}(h]h ]h"]h$]h&]uh1jhj~hhhjhM6ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hXe**Parameters** ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Note** drivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function. clk_bulk_put should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM:hjubj )}(hhh](j)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM7hjubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjطhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjԷhM7hjշubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjԷhM7hjubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjh]hstruct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM8hjubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM8hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hM8hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hj3h]hNote}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM:hjubh)}(hdrivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM:hjubh)}(h@clk_bulk_put should not be called from within interrupt context.h]h@clk_bulk_put should not be called from within interrupt context.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM>hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_bulk_put_all (C function)c.clk_bulk_put_allhNtauh1hhjThhhNhNubj)}(hhh](j)}(h@void clk_bulk_put_all (int num_clks, struct clk_bulk_data *clks)h]j)}(h?void clk_bulk_put_all(int num_clks, struct clk_bulk_data *clks)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMCubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMCubj{)}(hclk_bulk_put_allh]j)}(hclk_bulk_put_allh]hclk_bulk_put_all}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMCubj)}(h*(int num_clks, struct clk_bulk_data *clks)h](j)}(h int num_clksh](j )}(hinth]hint}(hjĸhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjҸhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hnum_clksh]hnum_clks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk_bulk_data *clksh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h clk_bulk_datah]h clk_bulk_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_bulk_put_allasbuh1hhjubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclksh]hclks}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMCubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1jhjhMChj|hhubj)}(hhh]h)}(h"free" all the clock sourceh]h“free” all the clock source}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMChjyhhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hXi**Parameters** ``int num_clks`` the number of clk_bulk_data ``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer **Note** drivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function. clk_bulk_put_all should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMGhjubj )}(hhh](j)}(h-``int num_clks`` the number of clk_bulk_data h](j)}(h``int num_clks``h]j)}(hjh]h int num_clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMDhjubj2)}(hhh]h)}(hthe number of clk_bulk_datah]hthe number of clk_bulk_data}(hjֹhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjҹhMDhjӹubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjҹhMDhjubj)}(hC``struct clk_bulk_data *clks`` the clk_bulk_data table of consumer h](j)}(h``struct clk_bulk_data *clks``h]j)}(hjh]hstruct clk_bulk_data *clks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMEhjubj2)}(hhh]h)}(h#the clk_bulk_data table of consumerh]h#the clk_bulk_data table of consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMEhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMEhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hj1h]hNote}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMGhjubh)}(hdrivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_bulk_enable calls made on this clock source are balanced by clk_bulk_disable calls prior to calling this function.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMGhjubh)}(hDclk_bulk_put_all should not be called from within interrupt context.h]hDclk_bulk_put_all should not be called from within interrupt context.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j devm_clk_put (C function)c.devm_clk_puthNtauh1hhjThhhNhNubj)}(hhh](j)}(h7void devm_clk_put (struct device *dev, struct clk *clk)h]j)}(h6void devm_clk_put(struct device *dev, struct clk *clk)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMPubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMPubj{)}(h devm_clk_puth]j)}(h devm_clk_puth]h devm_clk_put}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMPubj)}(h%(struct device *dev, struct clk *clk)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjºhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjϺhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݺubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.devm_clk_putasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubh)}(hhh]j)}(hclkh]hclk}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTmodnameN classnameNj] j` )}jc ]jc.devm_clk_putasbuh1hhj0ubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhMPubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjhMPhjzhhubj)}(hhh]h)}(h"free" a managed clock sourceh]h!“free” a managed clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMPhjhhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjhMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjjͻjjͻjjjuh1jhhhjThNhNubj)}(hX\**Parameters** ``struct device *dev`` device used to acquire the clock ``struct clk *clk`` clock source acquired with devm_clk_get() **Note** drivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function. clk_put should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hj׻h]h Parameters}(hjٻhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjջubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMThjѻubj )}(hhh](j)}(h8``struct device *dev`` device used to acquire the clock h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMQhjubj2)}(hhh]h)}(h device used to acquire the clockh]h device used to acquire the clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMQhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMQhjubj)}(h>``struct clk *clk`` clock source acquired with devm_clk_get() h](j)}(h``struct clk *clk``h]j)}(hj/h]hstruct clk *clk}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMRhj)ubj2)}(hhh]h)}(h)clock source acquired with devm_clk_get()h]h)clock source acquired with devm_clk_get()}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMRhjEubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMRhjubeh}(h]h ]h"]h$]h&]uh1j hjѻubh)}(h**Note**h]j)}(hjjh]hNote}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMThjѻubh)}(hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.h]hdrivers must ensure that all clk_enable calls made on this clock source are balanced by clk_disable calls prior to calling this function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMThjѻubh)}(h;clk_put should not be called from within interrupt context.h]h;clk_put should not be called from within interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMXhjѻubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_round_rate (C function)c.clk_round_ratehNtauh1hhjThhhNhNubj)}(hhh](j)}(h9long clk_round_rate (struct clk *clk, unsigned long rate)h]j)}(h8long clk_round_rate(struct clk *clk, unsigned long rate)h](j )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMbubj2)}(h h]h }(hjͼhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj̼hMbubj{)}(hclk_round_rateh]j)}(hclk_round_rateh]hclk_round_rate}(hj߼hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۼubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj̼hMbubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_round_rateasbuh1hhjubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjmhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjiubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjiubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj̼hMbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj̼hMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj̼hMbhjhhubj)}(hhh]h)}(h3adjust a rate to the exact rate a clock can provideh]h3adjust a rate to the exact rate a clock can provide}(hjϽhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMbhj̽hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̼hMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired clock rate in Hz **Description** This answers the question "if I were to pass **rate** to clk_set_rate(), what clock rate would I end up with?" without changing the hardware in any way. In other words: rate = clk_round_rate(clk, r); and: clk_set_rate(clk, r); rate = clk_get_rate(clk); are equivalent except the former does not modify the clock hardware in any way. Returns rounded clock rate in Hz, or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMfhjubj )}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMchj ubj2)}(hhh]h)}(h clock sourceh]h clock source}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMchj&ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMchjubj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hjIh]hunsigned long rate}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMdhjCubj2)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMdhj_ubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMdhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMfhjubh)}(hThis answers the question "if I were to pass **rate** to clk_set_rate(), what clock rate would I end up with?" without changing the hardware in any way. In other words:h](h/This answers the question “if I were to pass }(hjhhhNhNubj)}(h**rate**h]hrate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhv to clk_set_rate(), what clock rate would I end up with?” without changing the hardware in any way. In other words:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMehjubj)}(hrate = clk_round_rate(clk, r); h]h)}(hrate = clk_round_rate(clk, r);h]hrate = clk_round_rate(clk, r);}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMihjubah}(h]h ]h"]h$]h&]uh1jhj;hMihjubh)}(hand:h]hand:}(hjԾhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMkhjubj)}(h0clk_set_rate(clk, r); rate = clk_get_rate(clk); h]h)}(h/clk_set_rate(clk, r); rate = clk_get_rate(clk);h]h/clk_set_rate(clk, r); rate = clk_get_rate(clk);}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMmhjubah}(h]h ]h"]h$]h&]uh1jhjhMmhjubh)}(hOare equivalent except the former does not modify the clock hardware in any way.h]hOare equivalent except the former does not modify the clock hardware in any way.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMphjubh)}(h4Returns rounded clock rate in Hz, or negative errno.h]h4Returns rounded clock rate in Hz, or negative errno.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMshjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_rate (C function)c.clk_set_ratehNtauh1hhjThhhNhNubj)}(hhh](j)}(h6int clk_set_rate (struct clk *clk, unsigned long rate)h]j)}(h5int clk_set_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMyubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6hhhjHhMyubj{)}(h clk_set_rateh]j)}(h clk_set_rateh]h clk_set_rate}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj6hhhjHhMyubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j]sbc.clk_set_rateasbuh1hhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hjÿhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hclkh]hclk}(hjпhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hrateh]hrate}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjoubeh}(h]h ]h"]h$]h&]jjuh1jhj6hhhjHhMyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhjHhMyubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1jhjHhMyhj/hhubj)}(hhh]h)}(h%set the clock rate for a clock sourceh]h%set the clock rate for a clock source}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMyhjHhhubah}(h]h ]h"]h$]h&]uh1jhj/hhhjHhMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1jhhhjThNhNubj)}(hX"**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired clock rate in Hz **Description** Updating the rate starts at the top-most affected clock and then walks the tree down to the bottom-most clock that needs updating. Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM}hjgubj )}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMzhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMzhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjubj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hjh]hunsigned long rate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM{hjubj2)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM{hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjubeh}(h]h ]h"]h$]h&]uh1j hjgubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM}hjgubh)}(hUpdating the rate starts at the top-most affected clock and then walks the tree down to the bottom-most clock that needs updating.h]hUpdating the rate starts at the top-most affected clock and then walks the tree down to the bottom-most clock that needs updating.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhM|hjgubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #clk_set_rate_exclusive (C function)c.clk_set_rate_exclusivehNtauh1hhjThhhNhNubj)}(hhh](j)}(h@int clk_set_rate_exclusive (struct clk *clk, unsigned long rate)h]j)}(h?int clk_set_rate_exclusive(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPhhhjbhMubj{)}(hclk_set_rate_exclusiveh]j)}(hclk_set_rate_exclusiveh]hclk_set_rate_exclusive}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhjbhMubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jwsbc.clk_set_rate_exclusiveasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hrateh]hrate}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1jhjbhMhjIhhubj)}(hhh]h)}(h:set the clock rate and claim exclusivity over clock sourceh]h:set the clock rate and claim exclusivity over clock source}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjbhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1jhhhjThNhNubj)}(hX**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired clock rate in Hz **Description** This helper function allows drivers to atomically set the rate of a producer and claim exclusivity over the rate control of the producer. It is essentially a combination of clk_set_rate() and clk_rate_exclusite_get(). Caller must balance this call with a call to clk_rate_exclusive_put() Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h0``unsigned long rate`` desired clock rate in Hz h](j)}(h``unsigned long rate``h]j)}(hjh]hunsigned long rate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(hdesired clock rate in Hzh]hdesired clock rate in Hz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hThis helper function allows drivers to atomically set the rate of a producer and claim exclusivity over the rate control of the producer.h]hThis helper function allows drivers to atomically set the rate of a producer and claim exclusivity over the rate control of the producer.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hIt is essentially a combination of clk_set_rate() and clk_rate_exclusite_get(). Caller must balance this call with a call to clk_rate_exclusive_put()h]hIt is essentially a combination of clk_set_rate() and clk_rate_exclusite_get(). Caller must balance this call with a call to clk_rate_exclusive_put()}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_has_parent (C function)c.clk_has_parenthNtauh1hhjThhhNhNubj)}(hhh](j)}(hEbool clk_has_parent (const struct clk *clk, const struct clk *parent)h]j)}(hDbool clk_has_parent(const struct clk *clk, const struct clk *parent)h](j )}(hj8h]hbool}(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhjhMubj{)}(hclk_has_parenth]j)}(hclk_has_parenth]hclk_has_parent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhjhMubj)}(h1(const struct clk *clk, const struct clk *parent)h](j)}(hconst struct clk *clkh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_has_parentasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct clk *parenth](j)}(hjh]hconst}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hj h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.clk_has_parentasbuh1hhjBubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjrhhubj)}(hhh]h)}(h1check if a clock is a possible parent for anotherh]h1check if a clock is a possible parent for another}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hXU**Parameters** ``const struct clk *clk`` clock source ``const struct clk *parent`` parent clock source **Description** This function can be used in drivers that need to check that a clock can be the parent of another without actually changing the parent. Returns true if **parent** is a possible parent for **clk**, false otherwise.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h'``const struct clk *clk`` clock source h](j)}(h``const struct clk *clk``h]j)}(hj#h]hconst struct clk *clk}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(h1``const struct clk *parent`` parent clock source h](j)}(h``const struct clk *parent``h]j)}(hj\h]hconst struct clk *parent}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjVubj2)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hThis function can be used in drivers that need to check that a clock can be the parent of another without actually changing the parent.h]hThis function can be used in drivers that need to check that a clock can be the parent of another without actually changing the parent.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hMReturns true if **parent** is a possible parent for **clk**, false otherwise.h](hReturns true if }(hjhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is a possible parent for }(hjhhhNhNubj)}(h**clk**h]hclk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, false otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_rate_range (C function)c.clk_set_rate_rangehNtauh1hhjThhhNhNubj)}(hhh](j)}(hNint clk_set_rate_range (struct clk *clk, unsigned long min, unsigned long max)h]j)}(hMint clk_set_rate_range(struct clk *clk, unsigned long min, unsigned long max)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhMubj{)}(hclk_set_rate_rangeh]j)}(hclk_set_rate_rangeh]hclk_set_rate_range}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMubj)}(h7(struct clk *clk, unsigned long min, unsigned long max)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubh)}(hhh]j)}(hclkh]hclk}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjlmodnameN classnameNj] j` )}jc ]jf )}jY j2sbc.clk_set_rate_rangeasbuh1hhjHubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned long minh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hminh]hmin}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubj)}(hunsigned long maxh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj )}(hlongh]hlong}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj ubj)}(hmaxh]hmax}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h#set a rate range for a clock sourceh]h#set a rate range for a clock source}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``unsigned long min`` desired minimum clock rate in Hz, inclusive ``unsigned long max`` desired maximum clock rate in Hz, inclusive **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``unsigned long min`` desired minimum clock rate in Hz, inclusive h](j)}(h``unsigned long min``h]j)}(hjh]hunsigned long min}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hB``unsigned long max`` desired maximum clock rate in Hz, inclusive h](j)}(h``unsigned long max``h]j)}(hj$h]hunsigned long max}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_min_rate (C function)c.clk_set_min_ratehNtauh1hhjThhhNhNubj)}(hhh](j)}(h:int clk_set_min_rate (struct clk *clk, unsigned long rate)h]j)}(h9int clk_set_min_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hclk_set_min_rateh]j)}(hclk_set_min_rateh]hclk_set_min_rate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_set_min_rateasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj )}(hlongh]hlong}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h+set a minimum clock rate for a clock sourceh]h+set a minimum clock rate for a clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired minimum clock rate in Hz, inclusive **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hC``unsigned long rate`` desired minimum clock rate in Hz, inclusive h](j)}(h``unsigned long rate``h]j)}(hj/h]hunsigned long rate}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj)ubj2)}(hhh]h)}(h+desired minimum clock rate in Hz, inclusiveh]h+desired minimum clock rate in Hz, inclusive}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_max_rate (C function)c.clk_set_max_ratehNtauh1hhjThhhNhNubj)}(hhh](j)}(h:int clk_set_max_rate (struct clk *clk, unsigned long rate)h]j)}(h9int clk_set_max_rate(struct clk *clk, unsigned long rate)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hclk_set_max_rateh]j)}(hclk_set_max_rateh]hclk_set_max_rate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h%(struct clk *clk, unsigned long rate)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hclkh]hclk}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj modnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_set_max_rateasbuh1hhjubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long rateh](j )}(hunsignedh]hunsigned}(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj )}(hlongh]hlong}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hrateh]hrate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h+set a maximum clock rate for a clock sourceh]h+set a maximum clock rate for a clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``unsigned long rate`` desired maximum clock rate in Hz, inclusive **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hjh]hstruct clk *clk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hC``unsigned long rate`` desired maximum clock rate in Hz, inclusive h](j)}(h``unsigned long rate``h]j)}(hj:h]hunsigned long rate}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj4ubj2)}(hhh]h)}(h+desired maximum clock rate in Hz, inclusiveh]h+desired maximum clock rate in Hz, inclusive}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMhjPubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjuh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_set_parent (C function)c.clk_set_parenthNtauh1hhjThhhNhNubj)}(hhh](j)}(h8int clk_set_parent (struct clk *clk, struct clk *parent)h]j)}(h7int clk_set_parent(struct clk *clk, struct clk *parent)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hclk_set_parenth]j)}(hclk_set_parenth]hclk_set_parent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h%(struct clk *clk, struct clk *parent)h](j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.clk_set_parentasbuh1hhjubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hclkh]hclk}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct clk *parenth](j)}(hj h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j1c.clk_set_parentasbuh1hhjeubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h*set the parent clock source for this clockh]h*set the parent clock source for this clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock source ``struct clk *parent`` parent clock source **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj+h]hstruct clk *clk}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj%ubj2)}(hhh]h)}(h clock sourceh]h clock source}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhjAubah}(h]h ]h"]h$]h&]uh1j1hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj"ubj)}(h+``struct clk *parent`` parent clock source h](j)}(h``struct clk *parent``h]j)}(hjdh]hstruct clk *parent}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj^ubj2)}(hhh]h)}(hparent clock sourceh]hparent clock source}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj"ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_parent (C function)c.clk_get_parenthNtauh1hhjThhhNhNubj)}(hhh](j)}(h-struct clk * clk_get_parent (struct clk *clk)h]j)}(h+struct clk *clk_get_parent(struct clk *clk)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY clk_get_parentsbc.clk_get_parentasbuh1hhjhhhjhMubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(hclk_get_parenth]j)}(hj!h]hclk_get_parent}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(hhh]j)}(hclkh]hclk}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj~modnameN classnameNj] j` )}jc ]jc.clk_get_parentasbuh1hhjZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h*get the parent clock source for this clockh]h*get the parent clock source for this clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(h**Parameters** ``struct clk *clk`` clock source **Description** Returns struct clk corresponding to parent clock source, or NULL if clk is NULL.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj h]hstruct clk *clk}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hPReturns struct clk corresponding to parent clock source, or NULL if clk is NULL.h]hPReturns struct clk corresponding to parent clock source, or NULL if clk is NULL.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_sys (C function) c.clk_get_syshNtauh1hhjThhhNhNubj)}(hhh](j)}(hAstruct clk * clk_get_sys (const char *dev_id, const char *con_id)h]j)}(h?struct clk *clk_get_sys(const char *dev_id, const char *con_id)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY clk_get_syssb c.clk_get_sysasbuh1hhjhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(h clk_get_sysh]j)}(hjh]h clk_get_sys}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h((const char *dev_id, const char *con_id)h](j)}(hconst char *dev_idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdev_idh]hdev_id}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](j)}(hjh]hconst}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h&get a clock based upon the device nameh]h&get a clock based upon the device name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hX4**Parameters** ``const char *dev_id`` device name ``const char *con_id`` connection ID **Description** Returns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev_id** and **con_id** to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification. Drivers must assume that the clock source is not enabled. clk_get_sys should not be called from within interrupt context.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh](j)}(h#``const char *dev_id`` device name h](j)}(h``const char *dev_id``h]j)}(hj&h]hconst char *dev_id}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhj ubj2)}(hhh]h)}(h device nameh]h device name}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubj)}(h%``const char *con_id`` connection ID h](j)}(h``const char *con_id``h]j)}(hj_h]hconst char *con_id}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjYubj2)}(hhh]h)}(h connection IDh]h connection ID}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1j1hjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(hXIReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses **dev_id** and **con_id** to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification.h](hReturns a struct clk corresponding to the clock producer, or valid IS_ERR() condition containing errno. The implementation uses }(hjhhhNhNubj)}(h **dev_id**h]hdev_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to determine the clock consumer, and thereby the clock producer. In contrast to clk_get() this function takes the device name instead of the device itself for identification.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h9Drivers must assume that the clock source is not enabled.h]h9Drivers must assume that the clock source is not enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h?clk_get_sys should not be called from within interrupt context.h]h?clk_get_sys should not be called from within interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_drop_range (C function)c.clk_drop_rangehNtauh1hhjThhhNhNubj)}(hhh](j)}(h$int clk_drop_range (struct clk *clk)h]j)}(h#int clk_drop_range(struct clk *clk)h](j )}(hinth]hint}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj/hMubj{)}(hclk_drop_rangeh]j)}(hclk_drop_rangeh]hclk_drop_range}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj/hMubj)}(h(struct clk *clk)h]j)}(hstruct clk *clkh](j)}(hj h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(hhh]j)}(hclkh]hclk}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj~modnameN classnameNj] j` )}jc ]jf )}jY jDsbc.clk_drop_rangeasbuh1hhjZubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj/hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj/hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj/hMhjhhubj)}(hhh]h)}(h!Reset any range set on that clockh]h!Reset any range set on that clock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjThNhNubj)}(hk**Parameters** ``struct clk *clk`` clock source **Description** Returns success (0) or negative errno.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj )}(hhh]j)}(h!``struct clk *clk`` clock source h](j)}(h``struct clk *clk``h]j)}(hj"h]hstruct clk *clk}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubj2)}(hhh]h)}(h clock sourceh]h clock source}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj]h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubh)}(h&Returns success (0) or negative errno.h]h&Returns success (0) or negative errno.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjThhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j clk_get_optional (C function)c.clk_get_optionalhNtauh1hhjThhhNhNubj)}(hhh](j)}(hBstruct clk * clk_get_optional (struct device *dev, const char *id)h]j)}(h@struct clk *clk_get_optional(struct device *dev, const char *id)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:390: ./include/linux/clk.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubh)}(hhh]j)}(hclkh]hclk}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY clk_get_optionalsbc.clk_get_optionalasbuh1hhjhhhjhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj{)}(hclk_get_optionalh]j)}(hjh]hclk_get_optional}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h$(struct device *dev, const char *id)h](j)}(hstruct device *devh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hdeviceh]hdevice}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj<modnameN classnameNj] j` )}jc ]jc.clk_get_optionalasbuh1hhjubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdevh]hdev}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *idh](j)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hah"]h$]h&]uh1j1hjhhhj+hKIubj{)}(hsame_state_synchronize_rcuh]j)}(hsame_state_synchronize_rcuh]hsame_state_synchronize_rcu}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj+hKIubj)}(h2(unsigned long oldstate1, unsigned long oldstate2)h](j)}(hunsigned long oldstate1h](j )}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjhhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj )}(hlongh]hlong}(hjvhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjVubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(h oldstate1h]h oldstate1}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubj)}(hunsigned long oldstate2h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(h oldstate2h]h oldstate2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj+hKIubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj+hKIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj+hKIhjhhubj)}(hhh]h)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKIhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hKIubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``unsigned long oldstate1`` First old-state value. ``unsigned long oldstate2`` Second old-state value. **Description** The two old-state values must have been obtained from either get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or get_completed_synchronize_rcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKMhj)ubj )}(hhh](j)}(h3``unsigned long oldstate1`` First old-state value. h](j)}(h``unsigned long oldstate1``h]j)}(hjNh]hunsigned long oldstate1}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKJhjHubj2)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKJhjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchKJhjEubj)}(h4``unsigned long oldstate2`` Second old-state value. h](j)}(h``unsigned long oldstate2``h]j)}(hjh]hunsigned long oldstate2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKKhjubj2)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKKhjEubeh}(h]h ]h"]h$]h&]uh1j hj)ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKMhj)ubh)}(hXThe two old-state values must have been obtained from either get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or get_completed_synchronize_rcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or get_completed_synchronize_rcu(). Returns }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh% if the two values are identical and }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKLhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &cond_resched_tasks_rcu_qs (C function)c.cond_resched_tasks_rcu_qshNtauh1hhjhhhNhNubj)}(hhh](j)}(h%void cond_resched_tasks_rcu_qs (void)h]j)}(h$void cond_resched_tasks_rcu_qs(void)h](j )}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'hhhj9hKubj{)}(hcond_resched_tasks_rcu_qsh]j)}(hcond_resched_tasks_rcu_qsh]hcond_resched_tasks_rcu_qs}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj'hhhj9hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubah}(h]h ]h"]h$]h&]jjuh1jhj'hhhj9hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj9hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj9hKhj hhubj)}(hhh]h)}(h(Report potential quiescent states to RCUh]h(Report potential quiescent states to RCU}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``void`` no arguments **Description** This function resembles cond_resched(), except that it is defined to report potential quiescent states to RCU-tasks even if the cond_resched() machinery were to be shut off, as some advocate for PREEMPTION kernels.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubh)}(hThis function resembles cond_resched(), except that it is defined to report potential quiescent states to RCU-tasks even if the cond_resched() machinery were to be shut off, as some advocate for PREEMPTION kernels.h]hThis function resembles cond_resched(), except that it is defined to report potential quiescent states to RCU-tasks even if the cond_resched() machinery were to be shut off, as some advocate for PREEMPTION kernels.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !rcu_softirq_qs_periodic (C macro)c.rcu_softirq_qs_periodichNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_softirq_qs_periodich]j)}(hrcu_softirq_qs_periodich]j{)}(hrcu_softirq_qs_periodich]j)}(hjMh]hrcu_softirq_qs_periodic}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjKhhhjjhKubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjjhKhjHhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjHhhhjjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h$``rcu_softirq_qs_periodic (old_ts)``h]j)}(hjh]h rcu_softirq_qs_periodic (old_ts)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjhhubj)}(h*Report RCU and RCU-Tasks quiescent states h]h)}(h)Report RCU and RCU-Tasks quiescent statesh]h)Report RCU and RCU-Tasks quiescent states}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``old_ts`` jiffies at start of processing. **Description** This helper is for long-running softirq handlers, such as NAPI threads in networking. The caller should initialize the variable passed in as **old_ts** at the beginning of the softirq handler. When invoked frequently, this macro will invoke rcu_softirq_qs() every 100 milliseconds thereafter, which will provide both RCU and RCU-Tasks quiescent states. Note that this macro modifies its old_ts argument. Because regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled. The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won't achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubj )}(hhh]j)}(h+``old_ts`` jiffies at start of processing. h](j)}(h ``old_ts``h]j)}(hjh]hold_ts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubj2)}(hhh]h)}(hjiffies at start of processing.h]hjiffies at start of processing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubh)}(hXThis helper is for long-running softirq handlers, such as NAPI threads in networking. The caller should initialize the variable passed in as **old_ts** at the beginning of the softirq handler. When invoked frequently, this macro will invoke rcu_softirq_qs() every 100 milliseconds thereafter, which will provide both RCU and RCU-Tasks quiescent states. Note that this macro modifies its old_ts argument.h](hThis helper is for long-running softirq handlers, such as NAPI threads in networking. The caller should initialize the variable passed in as }(hj.hhhNhNubj)}(h **old_ts**h]hold_ts}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh at the beginning of the softirq handler. When invoked frequently, this macro will invoke rcu_softirq_qs() every 100 milliseconds thereafter, which will provide both RCU and RCU-Tasks quiescent states. Note that this macro modifies its old_ts argument.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubh)}(hBecause regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled.h]hBecause regions of code that have disabled softirq act as RCU read-side critical sections, this macro should be invoked with softirq (and preemption) enabled.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubh)}(hX,The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won't achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.h]hX.The macro is not needed when CONFIG_PREEMPT_RT is defined. RT kernels would have more chance to invoke schedule() calls and provide necessary quiescent states. As a contrast, calling cond_resched() only won’t achieve the same effect because cond_resched() does not provide RCU-Tasks quiescent states.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j RCU_LOCKDEP_WARN (C macro)c.RCU_LOCKDEP_WARNhNtauh1hhjhhhNhNubj)}(hhh](j)}(hRCU_LOCKDEP_WARNh]j)}(hRCU_LOCKDEP_WARNh]j{)}(hRCU_LOCKDEP_WARNh]j)}(hjh]hRCU_LOCKDEP_WARN}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMlubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMlubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMlhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMlubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``RCU_LOCKDEP_WARN (c, s)``h]j)}(hjh]hRCU_LOCKDEP_WARN (c, s)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMnhjhhubj)}(h1emit lockdep splat if specified condition is met h]h)}(h0emit lockdep splat if specified condition is meth]h0emit lockdep splat if specified condition is met}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMlhjubah}(h]h ]h"]h$]h&]uh1jhjhMlhjhhubj)}(hX**Parameters** ``c`` condition to check ``s`` informative message **Description** This checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd ("rcu: Reject RCU_LOCKDEP_WARN() false positives") for more detail.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMphjubj )}(hhh](j)}(h``c`` condition to check h](j)}(h``c``h]j)}(hjh]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMmhjubj2)}(hhh]h)}(hcondition to checkh]hcondition to check}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMmhj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hMmhjubj)}(h``s`` informative message h](j)}(h``s``h]j)}(hjPh]hs}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMnhjJubj2)}(hhh]h)}(hinformative messageh]hinformative message}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMnhjfubah}(h]h ]h"]h$]h&]uh1j1hjJubeh}(h]h ]h"]h$]h&]uh1jhjehMnhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMphjubh)}(hXOThis checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd ("rcu: Reject RCU_LOCKDEP_WARN() false positives") for more detail.h]hXSThis checks debug_lockdep_rcu_enabled() before checking (c) to prevent early boot splats due to lockdep not yet being initialized, and rechecks it after checking (c) to prevent false-positive splats due to races with lockdep being disabled. See commit 3066820034b5dd (“rcu: Reject RCU_LOCKDEP_WARN() false positives”) for more detail.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )lockdep_assert_in_rcu_read_lock (C macro)!c.lockdep_assert_in_rcu_read_lockhNtauh1hhjhhhNhNubj)}(hhh](j)}(hlockdep_assert_in_rcu_read_lockh]j)}(hlockdep_assert_in_rcu_read_lockh]j{)}(hlockdep_assert_in_rcu_read_lockh]j)}(hjh]hlockdep_assert_in_rcu_read_lock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h&``lockdep_assert_in_rcu_read_lock ()``h]j)}(hjh]h"lockdep_assert_in_rcu_read_lock ()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h WARN if not protected by rcu_read_lock() **Description** Splats if lockdep is enabled and there is no rcu_read_lock() in effect. h](j)}(h)WARN if not protected by rcu_read_lock() h]h)}(h(WARN if not protected by rcu_read_lock()h]h(WARN if not protected by rcu_read_lock()}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhj2hMhjubh)}(h**Description**h]j)}(hj;h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hGSplats if lockdep is enabled and there is no rcu_read_lock() in effect.h]hGSplats if lockdep is enabled and there is no rcu_read_lock() in effect.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,lockdep_assert_in_rcu_read_lock_bh (C macro)$c.lockdep_assert_in_rcu_read_lock_bhhNtauh1hhjhhhNhNubj)}(hhh](j)}(h"lockdep_assert_in_rcu_read_lock_bhh]j)}(h"lockdep_assert_in_rcu_read_lock_bhh]j{)}(h"lockdep_assert_in_rcu_read_lock_bhh]j)}(hjyh]h"lockdep_assert_in_rcu_read_lock_bh}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjwhhhjhMubah}(h]jrah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjthhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjthhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h)``lockdep_assert_in_rcu_read_lock_bh ()``h]j)}(hjh]h%lockdep_assert_in_rcu_read_lock_bh ()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h WARN if not protected by rcu_read_lock_bh() **Description** Splats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required. h](j)}(h,WARN if not protected by rcu_read_lock_bh() h]h)}(h+WARN if not protected by rcu_read_lock_bh()h]h+WARN if not protected by rcu_read_lock_bh()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hSplats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required.h]hSplats if lockdep is enabled and there is no rcu_read_lock_bh() in effect. Note that local_bh_disable() and friends do not suffice here, instead an actual rcu_read_lock_bh() is required.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j /lockdep_assert_in_rcu_read_lock_sched (C macro)'c.lockdep_assert_in_rcu_read_lock_schedhNtauh1hhjhhhNhNubj)}(hhh](j)}(h%lockdep_assert_in_rcu_read_lock_schedh]j)}(h%lockdep_assert_in_rcu_read_lock_schedh]j{)}(h%lockdep_assert_in_rcu_read_lock_schedh]j)}(hj(h]h%lockdep_assert_in_rcu_read_lock_sched}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj*hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj&hhhjEhMubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1jhjEhMhj#hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj#hhhjEhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj^jj^jjjuh1jhhhjhNhNubh)}(h,``lockdep_assert_in_rcu_read_lock_sched ()``h]j)}(hjdh]h(lockdep_assert_in_rcu_read_lock_sched ()}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(hX WARN if not protected by rcu_read_lock_sched() **Description** Splats if lockdep is enabled and there is no rcu_read_lock_sched() in effect. Note that preempt_disable() and friends do not suffice here, instead an actual rcu_read_lock_sched() is required. h](j)}(h/WARN if not protected by rcu_read_lock_sched() h]h)}(h.WARN if not protected by rcu_read_lock_sched()h]h.WARN if not protected by rcu_read_lock_sched()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj~ubah}(h]h ]h"]h$]h&]uh1jhjhMhjzubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjzubh)}(hSplats if lockdep is enabled and there is no rcu_read_lock_sched() in effect. Note that preempt_disable() and friends do not suffice here, instead an actual rcu_read_lock_sched() is required.h]hSplats if lockdep is enabled and there is no rcu_read_lock_sched() in effect. Note that preempt_disable() and friends do not suffice here, instead an actual rcu_read_lock_sched() is required.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &lockdep_assert_in_rcu_reader (C macro)c.lockdep_assert_in_rcu_readerhNtauh1hhjhhhNhNubj)}(hhh](j)}(hlockdep_assert_in_rcu_readerh]j)}(hlockdep_assert_in_rcu_readerh]j{)}(hlockdep_assert_in_rcu_readerh]j)}(hjh]hlockdep_assert_in_rcu_reader}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubh)}(h#``lockdep_assert_in_rcu_reader ()``h]j)}(hjh]hlockdep_assert_in_rcu_reader ()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(hX WARN if not within some type of RCU reader **Description** Splats if lockdep is enabled and there is no RCU reader of any type in effect. Note that regions of code protected by things like preempt_disable, local_bh_disable(), and local_irq_disable() all qualify as RCU readers. Note that this will never trigger in PREEMPT_NONE or PREEMPT_VOLUNTARY kernels that are not also built with PREEMPT_COUNT. But if you have lockdep enabled, you might as well also enable PREEMPT_COUNT. h](j)}(h+WARN if not within some type of RCU reader h]h)}(h*WARN if not within some type of RCU readerh]h*WARN if not within some type of RCU reader}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj?hMhj)ubh)}(h**Description**h]j)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj)ubh)}(hSplats if lockdep is enabled and there is no RCU reader of any type in effect. Note that regions of code protected by things like preempt_disable, local_bh_disable(), and local_irq_disable() all qualify as RCU readers.h]hSplats if lockdep is enabled and there is no RCU reader of any type in effect. Note that regions of code protected by things like preempt_disable, local_bh_disable(), and local_irq_disable() all qualify as RCU readers.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj)ubh)}(hNote that this will never trigger in PREEMPT_NONE or PREEMPT_VOLUNTARY kernels that are not also built with PREEMPT_COUNT. But if you have lockdep enabled, you might as well also enable PREEMPT_COUNT.h]hNote that this will never trigger in PREEMPT_NONE or PREEMPT_VOLUNTARY kernels that are not also built with PREEMPT_COUNT. But if you have lockdep enabled, you might as well also enable PREEMPT_COUNT.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhjhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j unrcu_pointer (C macro)c.unrcu_pointerhNtauh1hhjhhhNhNubj)}(hhh](j)}(h unrcu_pointerh]j)}(h unrcu_pointerh]j{)}(h unrcu_pointerh]j)}(hjh]h unrcu_pointer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``unrcu_pointer (p)``h]j)}(hjh]hunrcu_pointer (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h*mark a pointer as not being RCU protected h]h)}(h)mark a pointer as not being RCU protectedh]h)mark a pointer as not being RCU protected}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``p`` pointer needing to lose its __rcu property **Description** Converts **p** from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h1``p`` pointer needing to lose its __rcu property h](j)}(h``p``h]j)}(hj%h]hp}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h*pointer needing to lose its __rcu propertyh]h*pointer needing to lose its __rcu property}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(h|Converts **p** from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.h](h Converts }(hjvhhhNhNubj)}(h**p**h]hp}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubhn from an __rcu pointer to a __kernel pointer. This allows an __rcu pointer to be used with xchg() and friends.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j RCU_INITIALIZER (C macro)c.RCU_INITIALIZERhNtauh1hhjhhhNhNubj)}(hhh](j)}(hRCU_INITIALIZERh]j)}(hRCU_INITIALIZERh]j{)}(hRCU_INITIALIZERh]j)}(hjh]hRCU_INITIALIZER}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``RCU_INITIALIZER (v)``h]j)}(hjh]hRCU_INITIALIZER (v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h7statically initialize an RCU-protected global variable h]h)}(h6statically initialize an RCU-protected global variableh]h6statically initialize an RCU-protected global variable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h@**Parameters** ``v`` The value to statically initialize with.h](h)}(h**Parameters**h]j)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h.``v`` The value to statically initialize with.h](j)}(h``v``h]j)}(hjAh]hv}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj;ubj2)}(hhh]h)}(h(The value to statically initialize with.h]h(The value to statically initialize with.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjWubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhj8ubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_assign_pointer (C macro)c.rcu_assign_pointerhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_assign_pointerh]j)}(hrcu_assign_pointerh]j{)}(hrcu_assign_pointerh]j)}(hjh]hrcu_assign_pointer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``rcu_assign_pointer (p, v)``h]j)}(hjh]hrcu_assign_pointer (p, v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h assign to RCU-protected pointer h]h)}(hassign to RCU-protected pointerh]hassign to RCU-protected pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX**Parameters** ``p`` pointer to assign to ``v`` value to assign (publish) **Description** Assigns the specified value to the specified RCU-protected pointer, ensuring that any concurrent RCU readers will see any prior initialization. Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code. In some special cases, you may use RCU_INIT_POINTER() instead of rcu_assign_pointer(). RCU_INIT_POINTER() is a bit faster due to the fact that it does not constrain either the CPU or the compiler. That said, using RCU_INIT_POINTER() when you should have used rcu_assign_pointer() is a very bad thing that results in impossible-to-diagnose memory corruption. So please be careful. See the RCU_INIT_POINTER() comment header for details. Note that rcu_assign_pointer() evaluates each of its arguments only once, appearances notwithstanding. One of the "extra" evaluations is in typeof() and the other visible only to sparse (__CHECKER__), neither of which actually execute the argument. As with most cpp macros, this execute-arguments-only-once property is important, so please be careful when making changes to rcu_assign_pointer() and the other macros that it invokes.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh](j)}(h``p`` pointer to assign to h](j)}(h``p``h]j)}(hj%h]hp}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(hpointer to assign toh]hpointer to assign to}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubj)}(h ``v`` value to assign (publish) h](j)}(h``v``h]j)}(hj^h]hv}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjXubj2)}(hhh]h)}(hvalue to assign (publish)h]hvalue to assign (publish)}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hAssigns the specified value to the specified RCU-protected pointer, ensuring that any concurrent RCU readers will see any prior initialization.h]hAssigns the specified value to the specified RCU-protected pointer, ensuring that any concurrent RCU readers will see any prior initialization.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hX*Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code.h]hX*Inserts memory barriers on architectures that require them (which is most of them), and also prevents the compiler from reordering the code that initializes the structure after the pointer assignment. More importantly, this call documents which pointers will be dereferenced by RCU read-side code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM hjubh)}(hXIn some special cases, you may use RCU_INIT_POINTER() instead of rcu_assign_pointer(). RCU_INIT_POINTER() is a bit faster due to the fact that it does not constrain either the CPU or the compiler. That said, using RCU_INIT_POINTER() when you should have used rcu_assign_pointer() is a very bad thing that results in impossible-to-diagnose memory corruption. So please be careful. See the RCU_INIT_POINTER() comment header for details.h]hXIn some special cases, you may use RCU_INIT_POINTER() instead of rcu_assign_pointer(). RCU_INIT_POINTER() is a bit faster due to the fact that it does not constrain either the CPU or the compiler. That said, using RCU_INIT_POINTER() when you should have used rcu_assign_pointer() is a very bad thing that results in impossible-to-diagnose memory corruption. So please be careful. See the RCU_INIT_POINTER() comment header for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM&hjubh)}(hXNote that rcu_assign_pointer() evaluates each of its arguments only once, appearances notwithstanding. One of the "extra" evaluations is in typeof() and the other visible only to sparse (__CHECKER__), neither of which actually execute the argument. As with most cpp macros, this execute-arguments-only-once property is important, so please be careful when making changes to rcu_assign_pointer() and the other macros that it invokes.h]hXNote that rcu_assign_pointer() evaluates each of its arguments only once, appearances notwithstanding. One of the “extra” evaluations is in typeof() and the other visible only to sparse (__CHECKER__), neither of which actually execute the argument. As with most cpp macros, this execute-arguments-only-once property is important, so please be careful when making changes to rcu_assign_pointer() and the other macros that it invokes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM.hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_replace_pointer (C macro)c.rcu_replace_pointerhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_replace_pointerh]j)}(hrcu_replace_pointerh]j{)}(hrcu_replace_pointerh]j)}(hjh]hrcu_replace_pointer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMCubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj"hMCubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj"hMChjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj"hMCubeh}(h]h ](jmacroeh"]h$]h&]jjjj;jj;jjjuh1jhhhjhNhNubh)}(h)``rcu_replace_pointer (rcu_ptr, ptr, c)``h]j)}(hjAh]h%rcu_replace_pointer (rcu_ptr, ptr, c)}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMEhjhhubj)}(h0replace an RCU pointer, returning its old value h]h)}(h/replace an RCU pointer, returning its old valueh]h/replace an RCU pointer, returning its old value}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMChjWubah}(h]h ]h"]h$]h&]uh1jhjihMChjhhubj)}(hX**Parameters** ``rcu_ptr`` RCU pointer, whose old value is returned ``ptr`` regular pointer ``c`` the lockdep conditions under which the dereference will take place **Description** Perform a replacement, where **rcu_ptr** is an RCU-annotated pointer and **c** is the lockdep argument that is passed to the rcu_dereference_protected() call used to read that pointer. The old value of **rcu_ptr** is returned, and **rcu_ptr** is set to **ptr**.h](h)}(h**Parameters**h]j)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMGhjpubj )}(hhh](j)}(h5``rcu_ptr`` RCU pointer, whose old value is returned h](j)}(h ``rcu_ptr``h]j)}(hjh]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMDhjubj2)}(hhh]h)}(h(RCU pointer, whose old value is returnedh]h(RCU pointer, whose old value is returned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubj)}(h``ptr`` regular pointer h](j)}(h``ptr``h]j)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMEhjubj2)}(hhh]h)}(hregular pointerh]hregular pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMEhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjubj)}(hI``c`` the lockdep conditions under which the dereference will take place h](j)}(h``c``h]j)}(hjh]hc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMFhjubj2)}(hhh]h)}(hBthe lockdep conditions under which the dereference will take placeh]hBthe lockdep conditions under which the dereference will take place}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjubeh}(h]h ]h"]h$]h&]uh1j hjpubh)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMHhjpubh)}(hXPerform a replacement, where **rcu_ptr** is an RCU-annotated pointer and **c** is the lockdep argument that is passed to the rcu_dereference_protected() call used to read that pointer. The old value of **rcu_ptr** is returned, and **rcu_ptr** is set to **ptr**.h](hPerform a replacement, where }(hjXhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh! is an RCU-annotated pointer and }(hjXhhhNhNubj)}(h**c**h]hc}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh} is the lockdep argument that is passed to the rcu_dereference_protected() call used to read that pointer. The old value of }(hjXhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh is returned, and }(hjXhhhNhNubj)}(h **rcu_ptr**h]hrcu_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh is set to }(hjXhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubh.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMGhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_access_pointer (C macro)c.rcu_access_pointerhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_access_pointerh]j)}(hrcu_access_pointerh]j{)}(hrcu_access_pointerh]j)}(hjh]hrcu_access_pointer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMUubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMUubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMUhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMUubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``rcu_access_pointer (p)``h]j)}(hjh]hrcu_access_pointer (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMWhjhhubj)}(h(fetch RCU pointer with no dereferencing h]h)}(h'fetch RCU pointer with no dereferencingh]h'fetch RCU pointer with no dereferencing}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMUhj-ubah}(h]h ]h"]h$]h&]uh1jhj?hMUhjhhubj)}(hX**Parameters** ``p`` The pointer to read **Description** Return the value of the specified RCU-protected pointer, but omit the lockdep checks for being in an RCU read-side critical section. This is useful when the value of this pointer is accessed, but the pointer is not dereferenced, for example, when testing an RCU-protected pointer against NULL. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer(). Although rcu_access_pointer() may also be used in cases where update-side locks prevent the value of the pointer from changing, you should instead use rcu_dereference_protected() for this use case. It is also permissible to use rcu_access_pointer() within lockless updaters to obtain the old value for an atomic operation, for example, for cmpxchg(). It is usually best to test the rcu_access_pointer() return value directly in order to avoid accidental dereferences being introduced by later inattentive changes. In other words, assigning the rcu_access_pointer() return value to a local variable results in an accident waiting to happen. It is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.h](h)}(h**Parameters**h]j)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMYhjFubj )}(hhh]j)}(h``p`` The pointer to read h](j)}(h``p``h]j)}(hjkh]hp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMVhjeubj2)}(hhh]h)}(hThe pointer to readh]hThe pointer to read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMVhjubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMVhjbubah}(h]h ]h"]h$]h&]uh1j hjFubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMXhjFubh)}(hXReturn the value of the specified RCU-protected pointer, but omit the lockdep checks for being in an RCU read-side critical section. This is useful when the value of this pointer is accessed, but the pointer is not dereferenced, for example, when testing an RCU-protected pointer against NULL. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer(). Although rcu_access_pointer() may also be used in cases where update-side locks prevent the value of the pointer from changing, you should instead use rcu_dereference_protected() for this use case. It is also permissible to use rcu_access_pointer() within lockless updaters to obtain the old value for an atomic operation, for example, for cmpxchg().h]hXReturn the value of the specified RCU-protected pointer, but omit the lockdep checks for being in an RCU read-side critical section. This is useful when the value of this pointer is accessed, but the pointer is not dereferenced, for example, when testing an RCU-protected pointer against NULL. Within an RCU read-side critical section, there is little reason to use rcu_access_pointer(). Although rcu_access_pointer() may also be used in cases where update-side locks prevent the value of the pointer from changing, you should instead use rcu_dereference_protected() for this use case. It is also permissible to use rcu_access_pointer() within lockless updaters to obtain the old value for an atomic operation, for example, for cmpxchg().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMWhjFubh)}(hX!It is usually best to test the rcu_access_pointer() return value directly in order to avoid accidental dereferences being introduced by later inattentive changes. In other words, assigning the rcu_access_pointer() return value to a local variable results in an accident waiting to happen.h]hX!It is usually best to test the rcu_access_pointer() return value directly in order to avoid accidental dereferences being introduced by later inattentive changes. In other words, assigning the rcu_access_pointer() return value to a local variable results in an accident waiting to happen.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMchjFubh)}(hXIt is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.h]hXIt is also permissible to use rcu_access_pointer() when read-side access to the pointer was removed at least one grace period ago, as is the case in the context of the RCU callback that is freeing up the data, or after a synchronize_rcu() returns. This can be useful when tearing down multi-linked structures after a grace period has elapsed. However, rcu_dereference_protected() is normally preferred for this use case.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMihjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_dereference_check (C macro)c.rcu_dereference_checkhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_dereference_checkh]j)}(hrcu_dereference_checkh]j{)}(hrcu_dereference_checkh]j)}(hjh]hrcu_dereference_check}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMtubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMtubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hMthjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMtubeh}(h]h ](jmacroeh"]h$]h&]jjjj9jj9jjjuh1jhhhjhNhNubh)}(h ``rcu_dereference_check (p, c)``h]j)}(hj?h]hrcu_dereference_check (p, c)}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMvhjhhubj)}(h$rcu_dereference with debug checking h]h)}(h#rcu_dereference with debug checkingh]h#rcu_dereference with debug checking}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMthjUubah}(h]h ]h"]h$]h&]uh1jhjghMthjhhubj)}(hX**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** Do an rcu_dereference(), but check that the conditions under which the dereference will take place are correct. Typically the conditions indicate the various locking conditions that should be held at that point. The check should return true if the conditions are satisfied. An implicit check for being in an RCU read-side critical section (rcu_read_lock()) is included. For example: bar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `)); could be used to indicate to lockdep that foo->bar may only be dereferenced if either rcu_read_lock() is held, or that the lock required to replace the bar struct at foo->bar is held. Note that the list of conditions may also include indications of when a lock need not be held, for example during initialisation or destruction of the target struct: bar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) || atomic_read(:c:type:`foo->usage `) == 0); Inserts memory barriers on architectures that require them (currently only the Alpha), prevents the compiler from refetching (and from merging fetches), and, more importantly, documents exactly which pointers are protected by RCU and checks that the pointer is annotated as __rcu.Wh](h)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMxhjnubj )}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMuhjubj2)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMuhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubj)}(hA``c`` The conditions under which the dereference will take place h](j)}(h``c``h]j)}(hjh]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMvhjubj2)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubeh}(h]h ]h"]h$]h&]uh1j hjnubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMxhjnubh)}(hXsDo an rcu_dereference(), but check that the conditions under which the dereference will take place are correct. Typically the conditions indicate the various locking conditions that should be held at that point. The check should return true if the conditions are satisfied. An implicit check for being in an RCU read-side critical section (rcu_read_lock()) is included.h]hXsDo an rcu_dereference(), but check that the conditions under which the dereference will take place are correct. Typically the conditions indicate the various locking conditions that should be held at that point. The check should return true if the conditions are satisfied. An implicit check for being in an RCU read-side critical section (rcu_read_lock()) is included.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMwhjnubh)}(h For example:h]h For example:}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM~hjnubj)}(hSbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `)); h]h)}(hRbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `));h](h6bar = rcu_dereference_check(foo->bar, lockdep_is_held(}(hj?hhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjIh]h foo->lock}(hjKhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj?ubh));}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjfhMhj;ubah}(h]h ]h"]h$]h&]uh1jhjfhMhjnubh)}(hcould be used to indicate to lockdep that foo->bar may only be dereferenced if either rcu_read_lock() is held, or that the lock required to replace the bar struct at foo->bar is held.h]hcould be used to indicate to lockdep that foo->bar may only be dereferenced if either rcu_read_lock() is held, or that the lock required to replace the bar struct at foo->bar is held.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjnubh)}(hNote that the list of conditions may also include indications of when a lock need not be held, for example during initialisation or destruction of the target struct:h]hNote that the list of conditions may also include indications of when a lock need not be held, for example during initialisation or destruction of the target struct:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjnubj)}(hbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) || atomic_read(:c:type:`foo->usage `) == 0); h]j )}(hhh]j)}(hbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) || atomic_read(:c:type:`foo->usage `) == 0); h](j)}(hSbar = rcu_dereference_check(foo->bar, lockdep_is_held(:c:type:`foo->lock `) ||h](h6bar = rcu_dereference_check(foo->bar, lockdep_is_held(}(hjhhhNhNubh)}(h:c:type:`foo->lock `h]j)}(hjh]h foo->lock}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjfoouh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh) ||}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj2)}(hhh]h)}(h.atomic_read(:c:type:`foo->usage `) == 0);h](h atomic_read(}(hjhhhNhNubh)}(h:c:type:`foo->usage `h]j)}(hjh]h foo->usage}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjfoouh1hhjhMhjubh) == 0);}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjnubh)}(hXInserts memory barriers on architectures that require them (currently only the Alpha), prevents the compiler from refetching (and from merging fetches), and, more importantly, documents exactly which pointers are protected by RCU and checks that the pointer is annotated as __rcu.h]hXInserts memory barriers on architectures that require them (currently only the Alpha), prevents the compiler from refetching (and from merging fetches), and, more importantly, documents exactly which pointers are protected by RCU and checks that the pointer is annotated as __rcu.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "rcu_dereference_bh_check (C macro)c.rcu_dereference_bh_checkhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_dereference_bh_checkh]j)}(hrcu_dereference_bh_checkh]j{)}(hrcu_dereference_bh_checkh]j)}(hjHh]hrcu_dereference_bh_check}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjJhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjehMubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1jhjehMhjChhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjChhhjehMubeh}(h]h ](jmacroeh"]h$]h&]jjjj~jj~jjjuh1jhhhjhNhNubh)}(h#``rcu_dereference_bh_check (p, c)``h]j)}(hjh]hrcu_dereference_bh_check (p, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h'rcu_dereference_bh with debug checking h]h)}(h&rcu_dereference_bh with debug checkingh]h&rcu_dereference_bh with debug checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX'**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** This is the RCU-bh counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for local_bh_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_bh() into account.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``c`` The conditions under which the dereference will take place h](j)}(h``c``h]j)}(hjh]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj ubj2)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hXThis is the RCU-bh counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for local_bh_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_bh() into account.h]hXThis is the RCU-bh counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for local_bh_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_bh() into account.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %rcu_dereference_sched_check (C macro)c.rcu_dereference_sched_checkhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_dereference_sched_checkh]j)}(hrcu_dereference_sched_checkh]j{)}(hrcu_dereference_sched_checkh]j)}(hjh]hrcu_dereference_sched_check}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h&``rcu_dereference_sched_check (p, c)``h]j)}(hjh]h"rcu_dereference_sched_check (p, c)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h*rcu_dereference_sched with debug checking h]h)}(h)rcu_dereference_sched with debug checkingh]h)rcu_dereference_sched with debug checking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX***Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** This is the RCU-sched counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for preempt_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_sched() into account.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(hA``c`` The conditions under which the dereference will take place h](j)}(h``c``h]j)}(hjTh]hc}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjNubj2)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hXThis is the RCU-sched counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for preempt_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_sched() into account.h]hXThis is the RCU-sched counterpart to rcu_dereference_check(). However, please note that starting in v5.0 kernels, vanilla RCU grace periods wait for preempt_disable() regions of code in addition to regions of code demarked by rcu_read_lock() and rcu_read_unlock(). This means that synchronize_rcu(), call_rcu, and friends all take not only rcu_read_lock() but also rcu_read_lock_sched() into account.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #rcu_dereference_all_check (C macro)c.rcu_dereference_all_checkhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_dereference_all_checkh]j)}(hrcu_dereference_all_checkh]j{)}(hrcu_dereference_all_checkh]j)}(hjh]hrcu_dereference_all_check}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h$``rcu_dereference_all_check (p, c)``h]j)}(hj h]h rcu_dereference_all_check (p, c)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h(rcu_dereference_all with debug checking h]h)}(h'rcu_dereference_all with debug checkingh]h'rcu_dereference_all with debug checking}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhj2hMhjhhubj)}(hXD**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** This is similar to rcu_dereference_check(), but allows protection by all forms of vanilla RCU readers, including preemption disabled, bh-disabled, and interrupt-disabled regions of code. Note that "vanilla RCU" excludes SRCU and the various Tasks RCU flavors. Please note that this macro should not be backported to any Linux-kernel version preceding v5.0 due to changes in synchronize_rcu() semantics prior to that version.h](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj9ubj )}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hj^h]hp}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjXubj2)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjUubj)}(hA``c`` The conditions under which the dereference will take place h](j)}(h``c``h]j)}(hjh]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjUubeh}(h]h ]h"]h$]h&]uh1j hj9ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj9ubh)}(hXThis is similar to rcu_dereference_check(), but allows protection by all forms of vanilla RCU readers, including preemption disabled, bh-disabled, and interrupt-disabled regions of code. Note that "vanilla RCU" excludes SRCU and the various Tasks RCU flavors. Please note that this macro should not be backported to any Linux-kernel version preceding v5.0 due to changes in synchronize_rcu() semantics prior to that version.h]hXThis is similar to rcu_dereference_check(), but allows protection by all forms of vanilla RCU readers, including preemption disabled, bh-disabled, and interrupt-disabled regions of code. Note that “vanilla RCU” excludes SRCU and the various Tasks RCU flavors. Please note that this macro should not be backported to any Linux-kernel version preceding v5.0 due to changes in synchronize_rcu() semantics prior to that version.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #rcu_dereference_protected (C macro)c.rcu_dereference_protectedhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_dereference_protectedh]j)}(hrcu_dereference_protectedh]j{)}(hrcu_dereference_protectedh]j)}(hjh]hrcu_dereference_protected}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj.hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj.hMhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj.hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjGjjGjjjuh1jhhhjhNhNubh)}(h$``rcu_dereference_protected (p, c)``h]j)}(hjMh]h rcu_dereference_protected (p, c)}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h)fetch RCU pointer when updates prevented h]h)}(h(fetch RCU pointer when updates preventedh]h(fetch RCU pointer when updates prevented}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjcubah}(h]h ]h"]h$]h&]uh1jhjuhMhjhhubj)}(hX**Parameters** ``p`` The pointer to read, prior to dereferencing ``c`` The conditions under which the dereference will take place **Description** Return the value of the specified RCU-protected pointer, but omit the READ_ONCE(). This is useful in cases where update-side locks prevent the value of the pointer from changing. Please note that this primitive does *not* prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks. This function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj|ubj )}(hhh](j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``c`` The conditions under which the dereference will take place h](j)}(h``c``h]j)}(hjh]hc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h:The conditions under which the dereference will take placeh]h:The conditions under which the dereference will take place}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hj|ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj|ubh)}(hX{Return the value of the specified RCU-protected pointer, but omit the READ_ONCE(). This is useful in cases where update-side locks prevent the value of the pointer from changing. Please note that this primitive does *not* prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks.h](hReturn the value of the specified RCU-protected pointer, but omit the READ_ONCE(). This is useful in cases where update-side locks prevent the value of the pointer from changing. Please note that this primitive does }(hj+hhhNhNubjp)}(h*not*h]hnot}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1johj+ubh prevent the compiler from repeating this reference or combining it with other references, so it should not be used without protection of appropriate locks.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj|ubh)}(hThis function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.h]hThis function is only for update-side use. Using this function when protected only by rcu_read_lock() will result in infrequent but very ugly failures.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_dereference (C macro)c.rcu_dereferencehNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_dereferenceh]j)}(hrcu_dereferenceh]j{)}(hrcu_dereferenceh]j)}(hjuh]hrcu_dereference}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjphhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjphhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``rcu_dereference (p)``h]j)}(hjh]hrcu_dereference (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h.fetch RCU-protected pointer for dereferencing h]h)}(h-fetch RCU-protected pointer for dereferencingh]h-fetch RCU-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** This is a simple wrapper around rcu_dereference_check().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(h8This is a simple wrapper around rcu_dereference_check().h]h8This is a simple wrapper around rcu_dereference_check().}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_dereference_bh (C macro)c.rcu_dereference_bhhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_dereference_bhh]j)}(hrcu_dereference_bhh]j{)}(hrcu_dereference_bhh]j)}(hjh]hrcu_dereference_bh}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhjhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjzhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjzhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``rcu_dereference_bh (p)``h]j)}(hjh]hrcu_dereference_bh (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h4fetch an RCU-bh-protected pointer for dereferencing h]h)}(h3fetch an RCU-bh-protected pointer for dereferencingh]h3fetch an RCU-bh-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** Makes rcu_dereference_check() do the dirty work.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj ubj2)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_dereference_sched (C macro)c.rcu_dereference_schedhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_dereference_schedh]j)}(hrcu_dereference_schedh]j{)}(hrcu_dereference_schedh]j)}(hjh]hrcu_dereference_sched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``rcu_dereference_sched (p)``h]j)}(hjh]hrcu_dereference_sched (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h4fetch RCU-sched-protected pointer for dereferencing h]h)}(h3fetch RCU-sched-protected pointer for dereferencingh]h3fetch RCU-sched-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** Makes rcu_dereference_check() do the dirty work.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjTh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_dereference_all (C macro)c.rcu_dereference_allhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_dereference_allh]j)}(hrcu_dereference_allh]j{)}(hrcu_dereference_allh]j)}(hjh]hrcu_dereference_all}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``rcu_dereference_all (p)``h]j)}(hjh]hrcu_dereference_all (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h2fetch RCU-all-protected pointer for dereferencing h]h)}(h1fetch RCU-all-protected pointer for dereferencingh]h1fetch RCU-all-protected pointer for dereferencing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``p`` The pointer to read, prior to dereferencing **Description** Makes rcu_dereference_check() do the dirty work.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h2``p`` The pointer to read, prior to dereferencing h](j)}(h``p``h]j)}(hj#h]hp}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h+The pointer to read, prior to dereferencingh]h+The pointer to read, prior to dereferencing}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj^h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(h0Makes rcu_dereference_check() do the dirty work.h]h0Makes rcu_dereference_check() do the dirty work.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_pointer_handoff (C macro)c.rcu_pointer_handoffhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_pointer_handoffh]j)}(hrcu_pointer_handoffh]j{)}(hrcu_pointer_handoffh]j)}(hjh]hrcu_pointer_handoff}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``rcu_pointer_handoff (p)``h]j)}(hjh]hrcu_pointer_handoff (p)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM hjhhubj)}(h/Hand off a pointer from RCU to other mechanism h]h)}(h.Hand off a pointer from RCU to other mechanismh]h.Hand off a pointer from RCU to other mechanism}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM hjubah}(h]h ]h"]h$]h&]uh1jhjhM hjhhubj)}(hXk**Parameters** ``p`` The pointer to hand off **Description** This is simply an identity function, but it documents where a pointer is handed off from RCU to some other synchronization mechanism, for example, reference counting or locking. In C11, it would map to kill_dependency(). It could be used as follows:: rcu_read_lock(); p = rcu_dereference(gp); long_lived = is_long_lived(p); if (long_lived) { if (!atomic_inc_not_zero(p->refcnt)) long_lived = false; else p = rcu_pointer_handoff(p); } rcu_read_unlock();h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h``p`` The pointer to hand off h](j)}(h``p``h]j)}(hj-h]hp}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM hj'ubj2)}(hhh]h)}(hThe pointer to hand offh]hThe pointer to hand off}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM hjCubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM hj$ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjhh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM hjubh)}(hThis is simply an identity function, but it documents where a pointer is handed off from RCU to some other synchronization mechanism, for example, reference counting or locking. In C11, it would map to kill_dependency(). It could be used as follows::h]hThis is simply an identity function, but it documents where a pointer is handed off from RCU to some other synchronization mechanism, for example, reference counting or locking. In C11, it would map to kill_dependency(). It could be used as follows:}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM hjubjH)}(hrcu_read_lock(); p = rcu_dereference(gp); long_lived = is_long_lived(p); if (long_lived) { if (!atomic_inc_not_zero(p->refcnt)) long_lived = false; else p = rcu_pointer_handoff(p); } rcu_read_unlock();h]hrcu_read_lock(); p = rcu_dereference(gp); long_lived = is_long_lived(p); if (long_lived) { if (!atomic_inc_not_zero(p->refcnt)) long_lived = false; else p = rcu_pointer_handoff(p); } rcu_read_unlock();}hjsbah}(h]h ]h"]h$]h&]jjuh1jHh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_read_lock (C function)c.rcu_read_lockhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_read_lock (void)h]j)}(hvoid rcu_read_lock(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(h rcu_read_lockh]j)}(h rcu_read_lockh]h rcu_read_lock}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(h7mark the beginning of an RCU read-side critical sectionh]h7mark the beginning of an RCU read-side critical section}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM hj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1jhhhjhNhNubj)}(hX **Parameters** ``void`` no arguments **Description** When synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections. Both synchronize_rcu() and call_rcu() also wait for regions of code with preemption disabled, including regions of code with interrupts or softirqs disabled. Note, however, that RCU callbacks are permitted to run concurrently with new RCU read-side critical sections. One way that this can happen is via the following sequence of events: (1) CPU 0 enters an RCU read-side critical section, (2) CPU 1 invokes call_rcu() to register an RCU callback, (3) CPU 0 exits the RCU read-side critical section, (4) CPU 2 enters a RCU read-side critical section, (5) the RCU callback is invoked. This is legal, because the RCU read-side critical section that was running concurrently with the call_rcu() (and which therefore might be referencing something that the corresponding RCU callback would free up) has completed before the corresponding RCU callback is invoked. RCU read-side critical sections may be nested. Any deferred actions will be deferred until the outermost RCU read-side critical section completes. You can avoid reading and understanding the next paragraph by following this rule: don't put anything in an rcu_read_lock() RCU read-side critical section that would block in a !PREEMPTION kernel. But if you want the full story, read on! In non-preemptible RCU implementations (pure TREE_RCU and TINY_RCU), it is illegal to block while in an RCU read-side critical section. In preemptible RCU implementations (PREEMPT_RCU) in CONFIG_PREEMPTION kernel builds, RCU read-side critical sections may be preempted, but explicit blocking is illegal. Finally, in preemptible RCU implementations in real-time (with -rt patchset) kernel builds, RCU read-side critical sections may be preempted and they may also block, but only when acquiring spinlocks that are subject to priority inheritance.h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM$hj?ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjdh]hvoid}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhj^ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKhjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj[ubah}(h]h ]h"]h$]h&]uh1j hj?ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhj?ubh)}(hXWhen synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections.h]hXWhen synchronize_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, then the synchronize_rcu() is guaranteed to block until after all the other CPUs exit their critical sections. Similarly, if call_rcu() is invoked on one CPU while other CPUs are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other CPUs exit their critical sections.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM!hj?ubh)}(hBoth synchronize_rcu() and call_rcu() also wait for regions of code with preemption disabled, including regions of code with interrupts or softirqs disabled.h]hBoth synchronize_rcu() and call_rcu() also wait for regions of code with preemption disabled, including regions of code with interrupts or softirqs disabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM)hj?ubh)}(hXNote, however, that RCU callbacks are permitted to run concurrently with new RCU read-side critical sections. One way that this can happen is via the following sequence of events: (1) CPU 0 enters an RCU read-side critical section, (2) CPU 1 invokes call_rcu() to register an RCU callback, (3) CPU 0 exits the RCU read-side critical section, (4) CPU 2 enters a RCU read-side critical section, (5) the RCU callback is invoked. This is legal, because the RCU read-side critical section that was running concurrently with the call_rcu() (and which therefore might be referencing something that the corresponding RCU callback would free up) has completed before the corresponding RCU callback is invoked.h]hXNote, however, that RCU callbacks are permitted to run concurrently with new RCU read-side critical sections. One way that this can happen is via the following sequence of events: (1) CPU 0 enters an RCU read-side critical section, (2) CPU 1 invokes call_rcu() to register an RCU callback, (3) CPU 0 exits the RCU read-side critical section, (4) CPU 2 enters a RCU read-side critical section, (5) the RCU callback is invoked. This is legal, because the RCU read-side critical section that was running concurrently with the call_rcu() (and which therefore might be referencing something that the corresponding RCU callback would free up) has completed before the corresponding RCU callback is invoked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM-hj?ubh)}(hRCU read-side critical sections may be nested. Any deferred actions will be deferred until the outermost RCU read-side critical section completes.h]hRCU read-side critical sections may be nested. Any deferred actions will be deferred until the outermost RCU read-side critical section completes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM9hj?ubh)}(hYou can avoid reading and understanding the next paragraph by following this rule: don't put anything in an rcu_read_lock() RCU read-side critical section that would block in a !PREEMPTION kernel. But if you want the full story, read on!h]hYou can avoid reading and understanding the next paragraph by following this rule: don’t put anything in an rcu_read_lock() RCU read-side critical section that would block in a !PREEMPTION kernel. But if you want the full story, read on!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM=hj?ubh)}(hX#In non-preemptible RCU implementations (pure TREE_RCU and TINY_RCU), it is illegal to block while in an RCU read-side critical section. In preemptible RCU implementations (PREEMPT_RCU) in CONFIG_PREEMPTION kernel builds, RCU read-side critical sections may be preempted, but explicit blocking is illegal. Finally, in preemptible RCU implementations in real-time (with -rt patchset) kernel builds, RCU read-side critical sections may be preempted and they may also block, but only when acquiring spinlocks that are subject to priority inheritance.h]hX#In non-preemptible RCU implementations (pure TREE_RCU and TINY_RCU), it is illegal to block while in an RCU read-side critical section. In preemptible RCU implementations (PREEMPT_RCU) in CONFIG_PREEMPTION kernel builds, RCU read-side critical sections may be preempted, but explicit blocking is illegal. Finally, in preemptible RCU implementations in real-time (with -rt patchset) kernel builds, RCU read-side critical sections may be preempted and they may also block, but only when acquiring spinlocks that are subject to priority inheritance.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMBhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_read_unlock (C function)c.rcu_read_unlockhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_read_unlock (void)h]j)}(hvoid rcu_read_unlock(void)h](j )}(hvoidh]hvoid}(hj/hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMaubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+hhhj=hMaubj{)}(hrcu_read_unlockh]j)}(hrcu_read_unlockh]hrcu_read_unlock}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj+hhhj=hMaubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]noemphjjuh1jhjdubah}(h]h ]h"]h$]h&]jjuh1jhj+hhhj=hMaubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj'hhhj=hMaubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jhj=hMahj$hhubj)}(hhh]h)}(h3marks the end of an RCU read-side critical section.h]h3marks the end of an RCU read-side critical section.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMahjhhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj=hMaubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``void`` no arguments **Description** In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler's runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled. See rcu_read_lock() for more information.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMehjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubh)}(hX!In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler's runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled.h]hX#In almost all situations, rcu_read_unlock() is immune from deadlock. This deadlock immunity also extends to the scheduler’s runqueue and priority-inheritance spinlocks, courtesy of the quiescent-state deferral that is carried out when rcu_read_unlock() is invoked with interrupts disabled.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMbhjubh)}(h)See rcu_read_lock() for more information.h]h)See rcu_read_lock() for more information.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_read_lock_bh (C function)c.rcu_read_lock_bhhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_read_lock_bh (void)h]j)}(hvoid rcu_read_lock_bh(void)h](j )}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjbhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMvubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjbhhhjthMvubj{)}(hrcu_read_lock_bhh]j)}(hrcu_read_lock_bhh]hrcu_read_lock_bh}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjbhhhjthMvubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjbhhhjthMvubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhjthMvubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1jhjthMvhj[hhubj)}(hhh]h)}(h0mark the beginning of an RCU-bh critical sectionh]h0mark the beginning of an RCU-bh critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMvhjhhubah}(h]h ]h"]h$]h&]uh1jhj[hhhjthMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXb**Parameters** ``void`` no arguments **Description** This is equivalent to rcu_read_lock(), but also disables softirqs. Note that anything else that disables softirqs can also serve as an RCU read-side critical section. However, please note that this equivalence applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_bh() were unrelated. Note that rcu_read_lock_bh() and the matching rcu_read_unlock_bh() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_bh() from one task if the matching rcu_read_lock_bh() was invoked from some other task.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMzhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj$ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj#hKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubh)}(hX7This is equivalent to rcu_read_lock(), but also disables softirqs. Note that anything else that disables softirqs can also serve as an RCU read-side critical section. However, please note that this equivalence applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_bh() were unrelated.h]hX7This is equivalent to rcu_read_lock(), but also disables softirqs. Note that anything else that disables softirqs can also serve as an RCU read-side critical section. However, please note that this equivalence applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_bh() were unrelated.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMwhjubh)}(hNote that rcu_read_lock_bh() and the matching rcu_read_unlock_bh() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_bh() from one task if the matching rcu_read_lock_bh() was invoked from some other task.h]hNote that rcu_read_lock_bh() and the matching rcu_read_unlock_bh() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_bh() from one task if the matching rcu_read_lock_bh() was invoked from some other task.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_read_unlock_bh (C function)c.rcu_read_unlock_bhhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_read_unlock_bh (void)h]j)}(hvoid rcu_read_unlock_bh(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hrcu_read_unlock_bhh]j)}(hrcu_read_unlock_bhh]hrcu_read_unlock_bh}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h4marks the end of a softirq-only RCU critical sectionh]h4marks the end of a softirq-only RCU critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hf**Parameters** ``void`` no arguments **Description** See rcu_read_lock_bh() for more information.h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjEh]hvoid}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhj?ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhKhj[ubah}(h]h ]h"]h$]h&]uh1j1hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhKhj<ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhj ubh)}(h,See rcu_read_lock_bh() for more information.h]h,See rcu_read_lock_bh() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  rcu_read_lock_sched (C function)c.rcu_read_lock_schedhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_read_lock_sched (void)h]j)}(hvoid rcu_read_lock_sched(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hrcu_read_lock_schedh]j)}(hrcu_read_lock_schedh]hrcu_read_lock_sched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h2mark the beginning of a RCU-sched critical sectionh]h2mark the beginning of a RCU-sched critical section}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj)hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``void`` no arguments **Description** This is equivalent to rcu_read_lock(), but also disables preemption. Read-side critical sections can also be introduced by anything else that disables preemption, including local_irq_disable() and friends. However, please note that the equivalence to rcu_read_lock() applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_sched() were unrelated. Note that rcu_read_lock_sched() and the matching rcu_read_unlock_sched() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_sched() from process context if the matching rcu_read_lock_sched() was invoked from an NMI handler.h](h)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjHubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjmh]hvoid}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjgubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjhKhjdubah}(h]h ]h"]h$]h&]uh1j hjHubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjHubh)}(hXsThis is equivalent to rcu_read_lock(), but also disables preemption. Read-side critical sections can also be introduced by anything else that disables preemption, including local_irq_disable() and friends. However, please note that the equivalence to rcu_read_lock() applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_sched() were unrelated.h]hXsThis is equivalent to rcu_read_lock(), but also disables preemption. Read-side critical sections can also be introduced by anything else that disables preemption, including local_irq_disable() and friends. However, please note that the equivalence to rcu_read_lock() applies only to v5.0 and later. Before v5.0, rcu_read_lock() and rcu_read_lock_sched() were unrelated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjHubh)}(hXNote that rcu_read_lock_sched() and the matching rcu_read_unlock_sched() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_sched() from process context if the matching rcu_read_lock_sched() was invoked from an NMI handler.h]hXNote that rcu_read_lock_sched() and the matching rcu_read_unlock_sched() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock_sched() from process context if the matching rcu_read_lock_sched() was invoked from an NMI handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "rcu_read_unlock_sched (C function)c.rcu_read_unlock_schedhNtauh1hhjhhhNhNubj)}(hhh](j)}(h!void rcu_read_unlock_sched (void)h]j)}(h void rcu_read_unlock_sched(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj hMubj{)}(hrcu_read_unlock_schedh]j)}(hrcu_read_unlock_schedh]hrcu_read_unlock_sched}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hMhjhhubj)}(hhh]h)}(h/marks the end of a RCU-classic critical sectionh]h/marks the end of a RCU-classic critical section}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1jhhhjhNhNubj)}(hi**Parameters** ``void`` no arguments **Description** See rcu_read_lock_sched() for more information.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhKhjubh)}(h/See rcu_read_lock_sched() for more information.h]h/See rcu_read_lock_sched() for more information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j RCU_INIT_POINTER (C macro)c.RCU_INIT_POINTERhNtauh1hhjhhhNhNubj)}(hhh](j)}(hRCU_INIT_POINTERh]j)}(hRCU_INIT_POINTERh]j{)}(hRCU_INIT_POINTERh]j)}(hjh]hRCU_INIT_POINTER}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj;hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj;hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj;hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjTjjTjjjuh1jhhhjhNhNubh)}(h``RCU_INIT_POINTER (p, v)``h]j)}(hjZh]hRCU_INIT_POINTER (p, v)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h$initialize an RCU protected pointer h]h)}(h#initialize an RCU protected pointerh]h#initialize an RCU protected pointer}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjpubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX<**Parameters** ``p`` The pointer to be initialized. ``v`` The value to initialized the pointer to. **Description** Initialize an RCU-protected pointer in special cases where readers do not need ordering constraints on the CPU or the compiler. These special cases are: 1. This use of RCU_INIT_POINTER() is NULLing out the pointer *or* 2. The caller has taken whatever steps are required to prevent RCU readers from concurrently accessing this pointer *or* 3. The referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() *and* a. You have not made *any* reader-visible changes to this structure since then *or* b. It is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.) Failure to follow these rules governing use of RCU_INIT_POINTER() will result in impossible-to-diagnose memory corruption. As in the structures will look OK in crash dumps, but any concurrent RCU readers might see pre-initialized values of the referenced data structure. So please be very careful how you use RCU_INIT_POINTER()!!! If you are creating an RCU-protected linked structure that is accessed by a single external-to-structure RCU-protected pointer, then you may use RCU_INIT_POINTER() to initialize the internal RCU-protected pointers, but you must use rcu_assign_pointer() to initialize the external-to-structure pointer *after* you have completely initialized the reader-accessible portions of the linked structure. Note that unlike rcu_assign_pointer(), RCU_INIT_POINTER() provides no ordering guarantees for either the CPU or the compiler.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh](j)}(h%``p`` The pointer to be initialized. h](j)}(h``p``h]j)}(hjh]hp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``v`` The value to initialized the pointer to. h](j)}(h``v``h]j)}(hjh]hv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h(The value to initialized the pointer to.h]h(The value to initialized the pointer to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hInitialize an RCU-protected pointer in special cases where readers do not need ordering constraints on the CPU or the compiler. These special cases are:h]hInitialize an RCU-protected pointer in special cases where readers do not need ordering constraints on the CPU or the compiler. These special cases are:}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubjM)}(hhh](j)}(h>This use of RCU_INIT_POINTER() is NULLing out the pointer *or*h]h)}(hjLh](h:This use of RCU_INIT_POINTER() is NULLing out the pointer }(hjNhhhNhNubjp)}(h*or*h]hor}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1johjNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjJubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(huThe caller has taken whatever steps are required to prevent RCU readers from concurrently accessing this pointer *or*h]h)}(huThe caller has taken whatever steps are required to prevent RCU readers from concurrently accessing this pointer *or*h](hqThe caller has taken whatever steps are required to prevent RCU readers from concurrently accessing this pointer }(hjthhhNhNubjp)}(h*or*h]hor}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1johjtubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjpubah}(h]h ]h"]h$]h&]uh1jhjGubj)}(hXThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() *and* a. You have not made *any* reader-visible changes to this structure since then *or* b. It is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.) h](h)}(hzThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() *and*h](huThe referenced data structure has already been exposed to readers either at compile time or via rcu_assign_pointer() }(hjhhhNhNubjp)}(h*and*h]hand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubjM)}(hhh](j)}(hPYou have not made *any* reader-visible changes to this structure since then *or*h]h)}(hPYou have not made *any* reader-visible changes to this structure since then *or*h](hYou have not made }(hjhhhNhNubjp)}(h*any*h]hany}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1johjubh5 reader-visible changes to this structure since then }(hjhhhNhNubjp)}(h*or*h]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hIt is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.) h]h)}(hIt is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.)h]hIt is OK for readers accessing this structure from its new location to see the old state of the structure. (For example, the changes were to statistical counters or to other state where exact synchronization is not required.)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jMjjMhjMjMuh1jMhjubeh}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]jMjMjMhjMjMuh1jMhjubh)}(hXLFailure to follow these rules governing use of RCU_INIT_POINTER() will result in impossible-to-diagnose memory corruption. As in the structures will look OK in crash dumps, but any concurrent RCU readers might see pre-initialized values of the referenced data structure. So please be very careful how you use RCU_INIT_POINTER()!!!h]hXLFailure to follow these rules governing use of RCU_INIT_POINTER() will result in impossible-to-diagnose memory corruption. As in the structures will look OK in crash dumps, but any concurrent RCU readers might see pre-initialized values of the referenced data structure. So please be very careful how you use RCU_INIT_POINTER()!!!}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hXIf you are creating an RCU-protected linked structure that is accessed by a single external-to-structure RCU-protected pointer, then you may use RCU_INIT_POINTER() to initialize the internal RCU-protected pointers, but you must use rcu_assign_pointer() to initialize the external-to-structure pointer *after* you have completely initialized the reader-accessible portions of the linked structure.h](hX-If you are creating an RCU-protected linked structure that is accessed by a single external-to-structure RCU-protected pointer, then you may use RCU_INIT_POINTER() to initialize the internal RCU-protected pointers, but you must use rcu_assign_pointer() to initialize the external-to-structure pointer }(hj.hhhNhNubjp)}(h*after*h]hafter}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1johj.ubhX you have completely initialized the reader-accessible portions of the linked structure.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(h}Note that unlike rcu_assign_pointer(), RCU_INIT_POINTER() provides no ordering guarantees for either the CPU or the compiler.h]h}Note that unlike rcu_assign_pointer(), RCU_INIT_POINTER() provides no ordering guarantees for either the CPU or the compiler.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !RCU_POINTER_INITIALIZER (C macro)c.RCU_POINTER_INITIALIZERhNtauh1hhjhhhNhNubj)}(hhh](j)}(hRCU_POINTER_INITIALIZERh]j)}(hRCU_POINTER_INITIALIZERh]j{)}(hRCU_POINTER_INITIALIZERh]j)}(hjxh]hRCU_POINTER_INITIALIZER}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjzhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjvhhhjhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjshhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjshhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h"``RCU_POINTER_INITIALIZER (p, v)``h]j)}(hjh]hRCU_POINTER_INITIALIZER (p, v)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubj)}(h/statically initialize an RCU protected pointer h]h)}(h.statically initialize an RCU protected pointerh]h.statically initialize an RCU protected pointer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(h**Parameters** ``p`` The pointer to be initialized. ``v`` The value to initialized the pointer to. **Description** GCC-style initialization for an RCU-protected pointer in a structure field.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh](j)}(h%``p`` The pointer to be initialized. h](j)}(h``p``h]j)}(hjh]hp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(hThe pointer to be initialized.h]hThe pointer to be initialized.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h/``v`` The value to initialized the pointer to. h](j)}(h``v``h]j)}(hjAh]hv}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhj;ubj2)}(hhh]h)}(h(The value to initialized the pointer to.h]h(The value to initialized the pointer to.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hKGCC-style initialization for an RCU-protected pointer in a structure field.h]hKGCC-style initialization for an RCU-protected pointer in a structure field.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j kfree_rcu (C macro) c.kfree_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h kfree_rcuh]j)}(h kfree_rcuh]j{)}(h kfree_rcuh]j)}(hjh]h kfree_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM!ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM!hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM!ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``kfree_rcu (ptr, rhf)``h]j)}(hjh]hkfree_rcu (ptr, rhf)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM#hjhhubj)}(h&kfree an object after a grace period. h]h)}(h%kfree an object after a grace period.h]h%kfree an object after a grace period.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM!hj ubah}(h]h ]h"]h$]h&]uh1jhjhM!hjhhubj)}(hX?**Parameters** ``ptr`` pointer to kfree for double-argument invocations. ``rhf`` the name of the struct rcu_head within the type of **ptr**. **Description** Many rcu callbacks functions just call kfree() on the base structure. These functions are trivial, but their size adds up, and furthermore when they are used in a kernel module, that module must invoke the high-latency rcu_barrier() function at module-unload time. The kfree_rcu() function handles this issue. In order to have a universal callback function handling different offsets of rcu_head, the callback needs to determine the starting address of the freed object, which can be a large kmalloc or vmalloc allocation. To allow simply aligning the pointer down to page boundary for those, only offsets up to 4095 bytes can be accommodated. If the offset is larger than 4095 bytes, a compile-time error will be generated in kvfree_rcu_arg_2(). If this error is triggered, you can either fall back to use of call_rcu() or rearrange the structure to position the rcu_head structure into the first 4096 bytes. The object to be freed can be allocated either by kmalloc(), kmalloc_nolock(), or kmem_cache_alloc(). Note that the allowable offset might decrease in the future. The BUILD_BUG_ON check must not involve any function calls, hence the checks are done in macros here.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM%hj&ubj )}(hhh](j)}(h:``ptr`` pointer to kfree for double-argument invocations. h](j)}(h``ptr``h]j)}(hjKh]hptr}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM"hjEubj2)}(hhh]h)}(h1pointer to kfree for double-argument invocations.h]h1pointer to kfree for double-argument invocations.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hM"hjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hM"hjBubj)}(hD``rhf`` the name of the struct rcu_head within the type of **ptr**. h](j)}(h``rhf``h]j)}(hjh]hrhf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM#hj~ubj2)}(hhh]h)}(h;the name of the struct rcu_head within the type of **ptr**.h](h3the name of the struct rcu_head within the type of }(hjhhhNhNubj)}(h**ptr**h]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjBubeh}(h]h ]h"]h$]h&]uh1j hj&ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM%hj&ubh)}(hXMany rcu callbacks functions just call kfree() on the base structure. These functions are trivial, but their size adds up, and furthermore when they are used in a kernel module, that module must invoke the high-latency rcu_barrier() function at module-unload time.h]hXMany rcu callbacks functions just call kfree() on the base structure. These functions are trivial, but their size adds up, and furthermore when they are used in a kernel module, that module must invoke the high-latency rcu_barrier() function at module-unload time.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM$hj&ubh)}(hXThe kfree_rcu() function handles this issue. In order to have a universal callback function handling different offsets of rcu_head, the callback needs to determine the starting address of the freed object, which can be a large kmalloc or vmalloc allocation. To allow simply aligning the pointer down to page boundary for those, only offsets up to 4095 bytes can be accommodated. If the offset is larger than 4095 bytes, a compile-time error will be generated in kvfree_rcu_arg_2(). If this error is triggered, you can either fall back to use of call_rcu() or rearrange the structure to position the rcu_head structure into the first 4096 bytes.h]hXThe kfree_rcu() function handles this issue. In order to have a universal callback function handling different offsets of rcu_head, the callback needs to determine the starting address of the freed object, which can be a large kmalloc or vmalloc allocation. To allow simply aligning the pointer down to page boundary for those, only offsets up to 4095 bytes can be accommodated. If the offset is larger than 4095 bytes, a compile-time error will be generated in kvfree_rcu_arg_2(). If this error is triggered, you can either fall back to use of call_rcu() or rearrange the structure to position the rcu_head structure into the first 4096 bytes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM)hj&ubh)}(heThe object to be freed can be allocated either by kmalloc(), kmalloc_nolock(), or kmem_cache_alloc().h]heThe object to be freed can be allocated either by kmalloc(), kmalloc_nolock(), or kmem_cache_alloc().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhM3hj&ubh)}(hah"]h$]h&]uh1j1hjhhhj)hMubj{)}(h rcu_head_inith]j)}(h rcu_head_inith]h rcu_head_init}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj)hMubj)}(h(struct rcu_head *rhp)h]j)}(hstruct rcu_head *rhph](j)}(hj h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjxmodnameN classnameNj] j` )}jc ]jf )}jY j>sbc.rcu_head_initasbuh1hhjTubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj)hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj)hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj)hMhjhhubj)}(hhh]h)}(h1Initialize rcu_head for rcu_head_after_call_rcu()h]h1Initialize rcu_head for rcu_head_after_call_rcu()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_head *rhp`` The rcu_head structure to initialize. **Description** If you intend to invoke rcu_head_after_call_rcu() to test whether a given rcu_head structure has already been passed to call_rcu(), then you must also invoke this rcu_head_init() function on it just after allocating that structure. Calls to this function must not race with calls to call_rcu(), rcu_head_after_call_rcu(), or callback invocation.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh]j)}(h?``struct rcu_head *rhp`` The rcu_head structure to initialize. h](j)}(h``struct rcu_head *rhp``h]j)}(hjh]hstruct rcu_head *rhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h%The rcu_head structure to initialize.h]h%The rcu_head structure to initialize.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hXZIf you intend to invoke rcu_head_after_call_rcu() to test whether a given rcu_head structure has already been passed to call_rcu(), then you must also invoke this rcu_head_init() function on it just after allocating that structure. Calls to this function must not race with calls to call_rcu(), rcu_head_after_call_rcu(), or callback invocation.h]hXZIf you intend to invoke rcu_head_after_call_rcu() to test whether a given rcu_head structure has already been passed to call_rcu(), then you must also invoke this rcu_head_init() function on it just after allocating that structure. Calls to this function must not race with calls to call_rcu(), rcu_head_after_call_rcu(), or callback invocation.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $rcu_head_after_call_rcu (C function)c.rcu_head_after_call_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hEbool rcu_head_after_call_rcu (struct rcu_head *rhp, rcu_callback_t f)h]j)}(hDbool rcu_head_after_call_rcu(struct rcu_head *rhp, rcu_callback_t f)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hrcu_head_after_call_rcuh]j)}(hrcu_head_after_call_rcuh]hrcu_head_after_call_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h((struct rcu_head *rhp, rcu_callback_t f)h](j)}(hstruct rcu_head *rhph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.rcu_head_after_call_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrhph]hrhp}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hrcu_callback_t fh](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jc.rcu_head_after_call_rcuasbuh1hhjFubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hfh]hf}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h,Has this rcu_head been passed to call_rcu()?h]h,Has this rcu_head been passed to call_rcu()?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_head *rhp`` The rcu_head structure to test. ``rcu_callback_t f`` The function passed to call_rcu() along with **rhp**. **Description** Returns **true** if the **rhp** has been passed to call_rcu() with **func**, and **false** otherwise. Emits a warning in any other case, including the case where **rhp** has already been invoked after a grace period. Calls to this function must not race with callback invocation. One way to avoid such races is to enclose the call to rcu_head_after_call_rcu() in an RCU read-side critical section that includes a read-side fetch of the pointer to the structure containing **rhp**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj )}(hhh](j)}(h9``struct rcu_head *rhp`` The rcu_head structure to test. h](j)}(h``struct rcu_head *rhp``h]j)}(hjh]hstruct rcu_head *rhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(hThe rcu_head structure to test.h]hThe rcu_head structure to test.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hK``rcu_callback_t f`` The function passed to call_rcu() along with **rhp**. h](j)}(h``rcu_callback_t f``h]j)}(hjh]hrcu_callback_t f}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubj2)}(hhh]h)}(h5The function passed to call_rcu() along with **rhp**.h](h-The function passed to call_rcu() along with }(hj6hhhNhNubj)}(h**rhp**h]hrhp}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubh)}(hXReturns **true** if the **rhp** has been passed to call_rcu() with **func**, and **false** otherwise. Emits a warning in any other case, including the case where **rhp** has already been invoked after a grace period. Calls to this function must not race with callback invocation. One way to avoid such races is to enclose the call to rcu_head_after_call_rcu() in an RCU read-side critical section that includes a read-side fetch of the pointer to the structure containing **rhp**.h](hReturns }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if the }(hjhhhNhNubj)}(h**rhp**h]hrhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh$ has been passed to call_rcu() with }(hjhhhNhNubj)}(h**func**h]hfunc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, and }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhI otherwise. Emits a warning in any other case, including the case where }(hjhhhNhNubj)}(h**rhp**h]hrhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX0 has already been invoked after a grace period. Calls to this function must not race with callback invocation. One way to avoid such races is to enclose the call to rcu_head_after_call_rcu() in an RCU read-side critical section that includes a read-side fetch of the pointer to the structure containing }(hjhhhNhNubj)}(h**rhp**h]hrhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:399: ./include/linux/rcupdate.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_softirq_qs (C function)c.rcu_softirq_qshNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_softirq_qs (void)h]j)}(hvoid rcu_softirq_qs(void)h](j )}(hvoidh]hvoid}(hjh0hhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj)hKubj{)}(hrcu_softirq_qsh]j)}(hrcu_softirq_qsh]hrcu_softirq_qs}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj)hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]noemphjjuh1jhjPubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj)hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj)hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj)hKhjhhubj)}(hhh]h)}(h;Provide a set of RCU quiescent states in softirq processingh]h;Provide a set of RCU quiescent states in softirq processing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX;**Parameters** ``void`` no arguments **Description** Mark a quiescent state for RCU, Tasks RCU, and Tasks Trace RCU. This is a special-purpose function to be used in the softirq infrastructure and perhaps the occasional long-running softirq handler. Note that from RCU's viewpoint, a call to rcu_softirq_qs() is equivalent to momentarily completely enabling preemption. For example, given this code:: local_bh_disable(); do_something(); rcu_softirq_qs(); // A do_something_else(); local_bh_enable(); // B A call to synchronize_rcu() that began concurrently with the call to do_something() would be guaranteed to wait only until execution reached statement A. Without that rcu_softirq_qs(), that same synchronize_rcu() would instead be guaranteed to wait until execution reached statement B.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjubh)}(hMark a quiescent state for RCU, Tasks RCU, and Tasks Trace RCU. This is a special-purpose function to be used in the softirq infrastructure and perhaps the occasional long-running softirq handler.h]hMark a quiescent state for RCU, Tasks RCU, and Tasks Trace RCU. This is a special-purpose function to be used in the softirq infrastructure and perhaps the occasional long-running softirq handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjubh)}(hNote that from RCU's viewpoint, a call to rcu_softirq_qs() is equivalent to momentarily completely enabling preemption. For example, given this code::h]hNote that from RCU’s viewpoint, a call to rcu_softirq_qs() is equivalent to momentarily completely enabling preemption. For example, given this code:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjubjH)}(hilocal_bh_disable(); do_something(); rcu_softirq_qs(); // A do_something_else(); local_bh_enable(); // Bh]hilocal_bh_disable(); do_something(); rcu_softirq_qs(); // A do_something_else(); local_bh_enable(); // B}hj2sbah}(h]h ]h"]h$]h&]jjuh1jHhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjubh)}(hXA call to synchronize_rcu() that began concurrently with the call to do_something() would be guaranteed to wait only until execution reached statement A. Without that rcu_softirq_qs(), that same synchronize_rcu() would instead be guaranteed to wait until execution reached statement B.h]hXA call to synchronize_rcu() that began concurrently with the call to do_something() would be guaranteed to wait only until execution reached statement A. Without that rcu_softirq_qs(), that same synchronize_rcu() would instead be guaranteed to wait until execution reached statement B.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,rcu_watching_snap_stopped_since (C function)!c.rcu_watching_snap_stopped_sincehNtauh1hhjhhhNhNubj)}(hhh](j)}(hEbool rcu_watching_snap_stopped_since (struct rcu_data *rdp, int snap)h]j)}(hDbool rcu_watching_snap_stopped_since(struct rcu_data *rdp, int snap)h](j )}(hj8h]hbool}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM,ubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhj}hM,ubj{)}(hrcu_watching_snap_stopped_sinceh]j)}(hrcu_watching_snap_stopped_sinceh]hrcu_watching_snap_stopped_since}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhj}hM,ubj)}(h (struct rcu_data *rdp, int snap)h](j)}(hstruct rcu_data *rdph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrcu_datah]hrcu_data}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb!c.rcu_watching_snap_stopped_sinceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrdph]hrdp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint snaph](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hsnaph]hsnap}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjlhhhj}hM,ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhj}hM,ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhj}hM,hjehhubj)}(hhh]h)}(hBHas RCU stopped watching a given CPU since the specified **snap**?h](h9Has RCU stopped watching a given CPU since the specified }(hjdhhhNhNubj)}(h**snap**h]hsnap}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh?}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM,hjahhubah}(h]h ]h"]h$]h&]uh1jhjehhhj}hM,ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_data *rdp`` The rcu_data corresponding to the CPU for which to check EQS. ``int snap`` rcu_watching snapshot taken when the CPU wasn't in an EQS. **Description** Returns true if the CPU corresponding to **rdp** has spent some time in an extended quiescent state since **snap**. Note that this doesn't check if it /still/ is in an EQS, just that it went through one since **snap**. This is meant to be used in a loop waiting for a CPU to go through an EQS.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM0hjubj )}(hhh](j)}(hW``struct rcu_data *rdp`` The rcu_data corresponding to the CPU for which to check EQS. h](j)}(h``struct rcu_data *rdp``h]j)}(hjh]hstruct rcu_data *rdp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM/hjubj2)}(hhh]h)}(h=The rcu_data corresponding to the CPU for which to check EQS.h]h=The rcu_data corresponding to the CPU for which to check EQS.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubj)}(hH``int snap`` rcu_watching snapshot taken when the CPU wasn't in an EQS. h](j)}(h ``int snap``h]j)}(hjh]hint snap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM0hjubj2)}(hhh]h)}(h:rcu_watching snapshot taken when the CPU wasn't in an EQS.h]hah"]h$]h&]uh1j1hj hhhj hMtubj{)}(hrcu_is_cpu_rrupt_from_idleh]j)}(hrcu_is_cpu_rrupt_from_idleh]hrcu_is_cpu_rrupt_from_idle}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hMtubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMtubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMtubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hMthj hhubj)}(hhh]h)}(hsee if 'interrupted' from idleh]h"see if ‘interrupted’ from idle}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMthj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMtubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4 jj4 jjjuh1jhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** If the current CPU is idle and running at a first-level (not nested) interrupt, or directly, from idle, return true. The caller must have at least disabled IRQs.h](h)}(h**Parameters**h]j)}(hj> h]h Parameters}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj< ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMxhj8 ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj] h]hvoid}(hj_ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjW ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr hKhjs ubah}(h]h ]h"]h$]h&]uh1j1hjW ubeh}(h]h ]h"]h$]h&]uh1jhjr hKhjT ubah}(h]h ]h"]h$]h&]uh1j hj8 ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj8 ubh)}(htIf the current CPU is idle and running at a first-level (not nested) interrupt, or directly, from idle, return true.h]htIf the current CPU is idle and running at a first-level (not nested) interrupt, or directly, from idle, return true.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMuhj8 ubh)}(h,The caller must have at least disabled IRQs.h]h,The caller must have at least disabled IRQs.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMxhj8 ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'rcu_irq_exit_check_preempt (C function)c.rcu_irq_exit_check_preempthNtauh1hhjhhhNhNubj)}(hhh](j)}(h&void rcu_irq_exit_check_preempt (void)h]j)}(h%void rcu_irq_exit_check_preempt(void)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMlubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hMlubj{)}(hrcu_irq_exit_check_preempth]j)}(hrcu_irq_exit_check_preempth]hrcu_irq_exit_check_preempt}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hMlubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj) hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj% ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj! ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMlubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hMlubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hMlhj hhubj)}(hhh]h)}(h$Validate that scheduling is possibleh]h$Validate that scheduling is possible}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMlhjP hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMlubeh}(h]h ](jfunctioneh"]h$]h&]jjjjk jjk jjjuh1jhhhjhNhNubj)}(h'**Parameters** ``void`` no argumentsh](h)}(h**Parameters**h]j)}(hju h]h Parameters}(hjw hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMphjo ubj )}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]j)}(hj h]hvoid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMrhj ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMrhj ubah}(h]h ]h"]h$]h&]uh1j hjo ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j '__rcu_irq_enter_check_tick (C function)c.__rcu_irq_enter_check_tickhNtauh1hhjhhhNhNubj)}(hhh](j)}(h&void __rcu_irq_enter_check_tick (void)h]j)}(h%void __rcu_irq_enter_check_tick(void)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM~ubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhj hM~ubj{)}(h__rcu_irq_enter_check_tickh]j)}(h__rcu_irq_enter_check_tickh]h__rcu_irq_enter_check_tick}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhj hM~ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj+ hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj' ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj# ubah}(h]h ]h"]h$]h&]jjuh1jhj hhhj hM~ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj hM~ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj hM~hj hhubj)}(hhh]h)}(h-Enable scheduler tick on CPU if RCU needs it.h]h-Enable scheduler tick on CPU if RCU needs it.}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM~hjR hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjm jjm jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``void`` no arguments **Description** The scheduler tick is not normally enabled when CPUs enter the kernel from nohz_full userspace execution. After all, nohz_full userspace execution is an RCU quiescent state and the time executing in the kernel is quite short. Except of course when it isn't. And it is not hard to cause a large system to spend tens of seconds or even minutes looping in the kernel, which can cause a number of problems, include RCU CPU stall warnings. Therefore, if a nohz_full CPU fails to report a quiescent state in a timely manner, the RCU grace-period kthread sets that CPU's ->rcu_urgent_qs flag with the expectation that the next interrupt or exception will invoke this function, which will turn on the scheduler tick, which will enable RCU to detect that CPU's quiescent states, for example, due to cond_resched() calls in CONFIG_PREEMPT=n kernels. The tick will be disabled once a quiescent state is reported for this CPU. Of course, in carefully tuned systems, there might never be an interrupt or exception. In that case, the RCU grace-period kthread will eventually cause one to happen. However, in less carefully controlled environments, this function allows RCU to get what it needs without creating otherwise useless interruptions.h](h)}(h**Parameters**h]j)}(hjw h]h Parameters}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhjq ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj h]hvoid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1j hjq ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjq ubh)}(hXThe scheduler tick is not normally enabled when CPUs enter the kernel from nohz_full userspace execution. After all, nohz_full userspace execution is an RCU quiescent state and the time executing in the kernel is quite short. Except of course when it isn't. And it is not hard to cause a large system to spend tens of seconds or even minutes looping in the kernel, which can cause a number of problems, include RCU CPU stall warnings.h]hXThe scheduler tick is not normally enabled when CPUs enter the kernel from nohz_full userspace execution. After all, nohz_full userspace execution is an RCU quiescent state and the time executing in the kernel is quite short. Except of course when it isn’t. And it is not hard to cause a large system to spend tens of seconds or even minutes looping in the kernel, which can cause a number of problems, include RCU CPU stall warnings.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhjq ubh)}(hXTherefore, if a nohz_full CPU fails to report a quiescent state in a timely manner, the RCU grace-period kthread sets that CPU's ->rcu_urgent_qs flag with the expectation that the next interrupt or exception will invoke this function, which will turn on the scheduler tick, which will enable RCU to detect that CPU's quiescent states, for example, due to cond_resched() calls in CONFIG_PREEMPT=n kernels. The tick will be disabled once a quiescent state is reported for this CPU.h]hXTherefore, if a nohz_full CPU fails to report a quiescent state in a timely manner, the RCU grace-period kthread sets that CPU’s ->rcu_urgent_qs flag with the expectation that the next interrupt or exception will invoke this function, which will turn on the scheduler tick, which will enable RCU to detect that CPU’s quiescent states, for example, due to cond_resched() calls in CONFIG_PREEMPT=n kernels. The tick will be disabled once a quiescent state is reported for this CPU.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhjq ubh)}(hX<Of course, in carefully tuned systems, there might never be an interrupt or exception. In that case, the RCU grace-period kthread will eventually cause one to happen. However, in less carefully controlled environments, this function allows RCU to get what it needs without creating otherwise useless interruptions.h]hX<Of course, in carefully tuned systems, there might never be an interrupt or exception. In that case, the RCU grace-period kthread will eventually cause one to happen. However, in less carefully controlled environments, this function allows RCU to get what it needs without creating otherwise useless interruptions.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhjq ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_is_watching (C function)c.rcu_is_watchinghNtauh1hhjhhhNhNubj)}(hhh](j)}(h#notrace bool rcu_is_watching (void)h]j)}(h"notrace bool rcu_is_watching(void)h](hnotrace}(hj0 hhhNhNubj2)}(h h]h }(hj8 hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0 hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMubj )}(hj8h]hbool}(hjG hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0 hhhjF hMubj2)}(h h]h }(hjT hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0 hhhjF hMubj{)}(hrcu_is_watchingh]j)}(hrcu_is_watchingh]hrcu_is_watching}(hjf hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0 hhhjF hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj~ ubah}(h]h ]h"]h$]h&]noemphjjuh1jhjz ubah}(h]h ]h"]h$]h&]jjuh1jhj0 hhhjF hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj, hhhjF hMubah}(h]j' ah ](jjeh"]h$]h&]jj)jhuh1jhjF hMhj) hhubj)}(hhh]h)}(h9RCU read-side critical sections permitted on current CPU?h]h9RCU read-side critical sections permitted on current CPU?}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj) hhhjF hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(hXo**Parameters** ``void`` no arguments **Description** Return **true** if RCU is watching the running CPU and **false** otherwise. An **true** return means that this CPU can safely enter RCU read-side critical sections. Although calls to rcu_is_watching() from most parts of the kernel will return **true**, there are important exceptions. For example, if the current CPU is deep within its idle loop, in kernel entry/exit code, or offline, rcu_is_watching() will return **false**. Make notrace because it can be called by the internal functions of ftrace, and making this notrace removes unnecessary recursion calls.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj h]hvoid}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hj(h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj ubh)}(hReturn **true** if RCU is watching the running CPU and **false** otherwise. An **true** return means that this CPU can safely enter RCU read-side critical sections.h](hReturn }(hj>hhhNhNubj)}(h**true**h]htrue}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh( if RCU is watching the running CPU and }(hj>hhhNhNubj)}(h **false**h]hfalse}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh otherwise. An }(hj>hhhNhNubj)}(h**true**h]htrue}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubhM return means that this CPU can safely enter RCU read-side critical sections.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj ubh)}(hXAlthough calls to rcu_is_watching() from most parts of the kernel will return **true**, there are important exceptions. For example, if the current CPU is deep within its idle loop, in kernel entry/exit code, or offline, rcu_is_watching() will return **false**.h](hNAlthough calls to rcu_is_watching() from most parts of the kernel will return }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, there are important exceptions. For example, if the current CPU is deep within its idle loop, in kernel entry/exit code, or offline, rcu_is_watching() will return }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj ubh)}(hMake notrace because it can be called by the internal functions of ftrace, and making this notrace removes unnecessary recursion calls.h]hMake notrace because it can be called by the internal functions of ftrace, and making this notrace removes unnecessary recursion calls.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_set_gpwrap_lag (C function)c.rcu_set_gpwrap_laghNtauh1hhjhhhNhNubj)}(hhh](j)}(h/void rcu_set_gpwrap_lag (unsigned long lag_gps)h]j)}(h.void rcu_set_gpwrap_lag(unsigned long lag_gps)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hrcu_set_gpwrap_lagh]j)}(hrcu_set_gpwrap_lagh]hrcu_set_gpwrap_lag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(unsigned long lag_gps)h]j)}(hunsigned long lag_gpsh](j )}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hlag_gpsh]hlag_gps}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(h'Set RCU GP sequence overflow lag value.h]h'Set RCU GP sequence overflow lag value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``unsigned long lag_gps`` Set overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. **lag_gps** = 0 means we reset it back to the boot-time value.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhjubj )}(hhh]j)}(h``unsigned long lag_gps`` Set overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. **lag_gps** = 0 means we reset it back to the boot-time value.h](j)}(h``unsigned long lag_gps``h]j)}(hjh]hunsigned long lag_gps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhjubj2)}(hhh]h)}(hSet overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. **lag_gps** = 0 means we reset it back to the boot-time value.h](h~Set overflow lag to this many grace period worth of counters which is used by rcutorture to quickly force a gpwrap situation. }(hjhhhNhNubj)}(h **lag_gps**h]hlag_gps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh3 = 0 means we reset it back to the boot-time value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j call_rcu_hurry (C function)c.call_rcu_hurryhNtauh1hhjhhhNhNubj)}(hhh](j)}(h@void call_rcu_hurry (struct rcu_head *head, rcu_callback_t func)h]j)}(h?void call_rcu_hurry(struct rcu_head *head, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj-hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM ubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-hhhj?hM ubj{)}(hcall_rcu_hurryh]j)}(hcall_rcu_hurryh]hcall_rcu_hurry}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-hhhj?hM ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hj h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hj{hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jTsbc.call_rcu_hurryasbuh1hhjjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.call_rcu_hurryasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhj-hhhj?hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj?hM ubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1jhj?hM hj&hhubj)}(hhh]h)}(hQueue RCU callback for invocation after grace period, and flush all lazy callbacks (including the new one) to the main ->cblist while doing so.h]hQueue RCU callback for invocation after grace period, and flush all lazy callbacks (including the new one) to the main ->cblist while doing so.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hj6hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj?hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1jhhhjhNhNubj)}(hXS**Parameters** ``struct rcu_head *head`` structure to be used for queueing the RCU updates. ``rcu_callback_t func`` actual callback function to be invoked after the grace period **Description** The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. Use this API instead of call_rcu() if you don't want the callback to be delayed for very long periods of time, which can happen on systems without memory pressure and on systems which are lightly loaded or mostly idle. This function will cause callbacks to be invoked sooner than later at the expense of extra power. Other than that, this function is identical to, and reuses call_rcu()'s logic. Refer to call_rcu() for more details about memory ordering and other functionality.h](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjUubj )}(hhh](j)}(hM``struct rcu_head *head`` structure to be used for queueing the RCU updates. h](j)}(h``struct rcu_head *head``h]j)}(hjzh]hstruct rcu_head *head}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjtubj2)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjtubeh}(h]h ]h"]h$]h&]uh1jhjhM hjqubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjh]hrcu_callback_t func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubj2)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjqubeh}(h]h ]h"]h$]h&]uh1j hjUubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjUubh)}(hThe callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed.h]hThe callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjUubh)}(hXUse this API instead of call_rcu() if you don't want the callback to be delayed for very long periods of time, which can happen on systems without memory pressure and on systems which are lightly loaded or mostly idle. This function will cause callbacks to be invoked sooner than later at the expense of extra power. Other than that, this function is identical to, and reuses call_rcu()'s logic. Refer to call_rcu() for more details about memory ordering and other functionality.h]hXUse this API instead of call_rcu() if you don’t want the callback to be delayed for very long periods of time, which can happen on systems without memory pressure and on systems which are lightly loaded or mostly idle. This function will cause callbacks to be invoked sooner than later at the expense of extra power. Other than that, this function is identical to, and reuses call_rcu()’s logic. Refer to call_rcu() for more details about memory ordering and other functionality.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j call_rcu (C function) c.call_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h:void call_rcu (struct rcu_head *head, rcu_callback_t func)h]j)}(h9void call_rcu(struct rcu_head *head, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM ubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>hhhjPhM ubj{)}(hcall_rcuh]j)}(hcall_rcuh]hcall_rcu}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhjPhM ubj)}(h,(struct rcu_head *head, rcu_callback_t func)h](j)}(hstruct rcu_head *headh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{ubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jesb c.call_rcuasbuh1hhj{ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j c.call_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfunch]hfunc}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhj>hhhjPhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhjPhM ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1jhjPhM hj7hhubj)}(hhh]h)}(hQueue an RCU callback for invocation after a grace period. By default the callbacks are 'lazy' and are kept hidden from the main ->cblist to prevent starting of grace periods too soon. If you desire grace periods to start very soon, use call_rcu_hurry().h]hXQueue an RCU callback for invocation after a grace period. By default the callbacks are ‘lazy’ and are kept hidden from the main ->cblist to prevent starting of grace periods too soon. If you desire grace periods to start very soon, use call_rcu_hurry().}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjGhhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjPhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1jhhhjhNhNubj)}(hX& **Parameters** ``struct rcu_head *head`` structure to be used for queueing the RCU updates. ``rcu_callback_t func`` actual callback function to be invoked after the grace period **Description** The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. However, the callback function might well execute concurrently with RCU read-side critical sections that started after call_rcu() was invoked. It is perfectly legal to repost an RCU callback, potentially with a different callback function, from within its callback function. The specified function will be invoked after another full grace period has elapsed. This use case is similar in form to the common practice of reposting a timer from within its own handler. RCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers. Note that all CPUs must agree that the grace period extended beyond all pre-existing RCU read-side critical section. On systems with more than one CPU, this means that when "func()" is invoked, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to call_rcu(). It also means that each CPU executing an RCU read-side critical section that continues beyond the start of "func()" must have executed a memory barrier after the call_rcu() but before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel. Furthermore, if CPU A invoked call_rcu() and CPU B invoked the resulting RCU callback function "func()", then both CPU A and CPU B are guaranteed to execute a full memory barrier during the time interval between the call to call_rcu() and the invocation of "func()" -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU). Implementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst. Specific to call_rcu() (as opposed to the other call_rcu*() functions), in kernels built with CONFIG_RCU_LAZY=y, call_rcu() might delay for many seconds before starting the grace period needed by the corresponding callback. This delay can significantly improve energy-efficiency on low-utilization battery-powered devices. To avoid this delay, in latency-sensitive kernel code, use call_rcu_hurry().h](h)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjfubj )}(hhh](j)}(hM``struct rcu_head *head`` structure to be used for queueing the RCU updates. h](j)}(h``struct rcu_head *head``h]j)}(hjh]hstruct rcu_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubj2)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjh]hrcu_callback_t func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubj2)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1j hjfubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjfubh)}(hX8The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. However, the callback function might well execute concurrently with RCU read-side critical sections that started after call_rcu() was invoked.h]hX8The callback function will be invoked some time after a full grace period elapses, in other words after all pre-existing RCU read-side critical sections have completed. However, the callback function might well execute concurrently with RCU read-side critical sections that started after call_rcu() was invoked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjfubh)}(hXBIt is perfectly legal to repost an RCU callback, potentially with a different callback function, from within its callback function. The specified function will be invoked after another full grace period has elapsed. This use case is similar in form to the common practice of reposting a timer from within its own handler.h]hXBIt is perfectly legal to repost an RCU callback, potentially with a different callback function, from within its callback function. The specified function will be invoked after another full grace period has elapsed. This use case is similar in form to the common practice of reposting a timer from within its own handler.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjfubh)}(hXgRCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers.h]hXgRCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjfubh)}(hXNote that all CPUs must agree that the grace period extended beyond all pre-existing RCU read-side critical section. On systems with more than one CPU, this means that when "func()" is invoked, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to call_rcu(). It also means that each CPU executing an RCU read-side critical section that continues beyond the start of "func()" must have executed a memory barrier after the call_rcu() but before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.h]hXNote that all CPUs must agree that the grace period extended beyond all pre-existing RCU read-side critical section. On systems with more than one CPU, this means that when “func()” is invoked, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to call_rcu(). It also means that each CPU executing an RCU read-side critical section that continues beyond the start of “func()” must have executed a memory barrier after the call_rcu() but before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjfubh)}(hXkFurthermore, if CPU A invoked call_rcu() and CPU B invoked the resulting RCU callback function "func()", then both CPU A and CPU B are guaranteed to execute a full memory barrier during the time interval between the call to call_rcu() and the invocation of "func()" -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU).h]hXsFurthermore, if CPU A invoked call_rcu() and CPU B invoked the resulting RCU callback function “func()”, then both CPU A and CPU B are guaranteed to execute a full memory barrier during the time interval between the call to call_rcu() and the invocation of “func()” -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU).}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjfubh)}(hImplementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.h]hImplementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjfubh)}(hXSpecific to call_rcu() (as opposed to the other call_rcu*() functions), in kernels built with CONFIG_RCU_LAZY=y, call_rcu() might delay for many seconds before starting the grace period needed by the corresponding callback. This delay can significantly improve energy-efficiency on low-utilization battery-powered devices. To avoid this delay, in latency-sensitive kernel code, use call_rcu_hurry().h]hXSpecific to call_rcu() (as opposed to the other call_rcu*() functions), in kernels built with CONFIG_RCU_LAZY=y, call_rcu() might delay for many seconds before starting the grace period needed by the corresponding callback. This delay can significantly improve energy-efficiency on low-utilization battery-powered devices. To avoid this delay, in latency-sensitive kernel code, use call_rcu_hurry().}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j synchronize_rcu (C function)c.synchronize_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid synchronize_rcu (void)h]j)}(hvoid synchronize_rcu(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM# ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM# ubj{)}(hsynchronize_rcuh]j)}(hsynchronize_rcuh]hsynchronize_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM# ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM# ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM# ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM# hjhhubj)}(hhh]h)}(h&wait until a grace period has elapsed.h]h&wait until a grace period has elapsed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM# hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM# ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a full grace period has elapsed, in other words after all currently executing RCU read-side critical sections have completed. Note, however, that upon return from synchronize_rcu(), the caller might well be executing concurrently with new RCU read-side critical sections that began while synchronize_rcu() was waiting. RCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers. Note that this guarantee implies further memory-ordering guarantees. On systems with more than one CPU, when synchronize_rcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to synchronize_rcu(). In addition, each CPU having an RCU read-side critical section that extends beyond the return from synchronize_rcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_rcu() and before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel. Furthermore, if CPU A invoked synchronize_rcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_rcu() -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU). Implementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM' hj!ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjFh]hvoid}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj@ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKhj\ubah}(h]h ]h"]h$]h&]uh1j1hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKhj=ubah}(h]h ]h"]h$]h&]uh1j hj!ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj!ubh)}(hXqControl will return to the caller some time after a full grace period has elapsed, in other words after all currently executing RCU read-side critical sections have completed. Note, however, that upon return from synchronize_rcu(), the caller might well be executing concurrently with new RCU read-side critical sections that began while synchronize_rcu() was waiting.h]hXqControl will return to the caller some time after a full grace period has elapsed, in other words after all currently executing RCU read-side critical sections have completed. Note, however, that upon return from synchronize_rcu(), the caller might well be executing concurrently with new RCU read-side critical sections that began while synchronize_rcu() was waiting.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM$ hj!ubh)}(hXgRCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers.h]hXgRCU read-side critical sections are delimited by rcu_read_lock() and rcu_read_unlock(), and may be nested. In addition, but only in v5.0 and later, regions of code across which interrupts, preemption, or softirqs have been disabled also serve as RCU read-side critical sections. This includes hardware interrupt handlers, softirq handlers, and NMI handlers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM+ hj!ubh)}(hXNote that this guarantee implies further memory-ordering guarantees. On systems with more than one CPU, when synchronize_rcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to synchronize_rcu(). In addition, each CPU having an RCU read-side critical section that extends beyond the return from synchronize_rcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_rcu() and before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.h]hXNote that this guarantee implies further memory-ordering guarantees. On systems with more than one CPU, when synchronize_rcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last RCU read-side critical section whose beginning preceded the call to synchronize_rcu(). In addition, each CPU having an RCU read-side critical section that extends beyond the return from synchronize_rcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_rcu() and before the beginning of that RCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM2 hj!ubh)}(hX3Furthermore, if CPU A invoked synchronize_rcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_rcu() -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU).h]hX3Furthermore, if CPU A invoked synchronize_rcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_rcu() -- even if CPU A and CPU B are the same CPU (but again only if the system has more than one CPU).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM> hj!ubh)}(hImplementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.h]hImplementation of these memory-ordering guarantees is described here: Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMD hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j /get_completed_synchronize_rcu_full (C function)$c.get_completed_synchronize_rcu_fullhNtauh1hhjhhhNhNubj)}(hhh](j)}(h@void get_completed_synchronize_rcu_full (struct rcu_gp_seq *gsp)h]j)}(h?void get_completed_synchronize_rcu_full(struct rcu_gp_seq *gsp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMp ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMp ubj{)}(h"get_completed_synchronize_rcu_fullh]j)}(h"get_completed_synchronize_rcu_fullh]h"get_completed_synchronize_rcu_full}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMp ubj)}(h(struct rcu_gp_seq *gsp)h]j)}(hstruct rcu_gp_seq *gsph](j)}(hj h]hstruct}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubh)}(hhh]j)}(h rcu_gp_seqh]h rcu_gp_seq}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_modnameN classnameNj] j` )}jc ]jf )}jY j%sb$c.get_completed_synchronize_rcu_fullasbuh1hhj;ubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hgsph]hgsp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMp ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMp ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMp hjhhubj)}(hhh]h)}(h/Return a full pre-completed polled state cookieh]h/Return a full pre-completed polled state cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMp hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMp ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct rcu_gp_seq *gsp`` Place to put state cookie **Description** Stores into **gsp** a value that will always be treated by functions like poll_state_synchronize_rcu_full() as a cookie whose grace period has already completed.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMt hjubj )}(hhh]j)}(h5``struct rcu_gp_seq *gsp`` Place to put state cookie h](j)}(h``struct rcu_gp_seq *gsp``h]j)}(hjh]hstruct rcu_gp_seq *gsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMq hjubj2)}(hhh]h)}(hPlace to put state cookieh]hPlace to put state cookie}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMq hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMq hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj>h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMs hjubh)}(hStores into **gsp** a value that will always be treated by functions like poll_state_synchronize_rcu_full() as a cookie whose grace period has already completed.h](h Stores into }(hjThhhNhNubj)}(h**gsp**h]hgsp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh a value that will always be treated by functions like poll_state_synchronize_rcu_full() as a cookie whose grace period has already completed.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMr hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &get_state_synchronize_rcu (C function)c.get_state_synchronize_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h.unsigned long get_state_synchronize_rcu (void)h]j)}(h-unsigned long get_state_synchronize_rcu(void)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hget_state_synchronize_rcuh]j)}(hget_state_synchronize_rcuh]hget_state_synchronize_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(hSnapshot current RCU stateh]hSnapshot current RCU state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** Returns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hj4ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjYh]hvoid}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjSubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhKhjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjPubah}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj4ubh)}(hReturns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime.h]hReturns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +get_state_synchronize_rcu_full (C function) c.get_state_synchronize_rcu_fullhNtauh1hhjhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hget_state_synchronize_rcu_fullh]j)}(hget_state_synchronize_rcu_fullh]hget_state_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(struct rcu_gp_seq *gsp)h]j)}(hstruct rcu_gp_seq *gsph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rcu_gp_seqh]h rcu_gp_seq}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj6modnameN classnameNj] j` )}jc ]jf )}jY jsb c.get_state_synchronize_rcu_fullasbuh1hhjubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgsph]hgsp}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(h-Snapshot RCU state, both normal and expeditedh]h-Snapshot RCU state, both normal and expedited}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_seq *gsp`` location to place combined normal/expedited grace-period state **Description** Places the normal and expedited grace-period states in **gsp**. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. The rcu_gp_seq structure takes up twice the memory of an unsigned long, but is guaranteed to see all grace periods. In contrast, the combined state occupies less memory, but can sometimes fail to take grace periods into account. This does not guarantee that the needed grace period will actually start.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubj )}(hhh]j)}(hZ``struct rcu_gp_seq *gsp`` location to place combined normal/expedited grace-period state h](j)}(h``struct rcu_gp_seq *gsp``h]j)}(hjh]hstruct rcu_gp_seq *gsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubj2)}(hhh]h)}(h>location to place combined normal/expedited grace-period stateh]h>location to place combined normal/expedited grace-period state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubh)}(hXPlaces the normal and expedited grace-period states in **gsp**. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. The rcu_gp_seq structure takes up twice the memory of an unsigned long, but is guaranteed to see all grace periods. In contrast, the combined state occupies less memory, but can sometimes fail to take grace periods into account.h](h7Places the normal and expedited grace-period states in }(hj+hhhNhNubj)}(h**gsp**h]hgsp}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubhX. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. The rcu_gp_seq structure takes up twice the memory of an unsigned long, but is guaranteed to see all grace periods. In contrast, the combined state occupies less memory, but can sometimes fail to take grace periods into account.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubh)}(hIThis does not guarantee that the needed grace period will actually start.h]hIThis does not guarantee that the needed grace period will actually start.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'start_poll_synchronize_rcu (C function)c.start_poll_synchronize_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h/unsigned long start_poll_synchronize_rcu (void)h]j)}(h.unsigned long start_poll_synchronize_rcu(void)h](j )}(hunsignedh]hunsigned}(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwhhhjhM ubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwhhhjhM ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwhhhjhM ubj{)}(hstart_poll_synchronize_rcuh]j)}(hstart_poll_synchronize_rcuh]hstart_poll_synchronize_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhjhM ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjwhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjhM ubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjphhubj)}(hhh]h)}(h#Snapshot and start RCU grace periodh]h#Snapshot and start RCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX_**Parameters** ``void`` no arguments **Description** Returns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj?h]hvoid}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj9ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThKhjUubah}(h]h ]h"]h$]h&]uh1j1hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThKhj6ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjubh)}(hX%Returns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.h]hX%Returns a cookie that is used by a later call to cond_synchronize_rcu() or poll_state_synchronize_rcu() to determine whether or not a full grace period has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,start_poll_synchronize_rcu_full (C function)!c.start_poll_synchronize_rcu_fullhNtauh1hhjhhhNhNubj)}(hhh](j)}(h=void start_poll_synchronize_rcu_full (struct rcu_gp_seq *gsp)h]j)}(hah"]h$]h&]uh1j1hjhhhjhM ubj{)}(hstart_poll_synchronize_rcu_fullh]j)}(hstart_poll_synchronize_rcu_fullh]hstart_poll_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM ubj)}(h(struct rcu_gp_seq *gsp)h]j)}(hstruct rcu_gp_seq *gsph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rcu_gp_seqh]h rcu_gp_seq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb!c.start_poll_synchronize_rcu_fullasbuh1hhjubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgsph]hgsp}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhM hjhhubj)}(hhh]h)}(h/Take a full snapshot and start RCU grace periodh]h/Take a full snapshot and start RCU grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_seq *gsp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() **Description** Places the normal and expedited grace-period states in ***gs**. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubj )}(hhh]j)}(hl``struct rcu_gp_seq *gsp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() h](j)}(h``struct rcu_gp_seq *gsp``h]j)}(hjh]hstruct rcu_gp_seq *gsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubj2)}(hhh]h)}(hPvalue from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full()h]hPvalue from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubh)}(hXPlaces the normal and expedited grace-period states in ***gs**. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.h](h7Places the normal and expedited grace-period states in }(hjhhhNhNubj)}(h***gs**h]h*gs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhXK. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed grace period is not already slated to start, notifies RCU core of the need for that grace period.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'poll_state_synchronize_rcu (C function)c.poll_state_synchronize_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h8bool poll_state_synchronize_rcu (unsigned long oldstate)h]j)}(h7bool poll_state_synchronize_rcu(unsigned long oldstate)h](j )}(hj8h]hbool}(hjRhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjNhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNhhhj_hM ubj{)}(hpoll_state_synchronize_rcuh]j)}(hpoll_state_synchronize_rcuh]hpoll_state_synchronize_rcu}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjNhhhj_hM ubj)}(h(unsigned long oldstate)h]j)}(hunsigned long oldstateh](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(holdstateh]holdstate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjNhhhj_hM ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjJhhhj_hM ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1jhj_hM hjGhhubj)}(hhh]h)}(h-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhj_hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``unsigned long oldstate`` value from get_state_synchronize_rcu() or start_poll_synchronize_rcu() **Description** If a full RCU grace period has elapsed since the earlier call from which **oldstate** was obtained, return **true**, otherwise return **false**. If **false** is returned, it is the caller's responsibility to invoke this function later on until it does return **true**. Alternatively, the caller can explicitly wait for a grace period, for example, by passing **oldstate** to either cond_synchronize_rcu() or cond_synchronize_rcu_expedited() on the one hand or by directly invoking either synchronize_rcu() or synchronize_rcu_expedited() on the other. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state. In addition, because oldstate compresses the grace-period state for both normal and expedited grace periods into a single unsigned long, it can miss a grace period when synchronize_rcu() runs concurrently with synchronize_rcu_expedited(). If this is unacceptable, please instead use the _full() variant of these polling APIs. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate**, and that returned at the end of this function.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hj ubj )}(hhh]j)}(hb``unsigned long oldstate`` value from get_state_synchronize_rcu() or start_poll_synchronize_rcu() h](j)}(h``unsigned long oldstate``h]j)}(hj1h]hunsigned long oldstate}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hj+ubj2)}(hhh]h)}(hFvalue from get_state_synchronize_rcu() or start_poll_synchronize_rcu()h]hFvalue from get_state_synchronize_rcu() or start_poll_synchronize_rcu()}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjGubah}(h]h ]h"]h$]h&]uh1j1hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhM hj(ubah}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hj ubh)}(hX'If a full RCU grace period has elapsed since the earlier call from which **oldstate** was obtained, return **true**, otherwise return **false**. If **false** is returned, it is the caller's responsibility to invoke this function later on until it does return **true**. Alternatively, the caller can explicitly wait for a grace period, for example, by passing **oldstate** to either cond_synchronize_rcu() or cond_synchronize_rcu_expedited() on the one hand or by directly invoking either synchronize_rcu() or synchronize_rcu_expedited() on the other.h](hIIf a full RCU grace period has elapsed since the earlier call from which }(hjhhhNhNubj)}(h **oldstate**h]holdstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh was obtained, return }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, otherwise return }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. If }(hjhhhNhNubj)}(h **false**h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hjhhhNhNubj)}(h**true**h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hjhhhNhNubj)}(h **oldstate**h]holdstate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to either cond_synchronize_rcu() or cond_synchronize_rcu_expedited() on the one hand or by directly invoking either synchronize_rcu() or synchronize_rcu_expedited() on the other.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hj ubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep old state values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu() to get a guaranteed-completed grace-period state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hj ubh)}(hXFIn addition, because oldstate compresses the grace-period state for both normal and expedited grace periods into a single unsigned long, it can miss a grace period when synchronize_rcu() runs concurrently with synchronize_rcu_expedited(). If this is unacceptable, please instead use the _full() variant of these polling APIs.h]hXFIn addition, because oldstate compresses the grace-period state for both normal and expedited grace periods into a single unsigned long, it can miss a grace period when synchronize_rcu() runs concurrently with synchronize_rcu_expedited(). If this is unacceptable, please instead use the _full() variant of these polling APIs.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj ubh)}(hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate**, and that returned at the end of this function.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hjhhhNhNubj)}(h **oldstate**h]holdstate}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0, and that returned at the end of this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,poll_state_synchronize_rcu_full (C function)!c.poll_state_synchronize_rcu_fullhNtauh1hhjhhhNhNubj)}(hhh](j)}(h=bool poll_state_synchronize_rcu_full (struct rcu_gp_seq *gsp)h]j)}(hah"]h$]h&]uh1j1hjXhhhjihM0ubj{)}(hpoll_state_synchronize_rcu_fullh]j)}(hpoll_state_synchronize_rcu_fullh]hpoll_state_synchronize_rcu_full}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjXhhhjihM0ubj)}(h(struct rcu_gp_seq *gsp)h]j)}(hstruct rcu_gp_seq *gsph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rcu_gp_seqh]h rcu_gp_seq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j~sb!c.poll_state_synchronize_rcu_fullasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hgsph]hgsp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjXhhhjihM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjThhhjihM0ubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1jhjihM0hjQhhubj)}(hhh]h)}(h-Has the specified RCU grace period completed?h]h-Has the specified RCU grace period completed?}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM0hj hhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjihM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3 jj3 jjjuh1jhhhjhNhNubj)}(hXZ**Parameters** ``struct rcu_gp_seq *gsp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() **Description** If a full RCU grace period has elapsed since the earlier call from which *gsp was obtained, return **true**, otherwise return **false**. If **false** is returned, it is the caller's responsibility to invoke this function later on until it does return **true**. Alternatively, the caller can explicitly wait for a grace period, for example, by passing **gsp** to cond_synchronize_rcu() or by directly invoking synchronize_rcu(). Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep rcu_gp_seq values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu_full() to get a guaranteed-completed grace-period state. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **gsp**, and that returned at the end of this function. And this guarantee requires that the root rcu_node structure's ->gp_seq field be checked instead of that of the rcu_state structure. The problem is that the just-ending grace-period's callbacks can be invoked between the time that the root rcu_node structure's ->gp_seq field is updated and the time that the rcu_state structure's ->gp_seq field is updated. Therefore, if a single synchronize_rcu() is to cause a subsequent poll_state_synchronize_rcu_full() to return **true**, then the root rcu_node structure is the one that needs to be polled.h](h)}(h**Parameters**h]j)}(hj= h]h Parameters}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj; ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM4hj7 ubj )}(hhh]j)}(hl``struct rcu_gp_seq *gsp`` value from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full() h](j)}(h``struct rcu_gp_seq *gsp``h]j)}(hj\ h]hstruct rcu_gp_seq *gsp}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM1hjV ubj2)}(hhh]h)}(hPvalue from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full()h]hPvalue from get_state_synchronize_rcu_full() or start_poll_synchronize_rcu_full()}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq hM1hjr ubah}(h]h ]h"]h$]h&]uh1j1hjV ubeh}(h]h ]h"]h$]h&]uh1jhjq hM1hjS ubah}(h]h ]h"]h$]h&]uh1j hj7 ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM3hj7 ubh)}(hXIf a full RCU grace period has elapsed since the earlier call from which *gsp was obtained, return **true**, otherwise return **false**. If **false** is returned, it is the caller's responsibility to invoke this function later on until it does return **true**. Alternatively, the caller can explicitly wait for a grace period, for example, by passing **gsp** to cond_synchronize_rcu() or by directly invoking synchronize_rcu().h](hIIf a full RCU grace period has elapsed since the earlier call from which }(hj hhhNhNubjp)}(h"*gsp was obtained, return **true**h]h gsp was obtained, return **true*}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1johj ubh, otherwise return }(hj hhhNhNubj)}(h **false**h]hfalse}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh. If }(hj hhhNhNubj)}(h **false**h]hfalse}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhh is returned, it is the caller’s responsibility to invoke this function later on until it does return }(hj hhhNhNubj)}(h**true**h]htrue}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh]. Alternatively, the caller can explicitly wait for a grace period, for example, by passing }(hj hhhNhNubj)}(h**gsp**h]hgsp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhE to cond_synchronize_rcu() or by directly invoking synchronize_rcu().}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM2hj7 ubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep rcu_gp_seq values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu_full() to get a guaranteed-completed grace-period state.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than a billion grace periods (and way more on a 64-bit system!). Those needing to keep rcu_gp_seq values for very long time periods (many hours even on 32-bit systems) should check them occasionally and either refresh them or set a flag indicating that the grace period has completed. Alternatively, they can use get_completed_synchronize_rcu_full() to get a guaranteed-completed grace-period state.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM9hj7 ubh)}(hXThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **gsp**, and that returned at the end of this function. And this guarantee requires that the root rcu_node structure's ->gp_seq field be checked instead of that of the rcu_state structure. The problem is that the just-ending grace-period's callbacks can be invoked between the time that the root rcu_node structure's ->gp_seq field is updated and the time that the rcu_state structure's ->gp_seq field is updated. Therefore, if a single synchronize_rcu() is to cause a subsequent poll_state_synchronize_rcu_full() to return **true**, then the root rcu_node structure is the one that needs to be polled.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hj%!hhhNhNubj)}(h**gsp**h]hgsp}(hj-!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%!ubhX, and that returned at the end of this function. And this guarantee requires that the root rcu_node structure’s ->gp_seq field be checked instead of that of the rcu_state structure. The problem is that the just-ending grace-period’s callbacks can be invoked between the time that the root rcu_node structure’s ->gp_seq field is updated and the time that the rcu_state structure’s ->gp_seq field is updated. Therefore, if a single synchronize_rcu() is to cause a subsequent poll_state_synchronize_rcu_full() to return }(hj%!hhhNhNubj)}(h**true**h]htrue}(hj?!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%!ubhF, then the root rcu_node structure is the one that needs to be polled.}(hj%!hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMChj7 ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !cond_synchronize_rcu (C function)c.cond_synchronize_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h2void cond_synchronize_rcu (unsigned long oldstate)h]j)}(h1void cond_synchronize_rcu(unsigned long oldstate)h](j )}(hvoidh]hvoid}(hjx!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjt!hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM\ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjt!hhhj!hM\ubj{)}(hcond_synchronize_rcuh]j)}(hcond_synchronize_rcuh]hcond_synchronize_rcu}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjt!hhhj!hM\ubj)}(h(unsigned long oldstate)h]j)}(hunsigned long oldstateh](j )}(hunsignedh]hunsigned}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj )}(hlongh]hlong}(hj!hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(holdstateh]holdstate}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubah}(h]h ]h"]h$]h&]jjuh1jhjt!hhhj!hM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjp!hhhj!hM\ubah}(h]jk!ah ](jjeh"]h$]h&]jj)jhuh1jhj!hM\hjm!hhubj)}(hhh]h)}(h*Conditionally wait for an RCU grace periodh]h*Conditionally wait for an RCU grace period}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM\hj"hhubah}(h]h ]h"]h$]h&]uh1jhjm!hhhj!hM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/"jj/"jjjuh1jhhhjhNhNubj)}(hXs**Parameters** ``unsigned long oldstate`` value from get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited() **Description** If a full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu() or start_poll_synchronize_rcu(), just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate** and that returned at the end of this function.h](h)}(h**Parameters**h]j)}(hj9"h]h Parameters}(hj;"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7"ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM`hj3"ubj )}(hhh]j)}(h``unsigned long oldstate`` value from get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited() h](j)}(h``unsigned long oldstate``h]j)}(hjX"h]hunsigned long oldstate}(hjZ"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV"ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM]hjR"ubj2)}(hhh]h)}(hovalue from get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited()h]hovalue from get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited()}(hjq"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm"hM]hjn"ubah}(h]h ]h"]h$]h&]uh1j1hjR"ubeh}(h]h ]h"]h$]h&]uh1jhjm"hM]hjO"ubah}(h]h ]h"]h$]h&]uh1j hj3"ubh)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM_hj3"ubh)}(hIf a full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu() or start_poll_synchronize_rcu(), just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period.h]hIf a full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu() or start_poll_synchronize_rcu(), just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM^hj3"ubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMbhj3"ubh)}(hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate** and that returned at the end of this function.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hj"hhhNhNubj)}(h **oldstate**h]holdstate}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubh/ and that returned at the end of this function.}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMghj3"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &cond_synchronize_rcu_full (C function)c.cond_synchronize_rcu_fullhNtauh1hhjhhhNhNubj)}(hhh](j)}(h7void cond_synchronize_rcu_full (struct rcu_gp_seq *gsp)h]j)}(h6void cond_synchronize_rcu_full(struct rcu_gp_seq *gsp)h](j )}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj#hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMuubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj#hhhj#hMuubj{)}(hcond_synchronize_rcu_fullh]j)}(hcond_synchronize_rcu_fullh]hcond_synchronize_rcu_full}(hj)#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%#ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj#hhhj#hMuubj)}(h(struct rcu_gp_seq *gsp)h]j)}(hstruct rcu_gp_seq *gsph](j)}(hj h]hstruct}(hjE#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA#ubj2)}(h h]h }(hjR#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjA#ubh)}(hhh]j)}(h rcu_gp_seqh]h rcu_gp_seq}(hjc#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`#ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetje#modnameN classnameNj] j` )}jc ]jf )}jY j+#sbc.cond_synchronize_rcu_fullasbuh1hhjA#ubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjA#ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA#ubj)}(hgsph]hgsp}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=#ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj#hMuubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj#hhhj#hMuubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1jhj#hMuhj"hhubj)}(hhh]h)}(h*Conditionally wait for an RCU grace periodh]h*Conditionally wait for an RCU grace period}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMuhj#hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj#hMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_seq *gsp`` value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() **Description** If a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which **gsp** was obtained, just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **gsp** and that returned at the end of this function.h](h)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMyhj#ubj )}(hhh]j)}(h``struct rcu_gp_seq *gsp`` value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() h](j)}(h``struct rcu_gp_seq *gsp``h]j)}(hj $h]hstruct rcu_gp_seq *gsp}(hj $hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMvhj$ubj2)}(hhh]h)}(h~value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full()h]h~value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full()}(hj"$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMvhj$ubah}(h]h ]h"]h$]h&]uh1j1hj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMvhj$ubah}(h]h ]h"]h$]h&]uh1j hj#ubh)}(h**Description**h]j)}(hjD$h]h Description}(hjF$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB$ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMxhj#ubh)}(hX If a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which **gsp** was obtained, just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period.h](hIf a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which 5}(hjZ$hhhNhNubj)}(h**gsp**h]hgsp}(hjb$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ$ubha was obtained, just return. Otherwise, invoke synchronize_rcu() to wait for a full grace period.}(hjZ$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMwhj#ubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.}(hj{$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM}hj#ubh)}(hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **gsp** and that returned at the end of this function.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hj$hhhNhNubj)}(h**gsp**h]hgsp}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh/ and that returned at the end of this function.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_barrier (C function) c.rcu_barrierhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_barrier (void)h]j)}(hvoid rcu_barrier(void)h](j )}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj$hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM)ubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$hhhj$hM)ubj{)}(h rcu_barrierh]j)}(h rcu_barrierh]h rcu_barrier}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj$hhhj$hM)ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubah}(h]h ]h"]h$]h&]jjuh1jhj$hhhj$hM)ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj$hM)ubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1jhj$hM)hj$hhubj)}(hhh]h)}(h7Wait until all in-flight call_rcu() callbacks complete.h]h7Wait until all in-flight call_rcu() callbacks complete.}(hj2%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM)hj/%hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJ%jjJ%jjjuh1jhhhjhNhNubj)}(hX>**Parameters** ``void`` no arguments **Description** Note that this primitive does not necessarily wait for an RCU grace period to complete. For example, if there are no RCU callbacks queued anywhere in the system, then rcu_barrier() is within its rights to return immediately, without waiting for anything, much less an RCU grace period. In fact, rcu_barrier() will normally not result in any RCU grace periods beyond those that were already destined to be executed. In kernels built with CONFIG_RCU_LAZY=y, this function also hurries all pending lazy RCU callbacks.h](h)}(h**Parameters**h]j)}(hjT%h]h Parameters}(hjV%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR%ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM-hjN%ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjs%h]hvoid}(hju%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq%ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjm%ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hKhj%ubah}(h]h ]h"]h$]h&]uh1j1hjm%ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjj%ubah}(h]h ]h"]h$]h&]uh1j hjN%ubh)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhjN%ubh)}(hXNote that this primitive does not necessarily wait for an RCU grace period to complete. For example, if there are no RCU callbacks queued anywhere in the system, then rcu_barrier() is within its rights to return immediately, without waiting for anything, much less an RCU grace period. In fact, rcu_barrier() will normally not result in any RCU grace periods beyond those that were already destined to be executed.h]hXNote that this primitive does not necessarily wait for an RCU grace period to complete. For example, if there are no RCU callbacks queued anywhere in the system, then rcu_barrier() is within its rights to return immediately, without waiting for anything, much less an RCU grace period. In fact, rcu_barrier() will normally not result in any RCU grace periods beyond those that were already destined to be executed.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM*hjN%ubh)}(hcIn kernels built with CONFIG_RCU_LAZY=y, this function also hurries all pending lazy RCU callbacks.h]hcIn kernels built with CONFIG_RCU_LAZY=y, this function also hurries all pending lazy RCU callbacks.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chM1hjN%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "rcu_barrier_throttled (C function)c.rcu_barrier_throttledhNtauh1hhjhhhNhNubj)}(hhh](j)}(h!void rcu_barrier_throttled (void)h]j)}(h void rcu_barrier_throttled(void)h](j )}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%hhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%hhhj&hMubj{)}(hrcu_barrier_throttledh]j)}(hrcu_barrier_throttledh]hrcu_barrier_throttled}(hj#&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj%hhhj&hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj?&hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj;&ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj7&ubah}(h]h ]h"]h$]h&]jjuh1jhj%hhhj&hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj%hhhj&hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1jhj&hMhj%hhubj)}(hhh]h)}(h-Do rcu_barrier(), but limit to one per secondh]h-Do rcu_barrier(), but limit to one per second}(hji&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhjf&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1jhhhjhNhNubj)}(hXl**Parameters** ``void`` no arguments **Description** This can be thought of as guard rails around rcu_barrier() that permits unrestricted userspace use, at least assuming the hardware's try_cmpxchg() is robust. There will be at most one call per second to rcu_barrier() system-wide from use of this function, which means that callers might needlessly wait a second or three. This is intended for use by test suites to avoid OOM by flushing RCU callbacks from the previous test before starting the next. See the rcutree.do_rcu_barrier module parameter for more information. Why not simply make rcu_barrier() more scalable? That might be the eventual endpoint, but let's keep it simple for the time being. Note that the module parameter infrastructure serializes calls to a given .set() function, but should concurrent .set() invocation ever be possible, we are ready!h](h)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj&ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj&h]hvoid}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj&ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj&ubah}(h]h ]h"]h$]h&]uh1j1hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhj&ubah}(h]h ]h"]h$]h&]uh1j hj&ubh)}(h**Description**h]j)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chKhj&ubh)}(hXBThis can be thought of as guard rails around rcu_barrier() that permits unrestricted userspace use, at least assuming the hardware's try_cmpxchg() is robust. There will be at most one call per second to rcu_barrier() system-wide from use of this function, which means that callers might needlessly wait a second or three.h]hXDThis can be thought of as guard rails around rcu_barrier() that permits unrestricted userspace use, at least assuming the hardware’s try_cmpxchg() is robust. There will be at most one call per second to rcu_barrier() system-wide from use of this function, which means that callers might needlessly wait a second or three.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj&ubh)}(hThis is intended for use by test suites to avoid OOM by flushing RCU callbacks from the previous test before starting the next. See the rcutree.do_rcu_barrier module parameter for more information.h]hThis is intended for use by test suites to avoid OOM by flushing RCU callbacks from the previous test before starting the next. See the rcutree.do_rcu_barrier module parameter for more information.}(hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj&ubh)}(hX&Why not simply make rcu_barrier() more scalable? That might be the eventual endpoint, but let's keep it simple for the time being. Note that the module parameter infrastructure serializes calls to a given .set() function, but should concurrent .set() invocation ever be possible, we are ready!h]hX(Why not simply make rcu_barrier() more scalable? That might be the eventual endpoint, but let’s keep it simple for the time being. Note that the module parameter infrastructure serializes calls to a given .set() function, but should concurrent .set() invocation ever be possible, we are ready!}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:401: ./kernel/rcu/tree.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &synchronize_rcu_expedited (C function)c.synchronize_rcu_expeditedhNtauh1hhjhhhNhNubj)}(hhh](j)}(h%void synchronize_rcu_expedited (void)h]j)}(h$void synchronize_rcu_expedited(void)h](j )}(hvoidh]hvoid}(hjH'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjD'hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMubj2)}(h h]h }(hjW'hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjD'hhhjV'hMubj{)}(hsynchronize_rcu_expeditedh]j)}(hsynchronize_rcu_expeditedh]hsynchronize_rcu_expedited}(hji'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje'ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjD'hhhjV'hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj}'ubah}(h]h ]h"]h$]h&]jjuh1jhjD'hhhjV'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@'hhhjV'hMubah}(h]j;'ah ](jjeh"]h$]h&]jj)jhuh1jhjV'hMhj='hhubj)}(hhh]h)}(hBrute-force RCU grace periodh]hBrute-force RCU grace period}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMhj'hhubah}(h]h ]h"]h$]h&]uh1jhj='hhhjV'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Wait for an RCU grace period, but expedite it. The basic idea is to IPI all non-idle non-nohz online CPUs. The IPI handler checks whether the CPU is in an RCU critical section, and if so, it sets a flag that causes the outermost rcu_read_unlock() to report the quiescent state for RCU-preempt or asks the scheduler for help for RCU-sched. On the other hand, if the CPU is not in an RCU read-side critical section, the IPI handler reports the quiescent state immediately. Although this is a great improvement over previous expedited implementations, it is still unfriendly to real-time workloads, so is thus not recommended for any sort of common-case code. In fact, if you are using synchronize_rcu_expedited() in a loop, please restructure your code to batch your updates, and then use a single synchronize_rcu() instead. This has the same semantics as (but is more brutal than) synchronize_rcu().h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMhj'ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj'h]hvoid}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhKhj'ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj (hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKhj(ubah}(h]h ]h"]h$]h&]uh1j1hj'ubeh}(h]h ]h"]h$]h&]uh1jhj(hKhj'ubah}(h]h ]h"]h$]h&]uh1j hj'ubh)}(h**Description**h]j)}(hj+(h]h Description}(hj-(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)(ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhKhj'ubh)}(hXWait for an RCU grace period, but expedite it. The basic idea is to IPI all non-idle non-nohz online CPUs. The IPI handler checks whether the CPU is in an RCU critical section, and if so, it sets a flag that causes the outermost rcu_read_unlock() to report the quiescent state for RCU-preempt or asks the scheduler for help for RCU-sched. On the other hand, if the CPU is not in an RCU read-side critical section, the IPI handler reports the quiescent state immediately.h]hXWait for an RCU grace period, but expedite it. The basic idea is to IPI all non-idle non-nohz online CPUs. The IPI handler checks whether the CPU is in an RCU critical section, and if so, it sets a flag that causes the outermost rcu_read_unlock() to report the quiescent state for RCU-preempt or asks the scheduler for help for RCU-sched. On the other hand, if the CPU is not in an RCU read-side critical section, the IPI handler reports the quiescent state immediately.}(hjA(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMhj'ubh)}(hX`Although this is a great improvement over previous expedited implementations, it is still unfriendly to real-time workloads, so is thus not recommended for any sort of common-case code. In fact, if you are using synchronize_rcu_expedited() in a loop, please restructure your code to batch your updates, and then use a single synchronize_rcu() instead.h]hX`Although this is a great improvement over previous expedited implementations, it is still unfriendly to real-time workloads, so is thus not recommended for any sort of common-case code. In fact, if you are using synchronize_rcu_expedited() in a loop, please restructure your code to batch your updates, and then use a single synchronize_rcu() instead.}(hjP(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMhj'ubh)}(hKThis has the same semantics as (but is more brutal than) synchronize_rcu().h]hKThis has the same semantics as (but is more brutal than) synchronize_rcu().}(hj_(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 1start_poll_synchronize_rcu_expedited (C function)&c.start_poll_synchronize_rcu_expeditedhNtauh1hhjhhhNhNubj)}(hhh](j)}(h9unsigned long start_poll_synchronize_rcu_expedited (void)h]j)}(h8unsigned long start_poll_synchronize_rcu_expedited(void)h](j )}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(hhhj(hMubj )}(hlongh]hlong}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(hhhj(hMubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(hhhj(hMubj{)}(h$start_poll_synchronize_rcu_expeditedh]j)}(h$start_poll_synchronize_rcu_expeditedh]h$start_poll_synchronize_rcu_expedited}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj(hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubah}(h]h ]h"]h$]h&]jjuh1jhj(hhhj(hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj(hMubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1jhj(hMhj(hhubj)}(hhh]h)}(h;Snapshot current RCU state and start expedited grace periodh]h;Snapshot current RCU state and start expedited grace period}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMhj)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj))jj))jjjuh1jhhhjhNhNubj)}(hX}**Parameters** ``void`` no arguments **Description** Returns a cookie to pass to a call to cond_synchronize_rcu(), cond_synchronize_rcu_expedited(), or poll_state_synchronize_rcu(), allowing them to determine whether or not any sort of grace period has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.h](h)}(h**Parameters**h]j)}(hj3)h]h Parameters}(hj5)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1)ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMhj-)ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjR)h]hvoid}(hjT)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP)ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhKhjL)ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjk)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg)hKhjh)ubah}(h]h ]h"]h$]h&]uh1j1hjL)ubeh}(h]h ]h"]h$]h&]uh1jhjg)hKhjI)ubah}(h]h ]h"]h$]h&]uh1j hj-)ubh)}(h**Description**h]j)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhKhj-)ubh)}(hXCReturns a cookie to pass to a call to cond_synchronize_rcu(), cond_synchronize_rcu_expedited(), or poll_state_synchronize_rcu(), allowing them to determine whether or not any sort of grace period has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.h]hXCReturns a cookie to pass to a call to cond_synchronize_rcu(), cond_synchronize_rcu_expedited(), or poll_state_synchronize_rcu(), allowing them to determine whether or not any sort of grace period has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMhj-)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 6start_poll_synchronize_rcu_expedited_full (C function)+c.start_poll_synchronize_rcu_expedited_fullhNtauh1hhjhhhNhNubj)}(hhh](j)}(hGvoid start_poll_synchronize_rcu_expedited_full (struct rcu_gp_seq *gsp)h]j)}(hFvoid start_poll_synchronize_rcu_expedited_full(struct rcu_gp_seq *gsp)h](j )}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj)hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMubj2)}(h h]h }(hj)hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)hhhj)hMubj{)}(h)start_poll_synchronize_rcu_expedited_fullh]j)}(h)start_poll_synchronize_rcu_expedited_fullh]h)start_poll_synchronize_rcu_expedited_full}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj)hhhj)hMubj)}(h(struct rcu_gp_seq *gsp)h]j)}(hstruct rcu_gp_seq *gsph](j)}(hj h]hstruct}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj *ubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj *ubh)}(hhh]j)}(h rcu_gp_seqh]h rcu_gp_seq}(hj-*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj**ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj/*modnameN classnameNj] j` )}jc ]jf )}jY j)sb+c.start_poll_synchronize_rcu_expedited_fullasbuh1hhj *ubj2)}(h h]h }(hjM*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj *ubj)}(hjh]h*}(hj[*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj *ubj)}(hgsph]hgsp}(hjh*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj *ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubah}(h]h ]h"]h$]h&]jjuh1jhj)hhhj)hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)hhhj)hMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1jhj)hMhj)hhubj)}(hhh]h)}(h5Take a full snapshot and start expedited grace periodh]h5Take a full snapshot and start expedited grace period}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMhj*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_seq *gsp`` Place to put snapshot of grace-period state **Description** Places the normal and expedited grace-period states in gsp. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.h](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhM"hj*ubj )}(hhh]j)}(hG``struct rcu_gp_seq *gsp`` Place to put snapshot of grace-period state h](j)}(h``struct rcu_gp_seq *gsp``h]j)}(hj*h]hstruct rcu_gp_seq *gsp}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMhj*ubj2)}(hhh]h)}(h+Place to put snapshot of grace-period stateh]h+Place to put snapshot of grace-period state}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1j hj*ubh)}(h**Description**h]j)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj +ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhM!hj*ubh)}(hXwPlaces the normal and expedited grace-period states in gsp. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.h]hXwPlaces the normal and expedited grace-period states in gsp. This state value can be passed to a later call to cond_synchronize_rcu_full() or poll_state_synchronize_rcu_full() to determine whether or not a grace period (whether normal or expedited) has elapsed in the meantime. If the needed expedited grace period is not already slated to start, initiates that grace period.}(hj$+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhM hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +cond_synchronize_rcu_expedited (C function) c.cond_synchronize_rcu_expeditedhNtauh1hhjhhhNhNubj)}(hhh](j)}(hah"]h$]h&]uh1j1hjO+hhhja+hM0ubj{)}(hcond_synchronize_rcu_expeditedh]j)}(hcond_synchronize_rcu_expeditedh]hcond_synchronize_rcu_expedited}(hjt+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp+ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjO+hhhja+hM0ubj)}(h(unsigned long oldstate)h]j)}(hunsigned long oldstateh](j )}(hunsignedh]hunsigned}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj )}(hlongh]hlong}(hj+hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj+ubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(holdstateh]holdstate}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj+ubah}(h]h ]h"]h$]h&]jjuh1jhjO+hhhja+hM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjK+hhhja+hM0ubah}(h]jF+ah ](jjeh"]h$]h&]jj)jhuh1jhja+hM0hjH+hhubj)}(hhh]h)}(h4Conditionally wait for an expedited RCU grace periodh]h4Conditionally wait for an expedited RCU grace period}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhM0hj+hhubah}(h]h ]h"]h$]h&]uh1jhjH+hhhja+hM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj ,jj ,jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``unsigned long oldstate`` value from get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited() **Description** If any type of full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited(), just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate** and that returned at the end of this function.h](h)}(h**Parameters**h]j)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhM4hj,ubj )}(hhh]j)}(h``unsigned long oldstate`` value from get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited() h](j)}(h``unsigned long oldstate``h]j)}(hj3,h]hunsigned long oldstate}(hj5,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1,ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhM2hj-,ubj2)}(hhh]h)}(hovalue from get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited()h]hovalue from get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited()}(hjL,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH,hM2hjI,ubah}(h]h ]h"]h$]h&]uh1j1hj-,ubeh}(h]h ]h"]h$]h&]uh1jhjH,hM2hj*,ubah}(h]h ]h"]h$]h&]uh1j hj,ubh)}(h**Description**h]j)}(hjn,h]h Description}(hjp,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl,ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhM4hj,ubh)}(hX If any type of full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited(), just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period.h]hX If any type of full RCU grace period has elapsed since the earlier call to get_state_synchronize_rcu(), start_poll_synchronize_rcu(), or start_poll_synchronize_rcu_expedited(), just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhM3hj,ubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhM8hj,ubh)}(hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **oldstate** and that returned at the end of this function.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hj,hhhNhNubj)}(h **oldstate**h]holdstate}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubh/ and that returned at the end of this function.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhM=hj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 0cond_synchronize_rcu_expedited_full (C function)%c.cond_synchronize_rcu_expedited_fullhNtauh1hhjhhhNhNubj)}(hhh](j)}(hAvoid cond_synchronize_rcu_expedited_full (struct rcu_gp_seq *gsp)h]j)}(h@void cond_synchronize_rcu_expedited_full(struct rcu_gp_seq *gsp)h](j )}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMKubj2)}(h h]h }(hj,hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,hhhj,hMKubj{)}(h#cond_synchronize_rcu_expedited_fullh]j)}(h#cond_synchronize_rcu_expedited_fullh]h#cond_synchronize_rcu_expedited_full}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj,hMKubj)}(h(struct rcu_gp_seq *gsp)h]j)}(hstruct rcu_gp_seq *gsph](j)}(hj h]hstruct}(hj -hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj2)}(h h]h }(hj--hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubh)}(hhh]j)}(h rcu_gp_seqh]h rcu_gp_seq}(hj>-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;-ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj@-modnameN classnameNj] j` )}jc ]jf )}jY j-sb%c.cond_synchronize_rcu_expedited_fullasbuh1hhj-ubj2)}(h h]h }(hj^-hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-ubj)}(hjh]h*}(hjl-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj)}(hgsph]hgsp}(hjy-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj-ubah}(h]h ]h"]h$]h&]jjuh1jhj,hhhj,hMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhj,hMKubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1jhj,hMKhj,hhubj)}(hhh]h)}(h4Conditionally wait for an expedited RCU grace periodh]h4Conditionally wait for an expedited RCU grace period}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMKhj-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_gp_seq *gsp`` value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() **Description** If a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which **gsp** was obtained, just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period. Yes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine. This function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **gsp** and that returned at the end of this function.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMOhj-ubj )}(hhh]j)}(h``struct rcu_gp_seq *gsp`` value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() h](j)}(h``struct rcu_gp_seq *gsp``h]j)}(hj-h]hstruct rcu_gp_seq *gsp}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMLhj-ubj2)}(hhh]h)}(h~value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full()h]h~value from get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full()}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMLhj-ubah}(h]h ]h"]h$]h&]uh1j1hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMLhj-ubah}(h]h ]h"]h$]h&]uh1j hj-ubh)}(h**Description**h]j)}(hj.h]h Description}(hj!.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMNhj-ubh)}(hX*If a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which **gsp** was obtained, just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period.h](hIf a full RCU grace period has elapsed since the call to get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or start_poll_synchronize_rcu_expedited_full() from which }(hj5.hhhNhNubj)}(h**gsp**h]hgsp}(hj=.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5.ubhk was obtained, just return. Otherwise, invoke synchronize_rcu_expedited() to wait for a full grace period.}(hj5.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMMhj-ubh)}(hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.h]hXYes, this function does not take counter wrap into account. But counter wrap is harmless. If the counter wraps, we have waited for more than 2 billion grace periods (and way more on a 64-bit system!), so waiting for a couple of additional grace periods should be just fine.}(hjV.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMShj-ubh)}(hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided **gsp** and that returned at the end of this function.h](hThis function provides the same memory-ordering guarantees that would be provided by a synchronize_rcu() that was invoked at the call to the function that provided }(hje.hhhNhNubj)}(h**gsp**h]hgsp}(hjm.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje.ubh/ and that returned at the end of this function.}(hje.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:403: ./kernel/rcu/tree_exp.hhMXhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &rcu_read_lock_held_common (C function)c.rcu_read_lock_held_commonhNtauh1hhjhhhNhNubj)}(hhh](j)}(h*bool rcu_read_lock_held_common (bool *ret)h]j)}(h)bool rcu_read_lock_held_common(bool *ret)h](j )}(hj8h]hbool}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKDubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.hhhj.hKDubj{)}(hrcu_read_lock_held_commonh]j)}(hrcu_read_lock_held_commonh]hrcu_read_lock_held_common}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj.hhhj.hKDubj)}(h (bool *ret)h]j)}(h bool *reth](j )}(hj8h]hbool}(hj.hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj.ubj2)}(h h]h }(hj.hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj.ubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj)}(hreth]hret}(hj /hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubah}(h]h ]h"]h$]h&]jjuh1jhj.hhhj.hKDubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhj.hKDubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1jhj.hKDhj.hhubj)}(hhh]h)}(h4might we be in RCU-sched read-side critical section?h]h4might we be in RCU-sched read-side critical section?}(hj4/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKDhj1/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hKDubeh}(h]h ](jfunctioneh"]h$]h&]jjjjL/jjL/jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``bool *ret`` Best guess answer if lockdep cannot be relied on **Description** Returns true if lockdep must be ignored, in which case ``*ret`` contains the best guess described below. Otherwise returns false, in which case ``*ret`` tells the caller nothing and the caller should instead consult lockdep. If CONFIG_DEBUG_LOCK_ALLOC is selected, set ``*ret`` to nonzero iff in an RCU-sched read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU-sched read-side critical section unless it can prove otherwise. Note that disabling of preemption (including disabling irqs) counts as an RCU-sched read-side critical section. This is useful for debug checks in functions that required that they be called within an RCU-sched read-side critical section. Check debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled. Note that if the CPU is in the idle loop from an RCU point of view (ie: that we are in the section between ct_idle_enter() and ct_idle_exit()) then rcu_read_lock_held() sets ``*ret`` to false even if the CPU did an rcu_read_lock(). The reason for this is that RCU ignores CPUs that are in such a section, considering these as in extended quiescent state, so such a CPU is effectively never in an RCU read-side critical section regardless of what RCU primitives it invokes. This state of affairs is required --- we need to keep an RCU-free window in idle where the CPU may possibly enter into low power mode. This way we can notice an extended quiescent state to other CPUs that started a grace period. Otherwise we would delay any grace period as long as we run in the idle task. Similarly, we avoid claiming an RCU read lock held if the current CPU is offline.h](h)}(h**Parameters**h]j)}(hjV/h]h Parameters}(hjX/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKHhjP/ubj )}(hhh]j)}(h?``bool *ret`` Best guess answer if lockdep cannot be relied on h](j)}(h ``bool *ret``h]j)}(hju/h]h bool *ret}(hjw/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs/ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKEhjo/ubj2)}(hhh]h)}(h0Best guess answer if lockdep cannot be relied onh]h0Best guess answer if lockdep cannot be relied on}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hKEhj/ubah}(h]h ]h"]h$]h&]uh1j1hjo/ubeh}(h]h ]h"]h$]h&]uh1jhj/hKEhjl/ubah}(h]h ]h"]h$]h&]uh1j hjP/ubh)}(h**Description**h]j)}(hj/h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKGhjP/ubh)}(hReturns true if lockdep must be ignored, in which case ``*ret`` contains the best guess described below. Otherwise returns false, in which case ``*ret`` tells the caller nothing and the caller should instead consult lockdep.h](h7Returns true if lockdep must be ignored, in which case }(hj/hhhNhNubj)}(h``*ret``h]h*ret}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhR contains the best guess described below. Otherwise returns false, in which case }(hj/hhhNhNubj)}(h``*ret``h]h*ret}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhH tells the caller nothing and the caller should instead consult lockdep.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKFhjP/ubh)}(hXIf CONFIG_DEBUG_LOCK_ALLOC is selected, set ``*ret`` to nonzero iff in an RCU-sched read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU-sched read-side critical section unless it can prove otherwise. Note that disabling of preemption (including disabling irqs) counts as an RCU-sched read-side critical section. This is useful for debug checks in functions that required that they be called within an RCU-sched read-side critical section.h](h,If CONFIG_DEBUG_LOCK_ALLOC is selected, set }(hj/hhhNhNubj)}(h``*ret``h]h*ret}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhX to nonzero iff in an RCU-sched read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU-sched read-side critical section unless it can prove otherwise. Note that disabling of preemption (including disabling irqs) counts as an RCU-sched read-side critical section. This is useful for debug checks in functions that required that they be called within an RCU-sched read-side critical section.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKKhjP/ubh)}(hgCheck debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.h]hgCheck debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKThjP/ubh)}(hX Note that if the CPU is in the idle loop from an RCU point of view (ie: that we are in the section between ct_idle_enter() and ct_idle_exit()) then rcu_read_lock_held() sets ``*ret`` to false even if the CPU did an rcu_read_lock(). The reason for this is that RCU ignores CPUs that are in such a section, considering these as in extended quiescent state, so such a CPU is effectively never in an RCU read-side critical section regardless of what RCU primitives it invokes. This state of affairs is required --- we need to keep an RCU-free window in idle where the CPU may possibly enter into low power mode. This way we can notice an extended quiescent state to other CPUs that started a grace period. Otherwise we would delay any grace period as long as we run in the idle task.h](hNote that if the CPU is in the idle loop from an RCU point of view (ie: that we are in the section between ct_idle_enter() and ct_idle_exit()) then rcu_read_lock_held() sets }(hj)0hhhNhNubj)}(h``*ret``h]h*ret}(hj10hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)0ubhXW to false even if the CPU did an rcu_read_lock(). The reason for this is that RCU ignores CPUs that are in such a section, considering these as in extended quiescent state, so such a CPU is effectively never in an RCU read-side critical section regardless of what RCU primitives it invokes. This state of affairs is required --- we need to keep an RCU-free window in idle where the CPU may possibly enter into low power mode. This way we can notice an extended quiescent state to other CPUs that started a grace period. Otherwise we would delay any grace period as long as we run in the idle task.}(hj)0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKWhjP/ubh)}(hQSimilarly, we avoid claiming an RCU read lock held if the current CPU is offline.h]hQSimilarly, we avoid claiming an RCU read lock held if the current CPU is offline.}(hjJ0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKchjP/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_async_hurry (C function)c.rcu_async_hurryhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_async_hurry (void)h]j)}(hvoid rcu_async_hurry(void)h](j )}(hvoidh]hvoid}(hjy0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhju0hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKubj2)}(h h]h }(hj0hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hju0hhhj0hKubj{)}(hrcu_async_hurryh]j)}(hrcu_async_hurryh]hrcu_async_hurry}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhju0hhhj0hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubah}(h]h ]h"]h$]h&]jjuh1jhju0hhhj0hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjq0hhhj0hKubah}(h]jl0ah ](jjeh"]h$]h&]jj)jhuh1jhj0hKhjn0hhubj)}(hhh]h)}(h)Make future async RCU callbacks not lazy.h]h)Make future async RCU callbacks not lazy.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj0hhubah}(h]h ]h"]h$]h&]uh1jhjn0hhhj0hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** After a call to this function, future calls to call_rcu() will be processed in a timely fashion.h](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj0ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj!1h]hvoid}(hj#1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj1ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj:1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj61hKhj71ubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhj61hKhj1ubah}(h]h ]h"]h$]h&]uh1j hj0ubh)}(h**Description**h]j)}(hj\1h]h Description}(hj^1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ1ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj0ubh)}(h`After a call to this function, future calls to call_rcu() will be processed in a timely fashion.h]h`After a call to this function, future calls to call_rcu() will be processed in a timely fashion.}(hjr1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_async_relax (C function)c.rcu_async_relaxhNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_async_relax (void)h]j)}(hvoid rcu_async_relax(void)h](j )}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKubj2)}(h h]h }(hj1hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj1hhhj1hKubj{)}(hrcu_async_relaxh]j)}(hrcu_async_relaxh]hrcu_async_relax}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj1hhhj1hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj1ubah}(h]h ]h"]h$]h&]jjuh1jhj1hhhj1hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj1hhhj1hKubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhj1hKhj1hhubj)}(hhh]h)}(h%Make future async RCU callbacks lazy.h]h%Make future async RCU callbacks lazy.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 2jj 2jjjuh1jhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** After a call to this function, future calls to call_rcu() will be processed in a lazy fashion.h](h)}(h**Parameters**h]j)}(hj*2h]h Parameters}(hj,2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj$2ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjI2h]hvoid}(hjK2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG2ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhjC2ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjb2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^2hKhj_2ubah}(h]h ]h"]h$]h&]uh1j1hjC2ubeh}(h]h ]h"]h$]h&]uh1jhj^2hKhj@2ubah}(h]h ]h"]h$]h&]uh1j hj$2ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj$2ubh)}(h^After a call to this function, future calls to call_rcu() will be processed in a lazy fashion.h]h^After a call to this function, future calls to call_rcu() will be processed in a lazy fashion.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj$2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_expedite_gp (C function)c.rcu_expedite_gphNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_expedite_gp (void)h]j)}(hvoid rcu_expedite_gp(void)h](j )}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2hhhj2hKubj{)}(hrcu_expedite_gph]j)}(hrcu_expedite_gph]hrcu_expedite_gp}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2hhhj2hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubah}(h]h ]h"]h$]h&]jjuh1jhj2hhhj2hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj2hhhj2hKubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1jhj2hKhj2hhubj)}(hhh]h)}(h!Expedite future RCU grace periodsh]h!Expedite future RCU grace periods}(hj03hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj-3hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjH3jjH3jjjuh1jhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** After a call to this function, future calls to synchronize_rcu() and friends act as the corresponding synchronize_rcu_expedited() function had instead been called.h](h)}(h**Parameters**h]j)}(hjR3h]h Parameters}(hjT3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhjL3ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjq3h]hvoid}(hjs3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo3ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhjk3ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj3ubah}(h]h ]h"]h$]h&]uh1j1hjk3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjh3ubah}(h]h ]h"]h$]h&]uh1j hjL3ubh)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhjL3ubh)}(hAfter a call to this function, future calls to synchronize_rcu() and friends act as the corresponding synchronize_rcu_expedited() function had instead been called.h]hAfter a call to this function, future calls to synchronize_rcu() and friends act as the corresponding synchronize_rcu_expedited() function had instead been called.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhjL3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_unexpedite_gp (C function)c.rcu_unexpedite_gphNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_unexpedite_gp (void)h]j)}(hvoid rcu_unexpedite_gp(void)h](j )}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj3hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3hhhj3hKubj{)}(hrcu_unexpedite_gph]j)}(hrcu_unexpedite_gph]hrcu_unexpedite_gp}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj3hhhj3hKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj.4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*4ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj&4ubah}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3hhhj3hKubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhj3hKhj3hhubj)}(hhh]h)}(h)Cancel prior rcu_expedite_gp() invocationh]h)Cancel prior rcu_expedite_gp() invocation}(hjX4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhjU4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjp4jjp4jjjuh1jhhhjhNhNubj)}(hXk**Parameters** ``void`` no arguments **Description** Undo a prior call to rcu_expedite_gp(). If all prior calls to rcu_expedite_gp() are undone by a subsequent call to rcu_unexpedite_gp(), and if the rcu_expedited sysfs/boot parameter is not set, then all subsequent calls to synchronize_rcu() and friends will return to their normal non-expedited behavior.h](h)}(h**Parameters**h]j)}(hjz4h]h Parameters}(hj|4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhjt4ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj4h]hvoid}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj4ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj4ubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hKhj4ubah}(h]h ]h"]h$]h&]uh1j hjt4ubh)}(h**Description**h]j)}(hj4h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhjt4ubh)}(hX1Undo a prior call to rcu_expedite_gp(). If all prior calls to rcu_expedite_gp() are undone by a subsequent call to rcu_unexpedite_gp(), and if the rcu_expedited sysfs/boot parameter is not set, then all subsequent calls to synchronize_rcu() and friends will return to their normal non-expedited behavior.h]hX1Undo a prior call to rcu_expedite_gp(). If all prior calls to rcu_expedite_gp() are undone by a subsequent call to rcu_unexpedite_gp(), and if the rcu_expedited sysfs/boot parameter is not set, then all subsequent calls to synchronize_rcu() and friends will return to their normal non-expedited behavior.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhjt4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_read_lock_held (C function)c.rcu_read_lock_heldhNtauh1hhjhhhNhNubj)}(hhh](j)}(h%int notrace rcu_read_lock_held (void)h]j)}(h$int notrace rcu_read_lock_held(void)h](j )}(hinth]hint}(hj5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj5hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMFubj2)}(h h]h }(hj(5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhj'5hMFubhnotrace}(hj5hhhNhNubj2)}(h h]h }(hj:5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5hhhj'5hMFubj{)}(hrcu_read_lock_heldh]j)}(hrcu_read_lock_heldh]hrcu_read_lock_held}(hjL5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH5ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj5hhhj'5hMFubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjh5hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjd5ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj`5ubah}(h]h ]h"]h$]h&]jjuh1jhj5hhhj'5hMFubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5hhhj'5hMFubah}(h]j 5ah ](jjeh"]h$]h&]jj)jhuh1jhj'5hMFhj5hhubj)}(hhh]h)}(h.might we be in RCU read-side critical section?h]h.might we be in RCU read-side critical section?}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMFhj5hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj'5hMFubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1jhhhjhNhNubj)}(hXq**Parameters** ``void`` no arguments **Description** If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU read-side critical section unless it can prove otherwise. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section. Checks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled. Note that rcu_read_lock() and the matching rcu_read_unlock() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock() in process context if the matching rcu_read_lock() was invoked from within an irq handler. Note that rcu_read_lock() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMJhj5ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj5h]hvoid}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj5ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hKhj5ubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hKhj5ubah}(h]h ]h"]h$]h&]uh1j hj5ubh)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 6ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj5ubh)}(hXZIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU read-side critical section unless it can prove otherwise. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.h]hXZIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an RCU read-side critical section unless it can prove otherwise. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.}(hj$6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMGhj5ubh)}(hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.h]hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.}(hj36hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMMhj5ubh)}(hNote that rcu_read_lock() and the matching rcu_read_unlock() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock() in process context if the matching rcu_read_lock() was invoked from within an irq handler.h]hNote that rcu_read_lock() and the matching rcu_read_unlock() must occur in the same context, for example, it is illegal to invoke rcu_read_unlock() in process context if the matching rcu_read_lock() was invoked from within an irq handler.}(hjB6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMPhj5ubh)}(hNote that rcu_read_lock() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h]hNote that rcu_read_lock() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.}(hjQ6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMUhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "rcu_read_lock_bh_held (C function)c.rcu_read_lock_bh_heldhNtauh1hhjhhhNhNubj)}(hhh](j)}(h(int notrace rcu_read_lock_bh_held (void)h]j)}(h'int notrace rcu_read_lock_bh_held(void)h](j )}(hinth]hint}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj|6hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMdubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|6hhhj6hMdubhnotrace}(hj|6hhhNhNubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj|6hhhj6hMdubj{)}(hrcu_read_lock_bh_heldh]j)}(hrcu_read_lock_bh_heldh]hrcu_read_lock_bh_held}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj|6hhhj6hMdubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj6ubah}(h]h ]h"]h$]h&]jjuh1jhj|6hhhj6hMdubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjx6hhhj6hMdubah}(h]js6ah ](jjeh"]h$]h&]jj)jhuh1jhj6hMdhju6hhubj)}(hhh]h)}(h1might we be in RCU-bh read-side critical section?h]h1might we be in RCU-bh read-side critical section?}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMdhj6hhubah}(h]h ]h"]h$]h&]uh1jhju6hhhj6hMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1jhhhjhNhNubj)}(hXW**Parameters** ``void`` no arguments **Description** Check for bottom half being disabled, which covers both the CONFIG_PROVE_RCU and not cases. Note that if someone uses rcu_read_lock_bh(), but then later enables BH, lockdep (if enabled) will show the situation. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section. Check debug_lockdep_rcu_enabled() to prevent false positives during boot. Note that rcu_read_lock_bh() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhhj7ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj:7h]hvoid}(hj<7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj87ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj47ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjS7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjO7hKhjP7ubah}(h]h ]h"]h$]h&]uh1j1hj47ubeh}(h]h ]h"]h$]h&]uh1jhjO7hKhj17ubah}(h]h ]h"]h$]h&]uh1j hj7ubh)}(h**Description**h]j)}(hju7h]h Description}(hjw7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs7ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj7ubh)}(hXLCheck for bottom half being disabled, which covers both the CONFIG_PROVE_RCU and not cases. Note that if someone uses rcu_read_lock_bh(), but then later enables BH, lockdep (if enabled) will show the situation. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.h]hXLCheck for bottom half being disabled, which covers both the CONFIG_PROVE_RCU and not cases. Note that if someone uses rcu_read_lock_bh(), but then later enables BH, lockdep (if enabled) will show the situation. This is useful for debug checks in functions that require that they be called within an RCU read-side critical section.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMehj7ubh)}(hICheck debug_lockdep_rcu_enabled() to prevent false positives during boot.h]hICheck debug_lockdep_rcu_enabled() to prevent false positives during boot.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMlhj7ubh)}(hNote that rcu_read_lock_bh() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.h]hNote that rcu_read_lock_bh() is disallowed if the CPU is either idle or offline from an RCU perspective, so check for those as well.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMnhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j wakeme_after_rcu (C function)c.wakeme_after_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h-void wakeme_after_rcu (struct rcu_head *head)h]j)}(h,void wakeme_after_rcu(struct rcu_head *head)h](j )}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj7hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMubj2)}(h h]h }(hj7hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7hhhj7hMubj{)}(hwakeme_after_rcuh]j)}(hwakeme_after_rcuh]hwakeme_after_rcu}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7hhhj7hMubj)}(h(struct rcu_head *head)h]j)}(hstruct rcu_head *headh](j)}(hj h]hstruct}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj2)}(h h]h }(hj"8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hj38hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj08ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj58modnameN classnameNj] j` )}jc ]jf )}jY j7sbc.wakeme_after_rcuasbuh1hhj8ubj2)}(h h]h }(hjS8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj8ubj)}(hjh]h*}(hja8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hheadh]hhead}(hjn8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj 8ubah}(h]h ]h"]h$]h&]jjuh1jhj7hhhj7hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj7hhhj7hMubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1jhj7hMhj7hhubj)}(hhh]h)}(h5Callback function to awaken a task after grace periodh]h5Callback function to awaken a task after grace period}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj7hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct rcu_head *head`` Pointer to rcu_head member within rcu_synchronize structure **Description** Awaken the corresponding task now that a grace period has elapsed.h](h)}(h**Parameters**h]j)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj8ubj )}(hhh]j)}(hV``struct rcu_head *head`` Pointer to rcu_head member within rcu_synchronize structure h](j)}(h``struct rcu_head *head``h]j)}(hj8h]hstruct rcu_head *head}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj8ubj2)}(hhh]h)}(h;Pointer to rcu_head member within rcu_synchronize structureh]h;Pointer to rcu_head member within rcu_synchronize structure}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1j1hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1j hj8ubh)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj8ubh)}(hBAwaken the corresponding task now that a grace period has elapsed.h]hBAwaken the corresponding task now that a grace period has elapsed.}(hj*9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #init_rcu_head_on_stack (C function)c.init_rcu_head_on_stackhNtauh1hhjhhhNhNubj)}(hhh](j)}(h3void init_rcu_head_on_stack (struct rcu_head *head)h]j)}(h2void init_rcu_head_on_stack(struct rcu_head *head)h](j )}(hvoidh]hvoid}(hjY9hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjU9hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMubj2)}(h h]h }(hjh9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjU9hhhjg9hMubj{)}(hinit_rcu_head_on_stackh]j)}(hinit_rcu_head_on_stackh]hinit_rcu_head_on_stack}(hjz9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjU9hhhjg9hMubj)}(h(struct rcu_head *head)h]j)}(hstruct rcu_head *headh](j)}(hj h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jf )}jY j|9sbc.init_rcu_head_on_stackasbuh1hhj9ubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hheadh]hhead}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubah}(h]h ]h"]h$]h&]jjuh1jhjU9hhhjg9hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjQ9hhhjg9hMubah}(h]jL9ah ](jjeh"]h$]h&]jj)jhuh1jhjg9hMhjN9hhubj)}(hhh]h)}(h-initialize on-stack rcu_head for debugobjectsh]h-initialize on-stack rcu_head for debugobjects}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhjN9hhhjg9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1:jj1:jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_head *head`` pointer to rcu_head structure to be initialized **Description** This function informs debugobjects of a new rcu_head structure that has been allocated as an auto variable on the stack. This function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. This function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h](h)}(h**Parameters**h]j)}(hj;:h]h Parameters}(hj=:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj5:ubj )}(hhh]j)}(hJ``struct rcu_head *head`` pointer to rcu_head structure to be initialized h](j)}(h``struct rcu_head *head``h]j)}(hjZ:h]hstruct rcu_head *head}(hj\:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX:ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhjT:ubj2)}(hhh]h)}(h/pointer to rcu_head structure to be initializedh]h/pointer to rcu_head structure to be initialized}(hjs:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo:hMhjp:ubah}(h]h ]h"]h$]h&]uh1j1hjT:ubeh}(h]h ]h"]h$]h&]uh1jhjo:hMhjQ:ubah}(h]h ]h"]h$]h&]uh1j hj5:ubh)}(h**Description**h]j)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj5:ubh)}(hXIThis function informs debugobjects of a new rcu_head structure that has been allocated as an auto variable on the stack. This function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. This function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h]hXIThis function informs debugobjects of a new rcu_head structure that has been allocated as an auto variable on the stack. This function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. This function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj5:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &destroy_rcu_head_on_stack (C function)c.destroy_rcu_head_on_stackhNtauh1hhjhhhNhNubj)}(hhh](j)}(h6void destroy_rcu_head_on_stack (struct rcu_head *head)h]j)}(h5void destroy_rcu_head_on_stack(struct rcu_head *head)h](j )}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMubj2)}(h h]h }(hj:hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:hhhj:hMubj{)}(hdestroy_rcu_head_on_stackh]j)}(hdestroy_rcu_head_on_stackh]hdestroy_rcu_head_on_stack}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhhj:hMubj)}(h(struct rcu_head *head)h]j)}(hstruct rcu_head *headh](j)}(hj h]hstruct}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj2)}(h h]h }(hj$;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hj5;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2;ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7;modnameN classnameNj] j` )}jc ]jf )}jY j:sbc.destroy_rcu_head_on_stackasbuh1hhj;ubj2)}(h h]h }(hjU;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;ubj)}(hjh]h*}(hjc;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj)}(hheadh]hhead}(hjp;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubah}(h]h ]h"]h$]h&]jjuh1jhj:hhhj:hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj:hhhj:hMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1jhj:hMhj:hhubj)}(hhh]h)}(h*destroy on-stack rcu_head for debugobjectsh]h*destroy on-stack rcu_head for debugobjects}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_head *head`` pointer to rcu_head structure to be initialized **Description** This function informs debugobjects that an on-stack rcu_head structure is about to go out of scope. As with init_rcu_head_on_stack(), this function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. Also as with init_rcu_head_on_stack(), this function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj;ubj )}(hhh]j)}(hJ``struct rcu_head *head`` pointer to rcu_head structure to be initialized h](j)}(h``struct rcu_head *head``h]j)}(hj;h]hstruct rcu_head *head}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj;ubj2)}(hhh]h)}(h/pointer to rcu_head structure to be initializedh]h/pointer to rcu_head structure to be initialized}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1j1hj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhj;ubah}(h]h ]h"]h$]h&]uh1j hj;ubh)}(h**Description**h]j)}(hj<h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj;ubh)}(hX}This function informs debugobjects that an on-stack rcu_head structure is about to go out of scope. As with init_rcu_head_on_stack(), this function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. Also as with init_rcu_head_on_stack(), this function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.h]hX}This function informs debugobjects that an on-stack rcu_head structure is about to go out of scope. As with init_rcu_head_on_stack(), this function is not required for rcu_head structures that are statically defined or that are dynamically allocated on the heap. Also as with init_rcu_head_on_stack(), this function has no effect for !CONFIG_DEBUG_OBJECTS_RCU_HEAD kernel builds.}(hj,<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *get_completed_synchronize_rcu (C function)c.get_completed_synchronize_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h2unsigned long get_completed_synchronize_rcu (void)h]j)}(h1unsigned long get_completed_synchronize_rcu(void)h](j )}(hunsignedh]hunsigned}(hj[<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjW<hhhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMPubj2)}(h h]h }(hjj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjW<hhhji<hMPubj )}(hlongh]hlong}(hjx<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjW<hhhji<hMPubj2)}(h h]h }(hj<hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjW<hhhji<hMPubj{)}(hget_completed_synchronize_rcuh]j)}(hget_completed_synchronize_rcuh]hget_completed_synchronize_rcu}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjW<hhhji<hMPubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubah}(h]h ]h"]h$]h&]jjuh1jhjW<hhhji<hMPubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjS<hhhji<hMPubah}(h]jN<ah ](jjeh"]h$]h&]jj)jhuh1jhji<hMPhjP<hhubj)}(hhh]h)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMPhj<hhubah}(h]h ]h"]h$]h&]uh1jhjP<hhhji<hMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1jhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** Returns a value that will always be treated by functions like poll_state_synchronize_rcu() as a cookie whose grace period has already completed.h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMThj<ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj=h]hvoid}(hj!=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj=ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj8=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4=hKhj5=ubah}(h]h ]h"]h$]h&]uh1j1hj=ubeh}(h]h ]h"]h$]h&]uh1jhj4=hKhj=ubah}(h]h ]h"]h$]h&]uh1j hj<ubh)}(h**Description**h]j)}(hjZ=h]h Description}(hj\=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX=ubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chKhj<ubh)}(hReturns a value that will always be treated by functions like poll_state_synchronize_rcu() as a cookie whose grace period has already completed.h]hReturns a value that will always be treated by functions like poll_state_synchronize_rcu() as a cookie whose grace period has already completed.}(hjp=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhX/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:405: ./kernel/rcu/update.chMQhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +get_completed_synchronize_srcu (C function) c.get_completed_synchronize_srcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h3unsigned long get_completed_synchronize_srcu (void)h]j)}(h2unsigned long get_completed_synchronize_srcu(void)h](j )}(hunsignedh]hunsigned}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKmubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=hhhj=hKmubj )}(hlongh]hlong}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=hhhj=hKmubj2)}(h h]h }(hj=hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=hhhj=hKmubj{)}(hget_completed_synchronize_srcuh]j)}(hget_completed_synchronize_srcuh]hget_completed_synchronize_srcu}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj=hhhj=hKmubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(h]h ]h"]h$]h&]jjuh1jhj=hhhj=hKmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj=hhhj=hKmubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1jhj=hKmhj=hhubj)}(hhh]h)}(h*Return a pre-completed polled state cookieh]h*Return a pre-completed polled state cookie}(hj">hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKmhj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hKmubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:>jj:>jjjuh1jhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** Returns a value that poll_state_synchronize_srcu() will always treat as a cookie whose grace period has already completed.h](h)}(h**Parameters**h]j)}(hjD>h]h Parameters}(hjF>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB>ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKqhj>>ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjc>h]hvoid}(hje>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja>ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhj]>ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj|>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx>hKhjy>ubah}(h]h ]h"]h$]h&]uh1j1hj]>ubeh}(h]h ]h"]h$]h&]uh1jhjx>hKhjZ>ubah}(h]h ]h"]h$]h&]uh1j hj>>ubh)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhj>>ubh)}(hzReturns a value that poll_state_synchronize_srcu() will always treat as a cookie whose grace period has already completed.h]hzReturns a value that poll_state_synchronize_srcu() will always treat as a cookie whose grace period has already completed.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKnhj>>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (same_state_synchronize_srcu (C function)c.same_state_synchronize_srcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hSbool same_state_synchronize_srcu (unsigned long oldstate1, unsigned long oldstate2)h]j)}(hRbool same_state_synchronize_srcu(unsigned long oldstate1, unsigned long oldstate2)h](j )}(hj8h]hbool}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj>hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj>hhhj>hKubj{)}(hsame_state_synchronize_srcuh]j)}(hsame_state_synchronize_srcuh]hsame_state_synchronize_srcu}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj>hhhj>hKubj)}(h2(unsigned long oldstate1, unsigned long oldstate2)h](j)}(hunsigned long oldstate1h](j )}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hj-?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj )}(hlongh]hlong}(hj;?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj?ubj2)}(h h]h }(hjI?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj?ubj)}(h oldstate1h]h oldstate1}(hjW?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubj)}(hunsigned long oldstate2h](j )}(hunsignedh]hunsigned}(hjp?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjl?ubj2)}(h h]h }(hj~?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl?ubj )}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjl?ubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjl?ubj)}(h oldstate2h]h oldstate2}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?ubeh}(h]h ]h"]h$]h&]jjuh1jhj>hhhj>hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj>hhhj>hKubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1jhj>hKhj>hhubj)}(hhh]h)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhj?hhubah}(h]h ]h"]h$]h&]uh1jhj>hhhj>hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``unsigned long oldstate1`` First old-state value. ``unsigned long oldstate2`` Second old-state value. **Description** The two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](h)}(h**Parameters**h]j)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhj?ubj )}(hhh](j)}(h3``unsigned long oldstate1`` First old-state value. h](j)}(h``unsigned long oldstate1``h]j)}(hj@h]hunsigned long oldstate1}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhj @ubj2)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hj,@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(@hKhj)@ubah}(h]h ]h"]h$]h&]uh1j1hj @ubeh}(h]h ]h"]h$]h&]uh1jhj(@hKhj @ubj)}(h4``unsigned long oldstate2`` Second old-state value. h](j)}(h``unsigned long oldstate2``h]j)}(hjL@h]hunsigned long oldstate2}(hjN@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ@ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjF@ubj2)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hje@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja@hKhjb@ubah}(h]h ]h"]h$]h&]uh1j1hjF@ubeh}(h]h ]h"]h$]h&]uh1jhja@hKhj @ubeh}(h]h ]h"]h$]h&]uh1j hj?ubh)}(h**Description**h]j)}(hj@h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhj?ubh)}(hXThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_srcu(), start_poll_synchronize_srcu(), or get_completed_synchronize_srcu(). Returns }(hj@hhhNhNubj)}(h**true**h]htrue}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh% if the two values are identical and }(hj@hhhNhNubj)}(h **false**h]hfalse}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  srcu_read_lock_held (C function)c.srcu_read_lock_heldhNtauh1hhjhhhNhNubj)}(hhh](j)}(h7int srcu_read_lock_held (const struct srcu_struct *ssp)h]j)}(h6int srcu_read_lock_held(const struct srcu_struct *ssp)h](j )}(hinth]hint}(hj@hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj@hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKubj2)}(h h]h }(hj@hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj@hhhj@hKubj{)}(hsrcu_read_lock_heldh]j)}(hsrcu_read_lock_heldh]hsrcu_read_lock_held}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Aubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj@hhhj@hKubj)}(h(const struct srcu_struct *ssp)h]j)}(hconst struct srcu_struct *ssph](j)}(hjh]hconst}(hj-AhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Aubj2)}(h h]h }(hj:AhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)Aubj)}(hj h]hstruct}(hjHAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Aubj2)}(h h]h }(hjUAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)Aubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjfAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcAubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjhAmodnameN classnameNj] j` )}jc ]jf )}jY jAsbc.srcu_read_lock_heldasbuh1hhj)Aubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj)Aubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Aubj)}(hssph]hssp}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Aubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%Aubah}(h]h ]h"]h$]h&]jjuh1jhj@hhhj@hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj@hhhj@hKubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1jhj@hKhj@hhubj)}(hhh]h)}(h/might we be in SRCU read-side critical section?h]h/might we be in SRCU read-side critical section?}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhjhNhNubj)}(hXj**Parameters** ``const struct srcu_struct *ssp`` The srcu_struct structure to check **Description** If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise. Checks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled. Note that SRCU is based on its own statemachine and it doesn't relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.h](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjAubj )}(hhh]j)}(hE``const struct srcu_struct *ssp`` The srcu_struct structure to check h](j)}(h!``const struct srcu_struct *ssp``h]j)}(hj Bh]hconst struct srcu_struct *ssp}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Bubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjBubj2)}(hhh]h)}(h"The srcu_struct structure to checkh]h"The srcu_struct structure to check}(hj%BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!BhKhj"Bubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhj!BhKhjBubah}(h]h ]h"]h$]h&]uh1j hjAubh)}(h**Description**h]j)}(hjGBh]h Description}(hjIBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEBubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjAubh)}(hIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise.h]hIf CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an SRCU read-side critical section. In absence of CONFIG_DEBUG_LOCK_ALLOC, this assumes we are in an SRCU read-side critical section unless it can prove otherwise.}(hj]BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjAubh)}(hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.h]hhChecks debug_lockdep_rcu_enabled() to prevent false positives during boot and while lockdep is disabled.}(hjlBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjAubh)}(hNote that SRCU is based on its own statemachine and it doesn't relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.h]hNote that SRCU is based on its own statemachine and it doesn’t relies on normal RCU, it can be called from the CPU which is in the idle loop from an RCU point of view or offline.}(hj{BhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  srcu_dereference_check (C macro)c.srcu_dereference_checkhNtauh1hhjhhhNhNubj)}(hhh](j)}(hsrcu_dereference_checkh]j)}(hsrcu_dereference_checkh]j{)}(hsrcu_dereference_checkh]j)}(hjBh]hsrcu_dereference_check}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjBhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjBhKubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1jhjBhKhjBhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjBhhhjBhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjBjjBjjjuh1jhhhjhNhNubh)}(h&``srcu_dereference_check (p, ssp, c)``h]j)}(hjBh]h"srcu_dereference_check (p, ssp, c)}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjhhubj)}(h5fetch SRCU-protected pointer for later dereferencing h]h)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjBubah}(h]h ]h"]h$]h&]uh1jhjChKhjhhubj)}(hX**Parameters** ``p`` the pointer to fetch and protect for later dereferencing ``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. ``c`` condition to check for update-side use **Description** If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat, unless **c** evaluates to 1. The **c** argument will normally be a logical expression containing lockdep_is_held() calls.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjCubj )}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hj4Ch]hp}(hj6ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Cubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhj.Cubj2)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hjMChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIChKhjJCubah}(h]h ]h"]h$]h&]uh1j1hj.Cubeh}(h]h ]h"]h$]h&]uh1jhjIChKhj+Cubj)}(hu``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. h](j)}(h``ssp``h]j)}(hjmCh]hssp}(hjoChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkCubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjgCubj2)}(hhh]h)}(hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h]hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjCubah}(h]h ]h"]h$]h&]uh1j1hjgCubeh}(h]h ]h"]h$]h&]uh1jhjChKhj+Cubj)}(h-``c`` condition to check for update-side use h](j)}(h``c``h]j)}(hjCh]hc}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjCubj2)}(hhh]h)}(h&condition to check for update-side useh]h&condition to check for update-side use}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKhjCubah}(h]h ]h"]h$]h&]uh1j1hjCubeh}(h]h ]h"]h$]h&]uh1jhjChKhj+Cubeh}(h]h ]h"]h$]h&]uh1j hjCubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjCubh)}(hIf PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat, unless **c** evaluates to 1. The **c** argument will normally be a logical expression containing lockdep_is_held() calls.h](hIf PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat, unless }(hjChhhNhNubj)}(h**c**h]hc}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubh evaluates to 1. The }(hjChhhNhNubj)}(h**c**h]hc}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubhS argument will normally be a logical expression containing lockdep_is_held() calls.}(hjChhhNhNubeh}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j srcu_dereference (C macro)c.srcu_dereferencehNtauh1hhjhhhNhNubj)}(hhh](j)}(hsrcu_dereferenceh]j)}(hsrcu_dereferenceh]j{)}(hsrcu_dereferenceh]j)}(hjEDh]hsrcu_dereference}(hjODhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKDubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjGDhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjCDhhhjbDhMubah}(h]j>Dah ](jjeh"]h$]h&]jj)jhuh1jhjbDhMhj@Dhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj@DhhhjbDhMubeh}(h]h ](jmacroeh"]h$]h&]jjjj{Djj{Djjjuh1jhhhjhNhNubh)}(h``srcu_dereference (p, ssp)``h]j)}(hjDh]hsrcu_dereference (p, ssp)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjhhubj)}(h5fetch SRCU-protected pointer for later dereferencing h]h)}(h4fetch SRCU-protected pointer for later dereferencingh]h4fetch SRCU-protected pointer for later dereferencing}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDhMhjhhubj)}(hX**Parameters** ``p`` the pointer to fetch and protect for later dereferencing ``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. **Description** Makes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.h](h)}(h**Parameters**h]j)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjDubj )}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hjDh]hp}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjDubj2)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjDubj)}(hu``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section. h](j)}(h``ssp``h]j)}(hjEh]hssp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Eubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjEubj2)}(hhh]h)}(hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h]hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.}(hj'EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhj$Eubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj#EhMhjDubeh}(h]h ]h"]h$]h&]uh1j hjDubh)}(h**Description**h]j)}(hjJEh]h Description}(hjLEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHEubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjDubh)}(hMakes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.h]hMakes rcu_dereference_check() do the dirty work. If PROVE_RCU is enabled, invoking this outside of an RCU read-side critical section will result in an RCU-lockdep splat.}(hj`EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "srcu_dereference_notrace (C macro)c.srcu_dereference_notracehNtauh1hhjhhhNhNubj)}(hhh](j)}(hsrcu_dereference_notraceh]j)}(hsrcu_dereference_notraceh]j{)}(hsrcu_dereference_notraceh]j)}(hjEh]hsrcu_dereference_notrace}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjEhhhjEhMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1jhjEhMhjEhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjEjjEjjjuh1jhhhjhNhNubh)}(h%``srcu_dereference_notrace (p, ssp)``h]j)}(hjEh]h!srcu_dereference_notrace (p, ssp)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjhhubj)}(h*no tracing and no lockdep calls from here h]h)}(h)no tracing and no lockdep calls from hereh]h)no tracing and no lockdep calls from here}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEhMhjhhubj)}(h**Parameters** ``p`` the pointer to fetch and protect for later dereferencing ``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjEubj )}(hhh](j)}(h?``p`` the pointer to fetch and protect for later dereferencing h](j)}(h``p``h]j)}(hjFh]hp}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjFubj2)}(hhh]h)}(h8the pointer to fetch and protect for later dereferencingh]h8the pointer to fetch and protect for later dereferencing}(hj2FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.FhMhj/Fubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhj.FhMhjFubj)}(ht``ssp`` pointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h](j)}(h``ssp``h]j)}(hjRFh]hssp}(hjTFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPFubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjLFubj2)}(hhh]h)}(hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.h]hlpointer to the srcu_struct, which is used to check that we really are in an SRCU read-side critical section.}(hjkFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgFhMhjhFubah}(h]h ]h"]h$]h&]uh1j1hjLFubeh}(h]h ]h"]h$]h&]uh1jhjgFhMhjFubeh}(h]h ]h"]h$]h&]uh1j hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j srcu_read_lock (C function)c.srcu_read_lockhNtauh1hhjhhhNhNubj)}(hhh](j)}(h,int srcu_read_lock (struct srcu_struct *ssp)h]j)}(h+int srcu_read_lock(struct srcu_struct *ssp)h](j )}(hinth]hint}(hjFhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFhhhjFhMubj{)}(hsrcu_read_lockh]j)}(hsrcu_read_lockh]hsrcu_read_lock}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjFhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjGmodnameN classnameNj] j` )}jc ]jf )}jY jFsbc.srcu_read_lockasbuh1hhjFubj2)}(h h]h }(hj&GhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hj4GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hssph]hssp}(hjAGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjFubah}(h]h ]h"]h$]h&]jjuh1jhjFhhhjFhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjFhhhjFhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1jhjFhMhjFhhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjkGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjhGhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter an SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited(). The return value from srcu_read_lock() is guaranteed to be non-negative. This value must be passed unaltered to the matching srcu_read_unlock(). Note that srcu_read_lock() and the matching srcu_read_unlock() must occur in the same context, for example, it is illegal to invoke srcu_read_unlock() in an irq handler if the matching srcu_read_lock() was invoked in process context. Or, for that matter to invoke srcu_read_unlock() from one task and the matching srcu_read_lock() from another.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjGubj )}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjGh]hstruct srcu_struct *ssp}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjGubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubah}(h]h ]h"]h$]h&]uh1j hjGubh)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjGubh)}(hXEnter an SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited().h]hXEnter an SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited().}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjGubh)}(hXThe return value from srcu_read_lock() is guaranteed to be non-negative. This value must be passed unaltered to the matching srcu_read_unlock(). Note that srcu_read_lock() and the matching srcu_read_unlock() must occur in the same context, for example, it is illegal to invoke srcu_read_unlock() in an irq handler if the matching srcu_read_lock() was invoked in process context. Or, for that matter to invoke srcu_read_unlock() from one task and the matching srcu_read_lock() from another.h]hXThe return value from srcu_read_lock() is guaranteed to be non-negative. This value must be passed unaltered to the matching srcu_read_unlock(). Note that srcu_read_lock() and the matching srcu_read_unlock() must occur in the same context, for example, it is illegal to invoke srcu_read_unlock() in an irq handler if the matching srcu_read_lock() was invoked in process context. Or, for that matter to invoke srcu_read_unlock() from one task and the matching srcu_read_lock() from another.}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM hjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  srcu_read_lock_fast (C function)c.srcu_read_lock_fasthNtauh1hhjhhhNhNubj)}(hhh](j)}(hHstruct srcu_ctr __percpu * srcu_read_lock_fast (struct srcu_struct *ssp)h]j)}(hFstruct srcu_ctr __percpu *srcu_read_lock_fast(struct srcu_struct *ssp)h](j)}(hj h]hstruct}(hj;HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7HhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM6ubj2)}(h h]h }(hjIHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7HhhhjHHhM6ubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjZHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj\HmodnameN classnameNj] j` )}jc ]jf )}jY srcu_read_lock_fastsbc.srcu_read_lock_fastasbuh1hhj7HhhhjHHhM6ubj2)}(h h]h }(hj{HhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7HhhhjHHhM6ubh__percpu}(hj7HhhhNhNubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj7HhhhjHHhM6ubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7HhhhjHHhM6ubj{)}(hsrcu_read_lock_fasth]j)}(hjxHh]hsrcu_read_lock_fast}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj7HhhhjHHhM6ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]jvHc.srcu_read_lock_fastasbuh1hhjHubj2)}(h h]h }(hjIhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjHubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj)}(hssph]hssp}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubah}(h]h ]h"]h$]h&]jjuh1jhj7HhhhjHHhM6ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj3HhhhjHHhM6ubah}(h]j.Hah ](jjeh"]h$]h&]jj)jhuh1jhjHHhM6hj0Hhhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjHIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM6hjEIhhubah}(h]h ]h"]h$]h&]uh1jhj0HhhhjHHhM6ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`Ijj`Ijjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is NMI-safe, in a manner similar to srcu_read_lock_nmisafe(). For srcu_read_lock_fast() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST() or DEFINE_STATIC_SRCU_FAST() on the one hand or initialized with init_srcu_struct_fast() on the other. Such an srcu_struct structure cannot be passed to any non-fast variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this restriction. Grace-period auto-expediting is disabled for SRCU-fast srcu_struct structures because SRCU-fast expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast grace periods, use synchronize_srcu_expedited(). The srcu_read_lock_fast() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.h](h)}(h**Parameters**h]j)}(hjjIh]h Parameters}(hjlIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhIubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM:hjdIubj )}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjIh]hstruct srcu_struct *ssp}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM7hjIubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM7hjIubah}(h]h ]h"]h$]h&]uh1j1hjIubeh}(h]h ]h"]h$]h&]uh1jhjIhM7hjIubah}(h]h ]h"]h$]h&]uh1j hjdIubh)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM9hjdIubh)}(hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is NMI-safe, in a manner similar to srcu_read_lock_nmisafe().h]hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is NMI-safe, in a manner similar to srcu_read_lock_nmisafe().}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM8hjdIubh)}(hXFor srcu_read_lock_fast() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST() or DEFINE_STATIC_SRCU_FAST() on the one hand or initialized with init_srcu_struct_fast() on the other. Such an srcu_struct structure cannot be passed to any non-fast variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this restriction.h]hXFor srcu_read_lock_fast() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST() or DEFINE_STATIC_SRCU_FAST() on the one hand or initialized with init_srcu_struct_fast() on the other. Such an srcu_struct structure cannot be passed to any non-fast variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this restriction.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM<hjdIubh)}(hGrace-period auto-expediting is disabled for SRCU-fast srcu_struct structures because SRCU-fast expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast grace periods, use synchronize_srcu_expedited().h]hGrace-period auto-expediting is disabled for SRCU-fast srcu_struct structures because SRCU-fast expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast grace periods, use synchronize_srcu_expedited().}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMEhjdIubh)}(hThe srcu_read_lock_fast() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.h]hThe srcu_read_lock_fast() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMJhjdIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'srcu_read_lock_fast_updown (C function)c.srcu_read_lock_fast_updownhNtauh1hhjhhhNhNubj)}(hhh](j)}(hOstruct srcu_ctr __percpu * srcu_read_lock_fast_updown (struct srcu_struct *ssp)h]j)}(hMstruct srcu_ctr __percpu *srcu_read_lock_fast_updown(struct srcu_struct *ssp)h](j)}(hj h]hstruct}(hj6JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2JhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM\ubj2)}(h h]h }(hjDJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2JhhhjCJhM\ubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjUJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWJmodnameN classnameNj] j` )}jc ]jf )}jY srcu_read_lock_fast_updownsbc.srcu_read_lock_fast_updownasbuh1hhj2JhhhjCJhM\ubj2)}(h h]h }(hjvJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2JhhhjCJhM\ubh__percpu}(hj2JhhhNhNubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2JhhhjCJhM\ubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2JhhhjCJhM\ubj{)}(hsrcu_read_lock_fast_updownh]j)}(hjsJh]hsrcu_read_lock_fast_updown}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2JhhhjCJhM\ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjJmodnameN classnameNj] j` )}jc ]jqJc.srcu_read_lock_fast_updownasbuh1hhjJubj2)}(h h]h }(hjJhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjJubj)}(hjh]h*}(hj KhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hssph]hssp}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubah}(h]h ]h"]h$]h&]jjuh1jhj2JhhhjCJhM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.JhhhjCJhM\ubah}(h]j)Jah ](jjeh"]h$]h&]jj)jhuh1jhjCJhM\hj+Jhhubj)}(hhh]h)}(h8register a new reader for an SRCU-fast-updown structure.h]h8register a new reader for an SRCU-fast-updown structure.}(hjCKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM\hj@Khhubah}(h]h ]h"]h$]h&]uh1jhj+JhhhjCJhM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[Kjj[Kjjjuh1jhhhjhNhNubj)}(hX5**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is compatible with srcu_down_read_fast(), but is not NMI-safe. For srcu_read_lock_fast_updown() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST_UPDOWN() or DEFINE_STATIC_SRCU_FAST_UPDOWN() on the one hand or initialized with init_srcu_struct_fast_updown() on the other. Such an srcu_struct structure cannot be passed to any non-fast-updown variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this * restriction. Grace-period auto-expediting is disabled for SRCU-fast-updown srcu_struct structures because SRCU-fast-updown expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast-updown grace periods, use synchronize_srcu_expedited(). The srcu_read_lock_fast_updown() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.h](h)}(h**Parameters**h]j)}(hjeKh]h Parameters}(hjgKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcKubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM`hj_Kubj )}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjKh]hstruct srcu_struct *ssp}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM]hj~Kubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhM]hjKubah}(h]h ]h"]h$]h&]uh1j1hj~Kubeh}(h]h ]h"]h$]h&]uh1jhjKhM]hj{Kubah}(h]h ]h"]h$]h&]uh1j hj_Kubh)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM_hj_Kubh)}(hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is compatible with srcu_down_read_fast(), but is not NMI-safe.h]hEnter an SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock() for more information. This function is compatible with srcu_down_read_fast(), but is not NMI-safe.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM^hj_Kubh)}(hX For srcu_read_lock_fast_updown() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST_UPDOWN() or DEFINE_STATIC_SRCU_FAST_UPDOWN() on the one hand or initialized with init_srcu_struct_fast_updown() on the other. Such an srcu_struct structure cannot be passed to any non-fast-updown variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this * restriction.h]hX For srcu_read_lock_fast_updown() to be used on an srcu_struct structure, that structure must have been defined using either DEFINE_SRCU_FAST_UPDOWN() or DEFINE_STATIC_SRCU_FAST_UPDOWN() on the one hand or initialized with init_srcu_struct_fast_updown() on the other. Such an srcu_struct structure cannot be passed to any non-fast-updown variant of srcu_read_{,un}lock() or srcu_{down,up}_read(). In kernels built with CONFIG_PROVE_RCU=y, __srcu_check_read_flavor() will complain bitterly if you ignore this * restriction.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMchj_Kubh)}(hXGrace-period auto-expediting is disabled for SRCU-fast-updown srcu_struct structures because SRCU-fast-updown expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast-updown grace periods, use synchronize_srcu_expedited().h]hXGrace-period auto-expediting is disabled for SRCU-fast-updown srcu_struct structures because SRCU-fast-updown expedited grace periods invoke synchronize_rcu_expedited(), IPIs and all. If you need expedited SRCU-fast-updown grace periods, use synchronize_srcu_expedited().}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMlhj_Kubh)}(hThe srcu_read_lock_fast_updown() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.h]hThe srcu_read_lock_fast_updown() function can be invoked only from those contexts where RCU is watching, that is, from contexts where it would be legal to invoke rcu_read_lock(). Otherwise, lockdep will complain.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMqhj_Kubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  srcu_down_read_fast (C function)c.srcu_down_read_fasthNtauh1hhjhhhNhNubj)}(hhh](j)}(hHstruct srcu_ctr __percpu * srcu_down_read_fast (struct srcu_struct *ssp)h]j)}(hFstruct srcu_ctr __percpu *srcu_down_read_fast(struct srcu_struct *ssp)h](j)}(hj h]hstruct}(hj1LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-LhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMubj2)}(h h]h }(hj?LhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-Lhhhj>LhMubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjPLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjRLmodnameN classnameNj] j` )}jc ]jf )}jY srcu_down_read_fastsbc.srcu_down_read_fastasbuh1hhj-Lhhhj>LhMubj2)}(h h]h }(hjqLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-Lhhhj>LhMubh__percpu}(hj-LhhhNhNubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj-Lhhhj>LhMubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Lhhhj>LhMubj{)}(hsrcu_down_read_fasth]j)}(hjnLh]hsrcu_down_read_fast}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj-Lhhhj>LhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjLmodnameN classnameNj] j` )}jc ]jlLc.srcu_down_read_fastasbuh1hhjLubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hssph]hssp}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhj-Lhhhj>LhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj)Lhhhj>LhMubah}(h]j$Lah ](jjeh"]h$]h&]jj)jhuh1jhj>LhMhj&Lhhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hj>MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhj;Mhhubah}(h]h ]h"]h$]h&]uh1jhj&Lhhhj>LhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVMjjVMjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter a semaphore-like SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock_fast() and srcu_down_read() for more information. The same srcu_struct may be used concurrently by srcu_down_read_fast() and srcu_read_lock_fast(). However, the same definition/initialization requirements called out for srcu_read_lock_fast_updown() apply.h](h)}(h**Parameters**h]j)}(hj`Mh]h Parameters}(hjbMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^Mubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjZMubj )}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjMh]hstruct srcu_struct *ssp}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Mubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjyMubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1j1hjyMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjvMubah}(h]h ]h"]h$]h&]uh1j hjZMubh)}(h**Description**h]j)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjZMubh)}(hEnter a semaphore-like SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock_fast() and srcu_down_read() for more information.h]hEnter a semaphore-like SRCU read-side critical section, but for a light-weight smp_mb()-free reader. See srcu_read_lock_fast() and srcu_down_read() for more information.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjZMubh)}(hThe same srcu_struct may be used concurrently by srcu_down_read_fast() and srcu_read_lock_fast(). However, the same definition/initialization requirements called out for srcu_read_lock_fast_updown() apply.h]hThe same srcu_struct may be used concurrently by srcu_down_read_fast() and srcu_read_lock_fast(). However, the same definition/initialization requirements called out for srcu_read_lock_fast_updown() apply.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjZMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #srcu_read_lock_nmisafe (C function)c.srcu_read_lock_nmisafehNtauh1hhjhhhNhNubj)}(hhh](j)}(h4int srcu_read_lock_nmisafe (struct srcu_struct *ssp)h]j)}(h3int srcu_read_lock_nmisafe(struct srcu_struct *ssp)h](j )}(hinth]hint}(hjNhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj NhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj NhhhjNhMubj{)}(hsrcu_read_lock_nmisafeh]j)}(hsrcu_read_lock_nmisafeh]hsrcu_read_lock_nmisafe}(hj/NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+Nubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj NhhhjNhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjKNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGNubj2)}(h h]h }(hjXNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGNubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjiNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfNubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjkNmodnameN classnameNj] j` )}jc ]jf )}jY j1Nsbc.srcu_read_lock_nmisafeasbuh1hhjGNubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjGNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGNubj)}(hssph]hssp}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCNubah}(h]h ]h"]h$]h&]jjuh1jhj NhhhjNhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjNhhhjNhMubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jhjNhMhjNhhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjNhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhjhNhNubj)}(hXu**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter an SRCU read-side critical section, but in an NMI-safe manner. See srcu_read_lock() for more information. If srcu_read_lock_nmisafe() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after.h](h)}(h**Parameters**h]j)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjNubj )}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjOh]hstruct srcu_struct *ssp}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Oubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhj Oubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hj(OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$OhMhj%Oubah}(h]h ]h"]h$]h&]uh1j1hj Oubeh}(h]h ]h"]h$]h&]uh1jhj$OhMhjOubah}(h]h ]h"]h$]h&]uh1j hjNubh)}(h**Description**h]j)}(hjJOh]h Description}(hjLOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHOubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjNubh)}(hoEnter an SRCU read-side critical section, but in an NMI-safe manner. See srcu_read_lock() for more information.h]hoEnter an SRCU read-side critical section, but in an NMI-safe manner. See srcu_read_lock() for more information.}(hj`OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjNubh)}(hIf srcu_read_lock_nmisafe() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after.h]hIf srcu_read_lock_nmisafe() is ever used on an srcu_struct structure, then none of the other flavors may be used, whether before, during, or after.}(hjoOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j srcu_down_read (C function)c.srcu_down_readhNtauh1hhjhhhNhNubj)}(hhh](j)}(h,int srcu_down_read (struct srcu_struct *ssp)h]j)}(h+int srcu_down_read(struct srcu_struct *ssp)h](j )}(hinth]hint}(hjOhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjOhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOhhhjOhMubj{)}(hsrcu_down_readh]j)}(hsrcu_down_readh]hsrcu_down_read}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjOhhhjOhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj2)}(h h]h }(hjOhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjOmodnameN classnameNj] j` )}jc ]jf )}jY jOsbc.srcu_down_readasbuh1hhjOubj2)}(h h]h }(hjPhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOubj)}(hjh]h*}(hj'PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hssph]hssp}(hj4PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubah}(h]h ]h"]h$]h&]jjuh1jhjOhhhjOhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjOhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1jhjOhMhjOhhubj)}(hhh]h)}(h6register a new reader for an SRCU-protected structure.h]h6register a new reader for an SRCU-protected structure.}(hj^PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhj[Phhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjOhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvPjjvPjjjuh1jhhhjhNhNubj)}(hX]**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. **Description** Enter a semaphore-like SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited(). But if you want lockdep to help you keep this stuff straight, you should instead use srcu_read_lock(). The semaphore-like nature of srcu_down_read() means that the matching srcu_up_read() can be invoked from some other context, for example, from some other task or from an irq handler. However, neither srcu_down_read() nor srcu_up_read() may be invoked from an NMI handler. Calls to srcu_down_read() may be nested, similar to the manner in which calls to down_read() may be nested. The same srcu_struct may be used concurrently by srcu_down_read() and srcu_read_lock().h](h)}(h**Parameters**h]j)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Pubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjzPubj )}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct in which to register the new reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjPh]hstruct srcu_struct *ssp}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjPubj2)}(hhh]h)}(h0srcu_struct in which to register the new reader.h]h0srcu_struct in which to register the new reader.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1j1hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubah}(h]h ]h"]h$]h&]uh1j hjzPubh)}(h**Description**h]j)}(hjPh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjzPubh)}(hXEnter a semaphore-like SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited(). But if you want lockdep to help you keep this stuff straight, you should instead use srcu_read_lock().h]hXEnter a semaphore-like SRCU read-side critical section. Note that SRCU read-side critical sections may be nested. However, it is illegal to call anything that waits on an SRCU grace period for the same srcu_struct, whether directly or indirectly. Please note that one way to indirectly wait on an SRCU grace period is to acquire a mutex that is held elsewhere while calling synchronize_srcu() or synchronize_srcu_expedited(). But if you want lockdep to help you keep this stuff straight, you should instead use srcu_read_lock().}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjzPubh)}(hXThe semaphore-like nature of srcu_down_read() means that the matching srcu_up_read() can be invoked from some other context, for example, from some other task or from an irq handler. However, neither srcu_down_read() nor srcu_up_read() may be invoked from an NMI handler.h]hXThe semaphore-like nature of srcu_down_read() means that the matching srcu_up_read() can be invoked from some other context, for example, from some other task or from an irq handler. However, neither srcu_down_read() nor srcu_up_read() may be invoked from an NMI handler.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjzPubh)}(hCalls to srcu_down_read() may be nested, similar to the manner in which calls to down_read() may be nested. The same srcu_struct may be used concurrently by srcu_down_read() and srcu_read_lock().h]hCalls to srcu_down_read() may be nested, similar to the manner in which calls to down_read() may be nested. The same srcu_struct may be used concurrently by srcu_down_read() and srcu_read_lock().}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjzPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j srcu_read_unlock (C function)c.srcu_read_unlockhNtauh1hhjhhhNhNubj)}(hhh](j)}(h8void srcu_read_unlock (struct srcu_struct *ssp, int idx)h]j)}(h7void srcu_read_unlock(struct srcu_struct *ssp, int idx)h](j )}(hvoidh]hvoid}(hj=QhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj9QhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMubj2)}(h h]h }(hjLQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj9QhhhjKQhMubj{)}(hsrcu_read_unlockh]j)}(hsrcu_read_unlockh]hsrcu_read_unlock}(hj^QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj9QhhhjKQhMubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjzQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvQubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjQmodnameN classnameNj] j` )}jc ]jf )}jY j`Qsbc.srcu_read_unlockasbuh1hhjvQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvQubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvQubj)}(hssph]hssp}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrQubj)}(hint idxh](j )}(hinth]hint}(hjQhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjQubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjQubj)}(hidxh]hidx}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrQubeh}(h]h ]h"]h$]h&]jjuh1jhj9QhhhjKQhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj5QhhhjKQhMubah}(h]j0Qah ](jjeh"]h$]h&]jj)jhuh1jhjKQhMhj2Qhhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hj2RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhj/Rhhubah}(h]h ]h"]h$]h&]uh1jhj2QhhhjKQhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJRjjJRjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``int idx`` return value from corresponding srcu_read_lock(). **Description** Exit an SRCU read-side critical section.h](h)}(h**Parameters**h]j)}(hjTRh]h Parameters}(hjVRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRRubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjNRubj )}(hhh](j)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjsRh]hstruct srcu_struct *ssp}(hjuRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqRubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjmRubj2)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjRubah}(h]h ]h"]h$]h&]uh1j1hjmRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjjRubj)}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j)}(h ``int idx``h]j)}(hjRh]hint idx}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjRubj2)}(hhh]h)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjRubah}(h]h ]h"]h$]h&]uh1j1hjRubeh}(h]h ]h"]h$]h&]uh1jhjRhMhjjRubeh}(h]h ]h"]h$]h&]uh1j hjNRubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjNRubh)}(h(Exit an SRCU read-side critical section.h]h(Exit an SRCU read-side critical section.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjNRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "srcu_read_unlock_fast (C function)c.srcu_read_unlock_fasthNtauh1hhjhhhNhNubj)}(hhh](j)}(hSvoid srcu_read_unlock_fast (struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h]j)}(hRvoid srcu_read_unlock_fast(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j )}(hvoidh]hvoid}(hj,ShhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(ShhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMubj2)}(h h]h }(hj;ShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(Shhhj:ShMubj{)}(hsrcu_read_unlock_fasth]j)}(hsrcu_read_unlock_fasth]hsrcu_read_unlock_fast}(hjMShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjISubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(Shhhj:ShMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjiShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeSubj2)}(h h]h }(hjvShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeSubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSmodnameN classnameNj] j` )}jc ]jf )}jY jOSsbc.srcu_read_unlock_fastasbuh1hhjeSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeSubj)}(hssph]hssp}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaSubj)}(hstruct srcu_ctr __percpu *scph](j)}(hj h]hstruct}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj2)}(h h]h }(hjShhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjSmodnameN classnameNj] j` )}jc ]jSc.srcu_read_unlock_fastasbuh1hhjSubj2)}(h h]h }(hjThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubh__percpu}(hjShhhNhNubj2)}(h h]h }(hj)ThhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjSubj)}(hjh]h*}(hj7ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hscph]hscp}(hjDThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaSubeh}(h]h ]h"]h$]h&]jjuh1jhj(Shhhj:ShMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$Shhhj:ShMubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1jhj:ShMhj!Shhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjnThhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjkThhubah}(h]h ]h"]h$]h&]uh1jhj!Shhhj:ShMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). **Description** Exit a light-weight SRCU read-side critical section.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjTubj )}(hhh](j)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjTh]hstruct srcu_struct *ssp}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjTubj2)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjTubj)}(hY``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). h](j)}(h!``struct srcu_ctr __percpu *scp``h]j)}(hjTh]hstruct srcu_ctr __percpu *scp}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjTubj2)}(hhh]h)}(h6return value from corresponding srcu_read_lock_fast().h]h6return value from corresponding srcu_read_lock_fast().}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1j1hjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjTubeh}(h]h ]h"]h$]h&]uh1j hjTubh)}(h**Description**h]j)}(hj#Uh]h Description}(hj%UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Uubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjTubh)}(h4Exit a light-weight SRCU read-side critical section.h]h4Exit a light-weight SRCU read-side critical section.}(hj9UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )srcu_read_unlock_fast_updown (C function)c.srcu_read_unlock_fast_updownhNtauh1hhjhhhNhNubj)}(hhh](j)}(hZvoid srcu_read_unlock_fast_updown (struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h]j)}(hYvoid srcu_read_unlock_fast_updown(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j )}(hvoidh]hvoid}(hjhUhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjdUhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMubj2)}(h h]h }(hjwUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdUhhhjvUhMubj{)}(hsrcu_read_unlock_fast_updownh]j)}(hsrcu_read_unlock_fast_updownh]hsrcu_read_unlock_fast_updown}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdUhhhjvUhMubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjUmodnameN classnameNj] j` )}jc ]jf )}jY jUsbc.srcu_read_unlock_fast_updownasbuh1hhjUubj2)}(h h]h }(hjUhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hssph]hssp}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubj)}(hstruct srcu_ctr __percpu *scph](j)}(hj h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj2)}(h h]h }(hj$VhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hj5VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Vubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj7VmodnameN classnameNj] j` )}jc ]jUc.srcu_read_unlock_fast_updownasbuh1hhjVubj2)}(h h]h }(hjSVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubh__percpu}(hjVhhhNhNubj2)}(h h]h }(hjeVhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjVubj)}(hjh]h*}(hjsVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj)}(hscph]hscp}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjUubeh}(h]h ]h"]h$]h&]jjuh1jhjdUhhhjvUhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj`UhhhjvUhMubah}(h]j[Uah ](jjeh"]h$]h&]jj)jhuh1jhjvUhMhj]Uhhubj)}(hhh]h)}(h;unregister a old reader from an SRCU-fast-updown structure.h]h;unregister a old reader from an SRCU-fast-updown structure.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjVhhubah}(h]h ]h"]h$]h&]uh1jhj]UhhhjvUhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1jhhhjhNhNubj)}(hX **Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast_updown(). **Description** Exit an SRCU-fast-updown read-side critical section.h](h)}(h**Parameters**h]j)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM hjVubj )}(hhh](j)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjVh]hstruct srcu_struct *ssp}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjVubj2)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjWubah}(h]h ]h"]h$]h&]uh1j1hjVubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjVubj)}(h```struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast_updown(). h](j)}(h!``struct srcu_ctr __percpu *scp``h]j)}(hj$Wh]hstruct srcu_ctr __percpu *scp}(hj&WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Wubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMhjWubj2)}(hhh]h)}(h=return value from corresponding srcu_read_lock_fast_updown().h]h=return value from corresponding srcu_read_lock_fast_updown().}(hj=WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9WhMhj:Wubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhj9WhMhjVubeh}(h]h ]h"]h$]h&]uh1j hjVubh)}(h**Description**h]j)}(hj_Wh]h Description}(hjaWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]Wubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM hjVubh)}(h4Exit an SRCU-fast-updown read-side critical section.h]h4Exit an SRCU-fast-updown read-side critical section.}(hjuWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j srcu_up_read_fast (C function)c.srcu_up_read_fasthNtauh1hhjhhhNhNubj)}(hhh](j)}(hOvoid srcu_up_read_fast (struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h]j)}(hNvoid srcu_up_read_fast(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j )}(hvoidh]hvoid}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjWhhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM"ubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWhhhjWhM"ubj{)}(hsrcu_up_read_fasth]j)}(hsrcu_up_read_fasth]hsrcu_up_read_fast}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhhjWhM"ubj)}(h8(struct srcu_struct *ssp, struct srcu_ctr __percpu *scp)h](j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjXmodnameN classnameNj] j` )}jc ]jf )}jY jWsbc.srcu_up_read_fastasbuh1hhjWubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjWubj)}(hjh]h*}(hj-XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj)}(hssph]hssp}(hj:XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hstruct srcu_ctr __percpu *scph](j)}(hj h]hstruct}(hjSXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOXubj2)}(h h]h }(hj`XhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOXubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjqXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnXubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsXmodnameN classnameNj] j` )}jc ]jXc.srcu_up_read_fastasbuh1hhjOXubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOXubh__percpu}(hjOXhhhNhNubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjOXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOXubj)}(hscph]hscp}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjWhhhjWhM"ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjWhhhjWhM"ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1jhjWhM"hjWhhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM"hjXhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjWhM"ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1jhhhjhNhNubj)}(hXG**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``struct srcu_ctr __percpu *scp`` return value from corresponding srcu_read_lock_fast(). **Description** Exit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read_fast().h](h)}(h**Parameters**h]j)}(hjYh]h Parameters}(hj YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM&hjYubj )}(hhh](j)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj'Yh]hstruct srcu_struct *ssp}(hj)YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Yubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM#hj!Yubj2)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hj@YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjah"]h$]h&]uh1j1hjYhhhjYhM3ubj{)}(hsrcu_read_unlock_nmisafeh]j)}(hsrcu_read_unlock_nmisafeh]hsrcu_read_unlock_nmisafe}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjYhhhjYhM3ubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj2)}(h h]h }(hj*ZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj;ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8Zubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj=ZmodnameN classnameNj] j` )}jc ]jf )}jY jZsbc.srcu_read_unlock_nmisafeasbuh1hhjZubj2)}(h h]h }(hj[ZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hjh]h*}(hjiZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj)}(hssph]hssp}(hjvZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(hint idxh](j )}(hinth]hint}(hjZhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjZubj2)}(h h]h }(hjZhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZubj)}(hidxh]hidx}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhjYhhhjYhM3ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjYhhhjYhM3ubah}(h]jYah ](jjeh"]h$]h&]jj)jhuh1jhjYhM3hjYhhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM3hjZhhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjYhM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``int idx`` return value from corresponding srcu_read_lock_nmisafe(). **Description** Exit an SRCU read-side critical section, but in an NMI-safe manner.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM7hjZubj )}(hhh](j)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj[h]hstruct srcu_struct *ssp}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM4hj[ubj2)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hj/[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+[hM4hj,[ubah}(h]h ]h"]h$]h&]uh1j1hj[ubeh}(h]h ]h"]h$]h&]uh1jhj+[hM4hj [ubj)}(hF``int idx`` return value from corresponding srcu_read_lock_nmisafe(). h](j)}(h ``int idx``h]j)}(hjO[h]hint idx}(hjQ[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM[ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM5hjI[ubj2)}(hhh]h)}(h9return value from corresponding srcu_read_lock_nmisafe().h]h9return value from corresponding srcu_read_lock_nmisafe().}(hjh[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd[hM5hje[ubah}(h]h ]h"]h$]h&]uh1j1hjI[ubeh}(h]h ]h"]h$]h&]uh1jhjd[hM5hj [ubeh}(h]h ]h"]h$]h&]uh1j hjZubh)}(h**Description**h]j)}(hj[h]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM7hjZubh)}(hCExit an SRCU read-side critical section, but in an NMI-safe manner.h]hCExit an SRCU read-side critical section, but in an NMI-safe manner.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM6hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j srcu_up_read (C function)c.srcu_up_readhNtauh1hhjhhhNhNubj)}(hhh](j)}(h4void srcu_up_read (struct srcu_struct *ssp, int idx)h]j)}(h3void srcu_up_read(struct srcu_struct *ssp, int idx)h](j )}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj[hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMKubj2)}(h h]h }(hj[hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj[hhhj[hMKubj{)}(h srcu_up_readh]j)}(h srcu_up_readh]h srcu_up_read}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj[hhhj[hMKubj)}(h"(struct srcu_struct *ssp, int idx)h](j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hj \hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj*\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'\ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,\modnameN classnameNj] j` )}jc ]jf )}jY j[sbc.srcu_up_readasbuh1hhj\ubj2)}(h h]h }(hjJ\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hjX\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hssph]hssp}(hje\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubj)}(hint idxh](j )}(hinth]hint}(hj~\hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjz\ubj2)}(h h]h }(hj\hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjz\ubj)}(hidxh]hidx}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubeh}(h]h ]h"]h$]h&]jjuh1jhj[hhhj[hMKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj[hhhj[hMKubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1jhj[hMKhj[hhubj)}(hhh]h)}(h9unregister a old reader from an SRCU-protected structure.h]h9unregister a old reader from an SRCU-protected structure.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMKhj\hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj[hMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1jhhhjhNhNubj)}(hX'**Parameters** ``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. ``int idx`` return value from corresponding srcu_read_lock(). **Description** Exit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().h](h)}(h**Parameters**h]j)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMOhj\ubj )}(hhh](j)}(hO``struct srcu_struct *ssp`` srcu_struct in which to unregister the old reader. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj]h]hstruct srcu_struct *ssp}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMLhj\ubj2)}(hhh]h)}(h2srcu_struct in which to unregister the old reader.h]h2srcu_struct in which to unregister the old reader.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMLhj]ubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhj]hMLhj\ubj)}(h>``int idx`` return value from corresponding srcu_read_lock(). h](j)}(h ``int idx``h]j)}(hj>]h]hint idx}(hj@]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<]ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMMhj8]ubj2)}(hhh]h)}(h1return value from corresponding srcu_read_lock().h]h1return value from corresponding srcu_read_lock().}(hjW]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS]hMMhjT]ubah}(h]h ]h"]h$]h&]uh1j1hj8]ubeh}(h]h ]h"]h$]h&]uh1jhjS]hMMhj\ubeh}(h]h ]h"]h$]h&]uh1j hj\ubh)}(h**Description**h]j)}(hjy]h]h Description}(hj{]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw]ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMOhj\ubh)}(hsExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().h]hsExit an SRCU read-side critical section, but not necessarily from the same context as the maching srcu_down_read().}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMNhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +smp_mb__after_srcu_read_unlock (C function) c.smp_mb__after_srcu_read_unlockhNtauh1hhjhhhNhNubj)}(hhh](j)}(h*void smp_mb__after_srcu_read_unlock (void)h]j)}(h)void smp_mb__after_srcu_read_unlock(void)h](j )}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM\ubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj]hhhj]hM\ubj{)}(hsmp_mb__after_srcu_read_unlockh]j)}(hsmp_mb__after_srcu_read_unlockh]hsmp_mb__after_srcu_read_unlock}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj]hhhj]hM\ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubah}(h]h ]h"]h$]h&]jjuh1jhj]hhhj]hM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]hhhj]hM\ubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1jhj]hM\hj]hhubj)}(hhh]h)}(h+ensure full ordering after srcu_read_unlockh]h+ensure full ordering after srcu_read_unlock}(hj%^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM\hj"^hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=^jj=^jjjuh1jhhhjhNhNubj)}(hX7**Parameters** ``void`` no arguments **Description** Converts the preceding srcu_read_unlock into a two-way memory barrier. Call this after srcu_read_unlock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_unlock will appear to happen after the preceding srcu_read_unlock.h](h)}(h**Parameters**h]j)}(hjG^h]h Parameters}(hjI^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE^ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM`hjA^ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjf^h]hvoid}(hjh^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd^ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhj`^ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{^hKhj|^ubah}(h]h ]h"]h$]h&]uh1j1hj`^ubeh}(h]h ]h"]h$]h&]uh1jhj{^hKhj]^ubah}(h]h ]h"]h$]h&]uh1j hjA^ubh)}(h**Description**h]j)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjA^ubh)}(hFConverts the preceding srcu_read_unlock into a two-way memory barrier.h]hFConverts the preceding srcu_read_unlock into a two-way memory barrier.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM]hjA^ubh)}(hCall this after srcu_read_unlock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_unlock will appear to happen after the preceding srcu_read_unlock.h]hCall this after srcu_read_unlock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_unlock will appear to happen after the preceding srcu_read_unlock.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhM_hjA^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )smp_mb__after_srcu_read_lock (C function)c.smp_mb__after_srcu_read_lockhNtauh1hhjhhhNhNubj)}(hhh](j)}(h(void smp_mb__after_srcu_read_lock (void)h]j)}(h'void smp_mb__after_srcu_read_lock(void)h](j )}(hvoidh]hvoid}(hj^hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj^hhhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMjubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj^hhhj_hMjubj{)}(hsmp_mb__after_srcu_read_lockh]j)}(hsmp_mb__after_srcu_read_lockh]hsmp_mb__after_srcu_read_lock}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj^hhhj_hMjubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj2_hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj._ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj*_ubah}(h]h ]h"]h$]h&]jjuh1jhj^hhhj_hMjubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj^hhhj_hMjubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1jhj_hMjhj^hhubj)}(hhh]h)}(h)ensure full ordering after srcu_read_lockh]h)ensure full ordering after srcu_read_lock}(hj\_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMjhjY_hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj_hMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjjt_jjt_jjjuh1jhhhjhNhNubj)}(hX/**Parameters** ``void`` no arguments **Description** Converts the preceding srcu_read_lock into a two-way memory barrier. Call this after srcu_read_lock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_lock will appear to happen after the preceding srcu_read_lock.h](h)}(h**Parameters**h]j)}(hj~_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|_ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMnhjx_ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj_h]hvoid}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhj_ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKhj_ubah}(h]h ]h"]h$]h&]uh1j1hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hKhj_ubah}(h]h ]h"]h$]h&]uh1j hjx_ubh)}(h**Description**h]j)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhKhjx_ubh)}(hDConverts the preceding srcu_read_lock into a two-way memory barrier.h]hDConverts the preceding srcu_read_lock into a two-way memory barrier.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMkhjx_ubh)}(hCall this after srcu_read_lock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_lock will appear to happen after the preceding srcu_read_lock.h]hCall this after srcu_read_lock, to guarantee that all memory operations that occur after smp_mb__after_srcu_read_lock will appear to happen after the preceding srcu_read_lock.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhY/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:407: ./include/linux/srcu.hhMmhjx_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %init_srcu_struct_generic (C function)c.init_srcu_struct_generichNtauh1hhjhhhNhNubj)}(hhh](j)}(h6int init_srcu_struct_generic (struct srcu_struct *ssp)h]j)}(h5int init_srcu_struct_generic(struct srcu_struct *ssp)h](j )}(hinth]hint}(hj,`hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(`hhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM'ubj2)}(h h]h }(hj;`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(`hhhj:`hM'ubj{)}(hinit_srcu_struct_generich]j)}(hinit_srcu_struct_generich]hinit_srcu_struct_generic}(hjM`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI`ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(`hhhj:`hM'ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hji`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje`ubj2)}(h h]h }(hjv`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hje`ubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj`modnameN classnameNj] j` )}jc ]jf )}jY jO`sbc.init_srcu_struct_genericasbuh1hhje`ubj2)}(h h]h }(hj`hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hje`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje`ubj)}(hssph]hssp}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhje`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhja`ubah}(h]h ]h"]h$]h&]jjuh1jhj(`hhhj:`hM'ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$`hhhj:`hM'ubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1jhj:`hM'hj!`hhubj)}(hhh]h)}(h initialize a sleep-RCU structureh]h initialize a sleep-RCU structure}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM'hj`hhubah}(h]h ]h"]h$]h&]uh1jhj!`hhhj:`hM'ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjajjajjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` structure to initialize. **Description** Use this in place of DEFINE_SRCU() and DEFINE_STATIC_SRCU() for non-static srcu_struct structures that are to be passed to srcu_read_lock(), srcu_read_lock_nmisafe(), and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h](h)}(h**Parameters**h]j)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj aubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM+hjaubj )}(hhh]j)}(h5``struct srcu_struct *ssp`` structure to initialize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj-ah]hstruct srcu_struct *ssp}(hj/ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+aubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM(hj'aubj2)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hjFahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBahM(hjCaubah}(h]h ]h"]h$]h&]uh1j1hj'aubeh}(h]h ]h"]h$]h&]uh1jhjBahM(hj$aubah}(h]h ]h"]h$]h&]uh1j hjaubh)}(h**Description**h]j)}(hjhah]h Description}(hjjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfaubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM*hjaubh)}(hXdUse this in place of DEFINE_SRCU() and DEFINE_STATIC_SRCU() for non-static srcu_struct structures that are to be passed to srcu_read_lock(), srcu_read_lock_nmisafe(), and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h]hXdUse this in place of DEFINE_SRCU() and DEFINE_STATIC_SRCU() for non-static srcu_struct structures that are to be passed to srcu_read_lock(), srcu_read_lock_nmisafe(), and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.}(hj~ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM)hjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "init_srcu_struct_fast (C function)c.init_srcu_struct_fasthNtauh1hhjhhhNhNubj)}(hhh](j)}(h3int init_srcu_struct_fast (struct srcu_struct *ssp)h]j)}(h2int init_srcu_struct_fast(struct srcu_struct *ssp)h](j )}(hinth]hint}(hjahhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjahhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM9ubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjahhhjahM9ubj{)}(hinit_srcu_struct_fasth]j)}(hinit_srcu_struct_fasth]hinit_srcu_struct_fast}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjahhhjahM9ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj bmodnameN classnameNj] j` )}jc ]jf )}jY jasbc.init_srcu_struct_fastasbuh1hhjaubj2)}(h h]h }(hj(bhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjaubj)}(hjh]h*}(hj6bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj)}(hssph]hssp}(hjCbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubah}(h]h ]h"]h$]h&]jjuh1jhjahhhjahM9ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjahM9ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1jhjahM9hjahhubj)}(hhh]h)}(h,initialize a fast-reader sleep-RCU structureh]h,initialize a fast-reader sleep-RCU structure}(hjmbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM9hjjbhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahM9ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` structure to initialize. **Description** Use this in place of DEFINE_SRCU_FAST() and DEFINE_STATIC_SRCU_FAST() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast() and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h](h)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM=hjbubj )}(hhh]j)}(h5``struct srcu_struct *ssp`` structure to initialize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjbh]hstruct srcu_struct *ssp}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM:hjbubj2)}(hhh]h)}(hstructure to initialize.h]hstructure to initialize.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhM:hjbubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhjbhM:hjbubah}(h]h ]h"]h$]h&]uh1j hjbubh)}(h**Description**h]j)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM<hjbubh)}(hXWUse this in place of DEFINE_SRCU_FAST() and DEFINE_STATIC_SRCU_FAST() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast() and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.h]hXWUse this in place of DEFINE_SRCU_FAST() and DEFINE_STATIC_SRCU_FAST() for non-static srcu_struct structures that are to be passed to srcu_read_lock_fast() and friends. It is necessary to invoke this on a given srcu_struct before passing that srcu_struct to any other function. Each srcu_struct represents a separate domain of SRCU protection.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM;hjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )init_srcu_struct_fast_updown (C function)c.init_srcu_struct_fast_updownhNtauh1hhjhhhNhNubj)}(hhh](j)}(h:int init_srcu_struct_fast_updown (struct srcu_struct *ssp)h]j)}(h9int init_srcu_struct_fast_updown(struct srcu_struct *ssp)h](j )}(hinth]hint}(hj.chhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj*chhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMJubj2)}(h h]h }(hj=chhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj*chhhjah"]h$]h&]uh1j1hjgcubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjcmodnameN classnameNj] j` )}jc ]jf )}jY jQcsbc.init_srcu_struct_fast_updownasbuh1hhjgcubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjgcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgcubj)}(hssph]hssp}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjccubah}(h]h ]h"]h$]h&]jjuh1jhj*chhhjah"]h$]h&]uh1j1hjdhhhjdhMubj{)}(hcleanup_srcu_structh]j)}(hcleanup_srcu_structh]hcleanup_srcu_struct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjdhhhjdhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj emodnameN classnameNj] j` )}jc ]jf )}jY jdsbc.cleanup_srcu_structasbuh1hhjdubj2)}(h h]h }(hj*ehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hj8ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hssph]hssp}(hjEehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdubah}(h]h ]h"]h$]h&]jjuh1jhjdhhhjdhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjdhhhjdhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jhjdhMhjdhhubj)}(hhh]h)}(h!deconstruct a sleep-RCU structureh]h!deconstruct a sleep-RCU structure}(hjoehhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjlehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct srcu_struct *ssp`` structure to clean up. **Description** Must invoke this after you are finished using a given srcu_struct that was initialized via init_srcu_struct(), else you leak memory.h](h)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjeubj )}(hhh]j)}(h3``struct srcu_struct *ssp`` structure to clean up. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjeh]hstruct srcu_struct *ssp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjeubj2)}(hhh]h)}(hstructure to clean up.h]hstructure to clean up.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1j1hjeubeh}(h]h ]h"]h$]h&]uh1jhjehMhjeubah}(h]h ]h"]h$]h&]uh1j hjeubh)}(h**Description**h]j)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjeubh)}(hMust invoke this after you are finished using a given srcu_struct that was initialized via init_srcu_struct(), else you leak memory.h]hMust invoke this after you are finished using a given srcu_struct that was initialized via init_srcu_struct(), else you leak memory.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j call_srcu (C function) c.call_srcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hSvoid call_srcu (struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h]j)}(hRvoid call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hj0fhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,fhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hj?fhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,fhhhj>fhMubj{)}(h call_srcuh]j)}(h call_srcuh]h call_srcu}(hjQfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,fhhhj>fhMubj)}(hD(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjmfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjifubj2)}(h h]h }(hjzfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjifubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jf )}jY jSfsb c.call_srcuasbuh1hhjifubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjifubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjifubj)}(hssph]hssp}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjifubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjefubj)}(hstruct rcu_head *rhph](j)}(hj h]hstruct}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj2)}(h h]h }(hjfhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjfmodnameN classnameNj] j` )}jc ]jf c.call_srcuasbuh1hhjfubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjfubj)}(hjh]h*}(hj)ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj)}(hrhph]hrhp}(hj6ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjefubj)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hjRghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOgubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTgmodnameN classnameNj] j` )}jc ]jf c.call_srcuasbuh1hhjKgubj2)}(h h]h }(hjpghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjKgubj)}(hfunch]hfunc}(hj~ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjefubeh}(h]h ]h"]h$]h&]jjuh1jhj,fhhhj>fhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(fhhhj>fhMubah}(h]j#fah ](jjeh"]h$]h&]jj)jhuh1jhj>fhMhj%fhhubj)}(hhh]h)}(h:Queue a callback for invocation after an SRCU grace periodh]h:Queue a callback for invocation after an SRCU grace period}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjghhubah}(h]h ]h"]h$]h&]uh1jhj%fhhhj>fhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct in queue the callback ``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. ``rcu_callback_t func`` function to be invoked after the SRCU grace period **Description** The callback function will be invoked some time after a full SRCU grace period elapses, in other words after all pre-existing SRCU read-side critical sections have completed. However, the callback function might well execute concurrently with other SRCU read-side critical sections that started after call_srcu() was invoked. SRCU read-side critical sections are delimited by srcu_read_lock() and srcu_read_unlock(), and may be nested. The callback will be invoked from process context, but with bh disabled. The callback function must therefore be fast and must not block. See the description of call_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjgubj )}(hhh](j)}(h>``struct srcu_struct *ssp`` srcu_struct in queue the callback h](j)}(h``struct srcu_struct *ssp``h]j)}(hjgh]hstruct srcu_struct *ssp}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjgubj2)}(hhh]h)}(h!srcu_struct in queue the callbackh]h!srcu_struct in queue the callback}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1j1hjgubeh}(h]h ]h"]h$]h&]uh1jhjghMhjgubj)}(hN``struct rcu_head *rhp`` structure to be used for queueing the SRCU callback. h](j)}(h``struct rcu_head *rhp``h]j)}(hj"hh]hstruct rcu_head *rhp}(hj$hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjhubj2)}(hhh]h)}(h4structure to be used for queueing the SRCU callback.h]h4structure to be used for queueing the SRCU callback.}(hj;hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hhMhj8hubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhj7hhMhjgubj)}(hK``rcu_callback_t func`` function to be invoked after the SRCU grace period h](j)}(h``rcu_callback_t func``h]j)}(hj[hh]hrcu_callback_t func}(hj]hhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjUhubj2)}(hhh]h)}(h2function to be invoked after the SRCU grace periodh]h2function to be invoked after the SRCU grace period}(hjthhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphhMhjqhubah}(h]h ]h"]h$]h&]uh1j1hjUhubeh}(h]h ]h"]h$]h&]uh1jhjphhMhjgubeh}(h]h ]h"]h$]h&]uh1j hjgubh)}(h**Description**h]j)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjgubh)}(hXThe callback function will be invoked some time after a full SRCU grace period elapses, in other words after all pre-existing SRCU read-side critical sections have completed. However, the callback function might well execute concurrently with other SRCU read-side critical sections that started after call_srcu() was invoked. SRCU read-side critical sections are delimited by srcu_read_lock() and srcu_read_unlock(), and may be nested.h]hXThe callback function will be invoked some time after a full SRCU grace period elapses, in other words after all pre-existing SRCU read-side critical sections have completed. However, the callback function might well execute concurrently with other SRCU read-side critical sections that started after call_srcu() was invoked. SRCU read-side critical sections are delimited by srcu_read_lock() and srcu_read_unlock(), and may be nested.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjgubh)}(hThe callback will be invoked from process context, but with bh disabled. The callback function must therefore be fast and must not block.h]hThe callback will be invoked from process context, but with bh disabled. The callback function must therefore be fast and must not block.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjgubh)}(h^See the description of call_rcu() for more detailed information on memory ordering guarantees.h]h^See the description of call_rcu() for more detailed information on memory ordering guarantees.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'synchronize_srcu_expedited (C function)c.synchronize_srcu_expeditedhNtauh1hhjhhhNhNubj)}(hhh](j)}(h9void synchronize_srcu_expedited (struct srcu_struct *ssp)h]j)}(h8void synchronize_srcu_expedited(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hjihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhhjihMubj{)}(hsynchronize_srcu_expeditedh]j)}(hsynchronize_srcu_expeditedh]hsynchronize_srcu_expedited}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhhjihMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hj6ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2iubj2)}(h h]h }(hjCihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2iubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjTihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQiubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjVimodnameN classnameNj] j` )}jc ]jf )}jY jisbc.synchronize_srcu_expeditedasbuh1hhj2iubj2)}(h h]h }(hjtihhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2iubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2iubj)}(hssph]hssp}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.iubah}(h]h ]h"]h$]h&]jjuh1jhjhhhhjihMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhjihMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1jhjihMhjhhhubj)}(hhh]h)}(hBrute-force SRCU grace periodh]hBrute-force SRCU grace period}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjihMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1jhhhjhNhNubj)}(hXQ**Parameters** ``struct srcu_struct *ssp`` srcu_struct with which to synchronize. **Description** Wait for an SRCU grace period to elapse, but be more aggressive about spinning rather than blocking when waiting. Note that synchronize_srcu_expedited() has the same deadlock and memory-ordering properties as does synchronize_srcu().h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjiubj )}(hhh]j)}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjih]hstruct srcu_struct *ssp}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjiubj2)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjjubah}(h]h ]h"]h$]h&]uh1j1hjiubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjiubah}(h]h ]h"]h$]h&]uh1j hjiubh)}(h**Description**h]j)}(hj5jh]h Description}(hj7jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3jubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjiubh)}(hqWait for an SRCU grace period to elapse, but be more aggressive about spinning rather than blocking when waiting.h]hqWait for an SRCU grace period to elapse, but be more aggressive about spinning rather than blocking when waiting.}(hjKjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjiubh)}(hwNote that synchronize_srcu_expedited() has the same deadlock and memory-ordering properties as does synchronize_srcu().h]hwNote that synchronize_srcu_expedited() has the same deadlock and memory-ordering properties as does synchronize_srcu().}(hjZjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j synchronize_srcu (C function)c.synchronize_srcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h/void synchronize_srcu (struct srcu_struct *ssp)h]j)}(h.void synchronize_srcu(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjhhhjjhMubj{)}(hsynchronize_srcuh]j)}(hsynchronize_srcuh]hsynchronize_srcu}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhjjhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj2)}(h h]h }(hjjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]jf )}jY jjsbc.synchronize_srcuasbuh1hhjjubj2)}(h h]h }(hjkhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj)}(hssph]hssp}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubah}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjjhhhjjhMubah}(h]j|jah ](jjeh"]h$]h&]jj)jhuh1jhjjhMhj~jhhubj)}(hhh]h)}(h9wait for prior SRCU read-side critical-section completionh]h9wait for prior SRCU read-side critical-section completion}(hjIkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjFkhhubah}(h]h ]h"]h$]h&]uh1jhj~jhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjakjjakjjjuh1jhhhjhNhNubj)}(hX **Parameters** ``struct srcu_struct *ssp`` srcu_struct with which to synchronize. **Description** Wait for the count to drain to zero of both indexes. To avoid the possible starvation of synchronize_srcu(), it waits for the count of the index=!(ssp->srcu_ctrp - :c:type:`ssp->sda `->srcu_ctrs[0]) to drain to zero at first, and then flip the ->srcu_ctrp and wait for the count of the other index. Can block; must be called from process context. Note that it is illegal to call synchronize_srcu() from the corresponding SRCU read-side critical section; doing so will result in deadlock. However, it is perfectly legal to call synchronize_srcu() on one srcu_struct from some other srcu_struct's read-side critical section, as long as the resulting graph of srcu_structs is acyclic. There are memory-ordering constraints implied by synchronize_srcu(). On systems with more than one CPU, when synchronize_srcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last corresponding SRCU read-side critical section whose beginning preceded the call to synchronize_srcu(). In addition, each CPU having an SRCU read-side critical section that extends beyond the return from synchronize_srcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_srcu() and before the beginning of that SRCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel. Furthermore, if CPU A invoked synchronize_srcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_srcu(). This guarantee applies even if CPU A and CPU B are the same CPU, but again only if the system has more than one CPU. Of course, these memory-ordering guarantees apply only when synchronize_srcu(), srcu_read_lock(), and srcu_read_unlock() are passed the same srcu_struct structure. Implementation of these memory-ordering guarantees is similar to that of synchronize_rcu(). If SRCU is likely idle as determined by srcu_should_expedite(), expedite the first request. This semantic was provided by Classic SRCU, and is relied upon by its users, so TREE SRCU must also provide it. Note that detecting idleness is heuristic and subject to both false positives and negatives.h](h)}(h**Parameters**h]j)}(hjkkh]h Parameters}(hjmkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjikubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjekubj )}(hhh]j)}(hC``struct srcu_struct *ssp`` srcu_struct with which to synchronize. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjkh]hstruct srcu_struct *ssp}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjkubj2)}(hhh]h)}(h&srcu_struct with which to synchronize.h]h&srcu_struct with which to synchronize.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjkubah}(h]h ]h"]h$]h&]uh1j hjekubh)}(h**Description**h]j)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjekubh)}(hX/Wait for the count to drain to zero of both indexes. To avoid the possible starvation of synchronize_srcu(), it waits for the count of the index=!(ssp->srcu_ctrp - :c:type:`ssp->sda `->srcu_ctrs[0]) to drain to zero at first, and then flip the ->srcu_ctrp and wait for the count of the other index.h](hWait for the count to drain to zero of both indexes. To avoid the possible starvation of synchronize_srcu(), it waits for the count of the index=!(ssp->srcu_ctrp - }(hjkhhhNhNubh)}(h:c:type:`ssp->sda `h]j)}(hjkh]hssp->sda}(hjkhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjsspuh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjkubhs->srcu_ctrs[0]) to drain to zero at first, and then flip the ->srcu_ctrp and wait for the count of the other index.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjlhMhjekubh)}(h/Can block; must be called from process context.h]h/Can block; must be called from process context.}(hj lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjekubh)}(hXNNote that it is illegal to call synchronize_srcu() from the corresponding SRCU read-side critical section; doing so will result in deadlock. However, it is perfectly legal to call synchronize_srcu() on one srcu_struct from some other srcu_struct's read-side critical section, as long as the resulting graph of srcu_structs is acyclic.h]hXPNote that it is illegal to call synchronize_srcu() from the corresponding SRCU read-side critical section; doing so will result in deadlock. However, it is perfectly legal to call synchronize_srcu() on one srcu_struct from some other srcu_struct’s read-side critical section, as long as the resulting graph of srcu_structs is acyclic.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjekubh)}(hXThere are memory-ordering constraints implied by synchronize_srcu(). On systems with more than one CPU, when synchronize_srcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last corresponding SRCU read-side critical section whose beginning preceded the call to synchronize_srcu(). In addition, each CPU having an SRCU read-side critical section that extends beyond the return from synchronize_srcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_srcu() and before the beginning of that SRCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.h]hXThere are memory-ordering constraints implied by synchronize_srcu(). On systems with more than one CPU, when synchronize_srcu() returns, each CPU is guaranteed to have executed a full memory barrier since the end of its last corresponding SRCU read-side critical section whose beginning preceded the call to synchronize_srcu(). In addition, each CPU having an SRCU read-side critical section that extends beyond the return from synchronize_srcu() is guaranteed to have executed a full memory barrier after the beginning of synchronize_srcu() and before the beginning of that SRCU read-side critical section. Note that these guarantees include CPUs that are offline, idle, or executing in user mode, as well as CPUs that are executing in the kernel.}(hj+lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjekubh)}(hXJFurthermore, if CPU A invoked synchronize_srcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_srcu(). This guarantee applies even if CPU A and CPU B are the same CPU, but again only if the system has more than one CPU.h]hXJFurthermore, if CPU A invoked synchronize_srcu(), which returned to its caller on CPU B, then both CPU A and CPU B are guaranteed to have executed a full memory barrier during the execution of synchronize_srcu(). This guarantee applies even if CPU A and CPU B are the same CPU, but again only if the system has more than one CPU.}(hj:lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjekubh)}(hOf course, these memory-ordering guarantees apply only when synchronize_srcu(), srcu_read_lock(), and srcu_read_unlock() are passed the same srcu_struct structure.h]hOf course, these memory-ordering guarantees apply only when synchronize_srcu(), srcu_read_lock(), and srcu_read_unlock() are passed the same srcu_struct structure.}(hjIlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjekubh)}(h[Implementation of these memory-ordering guarantees is similar to that of synchronize_rcu().h]h[Implementation of these memory-ordering guarantees is similar to that of synchronize_rcu().}(hjXlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM hjekubh)}(hX)If SRCU is likely idle as determined by srcu_should_expedite(), expedite the first request. This semantic was provided by Classic SRCU, and is relied upon by its users, so TREE SRCU must also provide it. Note that detecting idleness is heuristic and subject to both false positives and negatives.h]hX)If SRCU is likely idle as determined by srcu_should_expedite(), expedite the first request. This semantic was provided by Classic SRCU, and is relied upon by its users, so TREE SRCU must also provide it. Note that detecting idleness is heuristic and subject to both false positives and negatives.}(hjglhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM hjekubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'get_state_synchronize_srcu (C function)c.get_state_synchronize_srcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hBunsigned long get_state_synchronize_srcu (struct srcu_struct *ssp)h]j)}(hAunsigned long get_state_synchronize_srcu(struct srcu_struct *ssp)h](j )}(hunsignedh]hunsigned}(hjlhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhjlhMubj )}(hlongh]hlong}(hjlhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhjlhMubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhjlhMubj{)}(hget_state_synchronize_srcuh]j)}(hget_state_synchronize_srcuh]hget_state_synchronize_srcu}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhjlhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj2)}(h h]h }(hjlhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj mubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmmodnameN classnameNj] j` )}jc ]jf )}jY jlsbc.get_state_synchronize_srcuasbuh1hhjlubj2)}(h h]h }(hj-mhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlubj)}(hjh]h*}(hj;mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hssph]hssp}(hjHmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjlubah}(h]h ]h"]h$]h&]jjuh1jhjlhhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjlhhhjlhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1jhjlhMhjlhhubj)}(hhh]h)}(h%Provide an end-of-grace-period cookieh]h%Provide an end-of-grace-period cookie}(hjrmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjomhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct to provide cookie for. **Description** This function returns a cookie that can be passed to poll_state_synchronize_srcu(), which will return true if a full grace period has elapsed in the meantime. It is the caller's responsibility to make sure that grace period happens, for example, by invoking call_srcu() after return from get_state_synchronize_srcu().h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM!hjmubj )}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjmh]hstruct srcu_struct *ssp}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjmubj2)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1j1hjmubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjmubah}(h]h ]h"]h$]h&]uh1j hjmubh)}(h**Description**h]j)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM hjmubh)}(hX>This function returns a cookie that can be passed to poll_state_synchronize_srcu(), which will return true if a full grace period has elapsed in the meantime. It is the caller's responsibility to make sure that grace period happens, for example, by invoking call_srcu() after return from get_state_synchronize_srcu().h]hX@This function returns a cookie that can be passed to poll_state_synchronize_srcu(), which will return true if a full grace period has elapsed in the meantime. It is the caller’s responsibility to make sure that grace period happens, for example, by invoking call_srcu() after return from get_state_synchronize_srcu().}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (start_poll_synchronize_srcu (C function)c.start_poll_synchronize_srcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hCunsigned long start_poll_synchronize_srcu (struct srcu_struct *ssp)h]j)}(hBunsigned long start_poll_synchronize_srcu(struct srcu_struct *ssp)h](j )}(hunsignedh]hunsigned}(hj3nhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/nhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM0ubj2)}(h h]h }(hjBnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/nhhhjAnhM0ubj )}(hlongh]hlong}(hjPnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj/nhhhjAnhM0ubj2)}(h h]h }(hj^nhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj/nhhhjAnhM0ubj{)}(hstart_poll_synchronize_srcuh]j)}(hstart_poll_synchronize_srcuh]hstart_poll_synchronize_srcu}(hjpnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlnubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj/nhhhjAnhM0ubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjnmodnameN classnameNj] j` )}jc ]jf )}jY jrnsbc.start_poll_synchronize_srcuasbuh1hhjnubj2)}(h h]h }(hjnhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hssph]hssp}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubah}(h]h ]h"]h$]h&]jjuh1jhj/nhhhjAnhM0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj+nhhhjAnhM0ubah}(h]j&nah ](jjeh"]h$]h&]jj)jhuh1jhjAnhM0hj(nhhubj)}(hhh]h)}(h%Provide cookie and start grace periodh]h%Provide cookie and start grace period}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM0hj ohhubah}(h]h ]h"]h$]h&]uh1jhj(nhhhjAnhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'ojj'ojjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct to provide cookie for. **Description** This function returns a cookie that can be passed to poll_state_synchronize_srcu(), which will return true if a full grace period has elapsed in the meantime. Unlike get_state_synchronize_srcu(), this function also ensures that any needed SRCU grace period will be started. This convenience does come at a cost in terms of CPU overhead.h](h)}(h**Parameters**h]j)}(hj1oh]h Parameters}(hj3ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/oubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM4hj+oubj )}(hhh]j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjPoh]hstruct srcu_struct *ssp}(hjRohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNoubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM1hjJoubj2)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hjiohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeohM1hjfoubah}(h]h ]h"]h$]h&]uh1j1hjJoubeh}(h]h ]h"]h$]h&]uh1jhjeohM1hjGoubah}(h]h ]h"]h$]h&]uh1j hj+oubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM3hj+oubh)}(hXRThis function returns a cookie that can be passed to poll_state_synchronize_srcu(), which will return true if a full grace period has elapsed in the meantime. Unlike get_state_synchronize_srcu(), this function also ensures that any needed SRCU grace period will be started. This convenience does come at a cost in terms of CPU overhead.h]hXRThis function returns a cookie that can be passed to poll_state_synchronize_srcu(), which will return true if a full grace period has elapsed in the meantime. Unlike get_state_synchronize_srcu(), this function also ensures that any needed SRCU grace period will be started. This convenience does come at a cost in terms of CPU overhead.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM2hj+oubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (poll_state_synchronize_srcu (C function)c.poll_state_synchronize_srcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hPbool poll_state_synchronize_srcu (struct srcu_struct *ssp, unsigned long cookie)h]j)}(hObool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)h](j )}(hj8h]hbool}(hjohhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjohhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM@ubj2)}(h h]h }(hjohhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjohhhjohM@ubj{)}(hpoll_state_synchronize_srcuh]j)}(hpoll_state_synchronize_srcuh]hpoll_state_synchronize_srcu}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjohhhjohM@ubj)}(h/(struct srcu_struct *ssp, unsigned long cookie)h](j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hj phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj*phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'pubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj,pmodnameN classnameNj] j` )}jc ]jf )}jY josbc.poll_state_synchronize_srcuasbuh1hhjpubj2)}(h h]h }(hjJphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjpubj)}(hjh]h*}(hjXphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj)}(hssph]hssp}(hjephhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubj)}(hunsigned long cookieh](j )}(hunsignedh]hunsigned}(hj~phhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzpubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzpubj )}(hlongh]hlong}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjzpubj2)}(h h]h }(hjphhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjzpubj)}(hcookieh]hcookie}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzpubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjpubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjohM@ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjohhhjohM@ubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1jhjohM@hjohhubj)}(hhh]h)}(h Has cookie's grace period ended?h]h"Has cookie’s grace period ended?}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chM@hjphhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct to provide cookie for. ``unsigned long cookie`` Return value from get_state_synchronize_srcu() or start_poll_synchronize_srcu(). **Description** This function takes the cookie that was returned from either get_state_synchronize_srcu() or start_poll_synchronize_srcu(), and returns **true** if an SRCU grace period elapsed since the time that the cookie was created. Because cookies are finite in size, wrapping/overflow is possible. This is more pronounced on 32-bit systems where cookies are 32 bits, where in theory wrapping could happen in about 14 hours assuming 25-microsecond expedited SRCU grace periods. However, a more likely overflow lower bound is on the order of 24 days in the case of one-millisecond SRCU grace periods. Of course, wrapping in a 64-bit system requires geologic timespans, as in more than seven million years even for expedited SRCU grace periods. Wrapping/overflow is much more of an issue for CONFIG_SMP=n systems that also have CONFIG_PREEMPTION=n, which selects Tiny SRCU. This uses a 16-bit cookie, which rcutorture routinely wraps in a matter of a few minutes. If this proves to be a problem, this counter will be expanded to the same size as for Tree SRCU.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMDhjpubj )}(hhh](j)}(h?``struct srcu_struct *ssp`` srcu_struct to provide cookie for. h](j)}(h``struct srcu_struct *ssp``h]j)}(hj!qh]hstruct srcu_struct *ssp}(hj#qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMAhjqubj2)}(hhh]h)}(h"srcu_struct to provide cookie for.h]h"srcu_struct to provide cookie for.}(hj:qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6qhMAhj7qubah}(h]h ]h"]h$]h&]uh1j1hjqubeh}(h]h ]h"]h$]h&]uh1jhj6qhMAhjqubj)}(hj``unsigned long cookie`` Return value from get_state_synchronize_srcu() or start_poll_synchronize_srcu(). h](j)}(h``unsigned long cookie``h]j)}(hjZqh]hunsigned long cookie}(hj\qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXqubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMBhjTqubj2)}(hhh]h)}(hPReturn value from get_state_synchronize_srcu() or start_poll_synchronize_srcu().h]hPReturn value from get_state_synchronize_srcu() or start_poll_synchronize_srcu().}(hjsqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoqhMBhjpqubah}(h]h ]h"]h$]h&]uh1j1hjTqubeh}(h]h ]h"]h$]h&]uh1jhjoqhMBhjqubeh}(h]h ]h"]h$]h&]uh1j hjpubh)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMDhjpubh)}(hThis function takes the cookie that was returned from either get_state_synchronize_srcu() or start_poll_synchronize_srcu(), and returns **true** if an SRCU grace period elapsed since the time that the cookie was created.h](hThis function takes the cookie that was returned from either get_state_synchronize_srcu() or start_poll_synchronize_srcu(), and returns }(hjqhhhNhNubj)}(h**true**h]htrue}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubhL if an SRCU grace period elapsed since the time that the cookie was created.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMChjpubh)}(hXBecause cookies are finite in size, wrapping/overflow is possible. This is more pronounced on 32-bit systems where cookies are 32 bits, where in theory wrapping could happen in about 14 hours assuming 25-microsecond expedited SRCU grace periods. However, a more likely overflow lower bound is on the order of 24 days in the case of one-millisecond SRCU grace periods. Of course, wrapping in a 64-bit system requires geologic timespans, as in more than seven million years even for expedited SRCU grace periods.h]hXBecause cookies are finite in size, wrapping/overflow is possible. This is more pronounced on 32-bit systems where cookies are 32 bits, where in theory wrapping could happen in about 14 hours assuming 25-microsecond expedited SRCU grace periods. However, a more likely overflow lower bound is on the order of 24 days in the case of one-millisecond SRCU grace periods. Of course, wrapping in a 64-bit system requires geologic timespans, as in more than seven million years even for expedited SRCU grace periods.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMHhjpubh)}(hX=Wrapping/overflow is much more of an issue for CONFIG_SMP=n systems that also have CONFIG_PREEMPTION=n, which selects Tiny SRCU. This uses a 16-bit cookie, which rcutorture routinely wraps in a matter of a few minutes. If this proves to be a problem, this counter will be expanded to the same size as for Tree SRCU.h]hX=Wrapping/overflow is much more of an issue for CONFIG_SMP=n systems that also have CONFIG_PREEMPTION=n, which selects Tiny SRCU. This uses a 16-bit cookie, which rcutorture routinely wraps in a matter of a few minutes. If this proves to be a problem, this counter will be expanded to the same size as for Tree SRCU.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMQhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j srcu_barrier (C function)c.srcu_barrierhNtauh1hhjhhhNhNubj)}(hhh](j)}(h+void srcu_barrier (struct srcu_struct *ssp)h]j)}(h*void srcu_barrier(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hj rhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjrhhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjrhhhjrhMubj{)}(h srcu_barrierh]j)}(h srcu_barrierh]h srcu_barrier}(hj+rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'rubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjrhhhjrhMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjGrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCrubj2)}(h h]h }(hjTrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCrubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjerhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbrubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjgrmodnameN classnameNj] j` )}jc ]jf )}jY j-rsbc.srcu_barrierasbuh1hhjCrubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjCrubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCrubj)}(hssph]hssp}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?rubah}(h]h ]h"]h$]h&]jjuh1jhjrhhhjrhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjrhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1jhjrhMhjqhhubj)}(hhh]h)}(h8Wait until all in-flight call_srcu() callbacks complete.h]h8Wait until all in-flight call_srcu() callbacks complete.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjrhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1jhhhjhNhNubj)}(hc**Parameters** ``struct srcu_struct *ssp`` srcu_struct on which to wait for in-flight callbacks.h](h)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjrubj )}(hhh]j)}(hQ``struct srcu_struct *ssp`` srcu_struct on which to wait for in-flight callbacks.h](j)}(h``struct srcu_struct *ssp``h]j)}(hj sh]hstruct srcu_struct *ssp}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj subah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjsubj2)}(hhh]h)}(h5srcu_struct on which to wait for in-flight callbacks.h]h5srcu_struct on which to wait for in-flight callbacks.}(hj$shhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhj!subah}(h]h ]h"]h$]h&]uh1j1hjsubeh}(h]h ]h"]h$]h&]uh1jhj shMhjsubah}(h]h ]h"]h$]h&]uh1j hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "srcu_expedite_current (C function)c.srcu_expedite_currenthNtauh1hhjhhhNhNubj)}(hhh](j)}(h4void srcu_expedite_current (struct srcu_struct *ssp)h]j)}(h3void srcu_expedite_current(struct srcu_struct *ssp)h](j )}(hvoidh]hvoid}(hjeshhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjashhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hjtshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjashhhjsshMubj{)}(hsrcu_expedite_currenth]j)}(hsrcu_expedite_currenth]hsrcu_expedite_current}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjashhhjsshMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjsmodnameN classnameNj] j` )}jc ]jf )}jY jssbc.srcu_expedite_currentasbuh1hhjsubj2)}(h h]h }(hjshhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj)}(hssph]hssp}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubah}(h]h ]h"]h$]h&]jjuh1jhjashhhjsshMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj]shhhjsshMubah}(h]jXsah ](jjeh"]h$]h&]jj)jhuh1jhjsshMhjZshhubj)}(hhh]h)}(h&Expedite the current SRCU grace periodh]h&Expedite the current SRCU grace period}(hj%thhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhj"thhubah}(h]h ]h"]h$]h&]uh1jhjZshhhjsshMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=tjj=tjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_struct *ssp`` srcu_struct to expedite. **Description** Cause the current SRCU grace period to become expedited. The grace period following the current one might also be expedited. If there is no current grace period, one might be created. If the current grace period is currently sleeping, that sleep will complete before expediting will take effect.h](h)}(h**Parameters**h]j)}(hjGth]h Parameters}(hjIthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEtubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjAtubj )}(hhh]j)}(h5``struct srcu_struct *ssp`` srcu_struct to expedite. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjfth]hstruct srcu_struct *ssp}(hjhthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdtubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhj`tubj2)}(hhh]h)}(hsrcu_struct to expedite.h]hsrcu_struct to expedite.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{thMhj|tubah}(h]h ]h"]h$]h&]uh1j1hj`tubeh}(h]h ]h"]h$]h&]uh1jhj{thMhj]tubah}(h]h ]h"]h$]h&]uh1j hjAtubh)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjAtubh)}(hX*Cause the current SRCU grace period to become expedited. The grace period following the current one might also be expedited. If there is no current grace period, one might be created. If the current grace period is currently sleeping, that sleep will complete before expediting will take effect.h]hX*Cause the current SRCU grace period to become expedited. The grace period following the current one might also be expedited. If there is no current grace period, one might be created. If the current grace period is currently sleeping, that sleep will complete before expediting will take effect.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjAtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #srcu_batches_completed (C function)c.srcu_batches_completedhNtauh1hhjhhhNhNubj)}(hhh](j)}(h>unsigned long srcu_batches_completed (struct srcu_struct *ssp)h]j)}(h=unsigned long srcu_batches_completed(struct srcu_struct *ssp)h](j )}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjthhhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMubj2)}(h h]h }(hjthhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjthhhjthMubj )}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjthhhjthMubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjthhhjthMubj{)}(hsrcu_batches_completedh]j)}(hsrcu_batches_completedh]hsrcu_batches_completed}(hj#uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjthhhjthMubj)}(h(struct srcu_struct *ssp)h]j)}(hstruct srcu_struct *ssph](j)}(hj h]hstruct}(hj?uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;uubj2)}(h h]h }(hjLuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;uubh)}(hhh]j)}(h srcu_structh]h srcu_struct}(hj]uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZuubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj_umodnameN classnameNj] j` )}jc ]jf )}jY j%usbc.srcu_batches_completedasbuh1hhj;uubj2)}(h h]h }(hj}uhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj;uubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;uubj)}(hssph]hssp}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;uubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7uubah}(h]h ]h"]h$]h&]jjuh1jhjthhhjthMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjthhhjthMubah}(h]jtah ](jjeh"]h$]h&]jj)jhuh1jhjthMhjthhubj)}(hhh]h)}(hreturn batches completed.h]hreturn batches completed.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjuhhubah}(h]h ]h"]h$]h&]uh1jhjthhhjthMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct srcu_struct *ssp`` srcu_struct on which to report batch completion. **Description** Report the number of batches, correlated with, but not necessarily precisely the same as, the number of grace periods that have elapsed.h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjuubj )}(hhh]j)}(hM``struct srcu_struct *ssp`` srcu_struct on which to report batch completion. h](j)}(h``struct srcu_struct *ssp``h]j)}(hjvh]hstruct srcu_struct *ssp}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:409: ./kernel/rcu/srcutree.chMhjuubj2)}(hhh]h)}(h0srcu_struct on which to report batch completion.h]h0srcu_struct on which to report batch completion.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjvubah}(h]h ]h"]h$]h&]uh1j1hjuubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjuubah}(h]h ]h"]h$]h&]uh1j hjuubh)}(h**Description**h]j)}(hj>vh]h Description}(hj@vhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjah"]h$]h&]uh1j1hjvhhhjvhK&ubj{)}(hhlist_bl_del_rcuh]j)}(hhlist_bl_del_rcuh]hhlist_bl_del_rcu}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjvhK&ubj)}(h(struct hlist_bl_node *n)h]j)}(hstruct hlist_bl_node *nh](j)}(hj h]hstruct}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubh)}(hhh]j)}(h hlist_bl_nodeh]h hlist_bl_node}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjvmodnameN classnameNj] j` )}jc ]jf )}jY jvsbc.hlist_bl_del_rcuasbuh1hhjvubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]h*}(hj whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hjh]hn}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubah}(h]h ]h"]h$]h&]jjuh1jhjvhhhjvhK&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj{vhhhjvhK&ubah}(h]jvvah ](jjeh"]h$]h&]jj)jhuh1jhjvhK&hjxvhhubj)}(hhh]h)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hjBwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhK&hj?whhubah}(h]h ]h"]h$]h&]uh1jhjxvhhhjvhK&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZwjjZwjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_bl_node *n`` the element to delete from the hash list. **Note** hlist_bl_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry().h](h)}(h**Parameters**h]j)}(hjdwh]h Parameters}(hjfwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbwubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhK*hj^wubj )}(hhh]j)}(hF``struct hlist_bl_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_bl_node *n``h]j)}(hjwh]hstruct hlist_bl_node *n}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhK'hj}wubj2)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhK'hjwubah}(h]h ]h"]h$]h&]uh1j1hj}wubeh}(h]h ]h"]h$]h&]uh1jhjwhK'hjzwubah}(h]h ]h"]h$]h&]uh1j hj^wubh)}(h**Note**h]j)}(hjwh]hNote}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhK)hj^wubh)}(hhlist_bl_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.h]hhlist_bl_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhK)hj^wubh)}(huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.h]huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhK-hj^wubh)}(hXbThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry().h]hXbThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry().}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhK0hj^wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "hlist_bl_add_head_rcu (C function)c.hlist_bl_add_head_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hMvoid hlist_bl_add_head_rcu (struct hlist_bl_node *n, struct hlist_bl_head *h)h]j)}(hLvoid hlist_bl_add_head_rcu(struct hlist_bl_node *n, struct hlist_bl_head *h)h](j )}(hvoidh]hvoid}(hj!xhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjxhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhK?ubj2)}(h h]h }(hj0xhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxhhhj/xhK?ubj{)}(hhlist_bl_add_head_rcuh]j)}(hhlist_bl_add_head_rcuh]hhlist_bl_add_head_rcu}(hjBxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>xubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjxhhhj/xhK?ubj)}(h2(struct hlist_bl_node *n, struct hlist_bl_head *h)h](j)}(hstruct hlist_bl_node *nh](j)}(hj h]hstruct}(hj^xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZxubj2)}(h h]h }(hjkxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZxubh)}(hhh]j)}(h hlist_bl_nodeh]h hlist_bl_node}(hj|xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyxubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj~xmodnameN classnameNj] j` )}jc ]jf )}jY jDxsbc.hlist_bl_add_head_rcuasbuh1hhjZxubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjZxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZxubj)}(hjh]hn}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVxubj)}(hstruct hlist_bl_head *hh](j)}(hj h]hstruct}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubh)}(hhh]j)}(h hlist_bl_headh]h hlist_bl_head}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjxmodnameN classnameNj] j` )}jc ]jxc.hlist_bl_add_head_rcuasbuh1hhjxubj2)}(h h]h }(hj yhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjxubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj)}(hhh]hh}(hj&yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVxubeh}(h]h ]h"]h$]h&]jjuh1jhjxhhhj/xhK?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjxhhhj/xhK?ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1jhj/xhK?hjxhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjxhhhj/xhK?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjYyjjYyjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_bl_node *n`` the element to add to the hash list. ``struct hlist_bl_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist_bl, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjcyh]h Parameters}(hjeyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjayubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKChj]yubj )}(hhh](j)}(hA``struct hlist_bl_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_bl_node *n``h]j)}(hjyh]hstruct hlist_bl_node *n}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhK@hj|yubj2)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhK@hjyubah}(h]h ]h"]h$]h&]uh1j1hj|yubeh}(h]h ]h"]h$]h&]uh1jhjyhK@hjyyubj)}(h0``struct hlist_bl_head *h`` the list to add to. h](j)}(h``struct hlist_bl_head *h``h]j)}(hjyh]hstruct hlist_bl_head *h}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKAhjyubj2)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKAhjyubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjyhKAhjyyubeh}(h]h ]h"]h$]h&]uh1j hj]yubh)}(h**Description**h]j)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKChj]yubh)}(hYAdds the specified element to the specified hlist_bl, while permitting racing traversals.h]hYAdds the specified element to the specified hlist_bl, while permitting racing traversals.}(hj zhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKChj]yubh)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_bl_add_head_rcu() or hlist_bl_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_bl_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKFhj]yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %hlist_bl_for_each_entry_rcu (C macro)c.hlist_bl_for_each_entry_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hhlist_bl_for_each_entry_rcuh]j)}(hhlist_bl_for_each_entry_rcuh]j{)}(hhlist_bl_for_each_entry_rcuh]j)}(hjDzh]hhlist_bl_for_each_entry_rcu}(hjNzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJzubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFzhhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKbubah}(h]h ]h"]h$]h&]jjjuh1jjjhjBzhhhjazhKbubah}(h]j=zah ](jjeh"]h$]h&]jj)jhuh1jhjazhKbhj?zhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj?zhhhjazhKbubeh}(h]h ](jmacroeh"]h$]h&]jjjjzzjjzzjjjuh1jhhhjhNhNubh)}(h9``hlist_bl_for_each_entry_rcu (tpos, pos, head, member)``h]j)}(hjzh]h5hlist_bl_for_each_entry_rcu (tpos, pos, head, member)}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~zubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKdhjhhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKbhjzubah}(h]h ]h"]h$]h&]uh1jhjzhKbhjhhubj)}(h**Parameters** ``tpos`` the type * to use as a loop cursor. ``pos`` the :c:type:`struct hlist_bl_node ` to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_bl_node within the struct.h](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKfhjzubj )}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjzh]htpos}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKchjzubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKchjzubah}(h]h ]h"]h$]h&]uh1j1hjzubeh}(h]h ]h"]h$]h&]uh1jhjzhKchjzubj)}(hT``pos`` the :c:type:`struct hlist_bl_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj {h]hpos}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj {ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKdhj{ubj2)}(hhh]h)}(hKthe :c:type:`struct hlist_bl_node ` to use as a loop cursor.h](hthe }(hj&{hhhNhNubh)}(h.:c:type:`struct hlist_bl_node `h]j)}(hj0{h]hstruct hlist_bl_node}(hj2{hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj.{ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jj hlist_bl_nodeuh1hhj"{hKdhj&{ubh to use as a loop cursor.}(hj&{hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj"{hKdhj#{ubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhj"{hKdhjzubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hji{h]hhead}(hjk{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg{ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKehjc{ubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~{hKehj{ubah}(h]h ]h"]h$]h&]uh1j1hjc{ubeh}(h]h ]h"]h$]h&]uh1jhj~{hKehjzubj)}(h;``member`` the name of the hlist_bl_node within the struct.h](j)}(h ``member``h]j)}(hj{h]hmember}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKghj{ubj2)}(hhh]h)}(h0the name of the hlist_bl_node within the struct.h]h0the name of the hlist_bl_node within the struct.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKfhj{ubah}(h]h ]h"]h$]h&]uh1j1hj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hKghjzubeh}(h]h ]h"]h$]h&]uh1j hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .hlist_bl_for_each_entry_continue_rcu (C macro)&c.hlist_bl_for_each_entry_continue_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h$hlist_bl_for_each_entry_continue_rcuh]j)}(h$hlist_bl_for_each_entry_continue_rcuh]j{)}(h$hlist_bl_for_each_entry_continue_rcuh]j)}(hj{h]h$hlist_bl_for_each_entry_continue_rcu}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj{hhh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKpubah}(h]h ]h"]h$]h&]jjjuh1jjjhj{hhhj|hKpubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1jhj|hKphj{hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj{hhhj|hKpubeh}(h]h ](jmacroeh"]h$]h&]jjjj,|jj,|jjjuh1jhhhjhNhNubh)}(h<``hlist_bl_for_each_entry_continue_rcu (tpos, pos, member)``h]j)}(hj2|h]h8hlist_bl_for_each_entry_continue_rcu (tpos, pos, member)}(hj4|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0|ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKrhjhhubj)}(h+continue iteration over list of given type h]h)}(h*continue iteration over list of given typeh]h*continue iteration over list of given type}(hjL|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKphjH|ubah}(h]h ]h"]h$]h&]uh1jhjZ|hKphjhhubj)}(hX~**Parameters** ``tpos`` the type * to use as a loop cursor. ``pos`` the :c:type:`struct hlist_bl_node ` to use as a loop cursor. ``member`` the name of the hlist_bl_node within the struct. **Description** Continue to iterate over list of given type, continuing after the current position which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list.h](h)}(h**Parameters**h]j)}(hjg|h]h Parameters}(hji|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje|ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKthja|ubj )}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hj|h]htpos}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKrhj|ubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKrhj|ubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hKrhj}|ubj)}(hT``pos`` the :c:type:`struct hlist_bl_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj|h]hpos}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKshj|ubj2)}(hhh]h)}(hKthe :c:type:`struct hlist_bl_node ` to use as a loop cursor.h](hthe }(hj|hhhNhNubh)}(h.:c:type:`struct hlist_bl_node `h]j)}(hj|h]hstruct hlist_bl_node}(hj|hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jj hlist_bl_nodeuh1hhj|hKshj|ubh to use as a loop cursor.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj|hKshj|ubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hKshj}|ubj)}(h<``member`` the name of the hlist_bl_node within the struct. h](j)}(h ``member``h]j)}(hj}h]hmember}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKthj}ubj2)}(hhh]h)}(h0the name of the hlist_bl_node within the struct.h]h0the name of the hlist_bl_node within the struct.}(hj4}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0}hKthj1}ubah}(h]h ]h"]h$]h&]uh1j1hj}ubeh}(h]h ]h"]h$]h&]uh1jhj0}hKthj}|ubeh}(h]h ]h"]h$]h&]uh1j hja|ubh)}(h**Description**h]j)}(hjV}h]h Description}(hjX}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT}ubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKvhja|ubh)}(hXContinue to iterate over list of given type, continuing after the current position which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list.h](hXContinue to iterate over list of given type, continuing after the current position which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive }(hjl}hhhNhNubjp)}(h*and*h]hand}(hjt}hhhNhNubah}(h]h ]h"]h$]h&]uh1johjl}ubh in the list.}(hjl}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:411: ./include/linux/rculist_bl.hhKuhja|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_for_each_rcu (C macro)c.list_for_each_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hlist_for_each_rcuh]j)}(hlist_for_each_rcuh]j{)}(hlist_for_each_rcuh]j)}(hj}h]hlist_for_each_rcu}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj}hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhK.ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj}hhhj}hK.ubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1jhj}hK.hj}hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj}hhhj}hK.ubeh}(h]h ](jmacroeh"]h$]h&]jjjj}jj}jjjuh1jhhhjhNhNubh)}(h!``list_for_each_rcu (pos, head)``h]j)}(hj}h]hlist_for_each_rcu (pos, head)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhK0hjhhubj)}(h+Iterate over a list in an RCU-safe fashion h]h)}(h*Iterate over a list in an RCU-safe fashionh]h*Iterate over a list in an RCU-safe fashion}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhK.hj}ubah}(h]h ]h"]h$]h&]uh1jhj ~hK.hjhhubj)}(h**Parameters** ``pos`` the :c:type:`struct list_head ` to use as a loop cursor. ``head`` the head for your list.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhK2hj~ubj )}(hhh](j)}(hL``pos`` the :c:type:`struct list_head ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj7~h]hpos}(hj9~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhK/hj1~ubj2)}(hhh]h)}(hCthe :c:type:`struct list_head ` to use as a loop cursor.h](hthe }(hjP~hhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjZ~h]hstruct list_head}(hj\~hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjX~ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jj list_headuh1hhjL~hK/hjP~ubh to use as a loop cursor.}(hjP~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjL~hK/hjM~ubah}(h]h ]h"]h$]h&]uh1j1hj1~ubeh}(h]h ]h"]h$]h&]uh1jhjL~hK/hj.~ubj)}(h ``head`` the head for your list.h](j)}(h``head``h]j)}(hj~h]hhead}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhK1hj~ubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhK0hj~ubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hK1hj.~ubeh}(h]h ]h"]h$]h&]uh1j hj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_tail_rcu (C macro)c.list_tail_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h list_tail_rcuh]j)}(h list_tail_rcuh]j{)}(h list_tail_rcuh]j)}(hj~h]h list_tail_rcu}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj~hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhK8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhj~hhhjhK8ubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1jhjhK8hj~hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj~hhhjhK8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``list_tail_rcu (head)``h]j)}(hj#h]hlist_tail_rcu (head)}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhK:hjhhubj)}(h1returns the prev pointer of the head of the list h]h)}(h0returns the prev pointer of the head of the listh]h0returns the prev pointer of the head of the list}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhK8hj9ubah}(h]h ]h"]h$]h&]uh1jhjKhK8hjhhubj)}(h**Parameters** ``head`` the head of the list **Note** This should only be used with the list header, and even then only if list_del() and similar primitives are not also used on the list header.h](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKah"]h$]h&]uh1j1hjhhhjhKnubj{)}(h list_add_rcuh]j)}(h list_add_rcuh]h list_add_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKnubj)}(h/(struct list_head *new, struct list_head *head)h](j)}(hstruct list_head *newh](j)}(hj h]hstruct}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj2)}(h h]h }(hjAhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubh)}(hhh]j)}(h list_headh]h list_head}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjTmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.list_add_rcuasbuh1hhj0ubj2)}(h h]h }(hjrhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hstruct list_head *headh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h list_headh]h list_head}(hjĀhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjƀmodnameN classnameNj] j` )}jc ]jnc.list_add_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKnubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKnubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKnhjhhubj)}(hhh]h)}(h%add a new entry to rcu-protected listh]h%add a new entry to rcu-protected list}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKnhj$hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKnubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1jhhhjhNhNubj)}(hX5**Parameters** ``struct list_head *new`` new entry to be added ``struct list_head *head`` list head to add it after **Description** Insert a new entry after the specified head. This is good for implementing stacks. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKrhjCubj )}(hhh](j)}(h0``struct list_head *new`` new entry to be added h](j)}(h``struct list_head *new``h]j)}(hjhh]hstruct list_head *new}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKohjbubj2)}(hhh]h)}(hnew entry to be addedh]hnew entry to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKohj~ubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKohj_ubj)}(h5``struct list_head *head`` list head to add it after h](j)}(h``struct list_head *head``h]j)}(hjh]hstruct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKphjubj2)}(hhh]h)}(hlist head to add it afterh]hlist head to add it after}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKphjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKphj_ubeh}(h]h ]h"]h$]h&]uh1j hjCubh)}(h**Description**h]j)}(hj܁h]h Description}(hjށhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjځubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKrhjCubh)}(hRInsert a new entry after the specified head. This is good for implementing stacks.h]hRInsert a new entry after the specified head. This is good for implementing stacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKqhjCubh)}(hXUThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hXUThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKthjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_add_tail_rcu (C function)c.list_add_tail_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hFvoid list_add_tail_rcu (struct list_head *new, struct list_head *head)h]j)}(hEvoid list_add_tail_rcu(struct list_head *new, struct list_head *head)h](j )}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj,hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKubj2)}(h h]h }(hj?hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj,hhhj>hKubj{)}(hlist_add_tail_rcuh]j)}(hlist_add_tail_rcuh]hlist_add_tail_rcu}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj,hhhj>hKubj)}(h/(struct list_head *new, struct list_head *head)h](j)}(hstruct list_head *newh](j)}(hj h]hstruct}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj2)}(h h]h }(hjzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jSsbc.list_add_tail_rcuasbuh1hhjiubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hnewh]hnew}(hjƂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hstruct list_head *headh](j)}(hj h]hstruct}(hj߂hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۂubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjۂubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.list_add_tail_rcuasbuh1hhjۂubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjۂubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۂubj)}(hheadh]hhead}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۂubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj(hhhj>hKubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1jhj>hKhj%hhubj)}(hhh]h)}(h%add a new entry to rcu-protected listh]h%add a new entry to rcu-protected list}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj]hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1jhhhjhNhNubj)}(hX>**Parameters** ``struct list_head *new`` new entry to be added ``struct list_head *head`` list head to add it before **Description** Insert a new entry before the specified head. This is useful for implementing queues. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_tail_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj|ubj )}(hhh](j)}(h0``struct list_head *new`` new entry to be added h](j)}(h``struct list_head *new``h]j)}(hjh]hstruct list_head *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubj2)}(hhh]h)}(hnew entry to be addedh]hnew entry to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h6``struct list_head *head`` list head to add it before h](j)}(h``struct list_head *head``h]j)}(hjڃh]hstruct list_head *head}(hj܃hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj؃ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjԃubj2)}(hhh]h)}(hlist head to add it beforeh]hlist head to add it before}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjԃubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hj|ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj|ubh)}(hUInsert a new entry before the specified head. This is useful for implementing queues.h]hUInsert a new entry before the specified head. This is useful for implementing queues.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj|ubh)}(hXZThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_tail_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hXZThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_add_tail_rcu() or list_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_del_rcu (C function)c.list_del_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h+void list_del_rcu (struct list_head *entry)h]j)}(h*void list_del_rcu(struct list_head *entry)h](j )}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjehhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKubj2)}(h h]h }(hjxhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjehhhjwhKubj{)}(h list_del_rcuh]j)}(h list_del_rcuh]h list_del_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjehhhjwhKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h list_headh]h list_head}(hjĄhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjƄmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.list_del_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjehhhjwhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjahhhjwhKubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1jhjwhKhj^hhubj)}(hhh]h)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj&hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhjhNhNubj)}(hXz**Parameters** ``struct list_head *entry`` the element to delete from the list. **Note** list_empty() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. In particular, it means that we can not poison the forward pointers that may still be used for walking the list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu(). Note that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h](h)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjEubj )}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hjjh]hstruct list_head *entry}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjdubj2)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjdubeh}(h]h ]h"]h$]h&]uh1jhjhKhjaubah}(h]h ]h"]h$]h&]uh1j hjEubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjEubh)}(hlist_empty() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.h]hlist_empty() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjEubh)}(hpIn particular, it means that we can not poison the forward pointers that may still be used for walking the list.h]hpIn particular, it means that we can not poison the forward pointers that may still be used for walking the list.}(hjʅhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjEubh)}(hXUThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hXUThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hjمhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjEubh)}(hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h]hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_bidir_del_rcu (C function)c.list_bidir_del_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h1void list_bidir_del_rcu (struct list_head *entry)h]j)}(h0void list_bidir_del_rcu(struct list_head *entry)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj%hKubj{)}(hlist_bidir_del_rcuh]j)}(hlist_bidir_del_rcuh]hlist_bidir_del_rcu}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj%hKubj)}(h(struct list_head *entry)h]j)}(hstruct list_head *entryh](j)}(hj h]hstruct}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj2)}(h h]h }(hjahhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubh)}(hhh]j)}(h list_headh]h list_head}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjtmodnameN classnameNj] j` )}jc ]jf )}jY j:sbc.list_bidir_del_rcuasbuh1hhjPubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj%hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj%hKhj hhubj)}(hhh]h)}(h1deletes entry from list without re-initializationh]h1deletes entry from list without re-initialization}(hj׆hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjԆhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct list_head *entry`` the element to delete from the list. **Description** In contrast to list_del_rcu() doesn't poison the prev pointer thus allowing backwards traversal via list_bidir_prev_rcu(). **Note** list_empty() on entry does not return true after this because the entry is in a special undefined state that permits RCU-based lockfree reverse traversal. In particular this means that we can not poison the forward and backwards pointers that may still be used for walking the list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_bidir_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu(). Note that list_del_rcu() and list_bidir_del_rcu() must not be used on the same list. Note that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubj )}(hhh]j)}(hA``struct list_head *entry`` the element to delete from the list. h](j)}(h``struct list_head *entry``h]j)}(hjh]hstruct list_head *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubj2)}(hhh]h)}(h$the element to delete from the list.h]h$the element to delete from the list.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKhj.ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubh)}(hzIn contrast to list_del_rcu() doesn't poison the prev pointer thus allowing backwards traversal via list_bidir_prev_rcu().h]h|In contrast to list_del_rcu() doesn’t poison the prev pointer thus allowing backwards traversal via list_bidir_prev_rcu().}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubh)}(h**Note**h]j)}(hjzh]hNote}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubh)}(hXlist_empty() on entry does not return true after this because the entry is in a special undefined state that permits RCU-based lockfree reverse traversal. In particular this means that we can not poison the forward and backwards pointers that may still be used for walking the list.h]hXlist_empty() on entry does not return true after this because the entry is in a special undefined state that permits RCU-based lockfree reverse traversal. In particular this means that we can not poison the forward and backwards pointers that may still be used for walking the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubh)}(hX[The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_bidir_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().h]hX[The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as list_bidir_del_rcu() or list_add_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as list_for_each_entry_rcu().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubh)}(hTNote that list_del_rcu() and list_bidir_del_rcu() must not be used on the same list.h]hTNote that list_del_rcu() and list_bidir_del_rcu() must not be used on the same list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubh)}(hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.h]hNote that the caller is not permitted to immediately free the newly deleted entry. Instead, either synchronize_rcu() or call_rcu() must be used to defer freeing until an RCU grace period has elapsed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j hlist_del_init_rcu (C function)c.hlist_del_init_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h.void hlist_del_init_rcu (struct hlist_node *n)h]j)}(h-void hlist_del_init_rcu(struct hlist_node *n)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hhlist_del_init_rcuh]j)}(hhlist_del_init_rcuh]hhlist_del_init_rcu}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hj h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjImodnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlist_del_init_rcuasbuh1hhj%ubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]j߇ah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjÈjjÈjjjuh1jhhhjhNhNubj)}(hXG**Parameters** ``struct hlist_node *n`` the element to delete from the hash list. **Note** list_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hj͈h]h Parameters}(hjψhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjˈubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjLjubj )}(hhh]j)}(hC``struct hlist_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjh]hstruct hlist_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubj2)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjLjubh)}(h**Note**h]j)}(hj'h]hNote}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjLjubh)}(hlist_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.h]hlist_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjLjubh)}(hIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this.h]hIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjLjubh)}(hX^The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu().h]hX^The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu().}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjLjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_replace_rcu (C function)c.list_replace_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hDvoid list_replace_rcu (struct list_head *old, struct list_head *new)h]j)}(hCvoid list_replace_rcu(struct list_head *old, struct list_head *new)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hlist_replace_rcuh]j)}(hlist_replace_rcuh]hlist_replace_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h.(struct list_head *old, struct list_head *new)h](j)}(hstruct list_head *oldh](j)}(hj h]hstruct}(hjljhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÉubj2)}(h h]h }(hjԉhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjÉubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.list_replace_rcuasbuh1hhjÉubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjÉubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÉubj)}(holdh]hold}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÉubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct list_head *newh](j)}(hj h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj2)}(h h]h }(hjFhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubh)}(hhh]j)}(h list_headh]h list_head}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjYmodnameN classnameNj] j` )}jc ]jc.list_replace_rcuasbuh1hhj5ubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hreplace old entry by new oneh]hreplace old entry by new one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjҊjjҊjjjuh1jhhhjhNhNubj)}(hX|**Parameters** ``struct list_head *old`` the element to be replaced ``struct list_head *new`` the new element to insert **Description** The **old** entry will be replaced with the **new** entry atomically from the perspective of concurrent readers. It is the caller's responsibility to synchronize with concurrent updaters, if any. **Note** **old** should not be empty.h](h)}(h**Parameters**h]j)}(hj܊h]h Parameters}(hjފhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڊubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj֊ubj )}(hhh](j)}(h5``struct list_head *old`` the element to be replaced h](j)}(h``struct list_head *old``h]j)}(hjh]hstruct list_head *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhjubj2)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h4``struct list_head *new`` the new element to insert h](j)}(h``struct list_head *new``h]j)}(hj4h]hstruct list_head *new}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj.ubj2)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhKhjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKhjubeh}(h]h ]h"]h$]h&]uh1j hj֊ubh)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj֊ubh)}(hThe **old** entry will be replaced with the **new** entry atomically from the perspective of concurrent readers. It is the caller's responsibility to synchronize with concurrent updaters, if any.h](hThe }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! entry will be replaced with the }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj֊ubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj֊ubh)}(h**old** should not be empty.h](j)}(h**old**h]hold}(hjԋhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjЋubh should not be empty.}(hjЋhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhKhj֊ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_splice_rcu (C function)c.list_splice_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hEvoid list_splice_rcu (struct list_head *list, struct list_head *head)h]j)}(hDvoid list_splice_rcu(struct list_head *list, struct list_head *head)h](j )}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj hhhjhMubj{)}(hlist_splice_rcuh]j)}(hlist_splice_rcuh]hlist_splice_rcu}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhhjhMubj)}(h0(struct list_head *list, struct list_head *head)h](j)}(hstruct list_head *listh](j)}(hj h]hstruct}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjjmodnameN classnameNj] j` )}jc ]jf )}jY j0sbc.list_splice_rcuasbuh1hhjFubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubj)}(hstruct list_head *headh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjɌhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h list_headh]h list_head}(hjڌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׌ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj܌modnameN classnameNj] j` )}jc ]jc.list_splice_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjBubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(hFsplice a non-RCU list into an RCU-protected list, designed for stacks.h]hFsplice a non-RCU list into an RCU-protected list, designed for stacks.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj:hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct list_head *list`` the non RCU-protected list to splice ``struct list_head *head`` the place in the existing RCU-protected list to splice **Description** The list pointed to by **head** can be RCU-read traversed concurrently with this function.h](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjYubj )}(hhh](j)}(h@``struct list_head *list`` the non RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hj~h]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjxubj2)}(hhh]h)}(h$the non RCU-protected list to spliceh]h$the non RCU-protected list to splice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhjuubj)}(hR``struct list_head *head`` the place in the existing RCU-protected list to splice h](j)}(h``struct list_head *head``h]j)}(hjh]hstruct list_head *head}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h6the place in the existing RCU-protected list to spliceh]h6the place in the existing RCU-protected list to splice}(hjЍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̍hMhj͍ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj̍hMhjuubeh}(h]h ]h"]h$]h&]uh1j hjYubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjYubh)}(hZThe list pointed to by **head** can be RCU-read traversed concurrently with this function.h](hThe list pointed to by }(hjhhhNhNubj)}(h**head**h]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; can be RCU-read traversed concurrently with this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #__list_splice_init_rcu (C function)c.__list_splice_init_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hxvoid __list_splice_init_rcu (struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h]j)}(hwvoid __list_splice_init_rcu(struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h](j )}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjEhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM&ubj2)}(h h]h }(hjXhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjEhhhjWhM&ubj{)}(h__list_splice_init_rcuh]j)}(h__list_splice_init_rcuh]h__list_splice_init_rcu}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhjWhM&ubj)}(h\(struct list_head *list, struct list_head *prev, struct list_head *next, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jlsbc.__list_splice_init_rcuasbuh1hhjubj2)}(h h]h }(hjĎhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjҎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlisth]hlist}(hjߎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hstruct list_head *prevh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.__list_splice_init_rcuasbuh1hhjubj2)}(h h]h }(hj4hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hprevh]hprev}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hstruct list_head *nexth](j)}(hj h]hstruct}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.__list_splice_init_rcuasbuh1hhjdubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjdubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hnexth]hnext}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hj؏hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjԏubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjԏubj)}(hjj?h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԏubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԏubj)}(hsynch]hsync}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԏubj)}(hj?h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԏubj)}(hjj?h]h(}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԏubj )}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjԏubj)}(hj?h]h)}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԏubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhjEhhhjWhM&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhjWhM&ubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jhjWhM&hj>hhubj)}(hhh]h)}(h1join an RCU-protected list into an existing list.h]h1join an RCU-protected list into an existing list.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM&hjjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXI**Parameters** ``struct list_head *list`` the RCU-protected list to splice ``struct list_head *prev`` points to the last element of the existing list ``struct list_head *next`` points to the first element of the existing list ``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... **Description** The list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function. Note that this function blocks. Important note: the caller must take whatever action is necessary to prevent any other updates to the existing list. In principle, it is possible to modify the list as soon as sync() begins execution. If this sort of thing becomes necessary, an alternative version based on call_rcu() could be created. But only if -really- needed -- there is no shortage of RCU API members.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM*hjubj )}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjh]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM'hjubj2)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hjǐhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjÐhM'hjĐubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjÐhM'hjubj)}(hK``struct list_head *prev`` points to the last element of the existing list h](j)}(h``struct list_head *prev``h]j)}(hjh]hstruct list_head *prev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM(hjubj2)}(hhh]h)}(h/points to the last element of the existing listh]h/points to the last element of the existing list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjubj)}(hL``struct list_head *next`` points to the first element of the existing list h](j)}(h``struct list_head *next``h]j)}(hj h]hstruct list_head *next}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM)hjubj2)}(hhh]h)}(h0points to the first element of the existing listh]h0points to the first element of the existing list}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM)hj6ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj5hM)hjubj)}(hG``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ... h](j)}(h``void (*sync)(void)``h]j)}(hjYh]hvoid (*sync)(void)}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM*hjSubj2)}(hhh]h)}(h/synchronize_rcu, synchronize_rcu_expedited, ...h]h/synchronize_rcu, synchronize_rcu_expedited, ...}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM*hjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM*hjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM,hjubh)}(hgThe list pointed to by **prev** and **next** can be RCU-read traversed concurrently with this function.h](hThe list pointed to by }(hjhhhNhNubj)}(h**prev**h]hprev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**next**h]hnext}(hjđhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; can be RCU-read traversed concurrently with this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM+hjubh)}(hNote that this function blocks.h]hNote that this function blocks.}(hjݑhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM.hjubh)}(hXxImportant note: the caller must take whatever action is necessary to prevent any other updates to the existing list. In principle, it is possible to modify the list as soon as sync() begins execution. If this sort of thing becomes necessary, an alternative version based on call_rcu() could be created. But only if -really- needed -- there is no shortage of RCU API members.h]hXxImportant note: the caller must take whatever action is necessary to prevent any other updates to the existing list. In principle, it is possible to modify the list as soon as sync() begins execution. If this sort of thing becomes necessary, an alternative version based on call_rcu() could be created. But only if -really- needed -- there is no shortage of RCU API members.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !list_splice_init_rcu (C function)c.list_splice_init_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h^void list_splice_init_rcu (struct list_head *list, struct list_head *head, void (*sync)(void))h]j)}(h]void list_splice_init_rcu(struct list_head *list, struct list_head *head, void (*sync)(void))h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMbubj2)}(h h]h }(hj*hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj)hMbubj{)}(hlist_splice_init_rcuh]j)}(hlist_splice_init_rcuh]hlist_splice_init_rcu}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj)hMbubj)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hj h]hstruct}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubh)}(hhh]j)}(h list_headh]h list_head}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjxmodnameN classnameNj] j` )}jc ]jf )}jY j>sbc.list_splice_init_rcuasbuh1hhjTubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj)}(hlisth]hlist}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hstruct list_head *headh](j)}(hj h]hstruct}(hjʒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƒubj2)}(h h]h }(hjגhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjƒubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.list_splice_init_rcuasbuh1hhjƒubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjƒubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƒubj)}(hheadh]hhead}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƒubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubj2)}(h h]h }(hjHhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj6ubj)}(hjj?h]h(}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hsynch]hsync}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hj?h]h)}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjj?h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj6ubj)}(hj?h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj)hMbubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj)hMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj)hMbhjhhubj)}(hhh]h)}(hHsplice an RCU-protected list into an existing list, designed for stacks.h]hHsplice an RCU-protected list into an existing list, designed for stacks.}(hjϓhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMbhj̓hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj)hMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct list_head *list`` the RCU-protected list to splice ``struct list_head *head`` the place in the existing list to splice the first list into ``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ...h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMfhjubj )}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjh]hstruct list_head *list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMdhj ubj2)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMdhj&ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMdhjubj)}(hX``struct list_head *head`` the place in the existing list to splice the first list into h](j)}(h``struct list_head *head``h]j)}(hjIh]hstruct list_head *head}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMehjCubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hjؔhhhjhMqubj{)}(hlist_splice_tail_init_rcuh]j)}(hlist_splice_tail_init_rcuh]hlist_splice_tail_init_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjؔhhhjhMqubj)}(hD(struct list_head *list, struct list_head *head, void (*sync)(void))h](j)}(hstruct list_head *listh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h list_headh]h list_head}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jf )}jY jsbc.list_splice_tail_init_rcuasbuh1hhjubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hlisth]hlist}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct list_head *headh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h list_headh]h list_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jSc.list_splice_tail_init_rcuasbuh1hhjubj2)}(h h]h }(hjǕhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjՕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hheadh]hhead}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid (*sync)(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjj?h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hsynch]hsync}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj?h]h)}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjj?h]h(}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj )}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj)}(hj?h]h)}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjؔhhhjhMqubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjԔhhhjhMqubah}(h]jϔah ](jjeh"]h$]h&]jj)jhuh1jhjhMqhjєhhubj)}(hhh]h)}(hHsplice an RCU-protected list into an existing list, designed for queues.h]hHsplice an RCU-protected list into an existing list, designed for queues.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMqhjhhubah}(h]h ]h"]h$]h&]uh1jhjєhhhjhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct list_head *list`` the RCU-protected list to splice ``struct list_head *head`` the place in the existing list to splice the first list into ``void (*sync)(void)`` synchronize_rcu, synchronize_rcu_expedited, ...h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMuhjubj )}(hhh](j)}(h<``struct list_head *list`` the RCU-protected list to splice h](j)}(h``struct list_head *list``h]j)}(hjіh]hstruct list_head *list}(hjӖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϖubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMshj˖ubj2)}(hhh]h)}(h the RCU-protected list to spliceh]h the RCU-protected list to splice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMshjubah}(h]h ]h"]h$]h&]uh1j1hj˖ubeh}(h]h ]h"]h$]h&]uh1jhjhMshjȖubj)}(hX``struct list_head *head`` the place in the existing list to splice the first list into h](j)}(h``struct list_head *head``h]j)}(hj h]hstruct list_head *head}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMthjubj2)}(hhh]h)}(h` pointer. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj )}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hj'h]hptr}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj!ubj2)}(hhh]h)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hj@hhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjJh]hstruct list_head}(hjLhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jj list_headuh1hhj<hMhj@ubh pointer.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1j1hj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj}ubj2)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj՘hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjјhMhjҘubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjјhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubh)}(hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h]hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it’s guarded by rcu_read_lock().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  list_first_or_null_rcu (C macro)c.list_first_or_null_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hlist_first_or_null_rcuh]j)}(hlist_first_or_null_rcuh]j{)}(hlist_first_or_null_rcuh]j)}(hj6h]hlist_first_or_null_rcu}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj8hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj4hhhjShMubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1jhjShMhj1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj1hhhjShMubeh}(h]h ](jmacroeh"]h$]h&]jjjjljjljjjuh1jhhhjhNhNubh)}(h.``list_first_or_null_rcu (ptr, type, member)``h]j)}(hjrh]h*list_first_or_null_rcu (ptr, type, member)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjhhubj)}(h"get the first element from a list h]h)}(h!get the first element from a listh]h!get the first element from a list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX**Parameters** ``ptr`` the list head to take the element from. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** Note that if the list is empty, it returns NULL. This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj )}(hhh](j)}(h0``ptr`` the list head to take the element from. h](j)}(h``ptr``h]j)}(hjƙh]hptr}(hjșhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjęubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h'the list head to take the element from.h]h'the list head to take the element from.}(hjߙhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjۙhMhjܙubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjۙhMhjubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjh]htype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj8h]hmember}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj2ubj2)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubh)}(h0Note that if the list is empty, it returns NULL.h]h0Note that if the list is empty, it returns NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubh)}(hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h]hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it’s guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_next_or_null_rcu (C macro)c.list_next_or_null_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hlist_next_or_null_rcuh]j)}(hlist_next_or_null_rcuh]j{)}(hlist_next_or_null_rcuh]j)}(hjh]hlist_next_or_null_rcu}(hj˚hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǚubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjÚhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjޚhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjޚhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjޚhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h3``list_next_or_null_rcu (head, ptr, type, member)``h]j)}(hjh]h/list_next_or_null_rcu (head, ptr, type, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjhhubj)}(h!get the next element from a list h]h)}(h get the next element from a listh]h get the next element from a list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj%hMhjhhubj)}(hX**Parameters** ``head`` the head for the list. ``ptr`` the list head to take the next element from. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** Note that if the ptr is at the end of the list, NULL is returned. This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj,ubj )}(hhh](j)}(h ``head`` the head for the list. h](j)}(h``head``h]j)}(hjQh]hhead}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjKubj2)}(hhh]h)}(hthe head for the list.h]hthe head for the list.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1j1hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubj)}(h5``ptr`` the list head to take the next element from. h](j)}(h``ptr``h]j)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h,the list head to take the next element from.h]h,the list head to take the next element from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjHubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hjÛh]htype}(hjśhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjܛhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj؛hMhjٛubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj؛hMhjHubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjHubeh}(h]h ]h"]h$]h&]uh1j hj,ubh)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj,ubh)}(hANote that if the ptr is at the end of the list, NULL is returned.h]hANote that if the ptr is at the end of the list, NULL is returned.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj,ubh)}(hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it's guarded by rcu_read_lock().h]hThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as it’s guarded by rcu_read_lock().}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !list_for_each_entry_rcu (C macro)c.list_for_each_entry_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hlist_for_each_entry_rcuh]j)}(hlist_for_each_entry_rcuh]j{)}(hlist_for_each_entry_rcuh]j)}(hjh]hlist_for_each_entry_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h8``list_for_each_entry_rcu (pos, head, member, cond...)``h]j)}(hjh]h4list_for_each_entry_rcu (pos, head, member, cond...)}(hjÜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjhhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjۜhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjלubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. ``cond...`` optional lockdep expression if called from non-RCU protection. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjNh]hhead}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjHubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhj ubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j)}(h ``cond...``h]j)}(hjh]hcond...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hjٝhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj՝hMhj֝ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj՝hMhj ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubh)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "list_for_each_entry_srcu (C macro)c.list_for_each_entry_srcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hlist_for_each_entry_srcuh]j)}(hlist_for_each_entry_srcuh]j{)}(hlist_for_each_entry_srcuh]j)}(hj:h]hlist_for_each_entry_srcu}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj<hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhj8hhhjWhMubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1jhjWhMhj5hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj5hhhjWhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjpjjpjjjuh1jhhhjhNhNubh)}(h6``list_for_each_entry_srcu (pos, head, member, cond)``h]j)}(hjvh]h2list_for_each_entry_srcu (pos, head, member, cond)}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjhhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX **Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. ``cond`` lockdep expression for the lock required to traverse the list. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjʞh]hpos}(hj̞hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȞubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjĞubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߞhMhjubah}(h]h ]h"]h$]h&]uh1j1hjĞubeh}(h]h ]h"]h$]h&]uh1jhjߞhMhjubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj<h]hmember}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj6ubj2)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j1hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubj)}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j)}(h``cond``h]j)}(hjuh]hcond}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjoubj2)}(hhh]h)}(h>lockdep expression for the lock required to traverse the list.h]h>lockdep expression for the lock required to traverse the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubh)}(hXThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.h]hXThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.}(hjƟhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j list_entry_lockless (C macro)c.list_entry_locklesshNtauh1hhjhhhNhNubj)}(hhh](j)}(hlist_entry_locklessh]j)}(hlist_entry_locklessh]j{)}(hlist_entry_locklessh]j)}(hjh]hlist_entry_lockless}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj%jj%jjjuh1jhhhjhNhNubh)}(h+``list_entry_lockless (ptr, type, member)``h]j)}(hj+h]h'list_entry_lockless (ptr, type, member)}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjhhubj)}(hget the struct for this entry h]h)}(hget the struct for this entryh]hget the struct for this entry}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjAubah}(h]h ]h"]h$]h&]uh1jhjShMhjhhubj)}(hX>**Parameters** ``ptr`` the :c:type:`struct list_head ` pointer. ``type`` the type of the struct this is embedded in. ``member`` the name of the list_head within the struct. **Description** This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu(), but requires some implicit RCU read-side guarding. One example is running within a special exception-time environment where preemption is disabled and where lockdep cannot be invoked. Another example is when items are added to the list, but never deleted.h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjZubj )}(hhh](j)}(h<``ptr`` the :c:type:`struct list_head ` pointer. h](j)}(h``ptr``h]j)}(hjh]hptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjyubj2)}(hhh]h)}(h3the :c:type:`struct list_head ` pointer.h](hthe }(hjhhhNhNubh)}(h&:c:type:`struct list_head `h]j)}(hjh]hstruct list_head}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jj list_headuh1hhjhMhjubh pointer.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(h5``type`` the type of the struct this is embedded in. h](j)}(h``type``h]j)}(hj۠h]htype}(hjݠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj٠ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjՠubj2)}(hhh]h)}(h+the type of the struct this is embedded in.h]h+the type of the struct this is embedded in.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjՠubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjvubeh}(h]h ]h"]h$]h&]uh1j hjZubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjZubh)}(hXkThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu(), but requires some implicit RCU read-side guarding. One example is running within a special exception-time environment where preemption is disabled and where lockdep cannot be invoked. Another example is when items are added to the list, but never deleted.h]hXkThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu(), but requires some implicit RCU read-side guarding. One example is running within a special exception-time environment where preemption is disabled and where lockdep cannot be invoked. Another example is when items are added to the list, but never deleted.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &list_for_each_entry_lockless (C macro)c.list_for_each_entry_locklesshNtauh1hhjhhhNhNubj)}(hhh](j)}(hlist_for_each_entry_locklessh]j)}(hlist_for_each_entry_locklessh]j{)}(hlist_for_each_entry_locklessh]j)}(hjh]hlist_for_each_entry_lockless}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjġjjġjjjuh1jhhhjhNhNubh)}(h4``list_for_each_entry_lockless (pos, head, member)``h]j)}(hjʡh]h0list_for_each_entry_lockless (pos, head, member)}(hj̡hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȡubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjhhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_struct within the struct. **Description** This primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu(), but requires some implicit RCU read-side guarding. One example is running within a special exception-time environment where preemption is disabled and where lockdep cannot be invoked. Another example is when items are added to the list, but never deleted..h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM hjubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjWh]hhead}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjQubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubj)}(h:``member`` the name of the list_struct within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h.the name of the list_struct within the struct.h]h.the name of the list_struct within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjˢh]h Description}(hj͢hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɢubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM hjubh)}(hXkThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu(), but requires some implicit RCU read-side guarding. One example is running within a special exception-time environment where preemption is disabled and where lockdep cannot be invoked. Another example is when items are added to the list, but never deleted.h]hXkThis primitive may safely run concurrently with the _rcu list-mutation primitives such as list_add_rcu(), but requires some implicit RCU read-side guarding. One example is running within a special exception-time environment where preemption is disabled and where lockdep cannot be invoked. Another example is when items are added to the list, but never deleted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *list_for_each_entry_continue_rcu (C macro)"c.list_for_each_entry_continue_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h list_for_each_entry_continue_rcuh]j)}(h list_for_each_entry_continue_rcuh]j{)}(h list_for_each_entry_continue_rcuh]j)}(hj h]h list_for_each_entry_continue_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj'hMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jmacroeh"]h$]h&]jjjj@jj@jjjuh1jhhhjhNhNubh)}(h8``list_for_each_entry_continue_rcu (pos, head, member)``h]j)}(hjFh]h4list_for_each_entry_continue_rcu (pos, head, member)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjhhubj)}(h+continue iteration over list of given type h]h)}(h*continue iteration over list of given typeh]h*continue iteration over list of given type}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj\ubah}(h]h ]h"]h$]h&]uh1jhjnhMhjhhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_head within the struct. **Description** Continue to iterate over list of given type, continuing after the current position which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list. This iterator is similar to list_for_each_entry_from_rcu() except this starts after the given position and that one starts at the given position.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjuubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjӣh]hhead}(hjգhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѣubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjͣubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjͣubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h8``member`` the name of the list_head within the struct. h](j)}(h ``member``h]j)}(hj h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h,the name of the list_head within the struct.h]h,the name of the list_head within the struct.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjubeh}(h]h ]h"]h$]h&]uh1j hjuubh)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjuubh)}(hXContinue to iterate over list of given type, continuing after the current position which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list.h](hXContinue to iterate over list of given type, continuing after the current position which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive }(hj]hhhNhNubjp)}(h*and*h]hand}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1johj]ubh in the list.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjuubh)}(hThis iterator is similar to list_for_each_entry_from_rcu() except this starts after the given position and that one starts at the given position.h]hThis iterator is similar to list_for_each_entry_from_rcu() except this starts after the given position and that one starts at the given position.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM#hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &list_for_each_entry_from_rcu (C macro)c.list_for_each_entry_from_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hlist_for_each_entry_from_rcuh]j)}(hlist_for_each_entry_from_rcuh]j{)}(hlist_for_each_entry_from_rcuh]j)}(hjh]hlist_for_each_entry_from_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM.ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjĤhM.ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjĤhM.hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjĤhM.ubeh}(h]h ](jmacroeh"]h$]h&]jjjjݤjjݤjjjuh1jhhhjhNhNubh)}(h4``list_for_each_entry_from_rcu (pos, head, member)``h]j)}(hjh]h0list_for_each_entry_from_rcu (pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM0hjhhubj)}(h'iterate over a list from current point h]h)}(h&iterate over a list from current pointh]h&iterate over a list from current point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM.hjubah}(h]h ]h"]h$]h&]uh1jhj hM.hjhhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the list_node within the struct. **Description** Iterate over the tail of a list starting from a given position, which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list. This iterator is similar to list_for_each_entry_continue_rcu() except this starts from the given position and that one starts from the position after the given position.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM2hjubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj7h]hpos}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM/hj1ubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM/hjMubah}(h]h ]h"]h$]h&]uh1j1hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM/hj.ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjph]hhead}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM0hjjubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1j1hjjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hj.ubj)}(h8``member`` the name of the list_node within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM1hjubj2)}(hhh]h)}(h,the name of the list_node within the struct.h]h,the name of the list_node within the struct.}(hj¥hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hj.ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM3hjubh)}(hXIterate over the tail of a list starting from a given position, which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive *and* in the list.h](hXrIterate over the tail of a list starting from a given position, which must have been in the list when the RCU read lock was taken. This would typically require either that you obtained the node from a previous walk of the list in the same RCU read-side critical section, or that you held some sort of non-RCU reference (such as a reference count) to keep the node alive }(hjhhhNhNubjp)}(h*and*h]hand}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1johjubh in the list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM2hjubh)}(hThis iterator is similar to list_for_each_entry_continue_rcu() except this starts from the given position and that one starts from the position after the given position.h]hThis iterator is similar to list_for_each_entry_continue_rcu() except this starts from the given position and that one starts from the position after the given position.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM9hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j hlist_del_rcu (C function)c.hlist_del_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h)void hlist_del_rcu (struct hlist_node *n)h]j)}(h(void hlist_del_rcu(struct hlist_node *n)h](j )}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjFhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMCubj2)}(h h]h }(hjYhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjFhhhjXhMCubj{)}(h hlist_del_rcuh]j)}(h hlist_del_rcuh]h hlist_del_rcu}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjFhhhjXhMCubj)}(h(struct hlist_node *n)h]j)}(hstruct hlist_node *nh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jmsbc.hlist_del_rcuasbuh1hhjubj2)}(h h]h }(hjŦhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjӦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjFhhhjXhMCubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjBhhhjXhMCubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1jhjXhMChj?hhubj)}(hhh]h)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMChjhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhMCubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the element to delete from the hash list. **Note** list_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry().h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMGhj%ubj )}(hhh]j)}(hC``struct hlist_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjJh]hstruct hlist_node *n}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMDhjDubj2)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMDhj`ubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMDhjAubah}(h]h ]h"]h$]h&]uh1j hj%ubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMFhj%ubh)}(hlist_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.h]hlist_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMFhj%ubh)}(huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.h]huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMJhj%ubh)}(hXYThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry().h]hXYThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j hlist_replace_rcu (C function)c.hlist_replace_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hGvoid hlist_replace_rcu (struct hlist_node *old, struct hlist_node *new)h]j)}(hFvoid hlist_replace_rcu(struct hlist_node *old, struct hlist_node *new)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhM\ubj{)}(hhlist_replace_rcuh]j)}(hhlist_replace_rcuh]hhlist_replace_rcu}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhM\ubj)}(h0(struct hlist_node *old, struct hlist_node *new)h](j)}(hstruct hlist_node *oldh](j)}(hj h]hstruct}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjEmodnameN classnameNj] j` )}jc ]jf )}jY j sbc.hlist_replace_rcuasbuh1hhj!ubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj!ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj)}(holdh]hold}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_node *newh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]j_c.hlist_replace_rcuasbuh1hhjubj2)}(h h]h }(hjӨhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM\ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhM\ubah}(h]jۧah ](jjeh"]h$]h&]jj)jhuh1jhjhM\hjݧhhubj)}(hhh]h)}(hreplace old entry by new oneh]hreplace old entry by new one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM\hjhhubah}(h]h ]h"]h$]h&]uh1jhjݧhhhjhM\ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1jhhhjhNhNubj)}(hXV**Parameters** ``struct hlist_node *old`` the element to be replaced ``struct hlist_node *new`` the new element to insert **Description** The **old** entry will be replaced with the **new** entry atomically from the perspective of concurrent readers. It is the caller's responsibility to synchronize with concurrent updaters, if any.h](h)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM`hj4ubj )}(hhh](j)}(h6``struct hlist_node *old`` the element to be replaced h](j)}(h``struct hlist_node *old``h]j)}(hjYh]hstruct hlist_node *old}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM]hjSubj2)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhM]hjoubah}(h]h ]h"]h$]h&]uh1j1hjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM]hjPubj)}(h5``struct hlist_node *new`` the new element to insert h](j)}(h``struct hlist_node *new``h]j)}(hjh]hstruct hlist_node *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM^hjubj2)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM^hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjPubeh}(h]h ]h"]h$]h&]uh1j hj4ubh)}(h**Description**h]j)}(hjͩh]h Description}(hjϩhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˩ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM`hj4ubh)}(hThe **old** entry will be replaced with the **new** entry atomically from the perspective of concurrent readers. It is the caller's responsibility to synchronize with concurrent updaters, if any.h](hThe }(hjhhhNhNubj)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh! entry will be replaced with the }(hjhhhNhNubj)}(h**new**h]hnew}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh entry atomically from the perspective of concurrent readers. It is the caller’s responsibility to synchronize with concurrent updaters, if any.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM_hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "hlists_swap_heads_rcu (C function)c.hlists_swap_heads_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hNvoid hlists_swap_heads_rcu (struct hlist_head *left, struct hlist_head *right)h]j)}(hMvoid hlists_swap_heads_rcu(struct hlist_head *left, struct hlist_head *right)h](j )}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj2hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMrubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj2hhhjDhMrubj{)}(hhlists_swap_heads_rcuh]j)}(hhlists_swap_heads_rcuh]hhlists_swap_heads_rcu}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj2hhhjDhMrubj)}(h3(struct hlist_head *left, struct hlist_head *right)h](j)}(hstruct hlist_head *lefth](j)}(hj h]hstruct}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jYsbc.hlists_swap_heads_rcuasbuh1hhjoubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj)}(hlefth]hleft}(hj̪hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(hstruct hlist_head *righth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.hlists_swap_heads_rcuasbuh1hhjubj2)}(h h]h }(hj!hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrighth]hright}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhj2hhhjDhMrubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj.hhhjDhMrubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1jhjDhMrhj+hhubj)}(hhh]h)}(h'swap the lists the hlist heads point toh]h'swap the lists the hlist heads point to}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMrhjchhubah}(h]h ]h"]h$]h&]uh1jhj+hhhjDhMrubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~jj~jjjuh1jhhhjhNhNubj)}(hXZ**Parameters** ``struct hlist_head *left`` The hlist head on the left ``struct hlist_head *right`` The hlist head on the right **Description** The lists start out as [**left** ][node1 ... ] and [**right** ][node2 ... ] The lists end up as [**left** ][node2 ... ] [**right** ][node1 ... ]h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMvhjubj )}(hhh](j)}(h7``struct hlist_head *left`` The hlist head on the left h](j)}(h``struct hlist_head *left``h]j)}(hjh]hstruct hlist_head *left}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMshjubj2)}(hhh]h)}(hThe hlist head on the lefth]hThe hlist head on the left}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMshjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubj)}(h9``struct hlist_head *right`` The hlist head on the right h](j)}(h``struct hlist_head *right``h]j)}(hjh]hstruct hlist_head *right}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjޫubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMthjګubj2)}(hhh]h)}(hThe hlist head on the righth]hThe hlist head on the right}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMthjubah}(h]h ]h"]h$]h&]uh1j1hjګubeh}(h]h ]h"]h$]h&]uh1jhjhMthjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMvhjubj )}(hhh](j)}(hLThe lists start out as [**left** ][node1 ... ] and [**right** ][node2 ... ]h](j)}(h3The lists start out as [**left** ][node1 ... ] andh](hThe lists start out as [}(hj8hhhNhNubj)}(h**left**h]hleft}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh ][node1 ... ] and}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMuhj4ubj2)}(hhh]h)}(h[**right** ][node2 ... ]h](h[}(hj\hhhNhNubj)}(h **right**h]hright}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubh ][node2 ... ]}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMvhjYubah}(h]h ]h"]h$]h&]uh1j1hj4ubeh}(h]h ]h"]h$]h&]uh1jhjXhMuhj1ubj)}(hHThe lists end up as [**left** ][node2 ... ] [**right** ][node1 ... ]h](j)}(h/The lists end up as [**left** ][node2 ... ]h](hThe lists end up as [}(hjhhhNhNubj)}(h**left**h]hleft}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ][node2 ... ]}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMwhjubj2)}(hhh]h)}(h[**right** ][node1 ... ]h](h[}(hjhhhNhNubj)}(h **right**h]hright}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ][node1 ... ]}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMxhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhj1ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j hlist_add_head_rcu (C function)c.hlist_add_head_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hDvoid hlist_add_head_rcu (struct hlist_node *n, struct hlist_head *h)h]j)}(hCvoid hlist_add_head_rcu(struct hlist_node *n, struct hlist_head *h)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(hhlist_add_head_rcuh]j)}(hhlist_add_head_rcuh]hhlist_add_head_rcu}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h,(struct hlist_node *n, struct hlist_head *h)h](j)}(hstruct hlist_node *nh](j)}(hj h]hstruct}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj2)}(h h]h }(hjNhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjamodnameN classnameNj] j` )}jc ]jf )}jY j'sbc.hlist_add_head_rcuasbuh1hhj=ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubj)}(hstruct hlist_head *hh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjЭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͭubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjҭmodnameN classnameNj] j` )}jc ]j{c.hlist_add_head_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj(yh]hh}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj9ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the element to add to the hash list. ``struct hlist_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj?ubj )}(hhh](j)}(h>``struct hlist_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjdh]hstruct hlist_node *n}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj^ubj2)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1j1hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj[ubj)}(h-``struct hlist_head *h`` the list to add to. h](j)}(h``struct hlist_head *h``h]j)}(hjh]hstruct hlist_head *h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj[ubeh}(h]h ]h"]h$]h&]uh1j hj?ubh)}(h**Description**h]j)}(hjخh]h Description}(hjڮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֮ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj?ubh)}(hVAdds the specified element to the specified hlist, while permitting racing traversals.h]hVAdds the specified element to the specified hlist, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj?ubh)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j hlist_add_tail_rcu (C function)c.hlist_add_tail_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hDvoid hlist_add_tail_rcu (struct hlist_node *n, struct hlist_head *h)h]j)}(hCvoid hlist_add_tail_rcu(struct hlist_node *n, struct hlist_head *h)h](j )}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj(hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubj2)}(h h]h }(hj;hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj(hhhj:hMubj{)}(hhlist_add_tail_rcuh]j)}(hhlist_add_tail_rcuh]hhlist_add_tail_rcu}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj(hhhj:hMubj)}(h,(struct hlist_node *n, struct hlist_head *h)h](j)}(hstruct hlist_node *nh](j)}(hj h]hstruct}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj2)}(h h]h }(hjvhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jOsbc.hlist_add_tail_rcuasbuh1hhjeubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj)}(hjh]hn}(hj¯hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hstruct hlist_head *hh](j)}(hj h]hstruct}(hjگhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֯ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj֯ubh)}(hhh]j)}(h hlist_headh]h hlist_head}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.hlist_add_tail_rcuasbuh1hhj֯ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj֯ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֯ubj)}(hj(yh]hh}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֯ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj:hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj$hhhj:hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj:hMhj!hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj!hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the element to add to the hash list. ``struct hlist_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjgubj )}(hhh](j)}(h>``struct hlist_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjh]hstruct hlist_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``struct hlist_head *h`` the list to add to. h](j)}(h``struct hlist_head *h``h]j)}(hjŰh]hstruct hlist_head *h}(hjǰhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjðubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjްhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڰhMhj۰ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjڰhMhjubeh}(h]h ]h"]h$]h&]uh1j hjgubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjgubh)}(hVAdds the specified element to the specified hlist, while permitting racing traversals.h]hVAdds the specified element to the specified hlist, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjgubh)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !hlist_add_before_rcu (C function)c.hlist_add_before_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hIvoid hlist_add_before_rcu (struct hlist_node *n, struct hlist_node *next)h]j)}(hHvoid hlist_add_before_rcu(struct hlist_node *n, struct hlist_node *next)h](j )}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjPhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjPhhhjbhMubj{)}(hhlist_add_before_rcuh]j)}(hhlist_add_before_rcuh]hhlist_add_before_rcu}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjPhhhjbhMubj)}(h/(struct hlist_node *n, struct hlist_node *next)h](j)}(hstruct hlist_node *nh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jwsbc.hlist_add_before_rcuasbuh1hhjubj2)}(h h]h }(hjϱhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjݱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_node *nexth](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj"modnameN classnameNj] j` )}jc ]j˱c.hlist_add_before_rcuasbuh1hhjubj2)}(h h]h }(hj>hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnexth]hnext}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjbhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjLhhhjbhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1jhjbhMhjIhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjIhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the new element to add to the hash list. ``struct hlist_node *next`` the existing element to add the new element before. **Description** Adds the specified element to the specified hlist before the specified node while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj )}(hhh](j)}(hB``struct hlist_node *n`` the new element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hjh]hstruct hlist_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h(the new element to add to the hash list.h]h(the new element to add to the hash list.}(hjβhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjʲhMhj˲ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjʲhMhjubj)}(hP``struct hlist_node *next`` the existing element to add the new element before. h](j)}(h``struct hlist_node *next``h]j)}(hjh]hstruct hlist_node *next}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h3the existing element to add the new element before.h]h3the existing element to add the new element before.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubh)}(hoAdds the specified element to the specified hlist before the specified node while permitting racing traversals.h]hoAdds the specified element to the specified hlist before the specified node while permitting racing traversals.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubh)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h]hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !hlist_add_behind_rcu (C function)c.hlist_add_behind_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hIvoid hlist_add_behind_rcu (struct hlist_node *n, struct hlist_node *prev)h]j)}(hHvoid hlist_add_behind_rcu(struct hlist_node *n, struct hlist_node *prev)h](j )}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjyhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjyhhhjhMubj{)}(hhlist_add_behind_rcuh]j)}(hhlist_add_behind_rcuh]hhlist_add_behind_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjyhhhjhMubj)}(h/(struct hlist_node *n, struct hlist_node *prev)h](j)}(hstruct hlist_node *nh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjdzhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjسhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjճubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjڳmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlist_add_behind_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_node *prevh](j)}(hj h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubh)}(hhh]j)}(h hlist_nodeh]h hlist_node}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjKmodnameN classnameNj] j` )}jc ]jc.hlist_add_behind_rcuasbuh1hhj'ubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj'ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj)}(hprevh]hprev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjrhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_node *n`` the new element to add to the hash list. ``struct hlist_node *prev`` the existing element to add the new element after. **Description** Adds the specified element to the specified hlist after the specified node while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj )}(hhh](j)}(hB``struct hlist_node *n`` the new element to add to the hash list. h](j)}(h``struct hlist_node *n``h]j)}(hj޴h]hstruct hlist_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܴubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjشubj2)}(hhh]h)}(h(the new element to add to the hash list.h]h(the new element to add to the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjشubeh}(h]h ]h"]h$]h&]uh1jhjhMhjմubj)}(hO``struct hlist_node *prev`` the existing element to add the new element after. h](j)}(h``struct hlist_node *prev``h]j)}(hjh]hstruct hlist_node *prev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h2the existing element to add the new element after.h]h2the existing element to add the new element after.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjմubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubh)}(hnAdds the specified element to the specified hlist after the specified node while permitting racing traversals.h]hnAdds the specified element to the specified hlist after the specified node while permitting racing traversals.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubh)}(hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.h]hXThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_add_head_rcu() or hlist_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "hlist_for_each_entry_rcu (C macro)c.hlist_for_each_entry_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hhlist_for_each_entry_rcuh]j)}(hhlist_for_each_entry_rcuh]j{)}(hhlist_for_each_entry_rcuh]j)}(hjh]hhlist_for_each_entry_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjֵjjֵjjjuh1jhhhjhNhNubh)}(h9``hlist_for_each_entry_rcu (pos, head, member, cond...)``h]j)}(hjܵh]h5hlist_for_each_entry_rcu (pos, head, member, cond...)}(hj޵hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڵubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjhhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_node within the struct. ``cond...`` optional lockdep expression if called from non-RCU protection. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj ubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj0h]hpos}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj*ubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj'ubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjih]hhead}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjcubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj'ubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjubj2)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj'ubj)}(hK``cond...`` optional lockdep expression if called from non-RCU protection. h](j)}(h ``cond...``h]j)}(hj۶h]hcond...}(hjݶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٶubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhjնubj2)}(hhh]h)}(h>optional lockdep expression if called from non-RCU protection.h]h>optional lockdep expression if called from non-RCU protection.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjնubeh}(h]h ]h"]h$]h&]uh1jhjhMhj'ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj ubh)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j #hlist_for_each_entry_srcu (C macro)c.hlist_for_each_entry_srcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hhlist_for_each_entry_srcuh]j)}(hhlist_for_each_entry_srcuh]j{)}(hhlist_for_each_entry_srcuh]j)}(hjUh]hhlist_for_each_entry_srcu}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjWhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM!ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjShhhjrhM!ubah}(h]jNah ](jjeh"]h$]h&]jj)jhuh1jhjrhM!hjPhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjPhhhjrhM!ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h7``hlist_for_each_entry_srcu (pos, head, member, cond)``h]j)}(hjh]h3hlist_for_each_entry_srcu (pos, head, member, cond)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM#hjhhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM!hjubah}(h]h ]h"]h$]h&]uh1jhjhM!hjhhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_node within the struct. ``cond`` lockdep expression for the lock required to traverse the list. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.h](h)}(h**Parameters**h]j)}(hjƷh]h Parameters}(hjȷhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjķubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM%hjubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM"hj߷ubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1j1hj߷ubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjܷubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjh]hhead}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM#hjubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM#hj4ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj3hM#hjܷubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjWh]hmember}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM$hjQubj2)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM$hjmubah}(h]h ]h"]h$]h&]uh1j1hjQubeh}(h]h ]h"]h$]h&]uh1jhjlhM$hjܷubj)}(hH``cond`` lockdep expression for the lock required to traverse the list. h](j)}(h``cond``h]j)}(hjh]hcond}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM%hjubj2)}(hhh]h)}(h>lockdep expression for the lock required to traverse the list.h]h>lockdep expression for the lock required to traverse the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjܷubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj˸h]h Description}(hj͸hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɸubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM'hjubh)}(hXThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.h]hXThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by srcu_read_lock(). The lockdep expression srcu_read_lock_held() can be passed as the cond argument from read side.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM&hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j *hlist_for_each_entry_rcu_notrace (C macro)"c.hlist_for_each_entry_rcu_notracehNtauh1hhjhhhNhNubj)}(hhh](j)}(h hlist_for_each_entry_rcu_notraceh]j)}(h hlist_for_each_entry_rcu_notraceh]j{)}(h hlist_for_each_entry_rcu_notraceh]j)}(hj h]h hlist_for_each_entry_rcu_notrace}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM6ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hM6ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj'hM6hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj'hM6ubeh}(h]h ](jmacroeh"]h$]h&]jjjj@jj@jjjuh1jhhhjhNhNubh)}(h8``hlist_for_each_entry_rcu_notrace (pos, head, member)``h]j)}(hjFh]h4hlist_for_each_entry_rcu_notrace (pos, head, member)}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM8hjhhubj)}(h2iterate over rcu list of given type (for tracing) h]h)}(h1iterate over rcu list of given type (for tracing)h]h1iterate over rcu list of given type (for tracing)}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM6hj\ubah}(h]h ]h"]h$]h&]uh1jhjnhM6hjhhubj)}(hX**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_node within the struct. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock(). This is the same as hlist_for_each_entry_rcu() except that it does not do any RCU debugging or tracing.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM:hjuubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM7hjubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hjӹh]hhead}(hjչhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjѹubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM8hj͹ubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1j1hj͹ubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hj h]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM9hjubj2)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM9hj"ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj!hM9hjubeh}(h]h ]h"]h$]h&]uh1j hjuubh)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM;hjuubh)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM:hjuubh)}(hgThis is the same as hlist_for_each_entry_rcu() except that it does not do any RCU debugging or tracing.h]hgThis is the same as hlist_for_each_entry_rcu() except that it does not do any RCU debugging or tracing.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM>hjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %hlist_for_each_entry_rcu_bh (C macro)c.hlist_for_each_entry_rcu_bhhNtauh1hhjhhhNhNubj)}(hhh](j)}(hhlist_for_each_entry_rcu_bhh]j)}(hhlist_for_each_entry_rcu_bhh]j{)}(hhlist_for_each_entry_rcu_bhh]j)}(hjh]hhlist_for_each_entry_rcu_bh}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMJubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMJubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMJhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhMJubeh}(h]h ](jmacroeh"]h$]h&]jjjj˺jj˺jjjuh1jhhhjhNhNubh)}(h3``hlist_for_each_entry_rcu_bh (pos, head, member)``h]j)}(hjѺh]h/hlist_for_each_entry_rcu_bh (pos, head, member)}(hjӺhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϺubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMLhjhhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMJhjubah}(h]h ]h"]h$]h&]uh1jhjhMJhjhhubj)}(hXe**Parameters** ``pos`` the type * to use as a loop cursor. ``head`` the head for your list. ``member`` the name of the hlist_node within the struct. **Description** This list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMNhjubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj%h]hpos}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMKhjubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMKhj;ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMKhjubj)}(h!``head`` the head for your list. h](j)}(h``head``h]j)}(hj^h]hhead}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMLhjXubj2)}(hhh]h)}(hthe head for your list.h]hthe head for your list.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMLhjtubah}(h]h ]h"]h$]h&]uh1j1hjXubeh}(h]h ]h"]h$]h&]uh1jhjshMLhjubj)}(h9``member`` the name of the hlist_node within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMMhjubj2)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjһh]h Description}(hjԻhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjлubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMOhjubh)}(hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().h]hThis list-traversal primitive may safely run concurrently with the _rcu list-mutation primitives such as hlist_add_head_rcu() as long as the traversal is guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j +hlist_for_each_entry_continue_rcu (C macro)#c.hlist_for_each_entry_continue_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h!hlist_for_each_entry_continue_rcuh]j)}(h!hlist_for_each_entry_continue_rcuh]j{)}(h!hlist_for_each_entry_continue_rcuh]j)}(hjh]h!hlist_for_each_entry_continue_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM[ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj.hM[ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj.hM[hj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj.hM[ubeh}(h]h ](jmacroeh"]h$]h&]jjjjGjjGjjjuh1jhhhjhNhNubh)}(h3``hlist_for_each_entry_continue_rcu (pos, member)``h]j)}(hjMh]h/hlist_for_each_entry_continue_rcu (pos, member)}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM]hjhhubj)}(h4iterate over a hlist continuing after current point h]h)}(h3iterate over a hlist continuing after current pointh]h3iterate over a hlist continuing after current point}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM[hjcubah}(h]h ]h"]h$]h&]uh1jhjuhM[hjhhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM_hj|ubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM\hjubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhM\hjubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjڼh]hmember}(hjܼhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjؼubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM^hjԼubj2)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhM]hjubah}(h]h ]h"]h$]h&]uh1j1hjԼubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjubeh}(h]h ]h"]h$]h&]uh1j hj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .hlist_for_each_entry_continue_rcu_bh (C macro)&c.hlist_for_each_entry_continue_rcu_bhhNtauh1hhjhhhNhNubj)}(hhh](j)}(h$hlist_for_each_entry_continue_rcu_bhh]j)}(h$hlist_for_each_entry_continue_rcu_bhh]j{)}(h$hlist_for_each_entry_continue_rcu_bhh]j)}(hj.h]h$hlist_for_each_entry_continue_rcu_bh}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMgubah}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjKhMgubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1jhjKhMghj)hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj)hhhjKhMgubeh}(h]h ](jmacroeh"]h$]h&]jjjjdjjdjjjuh1jhhhjhNhNubh)}(h6``hlist_for_each_entry_continue_rcu_bh (pos, member)``h]j)}(hjjh]h2hlist_for_each_entry_continue_rcu_bh (pos, member)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMihjhhubj)}(h4iterate over a hlist continuing after current point h]h)}(h3iterate over a hlist continuing after current pointh]h3iterate over a hlist continuing after current point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMghjubah}(h]h ]h"]h$]h&]uh1jhjhMghjhhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMkhjubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hjh]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMhhjubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hj׽hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӽhMhhjԽubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjӽhMhhjubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMjhjubj2)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMihj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hMjhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'hlist_for_each_entry_from_rcu (C macro)c.hlist_for_each_entry_from_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hhlist_for_each_entry_from_rcuh]j)}(hhlist_for_each_entry_from_rcuh]j{)}(hhlist_for_each_entry_from_rcuh]j)}(hjKh]hhlist_for_each_entry_from_rcu}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjMhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMsubah}(h]h ]h"]h$]h&]jjjuh1jjjhjIhhhjhhMsubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1jhjhhMshjFhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjFhhhjhhMsubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h/``hlist_for_each_entry_from_rcu (pos, member)``h]j)}(hjh]h+hlist_for_each_entry_from_rcu (pos, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMuhjhhubj)}(h3iterate over a hlist continuing from current point h]h)}(h2iterate over a hlist continuing from current pointh]h2iterate over a hlist continuing from current point}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMshjubah}(h]h ]h"]h$]h&]uh1jhjhMshjhhubj)}(hy**Parameters** ``pos`` the type * to use as a loop cursor. ``member`` the name of the hlist_node within the struct.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMwhjubj )}(hhh](j)}(h,``pos`` the type * to use as a loop cursor. h](j)}(h``pos``h]j)}(hj۾h]hpos}(hjݾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjپubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMthjվubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMthjubah}(h]h ]h"]h$]h&]uh1j1hjվubeh}(h]h ]h"]h$]h&]uh1jhjhMthjҾubj)}(h8``member`` the name of the hlist_node within the struct.h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMvhjubj2)}(hhh]h)}(h-the name of the hlist_node within the struct.h]h-the name of the hlist_node within the struct.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:413: ./include/linux/rculist.hhMuhj*ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj)hMvhjҾubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %hlist_nulls_del_init_rcu (C function)c.hlist_nulls_del_init_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h:void hlist_nulls_del_init_rcu (struct hlist_nulls_node *n)h]j)}(h9void hlist_nulls_del_init_rcu(struct hlist_nulls_node *n)h](j )}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKubj2)}(h h]h }(hj}hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjjhhhj|hKubj{)}(hhlist_nulls_del_init_rcuh]j)}(hhlist_nulls_del_init_rcuh]hhlist_nulls_del_init_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjjhhhj|hKubj)}(h(struct hlist_nulls_node *n)h]j)}(hstruct hlist_nulls_node *nh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjɿhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƿubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj˿modnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlist_nulls_del_init_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjjhhhj|hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjfhhhj|hKubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1jhj|hKhjchhubj)}(hhh]h)}(h3deletes entry from hash list with re-initializationh]h3deletes entry from hash list with re-initialization}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhj*hhubah}(h]h ]h"]h$]h&]uh1jhjchhhj|hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jhhhjhNhNubj)}(hXf**Parameters** ``struct hlist_nulls_node *n`` the element to delete from the hash list. **Note** hlist_nulls_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjIubj )}(hhh]j)}(hI``struct hlist_nulls_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_nulls_node *n``h]j)}(hjnh]hstruct hlist_nulls_node *n}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjhubj2)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhjeubah}(h]h ]h"]h$]h&]uh1j hjIubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjIubh)}(hhlist_nulls_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.h]hhlist_nulls_unhashed() on the node return true after this. It is useful for RCU based read lockfree traversal if the writer side must know if the list entry is still hashed or already unhashed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjIubh)}(hIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this.h]hIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list and we can only zero the pprev pointer so list_unhashed() will return true after this.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjIubh)}(hXpThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h]hXpThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j hlist_nulls_first_rcu (C macro)c.hlist_nulls_first_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hhlist_nulls_first_rcuh]j)}(hhlist_nulls_first_rcuh]j{)}(hhlist_nulls_first_rcuh]j)}(hjh]hhlist_nulls_first_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK*ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj#hK*ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj#hK*hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj#hK*ubeh}(h]h ](jmacroeh"]h$]h&]jjjj<jj<jjjuh1jhhhjhNhNubh)}(h ``hlist_nulls_first_rcu (head)``h]j)}(hjBh]hhlist_nulls_first_rcu (head)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK,hjhhubj)}(h,returns the first element of the hash list. h]h)}(h+returns the first element of the hash list.h]h+returns the first element of the hash list.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK*hjXubah}(h]h ]h"]h$]h&]uh1jhjjhK*hjhhubj)}(h0**Parameters** ``head`` the head of the list.h](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK.hjqubj )}(hhh]j)}(h``head`` the head of the list.h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK0hjubj2)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK+hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK0hjubah}(h]h ]h"]h$]h&]uh1j hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j hlist_nulls_next_rcu (C macro)c.hlist_nulls_next_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hhlist_nulls_next_rcuh]j)}(hhlist_nulls_next_rcuh]j{)}(hhlist_nulls_next_rcuh]j)}(hjh]hhlist_nulls_next_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK1ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK1hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK1ubeh}(h]h ](jmacroeh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubh)}(h``hlist_nulls_next_rcu (node)``h]j)}(hj&h]hhlist_nulls_next_rcu (node)}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK3hjhhubj)}(h0returns the element of the list after **node**. h]h)}(h/returns the element of the list after **node**.h](h&returns the element of the list after }(hj@hhhNhNubj)}(h**node**h]hnode}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK1hj<ubah}(h]h ]h"]h$]h&]uh1jhj`hK1hjhhubj)}(h/**Parameters** ``node`` element of the list.h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK5hjgubj )}(hhh]j)}(h``node`` element of the list.h](j)}(h``node``h]j)}(hjh]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK7hjubj2)}(hhh]h)}(helement of the list.h]helement of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK2hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjubah}(h]h ]h"]h$]h&]uh1j hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j hlist_nulls_pprev_rcu (C macro)c.hlist_nulls_pprev_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hhlist_nulls_pprev_rcuh]j)}(hhlist_nulls_pprev_rcuh]j{)}(hhlist_nulls_pprev_rcuh]j)}(hjh]hhlist_nulls_pprev_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK8ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK8hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK8ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h ``hlist_nulls_pprev_rcu (node)``h]j)}(hjh]hhlist_nulls_pprev_rcu (node)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK:hjhhubj)}(h,returns the dereferenced pprev of **node**. h]h)}(h+returns the dereferenced pprev of **node**.h](h"returns the dereferenced pprev of }(hj6hhhNhNubj)}(h**node**h]hnode}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK8hj2ubah}(h]h ]h"]h$]h&]uh1jhjVhK8hjhhubj)}(h/**Parameters** ``node`` element of the list.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhj|ubj2)}(hhh]h)}(helement of the list.h]helement of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK9hjubah}(h]h ]h"]h$]h&]uh1j1hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhK>hjyubah}(h]h ]h"]h$]h&]uh1j hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  hlist_nulls_del_rcu (C function)c.hlist_nulls_del_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h5void hlist_nulls_del_rcu (struct hlist_nulls_node *n)h]j)}(h4void hlist_nulls_del_rcu(struct hlist_nulls_node *n)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK?ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK?ubj{)}(hhlist_nulls_del_rcuh]j)}(hhlist_nulls_del_rcuh]hhlist_nulls_del_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK?ubj)}(h(struct hlist_nulls_node *n)h]j)}(hstruct hlist_nulls_node *nh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj&hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj9modnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlist_nulls_del_rcuasbuh1hhjubj2)}(h h]h }(hjWhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hn}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK?ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK?hjhhubj)}(hhh]h)}(h6deletes entry from hash list without re-initializationh]h6deletes entry from hash list without re-initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK?hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *n`` the element to delete from the hash list. **Note** hlist_nulls_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal. In particular, it means that we can not poison the forward pointers that may still be used for walking the hash list. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKChjubj )}(hhh]j)}(hI``struct hlist_nulls_node *n`` the element to delete from the hash list. h](j)}(h``struct hlist_nulls_node *n``h]j)}(hjh]hstruct hlist_nulls_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK@hjubj2)}(hhh]h)}(h)the element to delete from the hash list.h]h)the element to delete from the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK@hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKBhjubh)}(hhlist_nulls_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.h]hhlist_nulls_unhashed() on entry does not return true after this, the entry is in an undefined state. It is useful for RCU based lockfree traversal.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKBhjubh)}(huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.h]huIn particular, it means that we can not poison the forward pointers that may still be used for walking the hash list.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKFhjubh)}(hXkThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry().h]hXkThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry().}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKIhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %hlist_nulls_add_head_rcu (C function)c.hlist_nulls_add_head_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hVvoid hlist_nulls_add_head_rcu (struct hlist_nulls_node *n, struct hlist_nulls_head *h)h]j)}(hUvoid hlist_nulls_add_head_rcu(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j )}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKXubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjhKXubj{)}(hhlist_nulls_add_head_rcuh]j)}(hhlist_nulls_add_head_rcuh]hhlist_nulls_add_head_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjhKXubj)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j)}(hstruct hlist_nulls_node *nh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlist_nulls_add_head_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_nulls_head *hh](j)}(hj h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj2)}(h h]h }(hj5hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubh)}(hhh]j)}(hhlist_nulls_headh]hhlist_nulls_head}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjHmodnameN classnameNj] j` )}jc ]jc.hlist_nulls_add_head_rcuasbuh1hhj$ubj2)}(h h]h }(hjdhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj$ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hj(yh]hh}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjvhhhjhKXubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjhKXubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jhjhKXhjohhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjohhhjhKXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *n`` the element to add to the hash list. ``struct hlist_nulls_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist_nulls, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK\hjubj )}(hhh](j)}(hD``struct hlist_nulls_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_nulls_node *n``h]j)}(hjh]hstruct hlist_nulls_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKYhjubj2)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKYhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKYhjubj)}(h3``struct hlist_nulls_head *h`` the list to add to. h](j)}(h``struct hlist_nulls_head *h``h]j)}(hjh]hstruct hlist_nulls_head *h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKZhj ubj2)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKZhj)ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKZhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK\hjubh)}(h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.h]h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK\hjubh)}(hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK_hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j %hlist_nulls_add_tail_rcu (C function)c.hlist_nulls_add_tail_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hVvoid hlist_nulls_add_tail_rcu (struct hlist_nulls_node *n, struct hlist_nulls_head *h)h]j)}(hUvoid hlist_nulls_add_tail_rcu(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKwubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKwubj{)}(hhlist_nulls_add_tail_rcuh]j)}(hhlist_nulls_add_tail_rcuh]hhlist_nulls_add_tail_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKwubj)}(h8(struct hlist_nulls_node *n, struct hlist_nulls_head *h)h](j)}(hstruct hlist_nulls_node *nh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlist_nulls_add_tail_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hn}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_nulls_head *hh](j)}(hj h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(hhlist_nulls_headh]hhlist_nulls_head}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]jc.hlist_nulls_add_tail_rcuasbuh1hhjLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hj(yh]hh}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKwubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKwubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKwhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhKwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *n`` the element to add to the hash list. ``struct hlist_nulls_head *h`` the list to add to. **Description** Adds the specified element to the specified hlist_nulls, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK{hjubj )}(hhh](j)}(hD``struct hlist_nulls_node *n`` the element to add to the hash list. h](j)}(h``struct hlist_nulls_node *n``h]j)}(hjh]hstruct hlist_nulls_node *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKxhjubj2)}(hhh]h)}(h$the element to add to the hash list.h]h$the element to add to the hash list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKxhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKxhjubj)}(h3``struct hlist_nulls_head *h`` the list to add to. h](j)}(h``struct hlist_nulls_head *h``h]j)}(hj;h]hstruct hlist_nulls_head *h}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKyhj5ubj2)}(hhh]h)}(hthe list to add to.h]hthe list to add to.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhKyhjQubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKyhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjvh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK{hjubh)}(h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.h]h\Adds the specified element to the specified hlist_nulls, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK{hjubh)}(hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().h]hX The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency problems on Alpha CPUs. Regardless of the type of CPU, the list-traversal primitive must be guarded by rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhK~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $hlist_nulls_replace_rcu (C function)c.hlist_nulls_replace_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hYvoid hlist_nulls_replace_rcu (struct hlist_nulls_node *old, struct hlist_nulls_node *new)h]j)}(hXvoid hlist_nulls_replace_rcu(struct hlist_nulls_node *old, struct hlist_nulls_node *new)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hhlist_nulls_replace_rcuh]j)}(hhlist_nulls_replace_rcuh]hhlist_nulls_replace_rcu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h<(struct hlist_nulls_node *old, struct hlist_nulls_node *new)h](j)}(hstruct hlist_nulls_node *oldh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj'modnameN classnameNj] j` )}jc ]jf )}jY jsbc.hlist_nulls_replace_rcuasbuh1hhjubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(holdh]hold}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct hlist_nulls_node *newh](j)}(hj h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jAc.hlist_nulls_replace_rcuasbuh1hhjuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h!replace an old entry by a new oneh]h!replace an old entry by a new one}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXz**Parameters** ``struct hlist_nulls_node *old`` the element to be replaced ``struct hlist_nulls_node *new`` the new element to insert **Description** Replace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubj )}(hhh](j)}(h<``struct hlist_nulls_node *old`` the element to be replaced h](j)}(h ``struct hlist_nulls_node *old``h]j)}(hj;h]hstruct hlist_nulls_node *old}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhj5ubj2)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhKhjQubah}(h]h ]h"]h$]h&]uh1j1hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhj2ubj)}(h;``struct hlist_nulls_node *new`` the new element to insert h](j)}(h ``struct hlist_nulls_node *new``h]j)}(hjth]hstruct hlist_nulls_node *new}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjnubj2)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjhKhj2ubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubh)}(hjReplace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals.h]hjReplace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubh)}(hXpThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h]hXpThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )hlist_nulls_replace_init_rcu (C function)c.hlist_nulls_replace_init_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(h^void hlist_nulls_replace_init_rcu (struct hlist_nulls_node *old, struct hlist_nulls_node *new)h]j)}(h]void hlist_nulls_replace_init_rcu(struct hlist_nulls_node *old, struct hlist_nulls_node *new)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hhlist_nulls_replace_init_rcuh]j)}(hhlist_nulls_replace_init_rcuh]hhlist_nulls_replace_init_rcu}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h<(struct hlist_nulls_node *old, struct hlist_nulls_node *new)h](j)}(hstruct hlist_nulls_node *oldh](j)}(hj h]hstruct}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj2)}(h h]h }(hjMhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj`modnameN classnameNj] j` )}jc ]jf )}jY j&sbc.hlist_nulls_replace_init_rcuasbuh1hhj<ubj2)}(h h]h }(hj~hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(holdh]hold}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hstruct hlist_nulls_node *newh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hhlist_nulls_nodeh]hhlist_nulls_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jzc.hlist_nulls_replace_init_rcuasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnewh]hnew}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h8replace an old entry by a new one and initialize the oldh]h8replace an old entry by a new one and initialize the old}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct hlist_nulls_node *old`` the element to be replaced ``struct hlist_nulls_node *new`` the new element to insert **Description** Replace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals, and reinitialize the old entry. **Note** **old** must be hashed. The caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjOubj )}(hhh](j)}(h<``struct hlist_nulls_node *old`` the element to be replaced h](j)}(h ``struct hlist_nulls_node *old``h]j)}(hjth]hstruct hlist_nulls_node *old}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjnubj2)}(hhh]h)}(hthe element to be replacedh]hthe element to be replaced}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjnubeh}(h]h ]h"]h$]h&]uh1jhjhKhjkubj)}(h;``struct hlist_nulls_node *new`` the new element to insert h](j)}(h ``struct hlist_nulls_node *new``h]j)}(hjh]hstruct hlist_nulls_node *new}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubj2)}(hhh]h)}(hthe new element to inserth]hthe new element to insert}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjkubeh}(h]h ]h"]h$]h&]uh1j hjOubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjOubh)}(hReplace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals, and reinitialize the old entry.h]hReplace the old entry with the new one in a RCU-protected hlist_nulls, while permitting racing traversals, and reinitialize the old entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjOubh)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjOubh)}(h**old** must be hashed.h](j)}(h**old**h]hold}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubh must be hashed.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjOubh)}(hXoThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().h]hXoThe caller must take whatever precautions are necessary (such as holding appropriate locks) to avoid racing with another list-mutation primitive, such as hlist_nulls_add_head_rcu() or hlist_nulls_del_rcu(), running on this same list. However, it is perfectly legal to run concurrently with the _rcu list-traversal primitives, such as hlist_nulls_for_each_entry_rcu().}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (hlist_nulls_for_each_entry_rcu (C macro) c.hlist_nulls_for_each_entry_rcuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hhlist_nulls_for_each_entry_rcuh]j)}(hhlist_nulls_for_each_entry_rcuh]j{)}(hhlist_nulls_for_each_entry_rcuh]j)}(hjkh]hhlist_nulls_for_each_entry_rcu}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjmhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjihhhjhKubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjfhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjfhhhjhKubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h<``hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)``h]j)}(hjh]h8hlist_nulls_for_each_entry_rcu (tpos, pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjhhubj)}(h$iterate over rcu list of given type h]h)}(h#iterate over rcu list of given typeh]h#iterate over rcu list of given type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(hX**Parameters** ``tpos`` the type * to use as a loop cursor. ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. ``head`` the head of the list. ``member`` the name of the hlist_nulls_node within the struct. **Description** The barrier() is needed to make sure compiler doesn't cache first element [1], as this loop can be restarted [2] [1] Documentation/memory-barriers.txt around line 1533 [2] Documentation/RCU/rculist_nulls.rst around line 146h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubj )}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjh]htpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj4h]hpos}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhj.ubj2)}(hhh]h)}(hQthe :c:type:`struct hlist_nulls_node ` to use as a loop cursor.h](hthe }(hjMhhhNhNubh)}(h4:c:type:`struct hlist_nulls_node `h]j)}(hjWh]hstruct hlist_nulls_node}(hjYhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjhlist_nulls_nodeuh1hhjIhKhjMubh to use as a loop cursor.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjIhKhjJubah}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKhjubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hjh]hhead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubj2)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h?``member`` the name of the hlist_nulls_node within the struct. h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubj2)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubh)}(hThe barrier() is needed to make sure compiler doesn't cache first element [1], as this loop can be restarted [2] [1] Documentation/memory-barriers.txt around line 1533 [2] Documentation/RCU/rculist_nulls.rst around line 146h]hThe barrier() is needed to make sure compiler doesn’t cache first element [1], as this loop can be restarted [2] [1] Documentation/memory-barriers.txt around line 1533 [2] Documentation/RCU/rculist_nulls.rst around line 146}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j )hlist_nulls_for_each_entry_safe (C macro)!c.hlist_nulls_for_each_entry_safehNtauh1hhjhhhNhNubj)}(hhh](j)}(hhlist_nulls_for_each_entry_safeh]j)}(hhlist_nulls_for_each_entry_safeh]j{)}(hhlist_nulls_for_each_entry_safeh]j)}(hjCh]hhlist_nulls_for_each_entry_safe}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjEhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKubah}(h]h ]h"]h$]h&]jjjuh1jjjhjAhhhj`hKubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1jhj`hKhj>hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj>hhhj`hKubeh}(h]h ](jmacroeh"]h$]h&]jjjjyjjyjjjuh1jhhhjhNhNubh)}(h=``hlist_nulls_for_each_entry_safe (tpos, pos, head, member)``h]j)}(hjh]h9hlist_nulls_for_each_entry_safe (tpos, pos, head, member)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjhhubj)}(hCiterate over list of given type safe against removal of list entry h]h)}(hBiterate over list of given type safe against removal of list entryh]hBiterate over list of given type safe against removal of list entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhjhhubj)}(h**Parameters** ``tpos`` the type * to use as a loop cursor. ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. ``head`` the head of the list. ``member`` the name of the hlist_nulls_node within the struct.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubj )}(hhh](j)}(h-``tpos`` the type * to use as a loop cursor. h](j)}(h``tpos``h]j)}(hjh]htpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubj2)}(hhh]h)}(h#the type * to use as a loop cursor.h]h#the type * to use as a loop cursor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hZ``pos`` the :c:type:`struct hlist_nulls_node ` to use as a loop cursor. h](j)}(h``pos``h]j)}(hj h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubj2)}(hhh]h)}(hQthe :c:type:`struct hlist_nulls_node ` to use as a loop cursor.h](hthe }(hj%hhhNhNubh)}(h4:c:type:`struct hlist_nulls_node `h]j)}(hj/h]hstruct hlist_nulls_node}(hj1hhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]refdocj< refdomainjreftypetype refexplicitrefwarnj] jjhlist_nulls_nodeuh1hhj!hKhj%ubh to use as a loop cursor.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj!hKhj"ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj!hKhjubj)}(h``head`` the head of the list. h](j)}(h``head``h]j)}(hjhh]hhead}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjbubj2)}(hhh]h)}(hthe head of the list.h]hthe head of the list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKhj~ubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKhjubj)}(h>``member`` the name of the hlist_nulls_node within the struct.h](j)}(h ``member``h]j)}(hjh]hmember}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubj2)}(hhh]h)}(h3the name of the hlist_nulls_node within the struct.h]h3the name of the hlist_nulls_node within the struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:415: ./include/linux/rculist_nulls.hhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_sync_is_idle (C function)c.rcu_sync_is_idlehNtauh1hhjhhhNhNubj)}(hhh](j)}(h,bool rcu_sync_is_idle (struct rcu_sync *rsp)h]j)}(h+bool rcu_sync_is_idle(struct rcu_sync *rsp)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:417: ./include/linux/rcu_sync.hhKubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hrcu_sync_is_idleh]j)}(hrcu_sync_is_idleh]hrcu_sync_is_idle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj h]hstruct}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj2)}(h h]h }(hjDhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjWmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.rcu_sync_is_idleasbuh1hhj3ubj2)}(h h]h }(hjuhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj/ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h-Are readers permitted to use their fastpaths?h]h-Are readers permitted to use their fastpaths?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:417: ./include/linux/rcu_sync.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization **Description** Returns true if readers are permitted to use their fastpaths. Must be invoked within some flavor of RCU read-side critical section.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:417: ./include/linux/rcu_sync.hhKhjubj )}(hhh]j)}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j)}(h``struct rcu_sync *rsp``h]j)}(hjh]hstruct rcu_sync *rsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:417: ./include/linux/rcu_sync.hhKhjubj2)}(hhh]h)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:417: ./include/linux/rcu_sync.hhKhjubh)}(hReturns true if readers are permitted to use their fastpaths. Must be invoked within some flavor of RCU read-side critical section.h]hReturns true if readers are permitted to use their fastpaths. Must be invoked within some flavor of RCU read-side critical section.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh]/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:417: ./include/linux/rcu_sync.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_sync_init (C function)c.rcu_sync_inithNtauh1hhjhhhNhNubj)}(hhh](j)}(h)void rcu_sync_init (struct rcu_sync *rsp)h]j)}(h(void rcu_sync_init(struct rcu_sync *rsp)h](j )}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjwhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjwhhhjhKubj{)}(h rcu_sync_inith]j)}(h rcu_sync_inith]h rcu_sync_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjwhhhjhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.rcu_sync_initasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjwhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjshhhjhKubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjphhubj)}(hhh]h)}(h Initialize an rcu_sync structureh]h Initialize an rcu_sync structure}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhj8hhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1jhhhjhNhNubj)}(hZ**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be initializedh](h)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjWubj )}(hhh]j)}(hH``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be initializedh](j)}(h``struct rcu_sync *rsp``h]j)}(hj|h]hstruct rcu_sync *rsp}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjvubj2)}(hhh]h)}(h/Pointer to rcu_sync structure to be initializedh]h/Pointer to rcu_sync structure to be initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjubah}(h]h ]h"]h$]h&]uh1j1hjvubeh}(h]h ]h"]h$]h&]uh1jhjhKhjsubah}(h]h ]h"]h$]h&]uh1j hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_sync_func (C function)c.rcu_sync_funchNtauh1hhjhhhNhNubj)}(hhh](j)}(h)void rcu_sync_func (struct rcu_head *rhp)h]j)}(h(void rcu_sync_func(struct rcu_head *rhp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK#ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK#ubj{)}(h rcu_sync_funch]j)}(h rcu_sync_funch]h rcu_sync_func}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK#ubj)}(h(struct rcu_head *rhp)h]j)}(hstruct rcu_head *rhph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hj hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj3modnameN classnameNj] j` )}jc ]jf )}jY jsbc.rcu_sync_funcasbuh1hhjubj2)}(h h]h }(hjQhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrhph]hrhp}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK#ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK#ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK#hjhhubj)}(hhh]h)}(h4Callback function managing reader access to fastpathh]h4Callback function managing reader access to fastpath}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK#hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK#ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_head *rhp`` Pointer to rcu_head in rcu_sync structure to use for synchronization **Description** This function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit. If it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path. If it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period. If another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK'hjubj )}(hhh]j)}(h^``struct rcu_head *rhp`` Pointer to rcu_head in rcu_sync structure to use for synchronization h](j)}(h``struct rcu_head *rhp``h]j)}(hjh]hstruct rcu_head *rhp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK$hjubj2)}(hhh]h)}(hDPointer to rcu_head in rcu_sync structure to use for synchronizationh]hDPointer to rcu_head in rcu_sync structure to use for synchronization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK$hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK$hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK&hjubh)}(hThis function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit.h]hThis function is passed to call_rcu() function by rcu_sync_enter() and rcu_sync_exit(), so that it is invoked after a grace period following the that invocation of enter/exit.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK%hjubh)}(haIf it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path.h]haIf it is called by rcu_sync_enter() it signals that all the readers were switched onto slow path.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK)hjubh)}(hIf it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period.h]hIf it is called by rcu_sync_exit() it takes action based on events that have taken place in the meantime, so that closely spaced rcu_sync_enter() and rcu_sync_exit() pairs need not wait for a grace period.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK,hjubh)}(hXIf another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.h]hXIf another rcu_sync_enter() is invoked before the grace period ended, reset state to allow the next rcu_sync_exit() to let the readers back onto their fastpaths (after a grace period). If both another rcu_sync_enter() and its matching rcu_sync_exit() are invoked before the grace period ended, re-invoke call_rcu() on behalf of that rcu_sync_exit(). Otherwise, set all state back to idle so that readers can again use their fastpaths.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK0hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_sync_enter (C function)c.rcu_sync_enterhNtauh1hhjhhhNhNubj)}(hhh](j)}(h*void rcu_sync_enter (struct rcu_sync *rsp)h]j)}(h)void rcu_sync_enter(struct rcu_sync *rsp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK[ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK[ubj{)}(hrcu_sync_enterh]j)}(hrcu_sync_enterh]hrcu_sync_enter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK[ubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.rcu_sync_enterasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK[ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj|hhhjhK[ubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1jhjhK[hjyhhubj)}(hhh]h)}(hForce readers onto slowpathh]hForce readers onto slowpath}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK[hjAhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhK[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj\jj\jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization **Description** This function is used by updaters who need readers to make use of a slowpath during the update. After this function returns, all subsequent calls to rcu_sync_is_idle() will return false, which tells readers to stay off their fastpaths. A later call to rcu_sync_exit() re-enables reader fastpaths. When called in isolation, rcu_sync_enter() must wait for a grace period, however, closely spaced calls to rcu_sync_enter() can optimize away the grace-period wait via a state machine implemented by rcu_sync_enter(), rcu_sync_exit(), and rcu_sync_func().h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK_hj`ubj )}(hhh]j)}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j)}(h``struct rcu_sync *rsp``h]j)}(hjh]hstruct rcu_sync *rsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK\hjubj2)}(hhh]h)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK\hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hj|ubah}(h]h ]h"]h$]h&]uh1j hj`ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK^hj`ubh)}(hX*This function is used by updaters who need readers to make use of a slowpath during the update. After this function returns, all subsequent calls to rcu_sync_is_idle() will return false, which tells readers to stay off their fastpaths. A later call to rcu_sync_exit() re-enables reader fastpaths.h]hX*This function is used by updaters who need readers to make use of a slowpath during the update. After this function returns, all subsequent calls to rcu_sync_is_idle() will return false, which tells readers to stay off their fastpaths. A later call to rcu_sync_exit() re-enables reader fastpaths.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chK]hj`ubh)}(hWhen called in isolation, rcu_sync_enter() must wait for a grace period, however, closely spaced calls to rcu_sync_enter() can optimize away the grace-period wait via a state machine implemented by rcu_sync_enter(), rcu_sync_exit(), and rcu_sync_func().h]hWhen called in isolation, rcu_sync_enter() must wait for a grace period, however, closely spaced calls to rcu_sync_enter() can optimize away the grace-period wait via a state machine implemented by rcu_sync_enter(), rcu_sync_exit(), and rcu_sync_func().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKchj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_sync_exit (C function)c.rcu_sync_exithNtauh1hhjhhhNhNubj)}(hhh](j)}(h)void rcu_sync_exit (struct rcu_sync *rsp)h]j)}(h(void rcu_sync_exit(struct rcu_sync *rsp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKubj2)}(h h]h }(hj#hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj"hKubj{)}(h rcu_sync_exith]j)}(h rcu_sync_exith]h rcu_sync_exit}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj"hKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj h]hstruct}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj2)}(h h]h }(hj^hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjqmodnameN classnameNj] j` )}jc ]jf )}jY j7sbc.rcu_sync_exitasbuh1hhjMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj)}(hrsph]hrsp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj"hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj"hKhj hhubj)}(hhh]h)}(h4Allow readers back onto fast path after grace periodh]h4Allow readers back onto fast path after grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization **Description** This function is used by updaters who have completed, and can therefore now allow readers to make use of their fastpaths after a grace period has elapsed. After this grace period has completed, all subsequent calls to rcu_sync_is_idle() will return true, which tells readers that they can once again use their fastpaths.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjubj )}(hhh]j)}(hR``struct rcu_sync *rsp`` Pointer to rcu_sync structure to use for synchronization h](j)}(h``struct rcu_sync *rsp``h]j)}(hjh]hstruct rcu_sync *rsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjubj2)}(hhh]h)}(h8Pointer to rcu_sync structure to use for synchronizationh]h8Pointer to rcu_sync structure to use for synchronization}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hKhj+ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj*hKhj ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjubh)}(hXAThis function is used by updaters who have completed, and can therefore now allow readers to make use of their fastpaths after a grace period has elapsed. After this grace period has completed, all subsequent calls to rcu_sync_is_idle() will return true, which tells readers that they can once again use their fastpaths.h]hXAThis function is used by updaters who have completed, and can therefore now allow readers to make use of their fastpaths after a grace period has elapsed. After this grace period has completed, all subsequent calls to rcu_sync_is_idle() will return true, which tells readers that they can once again use their fastpaths.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_sync_dtor (C function)c.rcu_sync_dtorhNtauh1hhjhhhNhNubj)}(hhh](j)}(h)void rcu_sync_dtor (struct rcu_sync *rsp)h]j)}(h(void rcu_sync_dtor(struct rcu_sync *rsp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h rcu_sync_dtorh]j)}(h rcu_sync_dtorh]h rcu_sync_dtor}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(struct rcu_sync *rsp)h]j)}(hstruct rcu_sync *rsph](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(hrcu_synch]hrcu_sync}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsbc.rcu_sync_dtorasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrsph]hrsp}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hClean up an rcu_sync structureh]hClean up an rcu_sync structure}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhjhNhNubj)}(hY**Parameters** ``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be cleaned uph](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjqubj )}(hhh]j)}(hG``struct rcu_sync *rsp`` Pointer to rcu_sync structure to be cleaned uph](j)}(h``struct rcu_sync *rsp``h]j)}(hjh]hstruct rcu_sync *rsp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjubj2)}(hhh]h)}(h.Pointer to rcu_sync structure to be cleaned uph]h.Pointer to rcu_sync structure to be cleaned up}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:419: ./kernel/rcu/sync.chKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_tasks_percpu (C struct)c.rcu_tasks_percpuhNtauh1hhjhhhNhNubj)}(hhh](j)}(hrcu_tasks_percpuh]j)}(hstruct rcu_tasks_percpuh](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hrcu_tasks_percpuh]j)}(hjh]hrcu_tasks_percpu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h?Per-CPU component of definition for a Tasks-RCU-like mechanism.h]h?Per-CPU component of definition for a Tasks-RCU-like mechanism.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjJjjJjjjuh1jhhhjhNhNubj)}(hX**Definition**:: struct rcu_tasks_percpu { struct rcu_segcblist cblist; raw_spinlock_t lock; unsigned long rtp_jiffies; unsigned long rtp_n_lock_retries; struct timer_list lazy_timer; unsigned int urgent_gp; struct work_struct rtp_work; struct irq_work rtp_irq_work; struct rcu_head barrier_q_head; struct list_head rtp_blkd_tasks; struct list_head rtp_exit_list; int cpu; int index; struct rcu_tasks *rtpp; }; **Members** ``cblist`` Callback list. ``lock`` Lock protecting per-CPU callback list. ``rtp_jiffies`` Jiffies counter value for statistics. ``rtp_n_lock_retries`` Rough lock-contention statistic. ``lazy_timer`` Timer to unlazify callbacks. ``urgent_gp`` Number of additional non-lazy grace periods. ``rtp_work`` Work queue for invoking callbacks. ``rtp_irq_work`` IRQ work queue for deferred wakeups. ``barrier_q_head`` RCU callback for barrier operation. ``rtp_blkd_tasks`` List of tasks blocked as readers. ``rtp_exit_list`` List of tasks in the latter portion of do_exit(). ``cpu`` CPU number corresponding to this entry. ``index`` Index of this CPU in rtpcp_array of the rcu_tasks structure. ``rtpp`` Pointer to the rcu_tasks structure.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubh:}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjNubjH)}(hXstruct rcu_tasks_percpu { struct rcu_segcblist cblist; raw_spinlock_t lock; unsigned long rtp_jiffies; unsigned long rtp_n_lock_retries; struct timer_list lazy_timer; unsigned int urgent_gp; struct work_struct rtp_work; struct irq_work rtp_irq_work; struct rcu_head barrier_q_head; struct list_head rtp_blkd_tasks; struct list_head rtp_exit_list; int cpu; int index; struct rcu_tasks *rtpp; };h]hXstruct rcu_tasks_percpu { struct rcu_segcblist cblist; raw_spinlock_t lock; unsigned long rtp_jiffies; unsigned long rtp_n_lock_retries; struct timer_list lazy_timer; unsigned int urgent_gp; struct work_struct rtp_work; struct irq_work rtp_irq_work; struct rcu_head barrier_q_head; struct list_head rtp_blkd_tasks; struct list_head rtp_exit_list; int cpu; int index; struct rcu_tasks *rtpp; };}hjosbah}(h]h ]h"]h$]h&]jjuh1jHhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjNubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK/hjNubj )}(hhh](j)}(h``cblist`` Callback list. h](j)}(h ``cblist``h]j)}(hjh]hcblist}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjubj2)}(hhh]h)}(hCallback list.h]hCallback list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h0``lock`` Lock protecting per-CPU callback list. h](j)}(h``lock``h]j)}(hjh]hlock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjubj2)}(hhh]h)}(h&Lock protecting per-CPU callback list.h]h&Lock protecting per-CPU callback list.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h6``rtp_jiffies`` Jiffies counter value for statistics. h](j)}(h``rtp_jiffies``h]j)}(hjh]h rtp_jiffies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhj ubj2)}(hhh]h)}(h%Jiffies counter value for statistics.h]h%Jiffies counter value for statistics.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hKhj'ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjubj)}(h8``rtp_n_lock_retries`` Rough lock-contention statistic. h](j)}(h``rtp_n_lock_retries``h]j)}(hjJh]hrtp_n_lock_retries}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjDubj2)}(hhh]h)}(h Rough lock-contention statistic.h]h Rough lock-contention statistic.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjubj)}(h,``lazy_timer`` Timer to unlazify callbacks. h](j)}(h``lazy_timer``h]j)}(hjh]h lazy_timer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhj}ubj2)}(hhh]h)}(hTimer to unlazify callbacks.h]hTimer to unlazify callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h;``urgent_gp`` Number of additional non-lazy grace periods. h](j)}(h ``urgent_gp``h]j)}(hjh]h urgent_gp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjubj2)}(hhh]h)}(h,Number of additional non-lazy grace periods.h]h,Number of additional non-lazy grace periods.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h0``rtp_work`` Work queue for invoking callbacks. h](j)}(h ``rtp_work``h]j)}(hjh]hrtp_work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK hjubj2)}(hhh]h)}(h"Work queue for invoking callbacks.h]h"Work queue for invoking callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK hj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hK hjubj)}(h6``rtp_irq_work`` IRQ work queue for deferred wakeups. h](j)}(h``rtp_irq_work``h]j)}(hj.h]h rtp_irq_work}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK!hj(ubj2)}(hhh]h)}(h$IRQ work queue for deferred wakeups.h]h$IRQ work queue for deferred wakeups.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChK!hjDubah}(h]h ]h"]h$]h&]uh1j1hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChK!hjubj)}(h7``barrier_q_head`` RCU callback for barrier operation. h](j)}(h``barrier_q_head``h]j)}(hjgh]hbarrier_q_head}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK"hjaubj2)}(hhh]h)}(h#RCU callback for barrier operation.h]h#RCU callback for barrier operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hK"hj}ubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hK"hjubj)}(h5``rtp_blkd_tasks`` List of tasks blocked as readers. h](j)}(h``rtp_blkd_tasks``h]j)}(hjh]hrtp_blkd_tasks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK#hjubj2)}(hhh]h)}(h!List of tasks blocked as readers.h]h!List of tasks blocked as readers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjubj)}(hD``rtp_exit_list`` List of tasks in the latter portion of do_exit(). h](j)}(h``rtp_exit_list``h]j)}(hjh]h rtp_exit_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK$hjubj2)}(hhh]h)}(h1List of tasks in the latter portion of do_exit().h]h1List of tasks in the latter portion of do_exit().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK$hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK$hjubj)}(h0``cpu`` CPU number corresponding to this entry. h](j)}(h``cpu``h]j)}(hjh]hcpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK%hj ubj2)}(hhh]h)}(h'CPU number corresponding to this entry.h]h'CPU number corresponding to this entry.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hK%hj(ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hK%hjubj)}(hG``index`` Index of this CPU in rtpcp_array of the rcu_tasks structure. h](j)}(h ``index``h]j)}(hjKh]hindex}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK&hjEubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hjhhhjhK-ubj{)}(h rcu_tasksh]j)}(hjh]h rcu_tasks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK-ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK-ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK-hjhhubj)}(hhh]h)}(h*Definition for a Tasks-RCU-like mechanism.h]h*Definition for a Tasks-RCU-like mechanism.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK:hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK-ubeh}(h]h ](jstructeh"]h$]h&]jjjj8jj8jjjuh1jhhhjhNhNubj)}(hX= **Definition**:: struct rcu_tasks { struct rcuwait cbs_wait; raw_spinlock_t cbs_gbl_lock; struct mutex tasks_gp_mutex; int gp_state; int gp_sleep; int init_fract; unsigned long gp_jiffies; unsigned long gp_start; unsigned long tasks_gp_seq; unsigned long n_ipis; struct task_struct *kthread_ptr; unsigned long lazy_jiffies; rcu_tasks_gp_func_t gp_func; pregp_func_t pregp_func; pertask_func_t pertask_func; postscan_func_t postscan_func; holdouts_func_t holdouts_func; postgp_func_t postgp_func; call_rcu_func_t call_func; unsigned int wait_state; struct rcu_tasks_percpu __percpu *rtpcpu; struct rcu_tasks_percpu **rtpcp_array; int percpu_enqueue_shift; int percpu_enqueue_lim; int percpu_dequeue_lim; unsigned long percpu_dequeue_gpseq; struct mutex barrier_q_mutex; atomic_t barrier_q_count; struct completion barrier_q_completion; unsigned long barrier_q_seq; unsigned long barrier_q_start; char *name; char *kname; }; **Members** ``cbs_wait`` RCU wait allowing a new callback to get kthread's attention. ``cbs_gbl_lock`` Lock protecting callback list. ``tasks_gp_mutex`` Mutex protecting grace period, needed during mid-boot dead zone. ``gp_state`` Grace period's most recent state transition (debugging). ``gp_sleep`` Per-grace-period sleep to prevent CPU-bound looping. ``init_fract`` Initial backoff sleep interval. ``gp_jiffies`` Time of last **gp_state** transition. ``gp_start`` Most recent grace-period start in jiffies. ``tasks_gp_seq`` Number of grace periods completed since boot in upper bits. ``n_ipis`` Number of IPIs sent to encourage grace periods to end. ``kthread_ptr`` This flavor's grace-period/callback-invocation kthread. ``lazy_jiffies`` Number of jiffies to allow callbacks to be lazy. ``gp_func`` This flavor's grace-period-wait function. ``pregp_func`` This flavor's pre-grace-period function (optional). ``pertask_func`` This flavor's per-task scan function (optional). ``postscan_func`` This flavor's post-task scan function (optional). ``holdouts_func`` This flavor's holdout-list scan function (optional). ``postgp_func`` This flavor's post-grace-period function (optional). ``call_func`` This flavor's call_rcu()-equivalent function. ``wait_state`` Task state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE). ``rtpcpu`` This flavor's rcu_tasks_percpu structure. ``rtpcp_array`` Array of pointers to rcu_tasks_percpu structure of CPUs in cpu_possible_mask. ``percpu_enqueue_shift`` Shift down CPU ID this much when enqueuing callbacks. ``percpu_enqueue_lim`` Number of per-CPU callback queues in use for enqueuing. ``percpu_dequeue_lim`` Number of per-CPU callback queues in use for dequeuing. ``percpu_dequeue_gpseq`` RCU grace-period number to propagate enqueue limit to dequeuers. ``barrier_q_mutex`` Serialize barrier operations. ``barrier_q_count`` Number of queues being waited on. ``barrier_q_completion`` Barrier wait/wakeup mechanism. ``barrier_q_seq`` Sequence number for barrier operations. ``barrier_q_start`` Most recent barrier start in jiffies. ``name`` This flavor's textual name. ``kname`` This flavor's kthread name.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh:}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK>hj<ubjH)}(hX struct rcu_tasks { struct rcuwait cbs_wait; raw_spinlock_t cbs_gbl_lock; struct mutex tasks_gp_mutex; int gp_state; int gp_sleep; int init_fract; unsigned long gp_jiffies; unsigned long gp_start; unsigned long tasks_gp_seq; unsigned long n_ipis; struct task_struct *kthread_ptr; unsigned long lazy_jiffies; rcu_tasks_gp_func_t gp_func; pregp_func_t pregp_func; pertask_func_t pertask_func; postscan_func_t postscan_func; holdouts_func_t holdouts_func; postgp_func_t postgp_func; call_rcu_func_t call_func; unsigned int wait_state; struct rcu_tasks_percpu __percpu *rtpcpu; struct rcu_tasks_percpu **rtpcp_array; int percpu_enqueue_shift; int percpu_enqueue_lim; int percpu_dequeue_lim; unsigned long percpu_dequeue_gpseq; struct mutex barrier_q_mutex; atomic_t barrier_q_count; struct completion barrier_q_completion; unsigned long barrier_q_seq; unsigned long barrier_q_start; char *name; char *kname; };h]hX struct rcu_tasks { struct rcuwait cbs_wait; raw_spinlock_t cbs_gbl_lock; struct mutex tasks_gp_mutex; int gp_state; int gp_sleep; int init_fract; unsigned long gp_jiffies; unsigned long gp_start; unsigned long tasks_gp_seq; unsigned long n_ipis; struct task_struct *kthread_ptr; unsigned long lazy_jiffies; rcu_tasks_gp_func_t gp_func; pregp_func_t pregp_func; pertask_func_t pertask_func; postscan_func_t postscan_func; holdouts_func_t holdouts_func; postgp_func_t postgp_func; call_rcu_func_t call_func; unsigned int wait_state; struct rcu_tasks_percpu __percpu *rtpcpu; struct rcu_tasks_percpu **rtpcp_array; int percpu_enqueue_shift; int percpu_enqueue_lim; int percpu_dequeue_lim; unsigned long percpu_dequeue_gpseq; struct mutex barrier_q_mutex; atomic_t barrier_q_count; struct completion barrier_q_completion; unsigned long barrier_q_seq; unsigned long barrier_q_start; char *name; char *kname; };}hj]sbah}(h]h ]h"]h$]h&]jjuh1jHhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK@hj<ubh)}(h **Members**h]j)}(hjnh]hMembers}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKdhj<ubj )}(hhh](j)}(hJ``cbs_wait`` RCU wait allowing a new callback to get kthread's attention. h](j)}(h ``cbs_wait``h]j)}(hjh]hcbs_wait}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKRCU wait allowing a new callback to get kthread’s attention.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubj2)}(hhh]h)}(h@Mutex protecting grace period, needed during mid-boot dead zone.h]h@Mutex protecting grace period, needed during mid-boot dead zone.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK>hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK>hjubj)}(hF``gp_state`` Grace period's most recent state transition (debugging). h](j)}(h ``gp_state``h]j)}(hj8h]hgp_state}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK@hj2ubj2)}(hhh]h)}(h8Grace period's most recent state transition (debugging).h]h:Grace period’s most recent state transition (debugging).}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhK@hjNubah}(h]h ]h"]h$]h&]uh1j1hj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhK@hjubj)}(hB``gp_sleep`` Per-grace-period sleep to prevent CPU-bound looping. h](j)}(h ``gp_sleep``h]j)}(hjqh]hgp_sleep}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKAhjkubj2)}(hhh]h)}(h4Per-grace-period sleep to prevent CPU-bound looping.h]h4Per-grace-period sleep to prevent CPU-bound looping.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKAhjubah}(h]h ]h"]h$]h&]uh1j1hjkubeh}(h]h ]h"]h$]h&]uh1jhjhKAhjubj)}(h/``init_fract`` Initial backoff sleep interval. h](j)}(h``init_fract``h]j)}(hjh]h init_fract}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKBhjubj2)}(hhh]h)}(hInitial backoff sleep interval.h]hInitial backoff sleep interval.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKBhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKBhjubj)}(h5``gp_jiffies`` Time of last **gp_state** transition. h](j)}(h``gp_jiffies``h]j)}(hjh]h gp_jiffies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKChjubj2)}(hhh]h)}(h%Time of last **gp_state** transition.h](h Time of last }(hjhhhNhNubj)}(h **gp_state**h]hgp_state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh transition.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjubj)}(h8``gp_start`` Most recent grace-period start in jiffies. h](j)}(h ``gp_start``h]j)}(hj.h]hgp_start}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKDhj(ubj2)}(hhh]h)}(h*Most recent grace-period start in jiffies.h]h*Most recent grace-period start in jiffies.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChKDhjDubah}(h]h ]h"]h$]h&]uh1j1hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKDhjubj)}(hM``tasks_gp_seq`` Number of grace periods completed since boot in upper bits. h](j)}(h``tasks_gp_seq``h]j)}(hjgh]h tasks_gp_seq}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKEhjaubj2)}(hhh]h)}(h;Number of grace periods completed since boot in upper bits.h]h;Number of grace periods completed since boot in upper bits.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hKEhj}ubah}(h]h ]h"]h$]h&]uh1j1hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKEhjubj)}(hB``n_ipis`` Number of IPIs sent to encourage grace periods to end. h](j)}(h ``n_ipis``h]j)}(hjh]hn_ipis}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKFhjubj2)}(hhh]h)}(h6Number of IPIs sent to encourage grace periods to end.h]h6Number of IPIs sent to encourage grace periods to end.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKFhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKFhjubj)}(hH``kthread_ptr`` This flavor's grace-period/callback-invocation kthread. h](j)}(h``kthread_ptr``h]j)}(hjh]h kthread_ptr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKGhjubj2)}(hhh]h)}(h7This flavor's grace-period/callback-invocation kthread.h]h9This flavor’s grace-period/callback-invocation kthread.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKGhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjubj)}(hB``lazy_jiffies`` Number of jiffies to allow callbacks to be lazy. h](j)}(h``lazy_jiffies``h]j)}(hjh]h lazy_jiffies}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKHhj ubj2)}(hhh]h)}(h0Number of jiffies to allow callbacks to be lazy.h]h0Number of jiffies to allow callbacks to be lazy.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKHhj(ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hKHhjubj)}(h6``gp_func`` This flavor's grace-period-wait function. h](j)}(h ``gp_func``h]j)}(hjKh]hgp_func}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK?hjEubj2)}(hhh]h)}(h)This flavor's grace-period-wait function.h]h+This flavor’s grace-period-wait function.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hK?hjaubah}(h]h ]h"]h$]h&]uh1j1hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hK?hjubj)}(hC``pregp_func`` This flavor's pre-grace-period function (optional). h](j)}(h``pregp_func``h]j)}(hjh]h pregp_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKIhj~ubj2)}(hhh]h)}(h3This flavor's pre-grace-period function (optional).h]h5This flavor’s pre-grace-period function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKIhjubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKIhjubj)}(hB``pertask_func`` This flavor's per-task scan function (optional). h](j)}(h``pertask_func``h]j)}(hjh]h pertask_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKJhjubj2)}(hhh]h)}(h0This flavor's per-task scan function (optional).h]h2This flavor’s per-task scan function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKJhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKJhjubj)}(hD``postscan_func`` This flavor's post-task scan function (optional). h](j)}(h``postscan_func``h]j)}(hjh]h postscan_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKKhjubj2)}(hhh]h)}(h1This flavor's post-task scan function (optional).h]h3This flavor’s post-task scan function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKKhj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKKhjubj)}(hG``holdouts_func`` This flavor's holdout-list scan function (optional). h](j)}(h``holdouts_func``h]j)}(hj/h]h holdouts_func}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKLhj)ubj2)}(hhh]h)}(h4This flavor's holdout-list scan function (optional).h]h6This flavor’s holdout-list scan function (optional).}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhKLhjEubah}(h]h ]h"]h$]h&]uh1j1hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKLhjubj)}(hE``postgp_func`` This flavor's post-grace-period function (optional). h](j)}(h``postgp_func``h]j)}(hjhh]h postgp_func}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKMhjbubj2)}(hhh]h)}(h4This flavor's post-grace-period function (optional).h]h6This flavor’s post-grace-period function (optional).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hKMhj~ubah}(h]h ]h"]h$]h&]uh1j1hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hKMhjubj)}(h<``call_func`` This flavor's call_rcu()-equivalent function. h](j)}(h ``call_func``h]j)}(hjh]h call_func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKNhjubj2)}(hhh]h)}(h-This flavor's call_rcu()-equivalent function.h]h/This flavor’s call_rcu()-equivalent function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjubj)}(h]``wait_state`` Task state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE). h](j)}(h``wait_state``h]j)}(hjh]h wait_state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKOhjubj2)}(hhh]h)}(hMTask state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE).h]hMTask state for synchronous grace-period waits (default TASK_UNINTERRUPTIBLE).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKOhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjubj)}(h5``rtpcpu`` This flavor's rcu_tasks_percpu structure. h](j)}(h ``rtpcpu``h]j)}(hjh]hrtpcpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKPhj ubj2)}(hhh]h)}(h)This flavor's rcu_tasks_percpu structure.h]h+This flavor’s rcu_tasks_percpu structure.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hKPhj)ubah}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hKPhjubj)}(h^``rtpcp_array`` Array of pointers to rcu_tasks_percpu structure of CPUs in cpu_possible_mask. h](j)}(h``rtpcp_array``h]j)}(hjLh]h rtpcp_array}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKQhjFubj2)}(hhh]h)}(hMArray of pointers to rcu_tasks_percpu structure of CPUs in cpu_possible_mask.h]hMArray of pointers to rcu_tasks_percpu structure of CPUs in cpu_possible_mask.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahKQhjbubah}(h]h ]h"]h$]h&]uh1j1hjFubeh}(h]h ]h"]h$]h&]uh1jhjahKQhjubj)}(hO``percpu_enqueue_shift`` Shift down CPU ID this much when enqueuing callbacks. h](j)}(h``percpu_enqueue_shift``h]j)}(hjh]hpercpu_enqueue_shift}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKRhjubj2)}(hhh]h)}(h5Shift down CPU ID this much when enqueuing callbacks.h]h5Shift down CPU ID this much when enqueuing callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKRhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjubj)}(hO``percpu_enqueue_lim`` Number of per-CPU callback queues in use for enqueuing. h](j)}(h``percpu_enqueue_lim``h]j)}(hjh]hpercpu_enqueue_lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKShjubj2)}(hhh]h)}(h7Number of per-CPU callback queues in use for enqueuing.h]h7Number of per-CPU callback queues in use for enqueuing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKShjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKShjubj)}(hO``percpu_dequeue_lim`` Number of per-CPU callback queues in use for dequeuing. h](j)}(h``percpu_dequeue_lim``h]j)}(hjh]hpercpu_dequeue_lim}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKThjubj2)}(hhh]h)}(h7Number of per-CPU callback queues in use for dequeuing.h]h7Number of per-CPU callback queues in use for dequeuing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKThj ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj hKThjubj)}(hZ``percpu_dequeue_gpseq`` RCU grace-period number to propagate enqueue limit to dequeuers. h](j)}(h``percpu_dequeue_gpseq``h]j)}(hj0h]hpercpu_dequeue_gpseq}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKUhj*ubj2)}(hhh]h)}(h@RCU grace-period number to propagate enqueue limit to dequeuers.h]h@RCU grace-period number to propagate enqueue limit to dequeuers.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKUhjFubah}(h]h ]h"]h$]h&]uh1j1hj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKUhjubj)}(h2``barrier_q_mutex`` Serialize barrier operations. h](j)}(h``barrier_q_mutex``h]j)}(hjih]hbarrier_q_mutex}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKVhjcubj2)}(hhh]h)}(hSerialize barrier operations.h]hSerialize barrier operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hKVhjubah}(h]h ]h"]h$]h&]uh1j1hjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKVhjubj)}(h6``barrier_q_count`` Number of queues being waited on. h](j)}(h``barrier_q_count``h]j)}(hjh]hbarrier_q_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKWhjubj2)}(hhh]h)}(h!Number of queues being waited on.h]h!Number of queues being waited on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKWhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKWhjubj)}(h8``barrier_q_completion`` Barrier wait/wakeup mechanism. h](j)}(h``barrier_q_completion``h]j)}(hjh]hbarrier_q_completion}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKXhjubj2)}(hhh]h)}(hBarrier wait/wakeup mechanism.h]hBarrier wait/wakeup mechanism.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKXhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKXhjubj)}(h:``barrier_q_seq`` Sequence number for barrier operations. h](j)}(h``barrier_q_seq``h]j)}(hjh]h barrier_q_seq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKYhjubj2)}(hhh]h)}(h'Sequence number for barrier operations.h]h'Sequence number for barrier operations.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKYhj*ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj)hKYhjubj)}(h:``barrier_q_start`` Most recent barrier start in jiffies. h](j)}(h``barrier_q_start``h]j)}(hjMh]hbarrier_q_start}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKZhjGubj2)}(hhh]h)}(h%Most recent barrier start in jiffies.h]h%Most recent barrier start in jiffies.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhKZhjcubah}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKZhjubj)}(h%``name`` This flavor's textual name. h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK[hjubj2)}(hhh]h)}(hThis flavor's textual name.h]hThis flavor’s textual name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK[hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjubj)}(h%``kname`` This flavor's kthread name.h](j)}(h ``kname``h]j)}(hjh]hkname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK[hjubj2)}(hhh]h)}(hThis flavor's kthread name.h]hThis flavor’s kthread name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhK\hjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjubeh}(h]h ]h"]h$]h&]uh1j hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j call_rcu_tasks (C function)c.call_rcu_taskshNtauh1hhjhhhNhNubj)}(hhh](j)}(h?void call_rcu_tasks (struct rcu_head *rhp, rcu_callback_t func)h]j)}(h>void call_rcu_tasks(struct rcu_head *rhp, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMubj2)}(h h]h }(hj(hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj'hMubj{)}(hcall_rcu_tasksh]j)}(hcall_rcu_tasksh]hcall_rcu_tasks}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj'hMubj)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct rcu_head *rhph](j)}(hj h]hstruct}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj2)}(h h]h }(hjchhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjvmodnameN classnameNj] j` )}jc ]jf )}jY j<sbc.call_rcu_tasksasbuh1hhjRubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjRubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.call_rcu_tasksasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj'hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj'hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1jhj'hMhjhhubj)}(hhh]h)}(h3Queue an RCU for invocation task-based grace periodh]h3Queue an RCU for invocation task-based grace period}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct rcu_head *rhp`` structure to be used for queueing the RCU updates. ``rcu_callback_t func`` actual callback function to be invoked after the grace period **Description** The callback function will be invoked some time after a full grace period elapses, in other words after all currently executing rcu-tasks read-side critical sections have completed. call_rcu_tasks() assumes that the read-side critical sections end at a voluntary context switch (not a preemption!), cond_resched_tasks_rcu_qs(), entry into idle, or transition to usermode execution. As such, there are no read-side primitives analogous to rcu_read_lock() and rcu_read_unlock() because this primitive is intended to determine that all tasks have passed through a safe state, not so much for data-structure synchronization. See the description of call_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhj=ubj )}(hhh](j)}(hL``struct rcu_head *rhp`` structure to be used for queueing the RCU updates. h](j)}(h``struct rcu_head *rhp``h]j)}(hjbh]hstruct rcu_head *rhp}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhj\ubj2)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjYubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjh]hrcu_callback_t func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhjubj2)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjYubeh}(h]h ]h"]h$]h&]uh1j hj=ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhj=ubh)}(hXmThe callback function will be invoked some time after a full grace period elapses, in other words after all currently executing rcu-tasks read-side critical sections have completed. call_rcu_tasks() assumes that the read-side critical sections end at a voluntary context switch (not a preemption!), cond_resched_tasks_rcu_qs(), entry into idle, or transition to usermode execution. As such, there are no read-side primitives analogous to rcu_read_lock() and rcu_read_unlock() because this primitive is intended to determine that all tasks have passed through a safe state, not so much for data-structure synchronization.h]hXmThe callback function will be invoked some time after a full grace period elapses, in other words after all currently executing rcu-tasks read-side critical sections have completed. call_rcu_tasks() assumes that the read-side critical sections end at a voluntary context switch (not a preemption!), cond_resched_tasks_rcu_qs(), entry into idle, or transition to usermode execution. As such, there are no read-side primitives analogous to rcu_read_lock() and rcu_read_unlock() because this primitive is intended to determine that all tasks have passed through a safe state, not so much for data-structure synchronization.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhj=ubh)}(h^See the description of call_rcu() for more detailed information on memory ordering guarantees.h]h^See the description of call_rcu() for more detailed information on memory ordering guarantees.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "synchronize_rcu_tasks (C function)c.synchronize_rcu_taskshNtauh1hhjhhhNhNubj)}(hhh](j)}(h!void synchronize_rcu_tasks (void)h]j)}(h void synchronize_rcu_tasks(void)h](j )}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj&hhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMubj2)}(h h]h }(hj9hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj&hhhj8hMubj{)}(hsynchronize_rcu_tasksh]j)}(hsynchronize_rcu_tasksh]hsynchronize_rcu_tasks}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj&hhhj8hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubah}(h]h ]h"]h$]h&]jjuh1jhj&hhhj8hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj"hhhj8hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj8hMhjhhubj)}(hhh]h)}(h1wait until an rcu-tasks grace period has elapsed.h]h1wait until an rcu-tasks grace period has elapsed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj8hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX7**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a full rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), idle execution, userspace execution, calls to synchronize_rcu_tasks(), and (in theory, anyway) cond_resched(). This is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs. See the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjubh)}(hXControl will return to the caller some time after a full rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), idle execution, userspace execution, calls to synchronize_rcu_tasks(), and (in theory, anyway) cond_resched().h]hXControl will return to the caller some time after a full rcu-tasks grace period has elapsed, in other words after all currently executing rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), idle execution, userspace execution, calls to synchronize_rcu_tasks(), and (in theory, anyway) cond_resched().}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhjubh)}(hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs.h]hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks() function is not (yet) intended for heavy use from multiple CPUs.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhjubh)}(heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h]heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcu_barrier_tasks (C function)c.rcu_barrier_taskshNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_barrier_tasks (void)h]j)}(hvoid rcu_barrier_tasks(void)h](j )}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjlhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjlhhhj~hMubj{)}(hrcu_barrier_tasksh]j)}(hrcu_barrier_tasksh]hrcu_barrier_tasks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjlhhhj~hMubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjlhhhj~hMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhhj~hMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1jhj~hMhjehhubj)}(hhh]h)}(h.Wait for in-flight call_rcu_tasks() callbacks.h]h.Wait for in-flight call_rcu_tasks() callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** Although the current implementation is guaranteed to wait, it is not obligated to, for example, if there are no pending callbacks.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKhj.ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjubh)}(hAlthough the current implementation is guaranteed to wait, it is not obligated to, for example, if there are no pending callbacks.h]hAlthough the current implementation is guaranteed to wait, it is not obligated to, for example, if there are no pending callbacks.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 'synchronize_rcu_tasks_rude (C function)c.synchronize_rcu_tasks_rudehNtauh1hhjhhhNhNubj)}(hhh](j)}(h&void synchronize_rcu_tasks_rude (void)h]j)}(h%void synchronize_rcu_tasks_rude(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMmubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMmubj{)}(hsynchronize_rcu_tasks_rudeh]j)}(hsynchronize_rcu_tasks_rudeh]hsynchronize_rcu_tasks_rude}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMmubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMmubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMmhjhhubj)}(hhh]h)}(h&wait for a rude rcu-tasks grace periodh]h&wait for a rude rcu-tasks grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX/**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a rude rcu-tasks grace period has elapsed, in other words after all currently executing rude rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), userspace execution (which is a schedulable context), and (in theory, anyway) cond_resched(). This is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_rude() function is not (yet) intended for heavy use from multiple CPUs. See the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMqhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj@h]hvoid}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhj:ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhKhjVubah}(h]h ]h"]h$]h&]uh1j1hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhKhj7ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhKhjubh)}(hXControl will return to the caller some time after a rude rcu-tasks grace period has elapsed, in other words after all currently executing rude rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), userspace execution (which is a schedulable context), and (in theory, anyway) cond_resched().h]hXControl will return to the caller some time after a rude rcu-tasks grace period has elapsed, in other words after all currently executing rude rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to schedule(), cond_resched_tasks_rcu_qs(), userspace execution (which is a schedulable context), and (in theory, anyway) cond_resched().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMnhjubh)}(hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_rude() function is not (yet) intended for heavy use from multiple CPUs.h]hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_rude() function is not (yet) intended for heavy use from multiple CPUs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMuhjubh)}(heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h]heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:421: ./kernel/rcu/tasks.hhMzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j  rcu_cpu_stall_reset (C function)c.rcu_cpu_stall_resethNtauh1hhjhhhNhNubj)}(hhh](j)}(hvoid rcu_cpu_stall_reset (void)h]j)}(hvoid rcu_cpu_stall_reset(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(hrcu_cpu_stall_reseth]j)}(hrcu_cpu_stall_reseth]hrcu_cpu_stall_reset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h6restart stall-warning timeout for current grace periodh]h6restart stall-warning timeout for current grace period}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhKhjBhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]jjjuh1jhhhjhNhNubj)}(hXg**Parameters** ``void`` no arguments **Description** To perform the reset request from the caller, disable stall detection until 3 fqs loops have passed. This is required to ensure a fresh jiffies is loaded. It should be safe to do from the fqs loop as enough timer interrupts and context switches should have passed. The caller must disable hard irqs.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhKhjaubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj}ubah}(h]h ]h"]h$]h&]uh1j hjaubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhKhjaubh)}(hX To perform the reset request from the caller, disable stall detection until 3 fqs loops have passed. This is required to ensure a fresh jiffies is loaded. It should be safe to do from the fqs loop as enough timer interrupts and context switches should have passed.h]hX To perform the reset request from the caller, disable stall detection until 3 fqs loops have passed. This is required to ensure a fresh jiffies is loaded. It should be safe to do from the fqs loop as enough timer interrupts and context switches should have passed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhKhjaubh)}(h"The caller must disable hard irqs.h]h"The caller must disable hard irqs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhKhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j .rcu_stall_chain_notifier_register (C function)#c.rcu_stall_chain_notifier_registerhNtauh1hhjhhhNhNubj)}(hhh](j)}(h@int rcu_stall_chain_notifier_register (struct notifier_block *n)h]j)}(h?int rcu_stall_chain_notifier_register(struct notifier_block *n)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhMzubj2)}(h h]h }(hj$hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj#hMzubj{)}(h!rcu_stall_chain_notifier_registerh]j)}(h!rcu_stall_chain_notifier_registerh]h!rcu_stall_chain_notifier_register}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj#hMzubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hj h]hstruct}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj2)}(h h]h }(hj_hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjrmodnameN classnameNj] j` )}jc ]jf )}jY j8sb#c.rcu_stall_chain_notifier_registerasbuh1hhjNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjJubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj#hMzubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj#hMzubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj#hMzhj hhubj)}(hhh]h)}(hAdd an RCU CPU stall notifierh]hAdd an RCU CPU stall notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhMzhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj#hMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXq**Parameters** ``struct notifier_block *n`` Entry to add. **Description** Adds an RCU CPU stall notifier to an atomic notifier chain. The **action** passed to a notifier will be **RCU_STALL_NOTIFY_NORM** or friends. The **data** will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer. Returns 0 on success, ``-EEXIST`` on error.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhM~hjubj )}(hhh]j)}(h+``struct notifier_block *n`` Entry to add. h](j)}(h``struct notifier_block *n``h]j)}(hjh]hstruct notifier_block *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhM{hjubj2)}(hhh]h)}(h Entry to add.h]h Entry to add.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hM{hj+ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj*hM{hj ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhM}hjubh)}(hAdds an RCU CPU stall notifier to an atomic notifier chain. The **action** passed to a notifier will be **RCU_STALL_NOTIFY_NORM** or friends. The **data** will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.h](h@Adds an RCU CPU stall notifier to an atomic notifier chain. The }(hjfhhhNhNubj)}(h **action**h]haction}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh passed to a notifier will be }(hjfhhhNhNubj)}(h**RCU_STALL_NOTIFY_NORM**h]hRCU_STALL_NOTIFY_NORM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh or friends. The }(hjfhhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubhZ will be the duration of the stalled grace period, in jiffies, coerced to a void* pointer.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhM|hjubh)}(h+Returns 0 on success, ``-EEXIST`` on error.h](hReturns 0 on success, }(hjhhhNhNubj)}(h ``-EEXIST``h]h-EEXIST}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j 0rcu_stall_chain_notifier_unregister (C function)%c.rcu_stall_chain_notifier_unregisterhNtauh1hhjhhhNhNubj)}(hhh](j)}(hBint rcu_stall_chain_notifier_unregister (struct notifier_block *n)h]j)}(hAint rcu_stall_chain_notifier_unregister(struct notifier_block *n)h](j )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhMubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhMubj{)}(h#rcu_stall_chain_notifier_unregisterh]j)}(h#rcu_stall_chain_notifier_unregisterh]h#rcu_stall_chain_notifier_unregister}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhMubj)}(h(struct notifier_block *n)h]j)}(hstruct notifier_block *nh](j)}(hj h]hstruct}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj2)}(h h]h }(hj6hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubh)}(hhh]j)}(hnotifier_blockh]hnotifier_block}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjImodnameN classnameNj] j` )}jc ]jf )}jY jsb%c.rcu_stall_chain_notifier_unregisterasbuh1hhj%ubj2)}(h h]h }(hjghhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj%ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhMhjhhubj)}(hhh]h)}(h Remove an RCU CPU stall notifierh]h Remove an RCU CPU stall notifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``struct notifier_block *n`` Entry to add. **Description** Removes an RCU CPU stall notifier from an atomic notifier chain. Returns zero on success, ``-ENOENT`` on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhMhjubj )}(hhh]j)}(h+``struct notifier_block *n`` Entry to add. h](j)}(h``struct notifier_block *n``h]j)}(hjh]hstruct notifier_block *n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhMhjubj2)}(hhh]h)}(h Entry to add.h]h Entry to add.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhMhjubh)}(h@Removes an RCU CPU stall notifier from an atomic notifier chain.h]h@Removes an RCU CPU stall notifier from an atomic notifier chain.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhMhjubh)}(h0Returns zero on success, ``-ENOENT`` on failure.h](hReturns zero on success, }(hjLhhhNhNubj)}(h ``-ENOENT``h]h-ENOENT}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubh on failure.}(hjLhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:423: ./kernel/rcu/tree_stall.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j &rcu_read_lock_tasks_trace (C function)c.rcu_read_lock_tasks_tracehNtauh1hhjhhhNhNubj)}(hhh](j)}(h;struct srcu_ctr __percpu * rcu_read_lock_tasks_trace (void)h]j)}(h9struct srcu_ctr __percpu *rcu_read_lock_tasks_trace(void)h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhK&ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK&ubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY rcu_read_lock_tasks_tracesbc.rcu_read_lock_tasks_traceasbuh1hhjhhhjhK&ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK&ubh__percpu}(hjhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK&ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK&ubj{)}(hrcu_read_lock_tasks_traceh]j)}(hjh]hrcu_read_lock_tasks_trace}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK&ubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK&ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK&ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK&hjhhubj)}(hhh]h)}(h6mark beginning of RCU-trace read-side critical sectionh]h6mark beginning of RCU-trace read-side critical section}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhK&hj@hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1jhhhjhNhNubj)}(hXh**Parameters** ``void`` no arguments **Description** When synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections. For more details, please see the documentation for srcu_read_lock_fast(). For a description of how implicit RCU readers provide the needed ordering for architectures defining the ARCH_WANTS_NO_INSTR Kconfig option (and thus promising never to trace code where RCU is not watching), please see the __srcu_read_lock_fast() (non-kerneldoc) header comment. Otherwise, the smp_mb() below provided the needed ordering.h](h)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhK*hj_ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhj~ubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj{ubah}(h]h ]h"]h$]h&]uh1j hj_ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhj_ubh)}(hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.h]hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhK'hj_ubh)}(hXFor more details, please see the documentation for srcu_read_lock_fast(). For a description of how implicit RCU readers provide the needed ordering for architectures defining the ARCH_WANTS_NO_INSTR Kconfig option (and thus promising never to trace code where RCU is not watching), please see the __srcu_read_lock_fast() (non-kerneldoc) header comment. Otherwise, the smp_mb() below provided the needed ordering.h]hXFor more details, please see the documentation for srcu_read_lock_fast(). For a description of how implicit RCU readers provide the needed ordering for architectures defining the ARCH_WANTS_NO_INSTR Kconfig option (and thus promising never to trace code where RCU is not watching), please see the __srcu_read_lock_fast() (non-kerneldoc) header comment. Otherwise, the smp_mb() below provided the needed ordering.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhK.hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (rcu_read_unlock_tasks_trace (C function)c.rcu_read_unlock_tasks_tracehNtauh1hhjhhhNhNubj)}(hhh](j)}(h@void rcu_read_unlock_tasks_trace (struct srcu_ctr __percpu *scp)h]j)}(h?void rcu_read_unlock_tasks_trace(struct srcu_ctr __percpu *scp)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKBubj2)}(h h]h }(hj"hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj!hKBubj{)}(hrcu_read_unlock_tasks_traceh]j)}(hrcu_read_unlock_tasks_traceh]hrcu_read_unlock_tasks_trace}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj!hKBubj)}(h(struct srcu_ctr __percpu *scp)h]j)}(hstruct srcu_ctr __percpu *scph](j)}(hj h]hstruct}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj2)}(h h]h }(hj]hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh)}(hhh]j)}(hsrcu_ctrh]hsrcu_ctr}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjpmodnameN classnameNj] j` )}jc ]jf )}jY j6sbc.rcu_read_unlock_tasks_traceasbuh1hhjLubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubh__percpu}(hjLhhhNhNubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hscph]hscp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjHubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj!hKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj hhhj!hKBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj!hKBhjhhubj)}(hhh]h)}(h0mark end of RCU-trace read-side critical sectionh]h0mark end of RCU-trace read-side critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKBhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj!hKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct srcu_ctr __percpu *scp`` return value from corresponding rcu_read_lock_tasks_trace(). **Description** Pairs with the preceding call to rcu_read_lock_tasks_trace() that returned the value passed in via scp. For more details, please see the documentation for rcu_read_unlock(). For memory-ordering information, please see the header comment for the rcu_read_lock_tasks_trace() function.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKFhjubj )}(hhh]j)}(h_``struct srcu_ctr __percpu *scp`` return value from corresponding rcu_read_lock_tasks_trace(). h](j)}(h!``struct srcu_ctr __percpu *scp``h]j)}(hj&h]hstruct srcu_ctr __percpu *scp}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKChj ubj2)}(hhh]h)}(hah"]h$]h&]uh1j1hjhhhjhKUubj{)}(hrcu_read_lock_traceh]j)}(hrcu_read_lock_traceh]hrcu_read_lock_trace}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKUubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKUubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKUubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKUhjhhubj)}(hhh]h)}(h6mark beginning of RCU-trace read-side critical sectionh]h6mark beginning of RCU-trace read-side critical section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKUhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKUubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1jhhhjhNhNubj)}(hX **Parameters** ``void`` no arguments **Description** When synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections. For more details, please see the documentation for rcu_read_lock().h](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKYhj8ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj]h]hvoid}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjWubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhKhjsubah}(h]h ]h"]h$]h&]uh1j1hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjTubah}(h]h ]h"]h$]h&]uh1j hj8ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhj8ubh)}(hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.h]hXWhen synchronize_rcu_tasks_trace() is invoked by one task, then that task is guaranteed to block until all other tasks exit their read-side critical sections. Similarly, if call_rcu_trace() is invoked on one task while other tasks are within RCU read-side critical sections, invocation of the corresponding RCU callback is deferred until after the all the other tasks exit their critical sections.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKVhj8ubh)}(hCFor more details, please see the documentation for rcu_read_lock().h]hCFor more details, please see the documentation for rcu_read_lock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhK]hj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j "rcu_read_unlock_trace (C function)c.rcu_read_unlock_tracehNtauh1hhjhhhNhNubj)}(hhh](j)}(h!void rcu_read_unlock_trace (void)h]j)}(h void rcu_read_unlock_trace(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKsubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKsubj{)}(hrcu_read_unlock_traceh]j)}(hrcu_read_unlock_traceh]hrcu_read_unlock_trace}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKsubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKsubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKsubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKshjhhubj)}(hhh]h)}(h0mark end of RCU-trace read-side critical sectionh]h0mark end of RCU-trace read-side critical section}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKshjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKsubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1jhhhjhNhNubj)}(hXV**Parameters** ``void`` no arguments **Description** Pairs with a preceding call to rcu_read_lock_trace(), and nesting is allowed. Invoking a rcu_read_unlock_trace() when there is no matching rcu_read_lock_trace() is verboten, and will result in lockdep complaints. For more details, please see the documentation for rcu_read_unlock().h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKwhjoubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjoubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjoubh)}(hPairs with a preceding call to rcu_read_lock_trace(), and nesting is allowed. Invoking a rcu_read_unlock_trace() when there is no matching rcu_read_lock_trace() is verboten, and will result in lockdep complaints.h]hPairs with a preceding call to rcu_read_lock_trace(), and nesting is allowed. Invoking a rcu_read_unlock_trace() when there is no matching rcu_read_lock_trace() is verboten, and will result in lockdep complaints.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKthjoubh)}(hEFor more details, please see the documentation for rcu_read_unlock().h]hEFor more details, please see the documentation for rcu_read_unlock().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKxhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j !call_rcu_tasks_trace (C function)c.call_rcu_tasks_tracehNtauh1hhjhhhNhNubj)}(hhh](j)}(hEvoid call_rcu_tasks_trace (struct rcu_head *rhp, rcu_callback_t func)h]j)}(hDvoid call_rcu_tasks_trace(struct rcu_head *rhp, rcu_callback_t func)h](j )}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKubj2)}(h h]h }(hj2hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj1hKubj{)}(hcall_rcu_tasks_traceh]j)}(hcall_rcu_tasks_traceh]hcall_rcu_tasks_trace}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj1hKubj)}(h+(struct rcu_head *rhp, rcu_callback_t func)h](j)}(hstruct rcu_head *rhph](j)}(hj h]hstruct}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj2)}(h h]h }(hjmhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubh)}(hhh]j)}(hrcu_headh]hrcu_head}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jFsbc.call_rcu_tasks_traceasbuh1hhj\ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj)}(hrhph]hrhp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubj)}(hrcu_callback_t funch](h)}(hhh]j)}(hrcu_callback_th]hrcu_callback_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jc.call_rcu_tasks_traceasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hfunch]hfunc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjXubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj1hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj1hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj1hKhjhhubj)}(hhh]h)}(h.Queue a callback trace task-based grace periodh]h.Queue a callback trace task-based grace period}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1jhhhjhNhNubj)}(hX^**Parameters** ``struct rcu_head *rhp`` structure to be used for queueing the RCU updates. ``rcu_callback_t func`` actual callback function to be invoked after the grace period **Description** The callback function will be invoked some time after a trace rcu-tasks grace period elapses, in other words after all currently executing trace rcu-tasks read-side critical sections have completed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace(). See the description of call_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjGubj )}(hhh](j)}(hL``struct rcu_head *rhp`` structure to be used for queueing the RCU updates. h](j)}(h``struct rcu_head *rhp``h]j)}(hjlh]hstruct rcu_head *rhp}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjfubj2)}(hhh]h)}(h2structure to be used for queueing the RCU updates.h]h2structure to be used for queueing the RCU updates.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjfubeh}(h]h ]h"]h$]h&]uh1jhjhKhjcubj)}(hV``rcu_callback_t func`` actual callback function to be invoked after the grace period h](j)}(h``rcu_callback_t func``h]j)}(hjh]hrcu_callback_t func}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubj2)}(hhh]h)}(h=actual callback function to be invoked after the grace periodh]h=actual callback function to be invoked after the grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjcubeh}(h]h ]h"]h$]h&]uh1j hjGubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjGubh)}(hX5The callback function will be invoked some time after a trace rcu-tasks grace period elapses, in other words after all currently executing trace rcu-tasks read-side critical sections have completed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace().h]hX5The callback function will be invoked some time after a trace rcu-tasks grace period elapses, in other words after all currently executing trace rcu-tasks read-side critical sections have completed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjGubh)}(h^See the description of call_rcu() for more detailed information on memory ordering guarantees.h]h^See the description of call_rcu() for more detailed information on memory ordering guarantees.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j (synchronize_rcu_tasks_trace (C function)c.synchronize_rcu_tasks_tracehNtauh1hhjhhhNhNubj)}(hhh](j)}(h'void synchronize_rcu_tasks_trace (void)h]j)}(h&void synchronize_rcu_tasks_trace(void)h](j )}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj0hhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKubj2)}(h h]h }(hjChhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj0hhhjBhKubj{)}(hsynchronize_rcu_tasks_traceh]j)}(hsynchronize_rcu_tasks_traceh]hsynchronize_rcu_tasks_trace}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj0hhhjBhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]noemphjjuh1jhjiubah}(h]h ]h"]h$]h&]jjuh1jhj0hhhjBhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj,hhhjBhKubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1jhjBhKhj)hhubj)}(hhh]h)}(h'wait for a trace rcu-tasks grace periodh]h'wait for a trace rcu-tasks grace period}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``void`` no arguments **Description** Control will return to the caller some time after a trace rcu-tasks grace period has elapsed, in other words after all currently executing trace rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace(). This is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_trace() function is not (yet) intended for heavy use from multiple CPUs. See the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubh)}(hX3Control will return to the caller some time after a trace rcu-tasks grace period has elapsed, in other words after all currently executing trace rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace().h]hX3Control will return to the caller some time after a trace rcu-tasks grace period has elapsed, in other words after all currently executing trace rcu-tasks read-side critical sections have elapsed. These read-side critical sections are delimited by calls to rcu_read_lock_trace() and rcu_read_unlock_trace().}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubh)}(hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_trace() function is not (yet) intended for heavy use from multiple CPUs.h]hXThis is a very specialized primitive, intended only for a few uses in tracing and other situations requiring manipulation of function preambles and profiling hooks. The synchronize_rcu_tasks_trace() function is not (yet) intended for heavy use from multiple CPUs.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubh)}(heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.h]heSee the description of synchronize_rcu() for more detailed information on memory ordering guarantees.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j $rcu_barrier_tasks_trace (C function)c.rcu_barrier_tasks_tracehNtauh1hhjhhhNhNubj)}(hhh](j)}(h#void rcu_barrier_tasks_trace (void)h]j)}(h"void rcu_barrier_tasks_trace(void)h](j )}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjvhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvhhhjhKubj{)}(hrcu_barrier_tasks_traceh]j)}(hrcu_barrier_tasks_traceh]hrcu_barrier_tasks_trace}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjvhhhjhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjvhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjrhhhjhKubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjohhubj)}(hhh]h)}(h4Wait for in-flight call_rcu_tasks_trace() callbacks.h]h4Wait for in-flight call_rcu_tasks_trace() callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjohhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``void`` no arguments **Description** Note that rcu_barrier_tasks_trace() is not obligated to actually wait, for example, if there are no pending callbacks.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj"h]hvoid}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hKhj8ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj7hKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hj]h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubh)}(hvNote that rcu_barrier_tasks_trace() is not obligated to actually wait, for example, if there are no pending callbacks.h]hvNote that rcu_barrier_tasks_trace() is not obligated to actually wait, for example, if there are no pending callbacks.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j -rcu_tasks_trace_expedite_current (C function)"c.rcu_tasks_trace_expedite_currenthNtauh1hhjhhhNhNubj)}(hhh](j)}(h,void rcu_tasks_trace_expedite_current (void)h]j)}(h+void rcu_tasks_trace_expedite_current(void)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h rcu_tasks_trace_expedite_currenth]j)}(h rcu_tasks_trace_expedite_currenth]h rcu_tasks_trace_expedite_current}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(void)h]j)}(hvoidh]j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h1Expedite the current Tasks Trace RCU grace periodh]h1Expedite the current Tasks Trace RCU grace period}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1jhhhjhNhNubj)}(hXm**Parameters** ``void`` no arguments **Description** Cause the current Tasks Trace RCU grace period to become expedited. The grace period following the current one might also be expedited. If there is no current grace period, one might be created. If the current grace period is currently sleeping, that sleep will complete before expediting will take effect.h](h)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhj%ubj )}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjJh]hvoid}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhjDubj2)}(hhh]h)}(h no argumentsh]h no arguments}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1j1hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjAubah}(h]h ]h"]h$]h&]uh1j hj%ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhj%ubh)}(hX3Cause the current Tasks Trace RCU grace period to become expedited. The grace period following the current one might also be expedited. If there is no current grace period, one might be created. If the current grace period is currently sleeping, that sleep will complete before expediting will take effect.h]hX3Cause the current Tasks Trace RCU grace period to become expedited. The grace period following the current one might also be expedited. If there is no current grace period, one might be created. If the current grace period is currently sleeping, that sleep will complete before expediting will take effect. }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:425: ./include/linux/rcupdate_trace.hhKhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j synchronize_rcu_mult (C macro)c.synchronize_rcu_multhNtauh1hhjhhhNhNubj)}(hhh](j)}(hsynchronize_rcu_multh]j)}(hsynchronize_rcu_multh]j{)}(hsynchronize_rcu_multh]j)}(hjh]hsynchronize_rcu_mult}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:427: ./include/linux/rcupdate_wait.hhK'ubah}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK'ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK'hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhK'ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubh)}(h``synchronize_rcu_mult (...)``h]j)}(hjh]hsynchronize_rcu_mult (...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:427: ./include/linux/rcupdate_wait.hhK)hjhhubj)}(h-Wait concurrently for multiple grace periods h]h)}(h,Wait concurrently for multiple grace periodsh]h,Wait concurrently for multiple grace periods}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:427: ./include/linux/rcupdate_wait.hhK'hjubah}(h]h ]h"]h$]h&]uh1jhj(hK'hjhhubj)}(hX**Parameters** ``...`` List of call_rcu() functions for different grace periods to wait on **Description** This macro waits concurrently for multiple types of RCU grace periods. For example, synchronize_rcu_mult(call_rcu, call_rcu_tasks) would wait on concurrent RCU and RCU-tasks grace periods. Waiting on a given SRCU domain requires you to write a wrapper function for that SRCU domain's call_srcu() function, with this wrapper supplying the pointer to the corresponding srcu_struct. Note that call_rcu_hurry() should be used instead of call_rcu() because in kernels built with CONFIG_RCU_LAZY=y the delay between the invocation of call_rcu() and that of the corresponding RCU callback can be multiple seconds. The first argument tells Tiny RCU's _wait_rcu_gp() not to bother waiting for RCU. The reason for this is because anywhere synchronize_rcu_mult() can be called is automatically already a full grace period.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:427: ./include/linux/rcupdate_wait.hhK+hj/ubj )}(hhh]j)}(hL``...`` List of call_rcu() functions for different grace periods to wait on h](j)}(h``...``h]j)}(hjTh]h...}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:427: ./include/linux/rcupdate_wait.hhK(hjNubj2)}(hhh]h)}(hCList of call_rcu() functions for different grace periods to wait onh]hCList of call_rcu() functions for different grace periods to wait on}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihK(hjjubah}(h]h ]h"]h$]h&]uh1j1hjNubeh}(h]h ]h"]h$]h&]uh1jhjihK(hjKubah}(h]h ]h"]h$]h&]uh1j hj/ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:427: ./include/linux/rcupdate_wait.hhK*hj/ubh)}(hX|This macro waits concurrently for multiple types of RCU grace periods. For example, synchronize_rcu_mult(call_rcu, call_rcu_tasks) would wait on concurrent RCU and RCU-tasks grace periods. Waiting on a given SRCU domain requires you to write a wrapper function for that SRCU domain's call_srcu() function, with this wrapper supplying the pointer to the corresponding srcu_struct.h]hX~This macro waits concurrently for multiple types of RCU grace periods. For example, synchronize_rcu_mult(call_rcu, call_rcu_tasks) would wait on concurrent RCU and RCU-tasks grace periods. Waiting on a given SRCU domain requires you to write a wrapper function for that SRCU domain’s call_srcu() function, with this wrapper supplying the pointer to the corresponding srcu_struct.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:427: ./include/linux/rcupdate_wait.hhK)hj/ubh)}(hNote that call_rcu_hurry() should be used instead of call_rcu() because in kernels built with CONFIG_RCU_LAZY=y the delay between the invocation of call_rcu() and that of the corresponding RCU callback can be multiple seconds.h]hNote that call_rcu_hurry() should be used instead of call_rcu() because in kernels built with CONFIG_RCU_LAZY=y the delay between the invocation of call_rcu() and that of the corresponding RCU callback can be multiple seconds.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:427: ./include/linux/rcupdate_wait.hhK0hj/ubh)}(hThe first argument tells Tiny RCU's _wait_rcu_gp() not to bother waiting for RCU. The reason for this is because anywhere synchronize_rcu_mult() can be called is automatically already a full grace period.h]hThe first argument tells Tiny RCU’s _wait_rcu_gp() not to bother waiting for RCU. The reason for this is because anywhere synchronize_rcu_mult() can be called is automatically already a full grace period.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:427: ./include/linux/rcupdate_wait.hhK5hj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcuref_init (C function) c.rcuref_inithNtauh1hhjhhhNhNubj)}(hhh](j)}(h2void rcuref_init (rcuref_t *ref, unsigned int cnt)h]j)}(h1void rcuref_init(rcuref_t *ref, unsigned int cnt)h](j )}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h rcuref_inith]j)}(h rcuref_inith]h rcuref_init}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h!(rcuref_t *ref, unsigned int cnt)h](j)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj4modnameN classnameNj] j` )}jc ]jf )}jY jsb c.rcuref_initasbuh1hhj+ubj2)}(h h]h }(hjRhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj+ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj)}(hrefh]href}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubj)}(hunsigned int cnth](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hcnth]hcnt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(hBInitialize a rcuref reference count with the given reference counth]hBInitialize a rcuref reference count with the given reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(h**Parameters** ``rcuref_t *ref`` Pointer to the reference count ``unsigned int cnt`` The initial reference count typically '1'h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubj )}(hhh](j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hj)h]h rcuref_t *ref}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhj#ubj2)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKhj?ubah}(h]h ]h"]h$]h&]uh1j1hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj ubj)}(h>``unsigned int cnt`` The initial reference count typically '1'h](j)}(h``unsigned int cnt``h]j)}(hjbh]hunsigned int cnt}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhj\ubj2)}(hhh]h)}(h)The initial reference count typically '1'h]h-The initial reference count typically ‘1’}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjxubah}(h]h ]h"]h$]h&]uh1j1hj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhKhj ubeh}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcuref_read (C function) c.rcuref_readhNtauh1hhjhhhNhNubj)}(hhh](j)}(h(unsigned int rcuref_read (rcuref_t *ref)h]j)}(h'unsigned int rcuref_read(rcuref_t *ref)h](j )}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj )}(hinth]hint}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhhjhKubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKubj{)}(h rcuref_readh]j)}(h rcuref_readh]h rcuref_read}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.rcuref_readasbuh1hhjubj2)}(h h]h }(hj8hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrefh]href}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKhjhhubj)}(hhh]h)}(h4Read the number of held reference counts of a rcurefh]h4Read the number of held reference counts of a rcuref}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjzhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hXu**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Return** The number of held references (0 ... N). The value 0 does not indicate that it is safe to schedule the object, protected by this reference counter, for deconstruction. If you want to know if the reference counter has been marked DEAD (as signaled by rcuref_put()) please use rcuread_is_dead().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK"hjubj )}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjh]h rcuref_t *ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubj2)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK!hjubh)}(hX%The number of held references (0 ... N). The value 0 does not indicate that it is safe to schedule the object, protected by this reference counter, for deconstruction. If you want to know if the reference counter has been marked DEAD (as signaled by rcuref_put()) please use rcuread_is_dead().h]hX%The number of held references (0 ... N). The value 0 does not indicate that it is safe to schedule the object, protected by this reference counter, for deconstruction. If you want to know if the reference counter has been marked DEAD (as signaled by rcuref_put()) please use rcuread_is_dead().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcuref_is_dead (C function)c.rcuref_is_deadhNtauh1hhjhhhNhNubj)}(hhh](j)}(h#bool rcuref_is_dead (rcuref_t *ref)h]j)}(h"bool rcuref_is_dead(rcuref_t *ref)h](j )}(hj8h]hbool}(hj>hhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhj:hhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK0ubj2)}(h h]h }(hjLhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hj:hhhjKhK0ubj{)}(hrcuref_is_deadh]j)}(hrcuref_is_deadh]hrcuref_is_dead}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]jjuh1jzhj:hhhjKhK0ubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY j`sbc.rcuref_is_deadasbuh1hhjvubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjvubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrubah}(h]h ]h"]h$]h&]jjuh1jhj:hhhjKhK0ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhj6hhhjKhK0ubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1jhjKhK0hj3hhubj)}(hhh]h)}(h0Check if the rcuref has been already marked deadh]h0Check if the rcuref has been already marked dead}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK0hjhhubah}(h]h ]h"]h$]h&]uh1jhj3hhhjKhK0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX;**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Return** True if the object has been marked DEAD. This signals that a previous invocation of rcuref_put() returned true on this reference counter meaning the protected object can safely be scheduled for deconstruction. Otherwise, returns false.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK4hjubj )}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hj#h]h rcuref_t *ref}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK1hjubj2)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hK1hj9ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj8hK1hjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h **Return**h]j)}(hj^h]hReturn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK3hjubh)}(hTrue if the object has been marked DEAD. This signals that a previous invocation of rcuref_put() returned true on this reference counter meaning the protected object can safely be scheduled for deconstruction. Otherwise, returns false.h]hTrue if the object has been marked DEAD. This signals that a previous invocation of rcuref_put() returned true on this reference counter meaning the protected object can safely be scheduled for deconstruction. Otherwise, returns false.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK3hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcuref_get (C function) c.rcuref_gethNtauh1hhjhhhNhNubj)}(hhh](j)}(hbool rcuref_get (rcuref_t *ref)h]j)}(hbool rcuref_get(rcuref_t *ref)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKBubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhKBubj{)}(h rcuref_geth]j)}(h rcuref_geth]h rcuref_get}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhKBubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jsb c.rcuref_getasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKBubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhKBubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhKBhjhhubj)}(hhh]h)}(h1Acquire one reference on a rcuref reference counth]h1Acquire one reference on a rcuref reference count}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKBhjDhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKBubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1jhhhjhNhNubj)}(hX **Parameters** ``rcuref_t *ref`` Pointer to the reference count **Description** Similar to atomic_inc_not_zero() but saturates at RCUREF_MAXREF. Provides no memory ordering, it is assumed the caller has guaranteed the object memory to be stable (RCU, etc.). It does provide a control dependency and thereby orders future stores. See documentation in lib/rcuref.c True if a reference was successfully acquired **Return** False if the attempt to acquire a reference failed. This happens when the last reference has been put alreadyh](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKFhjcubj )}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjh]h rcuref_t *ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKChjubj2)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKChjubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhjhKChjubah}(h]h ]h"]h$]h&]uh1j hjcubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKEhjcubh)}(h@Similar to atomic_inc_not_zero() but saturates at RCUREF_MAXREF.h]h@Similar to atomic_inc_not_zero() but saturates at RCUREF_MAXREF.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKDhjcubh)}(hProvides no memory ordering, it is assumed the caller has guaranteed the object memory to be stable (RCU, etc.). It does provide a control dependency and thereby orders future stores. See documentation in lib/rcuref.ch]hProvides no memory ordering, it is assumed the caller has guaranteed the object memory to be stable (RCU, etc.). It does provide a control dependency and thereby orders future stores. See documentation in lib/rcuref.c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKFhjcubj)}(h.True if a reference was successfully acquired h]h)}(h-True if a reference was successfully acquiredh]h-True if a reference was successfully acquired}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKKhjubah}(h]h ]h"]h$]h&]uh1jhj hKKhjcubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKMhjcubh)}(hmFalse if the attempt to acquire a reference failed. This happens when the last reference has been put alreadyh]hmFalse if the attempt to acquire a reference failed. This happens when the last reference has been put already}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKKhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcuref_put_rcusafe (C function)c.rcuref_put_rcusafehNtauh1hhjhhhNhNubj)}(hhh](j)}(h'bool rcuref_put_rcusafe (rcuref_t *ref)h]j)}(h&bool rcuref_put_rcusafe(rcuref_t *ref)h](j )}(hj8h]hbool}(hjWhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjShhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKyubj2)}(h h]h }(hjehhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjShhhjdhKyubj{)}(hrcuref_put_rcusafeh]j)}(hrcuref_put_rcusafeh]hrcuref_put_rcusafe}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjShhhjdhKyubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jf )}jY jysbc.rcuref_put_rcusafeasbuh1hhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjShhhjdhKyubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjOhhhjdhKyubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1jhjdhKyhjLhhubj)}(hhh]j)}(hhh]j)}(h;Release one reference for a rcuref reference count RCU safeh]h)}(hjh]h;Release one reference for a rcuref reference count RCU safe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKyhjubah}(h]h ]h"]h$]h&]uh1jhjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKyhjhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjdhKyubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1jhhhjhNhNubj)}(hXt**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Description** Provides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after. Can be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()'ed and atomic contexts qualify. False if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object. **Return** True if this was the last reference with no future references possible. This signals the caller that it can safely release the object which is protected by the reference counter.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK}hj)ubj )}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjNh]h rcuref_t *ref}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKzhjHubj2)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchKzhjdubah}(h]h ]h"]h$]h&]uh1j1hjHubeh}(h]h ]h"]h$]h&]uh1jhjchKzhjEubah}(h]h ]h"]h$]h&]uh1j hj)ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK|hj)ubh)}(hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.h]hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhK{hj)ubh)}(hXCan be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()'ed and atomic contexts qualify.h]hXCan be invoked from contexts, which guarantee that no grace period can happen which would free the object concurrently if the decrement drops the last reference and the slowpath races against a concurrent get() and put() pair. rcu_read_lock()’ed and atomic contexts qualify.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhj)ubj)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object. h]h)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object.h]hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to release the protected object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhKhj)ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhj)ubh)}(hTrue if this was the last reference with no future references possible. This signals the caller that it can safely release the object which is protected by the reference counter.h]hTrue if this was the last reference with no future references possible. This signals the caller that it can safely release the object which is protected by the reference counter.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j rcuref_put (C function) c.rcuref_puthNtauh1hhjhhhNhNubj)}(hhh](j)}(hbool rcuref_put (rcuref_t *ref)h]j)}(hbool rcuref_put(rcuref_t *ref)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKubj2)}(h h]h }(hj+hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhj*hKubj{)}(h rcuref_puth]j)}(h rcuref_puth]h rcuref_put}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhj*hKubj)}(h(rcuref_t *ref)h]j)}(h rcuref_t *refh](h)}(hhh]j)}(hrcuref_th]hrcuref_t}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj^modnameN classnameNj] j` )}jc ]jf )}jY j?sb c.rcuref_putasbuh1hhjUubj2)}(h h]h }(hj|hhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hrefh]href}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hKubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhj*hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhj*hKhjhhubj)}(hhh]j)}(hhh]j)}(h2Release one reference for a rcuref reference counth]h)}(hjh]h2Release one reference for a rcuref reference count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjhhhjhNubah}(h]h ]h"]h$]h&]jjuh1jhjhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``rcuref_t *ref`` Pointer to the reference count **Description** Can be invoked from any context. Provides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after. True if this was the last reference with no future references possible. This signals the caller that it can safely schedule the object, which is protected by the reference counter, for deconstruction. False if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubj )}(hhh]j)}(h1``rcuref_t *ref`` Pointer to the reference count h](j)}(h``rcuref_t *ref``h]j)}(hjh]h rcuref_t *ref}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubj2)}(hhh]h)}(hPointer to the reference counth]hPointer to the reference count}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj ubah}(h]h ]h"]h$]h&]uh1j hjubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubh)}(h Can be invoked from any context.h]h Can be invoked from any context.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubh)}(hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.h]hProvides release memory ordering, such that prior loads and stores are done before, and provides an acquire ordering on success such that free() must come after.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubj)}(hXfTrue if this was the last reference with no future references possible. This signals the caller that it can safely schedule the object, which is protected by the reference counter, for deconstruction. False if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.h](h)}(hTrue if this was the last reference with no future references possible. This signals the caller that it can safely schedule the object, which is protected by the reference counter, for deconstruction.h]hTrue if this was the last reference with no future references possible. This signals the caller that it can safely schedule the object, which is protected by the reference counter, for deconstruction.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubh)}(hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.h]hFalse if there are still active references or the put() raced with a concurrent get()/put() pair. Caller is not allowed to deconstruct the protected object.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh[/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:429: ./include/linux/rcuref.hhKhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](j ,same_state_synchronize_rcu_full (C function)!c.same_state_synchronize_rcu_fullhNtauh1hhjhhhNhNubj)}(hhh](j)}(h[bool same_state_synchronize_rcu_full (struct rcu_gp_seq *rgosp1, struct rcu_gp_seq *rgosp2)h]j)}(hZbool same_state_synchronize_rcu_full(struct rcu_gp_seq *rgosp1, struct rcu_gp_seq *rgosp2)h](j )}(hj8h]hbool}(hjhhhNhNubah}(h]h ]j,ah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:431: ./include/linux/rcutree.hhK.ubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjhhhjhK.ubj{)}(hsame_state_synchronize_rcu_fullh]j)}(hsame_state_synchronize_rcu_fullh]hsame_state_synchronize_rcu_full}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]jjuh1jzhjhhhjhK.ubj)}(h6(struct rcu_gp_seq *rgosp1, struct rcu_gp_seq *rgosp2)h](j)}(hstruct rcu_gp_seq *rgosp1h](j)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubh)}(hhh]j)}(h rcu_gp_seqh]h rcu_gp_seq}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetj'modnameN classnameNj] j` )}jc ]jf )}jY jsb!c.same_state_synchronize_rcu_fullasbuh1hhjubj2)}(h h]h }(hjEhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hrgosp1h]hrgosp1}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct rcu_gp_seq *rgosp2h](j)}(hj h]hstruct}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubh)}(hhh]j)}(h rcu_gp_seqh]h rcu_gp_seq}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjreftypejY reftargetjmodnameN classnameNj] j` )}jc ]jA!c.same_state_synchronize_rcu_fullasbuh1hhjuubj2)}(h h]h }(hjhhhNhNubah}(h]h ]j>ah"]h$]h&]uh1j1hjuubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj)}(hrgosp2h]hrgosp2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK.ubeh}(h]h ]h"]h$]h&]jjjuh1jjjhjhhhjhK.ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1jhjhK.hjhhubj)}(hhh]h)}(h#Are two old-state values identical?h]h#Are two old-state values identical?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:431: ./include/linux/rcutree.hhK.hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhjhNhNubj)}(hXu**Parameters** ``struct rcu_gp_seq *rgosp1`` First old-state value. ``struct rcu_gp_seq *rgosp2`` Second old-state value. **Description** The two old-state values must have been obtained from either get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or get_completed_synchronize_rcu_full(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller. Note that equality is judged on a bitwise basis, so that an **rcu_gp_seq** structure with an already-completed state in one field will compare not-equal to a structure with an already-completed state in the other field. After all, the **rcu_gp_seq** structure is opaque so how did such a situation come to pass in the first place?h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:431: ./include/linux/rcutree.hhK2hj ubj )}(hhh](j)}(h5``struct rcu_gp_seq *rgosp1`` First old-state value. h](j)}(h``struct rcu_gp_seq *rgosp1``h]j)}(hj; h]hstruct rcu_gp_seq *rgosp1}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9 ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:431: ./include/linux/rcutree.hhK/hj5 ubj2)}(hhh]h)}(hFirst old-state value.h]hFirst old-state value.}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP hK/hjQ ubah}(h]h ]h"]h$]h&]uh1j1hj5 ubeh}(h]h ]h"]h$]h&]uh1jhjP hK/hj2 ubj)}(h6``struct rcu_gp_seq *rgosp2`` Second old-state value. h](j)}(h``struct rcu_gp_seq *rgosp2``h]j)}(hjt h]hstruct rcu_gp_seq *rgosp2}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:431: ./include/linux/rcutree.hhK0hjn ubj2)}(hhh]h)}(hSecond old-state value.h]hSecond old-state value.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK0hj ubah}(h]h ]h"]h$]h&]uh1j1hjn ubeh}(h]h ]h"]h$]h&]uh1jhj hK0hj2 ubeh}(h]h ]h"]h$]h&]uh1j hj ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:431: ./include/linux/rcutree.hhK2hj ubh)}(hXThe two old-state values must have been obtained from either get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or get_completed_synchronize_rcu_full(). Returns **true** if the two values are identical and **false** otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.h](hThe two old-state values must have been obtained from either get_state_synchronize_rcu_full(), start_poll_synchronize_rcu_full(), or get_completed_synchronize_rcu_full(). Returns }(hj hhhNhNubj)}(h**true**h]htrue}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh% if the two values are identical and }(hj hhhNhNubj)}(h **false**h]hfalse}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh otherwise. This allows structures whose lifetimes are tracked by old-state values to push these values to a list header, allowing those structures to be slightly smaller.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/core-api/kernel-api:431: ./include/linux/rcutree.hhK1hj ubh)}(hXKNote that equality is judged on a bitwise basis, so that an **rcu_gp_seq** structure with an already-completed state in one field will compare not-equal to a structure with an already-completed state in the other field. After all, the **rcu_gp_seq** structure is opaque so how did such a situation come to pass in the first place?h](hesrefids}j<](j<j>esnameids}(jG jD j<j9jejej4j1jjj j jhjhjt?j<jpjpjg|jd|j‰jj{jxj*;j';jj jjj!jjjj7j7j";j;jrtjotjjtjgtjKjHjCj@j#j jjjcj`jjj4j1j6j3j,j)j[jXj-j-jjj+j+j-j-j6j6jjjBj?jA6j>6jTjTjjj? j< j7 j4 u nametypes}(jG j<jej4jj jhjt?jpjg|j‰j{j*;jjj!jj7j";jrtjjtjKjCj#jjcjj4j6j,j[j-jj+j-j6jjBjA6jTjj? j7 uh}(jD hj9hjehj jjjjjj j j j jxj}jjjjjajfjjjTjYj j j=$jB$j&j&j(j(jX+j]+j-j-jt0jy0j3j3j5j5j8j8j9j9j<j<jB?jG?jBjBjEjEjHjHj>OjCOjQjQj"Tj'TjUjUjdWjiWjeYjjYj\j\j_j_jnbjsbj1jejejejgjgjijij kjkjRojWojqjqjtjtjBwjGwjyjyj|j|j}j}j>jCj5j:jjjمjޅjSjXjcjhjsjxj\jaj}jjʒjϒjPjUj՗jڗjZj_jќj֜jHjMjjj>jCjjjjjjjjjSjXjjjojtj̷jѷjjjjj@jEj"j'jjjjjjjjjjjyj~jjjjjCjHjjjjjjjjjhjmjj jjj$j)j-j2jj?j j^j{jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjhj j j jjjjj jjjjy!j~!j%j%j0(j5(j*j*jD-jI-j/j/j3j3j<j<j>j>j<jbjKejPejpjhj ijijRkjWkj3nj8njd|jpjpjpjqjqjasjfsjktjptjujvjwjwjyj yjzjzjjj|j|j|jjjjjxjʼnjjj0j5jjjojtjjjj j]jbjjj jj';jj jjjjMjRjɡjΡjcjhj jjjj.j3jǩj̩jCjHjzjjLjQj[j`jIjNjFjKj4j9jwj|jjjjjjjFjKjj$jjjjjjj\jaj$j)jjj3j8jjjjjjjjjjj.j3jjjjjjj|jjjjXj]jjj^jcjjj>jCjjjjjjjjj~jjjj(j-j2j7jKjPjUjZj_jdjjjjjj$jAjFj< jA jA jF j[j`jjj7jj4j9jjjjj8j=jjjRjWj?jDj,!j1!j@#jE#j-%j2%j(j(jy*j~*jr,jw,j-j-jF/jK/j0j0j2j2j3j3j5j5j;j7j7j7j^9jc9jotj-;jgtj>;j[;j`;j<j<j>j>jAjAjCjCjFjFj)Jj.JjMjMjQjQjSjSjUjUjWjWjZjZj\j\j'_j,_juajzajcjcjejejijijkjkjmpjrpjqjqjHjutj@jtjtjtjujujwjwjwjwjvyj{yjzjzj{j{jl|jq|jP}jU}jZ~j_~jdjijHjMj,j1jIjNjfjkjJjOj.j3jKjPj/j4j9j>jĉjɉjjjljqjjjIjNjjjjjxj}j-j2jjjmjrj"j'jכjܛjjĝjjjjjj j!j&jsjxjjjjj jNjjmjjjjjjjjjjõjcjhjjjwj|j̽jѽjj jjjejjjjjKjPjjj_jdjsjxjjj jj<jAjjjjj%j*jjjjj`j&jj7jTjYj1jj3jCj)j9jXj7j-jfjjwjjjdjij+jjjjj!jjjj jBjGjjjtjyjjjtjyjjjjjjjdjij[ j` jqjvjjjjjsjxjjjjj j j#j #j.%j3%j(j"(j-j+j+j+j6j-j.j .j/j/j%1j*1j3j3j5j5j7j7jH9jM9j:j:jh<jm<j=j=j?j?jAjAjBjBj8Dj=DjEjEjJjJjKjKjNjNjEQjJQjTjTj WjWjXjXj\j\jLajQajdjdjhjhjijijNkjSkjmjmjojoj/rj4rjtjtjvjvjxjxjezjjzj|j|j+j0j|jj6j;jɄj΄j\jaj1j6jjjqjvjjj jjjjjjj"jXj]j jj<jAjfjkjҦjצjԩj٩jjjjjjjٳj޳jjjƷj˷jjźjjjjjIjNjjjjjqjvjSjXjijnjjjjjQjVjj jjjjjjjjjjjjjjjjjjj jj\jajj jgjljjjjj j jY j^ jo jt jjjjjjjjjKjPjjjjjnjsjjj"j"j[$j`$jP'jU'j(j(j*j*j?,jD,jh.jm.j/j/j$2j)2j3j3j6j6j8j8j;j;ju=jz=j>j>jAjBj EjEjGjGjIjIjKjKj[Mj`MjOjOjQjQjSjSjVjVjYjYj`[je[j]j]j^j^jbjbj=fjBfjfhjkhj)jj.jj?ljDljinjnnjpjpjqjqjLsjQsjtjtjvjvjyj"yj|j|jjjjjGjLj]jbjjj^jcjjjjjjƏjjj(j-jjØjjjyj~jjjݥjjjj֩j۩jjjjjβjӲjjjǷj̷j*j/jjjjjjjfjkjjjjjjjjjjjjjjjjjjj/j4jjjjj(j-jQjVjjjjjjjljqjLjQjjjjj]jbjjjhjmjjjjjjj~jj j jLjQjajfjjjjjrjwjjjtjyjjjjjjj j jj"jo"j?$jD$j%j%j6'j;'j(j(j)j)j.j.j0j0j4j4jj6j6j6jj9jo9j;j;j>j>j?j?jBjBjXGj]Gj\IjaIjJjJj^LjcLjMjMj:Oj?OjQjQjRjRjTjTjXjXjYjYjA[jF[j]j]j`j`j^bjcbj`ejeejWgj\gj3ij8ijjjjjsmjxmj(oj-ojpjpjrrjwrjsjsj wjwjkyjpyjzjzj|j|jujzj>jCjjj?jjjjjjGjLj>6jEjbjgj(j-j@jEjFjKjjj}jj jjj jj#jjj?jDjȟj͟jjjjjojjj1j6jxj}j=jBjcjhjjjjj@jEj$j)jj jjj=jBjjjjjj¾j>jCj&j+j%j*jjjjjcjhjj jjjjjjjjj jjjj jjgjljjjj$jjj+j0jCjHj'j,jjjjj2j7jjjjjpjujj j(j-j&j+j. j3 j j j j j"j'jjjjjfjkj;j@jjjjj j j"j"j~$j$j&&j+&j'j'jp)ju)j,j,j.j.j80j=0j1j1j'4j,4jTjD6ja6jf6j8j8j;j;j?j?jAjAjDjDjwGj|GjIjIj3Lj8LjNjNjLPjQPjQjQjjTjTjTjxVj}VjXjXjYjYj[j[j]j]j`j`jbj bjcjcjuejzej hjhjjjjjljljvnj{njpjpjrrjwrjsjsjtjtjRvjWvjwjwjyjyj8|j=|j3j8jjjAjFjjjjjjjajfjjjjjj jjjjjɟjΟjjjojtj̨jѨjjjjjjjMjRjujzjjj|jjzjjxj}jjj-j2jGjLjpjujjjjjjjjjjjjjjjjj< jj4 jjjjj#jFjKjjjjjrjwj!j&jjjjjjjjjjjjjjjAjFjjjjj jjnjsjxj}jjjjjjjjj"j'jYj^jjjjjjjjjqjvjjjEjJjjjjjjjjjcjhj j j j j j j' j, jjj$j)j5j:jjjjjjjjjnjsjjjEjJjOjTjk!jp!j"j#j$j$j%j%j;'j@'j(j(j)j)jF+jK+j,j,j.j.jl0jq0j1j1j2j2j3j3j 5j5js6jx6j7j7jL9jQ9j:j:jN<jS<j=j=j>j>j@j@jBjBj>DjCDjEjEjFjFj.Hj3Hj)Jj.Jj$Lj)LjNjNjOjOj0Qj5QjSj$Sj[Uj`UjWjWjYjYj[j[j]j]j^j^j`j$`jajaj!cj&cjdjdj#fj(fjhjhj|jjjjljlj&nj+njojojqjrjXsj]sjtjtjvvj{vjxjxj=zjBzj{j{j}j}j~j~jjj#j(j\jaj jj߇jj}jjjj<jAjjjϔjԔjjj/j4jjj~jj3j8jjjjjjjjj=jBjۧjj)j.jjjj$jGjLjpjujjjNjSjjjjj jj'j,jDjIjajfjjjjjjjjjmjrjjjjjjjdjij<jAjjjnjsjjjwj|jj jjjjjjj jjj"jcjhjjjjjj jjjjjj jjjjjjj'j,jmjrjjjjjjjjj1j6jjjJjOjjjju(u footnote_refs}j ](j<j>es citation_refs} autofootnotes]jesymbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jz KsRparse_messages]transform_messages] transformerN include_log] decorationNhhub.